@nutanix-scratch/monitoring-js-client 4.0.1-beta.1 → 4.1.1
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/LICENSE.txt +202 -49
- package/README.md +66 -49
- package/dist/Ntnx-Monitoring-js-client-prod.js +1 -1
- package/dist/Ntnx-Monitoring-js-client.js +501 -171
- package/dist/es/ApiClient.d.ts +14 -1
- package/dist/es/ApiClient.js +257 -206
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +10 -10
- package/dist/es/apis/alertemailconfiguration-endpoints.d.ts +5 -5
- package/dist/es/apis/alertemailconfiguration-endpoints.js +17 -17
- package/dist/es/apis/alerts-endpoints.d.ts +7 -55
- package/dist/es/apis/alerts-endpoints.js +20 -67
- package/dist/es/apis/audits-endpoints.d.ts +7 -43
- package/dist/es/apis/audits-endpoints.js +20 -55
- package/dist/es/apis/clusterlogs-endpoints.d.ts +58 -0
- package/dist/es/apis/clusterlogs-endpoints.js +173 -0
- package/dist/es/apis/events-endpoints.d.ts +7 -33
- package/dist/es/apis/events-endpoints.js +20 -45
- package/dist/es/apis/managealerts-endpoints.d.ts +3 -3
- package/dist/es/apis/managealerts-endpoints.js +14 -14
- package/dist/es/apis/systemdefinedchecks-endpoints.d.ts +34 -0
- package/dist/es/apis/systemdefinedchecks-endpoints.js +118 -0
- package/dist/es/apis/systemdefinedpolicies-endpoints.d.ts +101 -0
- package/dist/es/apis/systemdefinedpolicies-endpoints.js +307 -0
- package/dist/es/apis/userdefinedpolicies-endpoints.d.ts +14 -38
- package/dist/es/apis/userdefinedpolicies-endpoints.js +31 -54
- package/dist/es/index.d.ts +83 -23
- package/dist/es/index.js +307 -67
- package/dist/es/models/common/v1/config/FQDN.d.ts +24 -20
- package/dist/es/models/common/v1/config/FQDN.js +57 -22
- package/dist/es/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/es/models/common/v1/config/Flag.js +66 -22
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.d.ts +54 -32
- package/dist/es/models/common/v1/config/IPAddressOrFQDN.js +56 -24
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +40 -26
- package/dist/es/models/common/v1/config/IPv4Address.js +65 -24
- package/dist/es/models/common/v1/config/IPv6Address.d.ts +40 -26
- package/dist/es/models/common/v1/config/IPv6Address.js +65 -24
- package/dist/es/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/es/models/common/v1/config/KVPair.js +71 -25
- package/dist/es/models/common/v1/config/KVStringPair.d.ts +28 -26
- package/dist/es/models/common/v1/config/KVStringPair.js +60 -22
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/{lib/models/monitoring/v4/serviceability/SeverityThresholdInfo.js → es/models/common/v1/config/MapOfStringWrapper.js} +93 -96
- package/dist/es/models/common/v1/config/Message.d.ts +41 -38
- package/dist/es/models/common/v1/config/Message.js +58 -26
- package/dist/es/models/common/v1/config/MessageSeverity.js +8 -8
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +24 -22
- package/dist/es/models/common/v1/config/TenantAwareModel.js +55 -23
- package/dist/es/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/es/models/common/v1/response/ApiLink.js +54 -22
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +72 -28
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
- package/dist/es/models/monitoring/v4/common/AlertEntityReference.d.ts +36 -34
- package/dist/es/models/monitoring/v4/common/AlertEntityReference.js +63 -27
- package/dist/es/models/monitoring/v4/common/BoolValue.d.ts +26 -21
- package/dist/es/models/monitoring/v4/common/BoolValue.js +58 -22
- package/dist/es/models/monitoring/v4/common/CauseAndResolution.d.ts +28 -26
- package/dist/es/models/monitoring/v4/common/CauseAndResolution.js +60 -22
- package/dist/es/models/monitoring/v4/common/ComparisonOperator.js +13 -13
- package/dist/es/models/monitoring/v4/common/ConditionType.js +9 -9
- package/dist/es/models/monitoring/v4/common/DataType.js +12 -12
- package/dist/es/models/monitoring/v4/common/DoubleValue.d.ts +26 -21
- package/dist/es/models/monitoring/v4/common/DoubleValue.js +58 -22
- package/dist/es/models/monitoring/v4/common/EntityReference.d.ts +36 -34
- package/dist/es/models/monitoring/v4/common/EntityReference.js +62 -27
- package/dist/es/models/monitoring/v4/common/FloatValue.d.ts +62 -0
- package/dist/es/models/monitoring/v4/common/FloatValue.js +279 -0
- package/dist/es/models/monitoring/v4/common/ImpactType.js +14 -14
- package/dist/es/models/monitoring/v4/common/IntValue.d.ts +26 -21
- package/dist/es/models/monitoring/v4/common/IntValue.js +58 -22
- package/dist/es/models/monitoring/v4/common/MetricDetail.d.ts +96 -87
- package/dist/es/models/monitoring/v4/common/MetricDetail.js +111 -73
- package/dist/es/models/monitoring/v4/common/OperationType.js +47 -23
- package/dist/es/models/monitoring/v4/common/Parameter.d.ts +30 -25
- package/dist/es/models/monitoring/v4/common/Parameter.js +57 -22
- package/dist/es/models/monitoring/v4/common/Severity.js +11 -11
- package/dist/es/models/monitoring/v4/common/StringValue.d.ts +26 -21
- package/dist/es/models/monitoring/v4/common/StringValue.js +58 -22
- package/dist/es/models/monitoring/v4/error/AppMessage.d.ts +59 -50
- package/dist/es/models/monitoring/v4/error/AppMessage.js +65 -33
- package/dist/es/models/monitoring/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/es/models/monitoring/v4/error/ErrorResponse.js +61 -23
- package/dist/es/models/monitoring/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/es/models/monitoring/v4/error/SchemaValidationError.js +63 -30
- package/dist/es/models/monitoring/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/es/models/monitoring/v4/error/SchemaValidationErrorMessage.js +56 -24
- package/dist/es/models/monitoring/v4/serviceability/ActionType.js +8 -8
- package/dist/es/models/monitoring/v4/serviceability/Alert.d.ts +231 -170
- package/dist/es/models/monitoring/v4/serviceability/Alert.js +165 -108
- package/dist/es/models/monitoring/v4/serviceability/AlertActionSpec.d.ts +23 -21
- package/dist/es/models/monitoring/v4/serviceability/AlertActionSpec.js +53 -21
- package/dist/es/models/monitoring/v4/serviceability/AlertConfig.d.ts +124 -0
- package/dist/es/models/monitoring/v4/serviceability/AlertConfig.js +378 -0
- package/dist/es/models/monitoring/v4/serviceability/AlertEmailConfiguration.d.ts +204 -89
- package/dist/es/models/monitoring/v4/serviceability/AlertEmailConfiguration.js +111 -65
- package/dist/es/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.d.ts +106 -0
- package/dist/es/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.js +434 -0
- package/dist/es/models/monitoring/v4/serviceability/ArchiveOpts.d.ts +78 -0
- package/dist/es/models/monitoring/v4/serviceability/ArchiveOpts.js +350 -0
- package/dist/es/models/monitoring/v4/serviceability/Audit.d.ts +134 -87
- package/dist/es/models/monitoring/v4/serviceability/Audit.js +115 -64
- package/dist/es/models/monitoring/v4/serviceability/AuditEntityReference.d.ts +36 -34
- package/dist/es/models/monitoring/v4/serviceability/AuditEntityReference.js +63 -27
- package/dist/es/models/monitoring/v4/serviceability/AutoResolveState.d.ts +19 -0
- package/dist/{lib/models/monitoring/v4/serviceability/AutoResolve.js → es/models/monitoring/v4/serviceability/AutoResolveState.js} +28 -28
- package/dist/es/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.d.ts +74 -0
- package/dist/es/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.js +317 -0
- package/dist/es/models/monitoring/v4/serviceability/ClusterConfig.d.ts +155 -0
- package/dist/es/models/monitoring/v4/serviceability/ClusterConfig.js +473 -0
- package/dist/es/models/monitoring/v4/serviceability/ClusterConfigProjection.d.ts +10 -0
- package/dist/es/models/monitoring/v4/serviceability/ClusterConfigProjection.js +154 -0
- package/dist/es/models/monitoring/v4/serviceability/{AutoResolve.d.ts → ClusterType.d.ts} +6 -6
- package/dist/es/models/monitoring/v4/serviceability/ClusterType.js +85 -0
- package/dist/es/models/monitoring/v4/serviceability/CollectLogsApiResponse.d.ts +99 -0
- package/dist/{lib/models/monitoring/v4/serviceability/ManageAlertsApiResponse.js → es/models/monitoring/v4/serviceability/CollectLogsApiResponse.js} +87 -55
- package/dist/es/models/monitoring/v4/serviceability/CommunicationStatus.d.ts +57 -41
- package/dist/es/models/monitoring/v4/serviceability/CommunicationStatus.js +68 -35
- package/dist/es/models/monitoring/v4/serviceability/Condition.d.ts +36 -33
- package/dist/es/models/monitoring/v4/serviceability/Condition.js +62 -29
- package/dist/es/models/monitoring/v4/serviceability/ConfigurableParamValueRange.d.ts +78 -0
- package/dist/es/models/monitoring/v4/serviceability/ConfigurableParamValueRange.js +353 -0
- package/dist/es/models/monitoring/v4/serviceability/ConflictingPolicy.d.ts +25 -23
- package/dist/es/models/monitoring/v4/serviceability/ConflictingPolicy.js +57 -25
- package/dist/es/models/monitoring/v4/serviceability/ConnectionStatus.js +10 -10
- package/dist/es/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/Credential.d.ts +86 -0
- package/dist/es/models/monitoring/v4/serviceability/Credential.js +364 -0
- package/dist/es/models/monitoring/v4/serviceability/CustomServerUploadParams.d.ts +146 -0
- package/dist/es/models/monitoring/v4/serviceability/CustomServerUploadParams.js +440 -0
- package/dist/es/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.d.ts +66 -25
- package/dist/es/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/EmailConfigurationRule.d.ts +66 -60
- package/dist/es/models/monitoring/v4/serviceability/EmailConfigurationRule.js +74 -39
- package/dist/es/models/monitoring/v4/serviceability/EmailTemplate.d.ts +28 -26
- package/dist/es/models/monitoring/v4/serviceability/EmailTemplate.js +54 -22
- package/dist/es/models/monitoring/v4/serviceability/EntityFilter.d.ts +26 -24
- package/dist/es/models/monitoring/v4/serviceability/EntityFilter.js +58 -26
- package/dist/es/models/monitoring/v4/serviceability/EntityType.d.ts +19 -0
- package/dist/es/models/monitoring/v4/serviceability/EntityType.js +253 -0
- package/dist/es/models/monitoring/v4/serviceability/Event.d.ts +121 -77
- package/dist/es/models/monitoring/v4/serviceability/Event.js +107 -56
- package/dist/es/models/monitoring/v4/serviceability/EventEntityReference.d.ts +36 -34
- package/dist/es/models/monitoring/v4/serviceability/EventEntityReference.js +63 -27
- package/dist/es/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/FloatConfigurableParamValue.d.ts +93 -0
- package/dist/es/models/monitoring/v4/serviceability/FloatConfigurableParamValue.js +365 -0
- package/dist/es/models/monitoring/v4/serviceability/GetAlertApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/GetAlertApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/GetAuditApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/GetAuditApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.d.ts +99 -0
- package/dist/es/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.js +343 -0
- package/dist/es/models/monitoring/v4/serviceability/GetEventApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/GetEventApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.d.ts +99 -0
- package/dist/es/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.js +343 -0
- package/dist/es/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/GroupEntityType.js +8 -8
- package/dist/es/models/monitoring/v4/serviceability/GroupFilter.d.ts +29 -27
- package/dist/es/models/monitoring/v4/serviceability/GroupFilter.js +56 -24
- package/dist/es/models/monitoring/v4/serviceability/HttpProxy.d.ts +84 -52
- package/dist/es/models/monitoring/v4/serviceability/HttpProxy.js +75 -34
- package/dist/es/models/monitoring/v4/serviceability/IntConfigurableParamValue.d.ts +93 -0
- package/dist/es/models/monitoring/v4/serviceability/IntConfigurableParamValue.js +365 -0
- package/dist/es/models/monitoring/v4/serviceability/ListAlertsApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/ListAlertsApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/ListAuditsApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/ListAuditsApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.d.ts +100 -0
- package/dist/es/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.js +370 -0
- package/dist/es/models/monitoring/v4/serviceability/ListEventsApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/ListEventsApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.d.ts +99 -0
- package/dist/es/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.js +365 -0
- package/dist/es/models/monitoring/v4/serviceability/ListTagsApiResponse.d.ts +99 -0
- package/dist/es/models/monitoring/v4/serviceability/ListTagsApiResponse.js +365 -0
- package/dist/es/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/LocalUploadParams.d.ts +52 -0
- package/dist/es/models/monitoring/v4/serviceability/LocalUploadParams.js +280 -0
- package/dist/es/models/monitoring/v4/serviceability/LogCollectionSpec.d.ts +178 -0
- package/dist/es/models/monitoring/v4/serviceability/LogCollectionSpec.js +625 -0
- package/dist/es/models/monitoring/v4/serviceability/ManageAlertApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/ManageAlertApiResponse.js +60 -28
- package/dist/es/models/monitoring/v4/serviceability/NtnxServerUploadParams.d.ts +74 -0
- package/dist/es/models/monitoring/v4/serviceability/NtnxServerUploadParams.js +321 -0
- package/dist/es/models/monitoring/v4/serviceability/ParameterizedMessage.d.ts +39 -26
- package/dist/es/models/monitoring/v4/serviceability/ParameterizedMessage.js +63 -22
- package/dist/es/models/monitoring/v4/serviceability/PolicySeverityLevel.js +10 -10
- package/dist/es/models/monitoring/v4/serviceability/PropertyState.d.ts +19 -0
- package/dist/es/models/monitoring/v4/serviceability/PropertyState.js +91 -0
- package/dist/es/models/monitoring/v4/serviceability/ProxyType.js +8 -8
- package/dist/es/models/monitoring/v4/serviceability/RelatedPolicy.d.ts +36 -34
- package/dist/es/models/monitoring/v4/serviceability/RelatedPolicy.js +67 -32
- package/dist/es/models/monitoring/v4/serviceability/RemoteTunnelDetails.d.ts +127 -38
- package/dist/es/models/monitoring/v4/serviceability/RemoteTunnelDetails.js +58 -26
- package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysis.d.ts +48 -28
- package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysis.js +109 -60
- package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.d.ts +2 -1
- package/dist/es/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.js +38 -17
- package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.d.ts +103 -0
- package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.js +343 -0
- package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.d.ts +119 -0
- package/dist/es/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.js +506 -0
- package/dist/es/models/monitoring/v4/serviceability/Scope.d.ts +19 -0
- package/dist/es/models/monitoring/v4/serviceability/Scope.js +85 -0
- package/dist/es/models/monitoring/v4/serviceability/SdaSubType.d.ts +19 -0
- package/dist/es/models/monitoring/v4/serviceability/SdaSubType.js +91 -0
- package/dist/es/models/monitoring/v4/serviceability/SdaType.d.ts +19 -0
- package/dist/es/models/monitoring/v4/serviceability/SdaType.js +85 -0
- package/dist/es/models/monitoring/v4/serviceability/ServerUploadProtocol.d.ts +19 -0
- package/dist/es/models/monitoring/v4/serviceability/ServerUploadProtocol.js +85 -0
- package/dist/es/models/monitoring/v4/serviceability/ServiceCenter.d.ts +40 -38
- package/dist/es/models/monitoring/v4/serviceability/ServiceCenter.js +64 -26
- package/dist/es/models/monitoring/v4/serviceability/SeverityConfig.d.ts +72 -0
- package/dist/es/models/monitoring/v4/serviceability/SeverityConfig.js +324 -0
- package/dist/es/models/monitoring/v4/serviceability/SeverityTrail.d.ts +28 -25
- package/dist/es/models/monitoring/v4/serviceability/SeverityTrail.js +57 -24
- package/dist/es/models/monitoring/v4/serviceability/Status.js +11 -11
- package/dist/es/models/monitoring/v4/serviceability/StorageContainerUploadParams.d.ts +113 -0
- package/dist/es/models/monitoring/v4/serviceability/StorageContainerUploadParams.js +400 -0
- package/dist/es/models/monitoring/v4/serviceability/StringConfigurableParamValue.d.ts +74 -0
- package/dist/es/models/monitoring/v4/serviceability/StringConfigurableParamValue.js +317 -0
- package/dist/es/models/monitoring/v4/serviceability/SystemDefinedPolicy.d.ts +304 -0
- package/dist/es/models/monitoring/v4/serviceability/SystemDefinedPolicy.js +904 -0
- package/dist/es/models/monitoring/v4/serviceability/Tag.d.ts +49 -0
- package/dist/es/models/monitoring/v4/serviceability/Tag.js +317 -0
- package/dist/es/models/monitoring/v4/serviceability/TriggerCondition.d.ts +39 -30
- package/dist/es/models/monitoring/v4/serviceability/TriggerCondition.js +56 -24
- package/dist/es/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.js +96 -42
- package/dist/es/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.d.ts +99 -0
- package/dist/{lib/models/monitoring/v4/serviceability/UpdateSdaPolicyApiResponse.js → es/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.js} +87 -55
- package/dist/es/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.d.ts +65 -25
- package/dist/es/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.js +96 -42
- package/dist/es/models/monitoring/v4/serviceability/UserDefinedPolicy.d.ts +132 -103
- package/dist/es/models/monitoring/v4/serviceability/UserDefinedPolicy.js +120 -74
- package/dist/es/models/monitoring/v4/serviceability/UserReference.d.ts +34 -32
- package/dist/es/models/monitoring/v4/serviceability/UserReference.js +59 -24
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +24 -22
- package/dist/es/models/prism/v4/config/TaskReference.js +58 -25
- package/dist/es/models/validation/ValidationError.js +6 -6
- package/dist/es/utils/ValidationUtils.js +6 -6
- package/dist/lib/ApiClient.d.ts +14 -1
- package/dist/lib/ApiClient.js +257 -206
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +10 -10
- package/dist/lib/apis/alertemailconfiguration-endpoints.d.ts +5 -5
- package/dist/lib/apis/alertemailconfiguration-endpoints.js +17 -17
- package/dist/lib/apis/alerts-endpoints.d.ts +7 -55
- package/dist/lib/apis/alerts-endpoints.js +20 -67
- package/dist/lib/apis/audits-endpoints.d.ts +7 -43
- package/dist/lib/apis/audits-endpoints.js +20 -55
- package/dist/lib/apis/clusterlogs-endpoints.d.ts +58 -0
- package/dist/lib/apis/clusterlogs-endpoints.js +173 -0
- package/dist/lib/apis/events-endpoints.d.ts +7 -33
- package/dist/lib/apis/events-endpoints.js +20 -45
- package/dist/lib/apis/managealerts-endpoints.d.ts +3 -3
- package/dist/lib/apis/managealerts-endpoints.js +14 -14
- package/dist/lib/apis/systemdefinedchecks-endpoints.d.ts +34 -0
- package/dist/lib/apis/systemdefinedchecks-endpoints.js +118 -0
- package/dist/lib/apis/systemdefinedpolicies-endpoints.d.ts +101 -0
- package/dist/lib/apis/systemdefinedpolicies-endpoints.js +307 -0
- package/dist/lib/apis/userdefinedpolicies-endpoints.d.ts +14 -38
- package/dist/lib/apis/userdefinedpolicies-endpoints.js +31 -54
- package/dist/lib/index.d.ts +83 -23
- package/dist/lib/index.js +307 -67
- package/dist/lib/models/common/v1/config/FQDN.d.ts +24 -20
- package/dist/lib/models/common/v1/config/FQDN.js +57 -22
- package/dist/lib/models/common/v1/config/Flag.d.ts +32 -26
- package/dist/lib/models/common/v1/config/Flag.js +66 -22
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.d.ts +54 -32
- package/dist/lib/models/common/v1/config/IPAddressOrFQDN.js +56 -24
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +40 -26
- package/dist/lib/models/common/v1/config/IPv4Address.js +65 -24
- package/dist/lib/models/common/v1/config/IPv6Address.d.ts +40 -26
- package/dist/lib/models/common/v1/config/IPv6Address.js +65 -24
- package/dist/lib/models/common/v1/config/KVPair.d.ts +35 -26
- package/dist/lib/models/common/v1/config/KVPair.js +71 -25
- package/dist/lib/models/common/v1/config/KVStringPair.d.ts +28 -26
- package/dist/lib/models/common/v1/config/KVStringPair.js +60 -22
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/{es/models/monitoring/v4/serviceability/SeverityThresholdInfo.js → lib/models/common/v1/config/MapOfStringWrapper.js} +93 -96
- package/dist/lib/models/common/v1/config/Message.d.ts +41 -38
- package/dist/lib/models/common/v1/config/Message.js +58 -26
- package/dist/lib/models/common/v1/config/MessageSeverity.js +8 -8
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +24 -22
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +55 -23
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +28 -26
- package/dist/lib/models/common/v1/response/ApiLink.js +54 -22
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +79 -44
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +72 -28
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +24 -18
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +72 -32
- package/dist/lib/models/monitoring/v4/common/AlertEntityReference.d.ts +36 -34
- package/dist/lib/models/monitoring/v4/common/AlertEntityReference.js +63 -27
- package/dist/lib/models/monitoring/v4/common/BoolValue.d.ts +26 -21
- package/dist/lib/models/monitoring/v4/common/BoolValue.js +58 -22
- package/dist/lib/models/monitoring/v4/common/CauseAndResolution.d.ts +28 -26
- package/dist/lib/models/monitoring/v4/common/CauseAndResolution.js +60 -22
- package/dist/lib/models/monitoring/v4/common/ComparisonOperator.js +13 -13
- package/dist/lib/models/monitoring/v4/common/ConditionType.js +9 -9
- package/dist/lib/models/monitoring/v4/common/DataType.js +12 -12
- package/dist/lib/models/monitoring/v4/common/DoubleValue.d.ts +26 -21
- package/dist/lib/models/monitoring/v4/common/DoubleValue.js +58 -22
- package/dist/lib/models/monitoring/v4/common/EntityReference.d.ts +36 -34
- package/dist/lib/models/monitoring/v4/common/EntityReference.js +62 -27
- package/dist/lib/models/monitoring/v4/common/FloatValue.d.ts +62 -0
- package/dist/lib/models/monitoring/v4/common/FloatValue.js +279 -0
- package/dist/lib/models/monitoring/v4/common/ImpactType.js +14 -14
- package/dist/lib/models/monitoring/v4/common/IntValue.d.ts +26 -21
- package/dist/lib/models/monitoring/v4/common/IntValue.js +58 -22
- package/dist/lib/models/monitoring/v4/common/MetricDetail.d.ts +96 -87
- package/dist/lib/models/monitoring/v4/common/MetricDetail.js +111 -73
- package/dist/lib/models/monitoring/v4/common/OperationType.js +47 -23
- package/dist/lib/models/monitoring/v4/common/Parameter.d.ts +30 -25
- package/dist/lib/models/monitoring/v4/common/Parameter.js +57 -22
- package/dist/lib/models/monitoring/v4/common/Severity.js +11 -11
- package/dist/lib/models/monitoring/v4/common/StringValue.d.ts +26 -21
- package/dist/lib/models/monitoring/v4/common/StringValue.js +58 -22
- package/dist/lib/models/monitoring/v4/error/AppMessage.d.ts +59 -50
- package/dist/lib/models/monitoring/v4/error/AppMessage.js +65 -33
- package/dist/lib/models/monitoring/v4/error/ErrorResponse.d.ts +23 -19
- package/dist/lib/models/monitoring/v4/error/ErrorResponse.js +61 -23
- package/dist/lib/models/monitoring/v4/error/SchemaValidationError.d.ts +53 -43
- package/dist/lib/models/monitoring/v4/error/SchemaValidationError.js +63 -30
- package/dist/lib/models/monitoring/v4/error/SchemaValidationErrorMessage.d.ts +34 -32
- package/dist/lib/models/monitoring/v4/error/SchemaValidationErrorMessage.js +56 -24
- package/dist/lib/models/monitoring/v4/serviceability/ActionType.js +8 -8
- package/dist/lib/models/monitoring/v4/serviceability/Alert.d.ts +231 -170
- package/dist/lib/models/monitoring/v4/serviceability/Alert.js +165 -108
- package/dist/lib/models/monitoring/v4/serviceability/AlertActionSpec.d.ts +23 -21
- package/dist/lib/models/monitoring/v4/serviceability/AlertActionSpec.js +53 -21
- package/dist/lib/models/monitoring/v4/serviceability/AlertConfig.d.ts +124 -0
- package/dist/lib/models/monitoring/v4/serviceability/AlertConfig.js +378 -0
- package/dist/lib/models/monitoring/v4/serviceability/AlertEmailConfiguration.d.ts +204 -89
- package/dist/lib/models/monitoring/v4/serviceability/AlertEmailConfiguration.js +111 -65
- package/dist/lib/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.d.ts +106 -0
- package/dist/lib/models/monitoring/v4/serviceability/AlertPolicyConfigurableParameter.js +434 -0
- package/dist/lib/models/monitoring/v4/serviceability/ArchiveOpts.d.ts +78 -0
- package/dist/lib/models/monitoring/v4/serviceability/ArchiveOpts.js +350 -0
- package/dist/lib/models/monitoring/v4/serviceability/Audit.d.ts +134 -87
- package/dist/lib/models/monitoring/v4/serviceability/Audit.js +115 -64
- package/dist/lib/models/monitoring/v4/serviceability/AuditEntityReference.d.ts +36 -34
- package/dist/lib/models/monitoring/v4/serviceability/AuditEntityReference.js +63 -27
- package/dist/lib/models/monitoring/v4/serviceability/AutoResolveState.d.ts +19 -0
- package/dist/{es/models/monitoring/v4/serviceability/AutoResolve.js → lib/models/monitoring/v4/serviceability/AutoResolveState.js} +28 -28
- package/dist/lib/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.d.ts +74 -0
- package/dist/lib/models/monitoring/v4/serviceability/BooleanConfigurableParamValue.js +317 -0
- package/dist/lib/models/monitoring/v4/serviceability/ClusterConfig.d.ts +155 -0
- package/dist/lib/models/monitoring/v4/serviceability/ClusterConfig.js +473 -0
- package/dist/lib/models/monitoring/v4/serviceability/ClusterConfigProjection.d.ts +10 -0
- package/dist/lib/models/monitoring/v4/serviceability/ClusterConfigProjection.js +154 -0
- package/dist/lib/models/monitoring/v4/serviceability/{AutoResolve.d.ts → ClusterType.d.ts} +6 -6
- package/dist/lib/models/monitoring/v4/serviceability/ClusterType.js +85 -0
- package/dist/lib/models/monitoring/v4/serviceability/CollectLogsApiResponse.d.ts +99 -0
- package/dist/{es/models/monitoring/v4/serviceability/ManageAlertsApiResponse.js → lib/models/monitoring/v4/serviceability/CollectLogsApiResponse.js} +87 -55
- package/dist/lib/models/monitoring/v4/serviceability/CommunicationStatus.d.ts +57 -41
- package/dist/lib/models/monitoring/v4/serviceability/CommunicationStatus.js +68 -35
- package/dist/lib/models/monitoring/v4/serviceability/Condition.d.ts +36 -33
- package/dist/lib/models/monitoring/v4/serviceability/Condition.js +62 -29
- package/dist/lib/models/monitoring/v4/serviceability/ConfigurableParamValueRange.d.ts +78 -0
- package/dist/lib/models/monitoring/v4/serviceability/ConfigurableParamValueRange.js +353 -0
- package/dist/lib/models/monitoring/v4/serviceability/ConflictingPolicy.d.ts +25 -23
- package/dist/lib/models/monitoring/v4/serviceability/ConflictingPolicy.js +57 -25
- package/dist/lib/models/monitoring/v4/serviceability/ConnectionStatus.js +10 -10
- package/dist/lib/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/CreateUdaPolicyApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/Credential.d.ts +86 -0
- package/dist/lib/models/monitoring/v4/serviceability/Credential.js +364 -0
- package/dist/lib/models/monitoring/v4/serviceability/CustomServerUploadParams.d.ts +146 -0
- package/dist/lib/models/monitoring/v4/serviceability/CustomServerUploadParams.js +440 -0
- package/dist/lib/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.d.ts +66 -25
- package/dist/lib/models/monitoring/v4/serviceability/DeleteUdaPolicyApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/EmailConfigurationRule.d.ts +66 -60
- package/dist/lib/models/monitoring/v4/serviceability/EmailConfigurationRule.js +74 -39
- package/dist/lib/models/monitoring/v4/serviceability/EmailTemplate.d.ts +28 -26
- package/dist/lib/models/monitoring/v4/serviceability/EmailTemplate.js +54 -22
- package/dist/lib/models/monitoring/v4/serviceability/EntityFilter.d.ts +26 -24
- package/dist/lib/models/monitoring/v4/serviceability/EntityFilter.js +58 -26
- package/dist/lib/models/monitoring/v4/serviceability/EntityType.d.ts +19 -0
- package/dist/lib/models/monitoring/v4/serviceability/EntityType.js +253 -0
- package/dist/lib/models/monitoring/v4/serviceability/Event.d.ts +121 -77
- package/dist/lib/models/monitoring/v4/serviceability/Event.js +107 -56
- package/dist/lib/models/monitoring/v4/serviceability/EventEntityReference.d.ts +36 -34
- package/dist/lib/models/monitoring/v4/serviceability/EventEntityReference.js +63 -27
- package/dist/lib/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/FindConflictingUdaPoliciesApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/FloatConfigurableParamValue.d.ts +93 -0
- package/dist/lib/models/monitoring/v4/serviceability/FloatConfigurableParamValue.js +365 -0
- package/dist/lib/models/monitoring/v4/serviceability/GetAlertApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/GetAlertApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/GetAlertEmailConfigurationApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/GetAuditApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/GetAuditApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.d.ts +99 -0
- package/dist/lib/models/monitoring/v4/serviceability/GetClusterConfigApiResponse.js +343 -0
- package/dist/lib/models/monitoring/v4/serviceability/GetEventApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/GetEventApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.d.ts +99 -0
- package/dist/lib/models/monitoring/v4/serviceability/GetSdaPolicyApiResponse.js +343 -0
- package/dist/lib/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/GetUdaPolicyApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/GroupEntityType.js +8 -8
- package/dist/lib/models/monitoring/v4/serviceability/GroupFilter.d.ts +29 -27
- package/dist/lib/models/monitoring/v4/serviceability/GroupFilter.js +56 -24
- package/dist/lib/models/monitoring/v4/serviceability/HttpProxy.d.ts +84 -52
- package/dist/lib/models/monitoring/v4/serviceability/HttpProxy.js +75 -34
- package/dist/lib/models/monitoring/v4/serviceability/IntConfigurableParamValue.d.ts +93 -0
- package/dist/lib/models/monitoring/v4/serviceability/IntConfigurableParamValue.js +365 -0
- package/dist/lib/models/monitoring/v4/serviceability/ListAlertsApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/ListAlertsApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/ListAuditsApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/ListAuditsApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.d.ts +100 -0
- package/dist/lib/models/monitoring/v4/serviceability/ListClusterConfigsApiResponse.js +370 -0
- package/dist/lib/models/monitoring/v4/serviceability/ListEventsApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/ListEventsApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.d.ts +99 -0
- package/dist/lib/models/monitoring/v4/serviceability/ListSdaPoliciesApiResponse.js +365 -0
- package/dist/lib/models/monitoring/v4/serviceability/ListTagsApiResponse.d.ts +99 -0
- package/dist/lib/models/monitoring/v4/serviceability/ListTagsApiResponse.js +365 -0
- package/dist/lib/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/ListUdaPoliciesApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/LocalUploadParams.d.ts +52 -0
- package/dist/lib/models/monitoring/v4/serviceability/LocalUploadParams.js +280 -0
- package/dist/lib/models/monitoring/v4/serviceability/LogCollectionSpec.d.ts +178 -0
- package/dist/lib/models/monitoring/v4/serviceability/LogCollectionSpec.js +625 -0
- package/dist/lib/models/monitoring/v4/serviceability/ManageAlertApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/ManageAlertApiResponse.js +60 -28
- package/dist/lib/models/monitoring/v4/serviceability/NtnxServerUploadParams.d.ts +74 -0
- package/dist/lib/models/monitoring/v4/serviceability/NtnxServerUploadParams.js +321 -0
- package/dist/lib/models/monitoring/v4/serviceability/ParameterizedMessage.d.ts +39 -26
- package/dist/lib/models/monitoring/v4/serviceability/ParameterizedMessage.js +63 -22
- package/dist/lib/models/monitoring/v4/serviceability/PolicySeverityLevel.js +10 -10
- package/dist/lib/models/monitoring/v4/serviceability/PropertyState.d.ts +19 -0
- package/dist/lib/models/monitoring/v4/serviceability/PropertyState.js +91 -0
- package/dist/lib/models/monitoring/v4/serviceability/ProxyType.js +8 -8
- package/dist/lib/models/monitoring/v4/serviceability/RelatedPolicy.d.ts +36 -34
- package/dist/lib/models/monitoring/v4/serviceability/RelatedPolicy.js +67 -32
- package/dist/lib/models/monitoring/v4/serviceability/RemoteTunnelDetails.d.ts +127 -38
- package/dist/lib/models/monitoring/v4/serviceability/RemoteTunnelDetails.js +58 -26
- package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysis.d.ts +48 -28
- package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysis.js +109 -60
- package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.d.ts +2 -1
- package/dist/lib/models/monitoring/v4/serviceability/RootCauseAnalysisProjection.js +38 -17
- package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.d.ts +103 -0
- package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksApiResponse.js +343 -0
- package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.d.ts +119 -0
- package/dist/lib/models/monitoring/v4/serviceability/RunSystemDefinedChecksSpec.js +506 -0
- package/dist/lib/models/monitoring/v4/serviceability/Scope.d.ts +19 -0
- package/dist/lib/models/monitoring/v4/serviceability/Scope.js +85 -0
- package/dist/lib/models/monitoring/v4/serviceability/SdaSubType.d.ts +19 -0
- package/dist/lib/models/monitoring/v4/serviceability/SdaSubType.js +91 -0
- package/dist/lib/models/monitoring/v4/serviceability/SdaType.d.ts +19 -0
- package/dist/lib/models/monitoring/v4/serviceability/SdaType.js +85 -0
- package/dist/lib/models/monitoring/v4/serviceability/ServerUploadProtocol.d.ts +19 -0
- package/dist/lib/models/monitoring/v4/serviceability/ServerUploadProtocol.js +85 -0
- package/dist/lib/models/monitoring/v4/serviceability/ServiceCenter.d.ts +40 -38
- package/dist/lib/models/monitoring/v4/serviceability/ServiceCenter.js +64 -26
- package/dist/lib/models/monitoring/v4/serviceability/SeverityConfig.d.ts +72 -0
- package/dist/lib/models/monitoring/v4/serviceability/SeverityConfig.js +324 -0
- package/dist/lib/models/monitoring/v4/serviceability/SeverityTrail.d.ts +28 -25
- package/dist/lib/models/monitoring/v4/serviceability/SeverityTrail.js +57 -24
- package/dist/lib/models/monitoring/v4/serviceability/Status.js +11 -11
- package/dist/lib/models/monitoring/v4/serviceability/StorageContainerUploadParams.d.ts +113 -0
- package/dist/lib/models/monitoring/v4/serviceability/StorageContainerUploadParams.js +400 -0
- package/dist/lib/models/monitoring/v4/serviceability/StringConfigurableParamValue.d.ts +74 -0
- package/dist/lib/models/monitoring/v4/serviceability/StringConfigurableParamValue.js +317 -0
- package/dist/lib/models/monitoring/v4/serviceability/SystemDefinedPolicy.d.ts +304 -0
- package/dist/lib/models/monitoring/v4/serviceability/SystemDefinedPolicy.js +904 -0
- package/dist/lib/models/monitoring/v4/serviceability/Tag.d.ts +49 -0
- package/dist/lib/models/monitoring/v4/serviceability/Tag.js +317 -0
- package/dist/lib/models/monitoring/v4/serviceability/TriggerCondition.d.ts +39 -30
- package/dist/lib/models/monitoring/v4/serviceability/TriggerCondition.js +56 -24
- package/dist/lib/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/UpdateAlertEmailConfigurationApiResponse.js +96 -42
- package/dist/lib/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.d.ts +99 -0
- package/dist/{es/models/monitoring/v4/serviceability/UpdateSdaPolicyApiResponse.js → lib/models/monitoring/v4/serviceability/UpdateClusterConfigApiResponse.js} +87 -55
- package/dist/lib/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.d.ts +65 -25
- package/dist/lib/models/monitoring/v4/serviceability/UpdateUdaPolicyApiResponse.js +96 -42
- package/dist/lib/models/monitoring/v4/serviceability/UserDefinedPolicy.d.ts +132 -103
- package/dist/lib/models/monitoring/v4/serviceability/UserDefinedPolicy.js +120 -74
- package/dist/lib/models/monitoring/v4/serviceability/UserReference.d.ts +34 -32
- package/dist/lib/models/monitoring/v4/serviceability/UserReference.js +59 -24
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +24 -22
- package/dist/lib/models/prism/v4/config/TaskReference.js +58 -25
- package/dist/lib/models/validation/ValidationError.js +6 -6
- package/dist/lib/utils/ValidationUtils.js +6 -6
- package/package.json +4 -4
- package/dist/es/models/monitoring/v4/serviceability/AlertConfigExceptionGroup.d.ts +0 -72
- package/dist/es/models/monitoring/v4/serviceability/AlertConfigExceptionGroup.js +0 -337
- package/dist/es/models/monitoring/v4/serviceability/AlertDb.d.ts +0 -210
- package/dist/es/models/monitoring/v4/serviceability/AlertDb.js +0 -882
- package/dist/es/models/monitoring/v4/serviceability/AlertDbProjection.d.ts +0 -49
- package/dist/es/models/monitoring/v4/serviceability/AlertDbProjection.js +0 -300
- package/dist/es/models/monitoring/v4/serviceability/AuditDb.d.ts +0 -148
- package/dist/es/models/monitoring/v4/serviceability/AuditDb.js +0 -598
- package/dist/es/models/monitoring/v4/serviceability/AuditDbProjection.d.ts +0 -9
- package/dist/es/models/monitoring/v4/serviceability/AuditDbProjection.js +0 -133
- package/dist/es/models/monitoring/v4/serviceability/EventDb.d.ts +0 -108
- package/dist/es/models/monitoring/v4/serviceability/EventDb.js +0 -463
- package/dist/es/models/monitoring/v4/serviceability/EventDbProjection.d.ts +0 -9
- package/dist/es/models/monitoring/v4/serviceability/EventDbProjection.js +0 -130
- package/dist/es/models/monitoring/v4/serviceability/ManageAlertsApiResponse.d.ts +0 -59
- package/dist/es/models/monitoring/v4/serviceability/SeverityThresholdInfo.d.ts +0 -60
- package/dist/es/models/monitoring/v4/serviceability/UpdateSdaPolicyApiResponse.d.ts +0 -59
- package/dist/lib/models/monitoring/v4/serviceability/AlertConfigExceptionGroup.d.ts +0 -72
- package/dist/lib/models/monitoring/v4/serviceability/AlertConfigExceptionGroup.js +0 -337
- package/dist/lib/models/monitoring/v4/serviceability/AlertDb.d.ts +0 -210
- package/dist/lib/models/monitoring/v4/serviceability/AlertDb.js +0 -882
- package/dist/lib/models/monitoring/v4/serviceability/AlertDbProjection.d.ts +0 -49
- package/dist/lib/models/monitoring/v4/serviceability/AlertDbProjection.js +0 -300
- package/dist/lib/models/monitoring/v4/serviceability/AuditDb.d.ts +0 -148
- package/dist/lib/models/monitoring/v4/serviceability/AuditDb.js +0 -598
- package/dist/lib/models/monitoring/v4/serviceability/AuditDbProjection.d.ts +0 -9
- package/dist/lib/models/monitoring/v4/serviceability/AuditDbProjection.js +0 -133
- package/dist/lib/models/monitoring/v4/serviceability/EventDb.d.ts +0 -108
- package/dist/lib/models/monitoring/v4/serviceability/EventDb.js +0 -463
- package/dist/lib/models/monitoring/v4/serviceability/EventDbProjection.d.ts +0 -9
- package/dist/lib/models/monitoring/v4/serviceability/EventDbProjection.js +0 -130
- package/dist/lib/models/monitoring/v4/serviceability/ManageAlertsApiResponse.d.ts +0 -59
- package/dist/lib/models/monitoring/v4/serviceability/SeverityThresholdInfo.d.ts +0 -60
- package/dist/lib/models/monitoring/v4/serviceability/UpdateSdaPolicyApiResponse.d.ts +0 -59
|
@@ -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.Monitoring=t())}("undefined"==typeof self?this:self,(()=>(()=>{var 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 i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,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 i=(n=n.slice(0)).length;r<i;++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}},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=a,a.default=a,a.stable=d,a.stableStringify=d;var n="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,n,r){var a;void 0===r&&(r=s()),l(e,"",0,[],void 0,0,r);try{a=0===o.length?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var u=i.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return a}function u(e,t,n,r){var s=Object.getOwnPropertyDescriptor(r,n);void 0!==s.get?s.configurable?(Object.defineProperty(r,n,{value:e}),i.push([r,n,t,s])):o.push([t,n,e]):(r[n]=e,i.push([r,n,t]))}function l(e,i,o,s,a,c,d){var f;if(c+=1,"object"===t(e)&&null!==e){for(f=0;f<s.length;f++)if(s[f]===e)return void u(r,e,i,a);if(void 0!==d.depthLimit&&c>d.depthLimit)return void u(n,e,i,a);if(void 0!==d.edgesLimit&&o+1>d.edgesLimit)return void u(n,e,i,a);if(s.push(e),Array.isArray(e))for(f=0;f<e.length;f++)l(e[f],f,f,s,e,c,d);else{var p=Object.keys(e);for(f=0;f<p.length;f++){var y=p[f];l(e[y],y,f,s,e,c,d)}}s.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){void 0===r&&(r=s());var a,u=f(e,"",0,[],void 0,0,r)||e;try{a=0===o.length?JSON.stringify(u,t,n):JSON.stringify(u,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var l=i.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function f(e,o,s,a,l,d,p){var y;if(d+=1,"object"===t(e)&&null!==e){for(y=0;y<a.length;y++)if(a[y]===e)return void u(r,e,o,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==p.depthLimit&&d>p.depthLimit)return void u(n,e,o,l);if(void 0!==p.edgesLimit&&s+1>p.edgesLimit)return void u(n,e,o,l);if(a.push(e),Array.isArray(e))for(y=0;y<e.length;y++)f(e[y],y,y,a,e,d,p);else{var h={},v=Object.keys(e).sort(c);for(y=0;y<v.length;y++){var b=v[y];f(e[b],b,y,a,e,d,p),h[b]=e[b]}if(void 0===l)return h;i.push([l,o,e]),l[o]=h}a.pop()}}function p(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(o.length>0)for(var r=0;r<o.length;r++){var i=o[r];if(i[1]===t&&i[0]===n){n=i[2],o.splice(r,1);break}}return e.call(this,t,n)}}},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 i="win32"===process.platform,o=n(818);function s(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];i&&"."!==i&&(".."===i?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(i))}return n}function a(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 d(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",i=l.exec(r);return[n,i[1],i[2],i[3]]}function f(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 p(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}c.resolve=function(){for(var e="",t="",n=!1,r=arguments.length-1;r>=-1;r--){var i;if(r>=0?i=arguments[r]:e?(i=process.env["="+e])&&i.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(i=e+"\\"):i=process.cwd(),!o.isString(i))throw new TypeError("Arguments to path.resolve must be strings");if(i){var a=f(i),u=a.device,l=a.isUnc,c=a.isAbsolute,d=a.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=d+"\\"+t,n=c),e&&n))break}}return l&&(e=p(e)),e+(n?"\\":"")+(t=s(t.split(/[\\\/]+/),!n).join("\\"))||"."},c.normalize=function(e){var t=f(e),n=t.device,r=t.isUnc,i=t.isAbsolute,o=t.tail,a=/[\\\/]$/.test(o);return(o=s(o.split(/[\\\/]+/),!i).join("\\"))||i||(o="."),o&&a&&(o+="\\"),r&&(n=p(n)),n+(i?"\\":"")+o},c.isAbsolute=function(e){return f(e).isAbsolute},c.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!o.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(),i=a(t.split("\\")),o=a(n.split("\\")),s=a(r.split("\\")),u=Math.min(o.length,s.length),l=u,d=0;d<u;d++)if(o[d]!==s[d]){l=d;break}if(0==l)return t;var f=[];for(d=l;d<o.length;d++)f.push("..");return(f=f.concat(i.slice(l))).join("\\")},c._makeLong=function(e){if(!o.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=d(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=d(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return d(e)[3]},c.format=function(e){if(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!o.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));var n=e.dir,i=e.base||"";return n?n[n.length-1]===c.sep?n+i:n+c.sep+i:i},c.parse=function(e){if(!o.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=d(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(!o.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r[0])}return(t?"/":"")+(e=s(e.split("/"),!t).join("/"))||"."},h.normalize=function(e){var t=h.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=s(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(!o.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=a(e.split("/")),r=a(t.split("/")),i=Math.min(n.length,r.length),o=i,s=0;s<i;s++)if(n[s]!==r[s]){o=s;break}var u=[];for(s=o;s<n.length;s++)u.push("..");return(u=u.concat(r.slice(o))).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(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!o.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(!o.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=i?c:h,e.exports.posix=h,e.exports.win32=c},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 i=t.status;if(i>=500)return!0;if((i>=400||i<200)&&-1===n.indexOf(i))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 i=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),i(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 i=t.length,o=e-i;if(0!==o){if(o<0)throw new Error("Cannot have more delays than retries");for(var s=t[i-1],a=0;a<o+1;a++)t.push(s)}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}},0: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},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 i;"undefined"!=typeof window?i=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;var o=n(960),s=n(340),a=n(695),u=n(388),l=n(19),c=n(0);function d(){}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 f=t=e.exports;t.Request=g,f.getXHR=function(){if(i.XMLHttpRequest&&(!i.location||"file:"!==i.location.protocol||!i.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 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={},i=e.split("&"),o=0,s=i.length;o<s;++o)-1===(n=(t=i[o]).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,i,o=e.split(/\r?\n/),s={},a=0,u=o.length;a<u;++a)-1!==(t=(n=o[a]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),i=p(n.slice(t+1)),s[r]=i);return s}(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=f("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}f.serializeObject=y,f.parseString=v,f.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"},f.serialize={"application/x-www-form-urlencoded":y,"application/json":s},f.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(m.prototype),m.prototype._parseBody=function(e){var t=f.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=f.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,")"),i=new Error(r);return i.status=this.status,i.method=t,i.url=n,i},f.Response=m,o(g.prototype),a(g.prototype),g.prototype.type=function(e){return this.set("Content-Type",f.types[e]||e),this},g.prototype.accept=function(e){return this.set("Accept",f.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 i.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||d,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=f.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 i=this._header["content-type"],o=this._serializer||f.serialize[i?i.split(";")[0]:""];!o&&b(i)&&(o=f.serialize["application/json"]),o&&(n=o(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new f.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),c.prototype.del=c.prototype.delete,f.get=function(e,t,n){var r=f("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.head=function(e,t,n){var r=f("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.options=function(e,t,n){var r=f("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.del=w,f.delete=w,f.patch=function(e,t,n){var r=f("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.post=function(e,t,n){var r=f("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.put=function(e,t,n){var r=f("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},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)}},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 i=n(388);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.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.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},o.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 s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.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&&s.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},o.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()},o.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)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(i(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},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.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(i(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},o.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},o.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},o.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=i(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&&i(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},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.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("&")}}},o.prototype._appendQueryString=function(){console.warn("Unsupported")},o.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)}},o.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))}},19:(e,t,n)=>{"use strict";var r=n(897);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.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(this[i]=n[i]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},i.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}},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(),i=n.shift();return r&&i&&(e[r]=i),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}},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}},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}},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 i=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)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<o;u=r[++n])h(u)||!w(u)?s+=" "+u:s+=" "+a(u);return s},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 i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var o,s={};function a(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=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.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 i=n.inspect(r,e);return b(i)||(i=c(e,i,r)),i}var o=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(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),j(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(n);if(0===s.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 d(n)}var l,w="",T=!1,k=["{","}"];return p(n)&&(T=!0,k=["[","]"]),$(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=" "+d(n)),0!==s.length||T&&0!=n.length?r<0?g(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=T?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s<a;++s)E(t,String(s))?o.push(f(e,t,n,r,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(f(e,t,n,r,i,!0))})),o}(e,n,r,a,s):s.map((function(t){return f(e,n,r,a,t,T)})),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,k)):k[0]+w+k[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),E(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=h(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(a=o?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")),m(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(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]"===T(e)}function w(e){return"object"===r(e)&&null!==e}function O(e){return w(e)&&"[object Date]"===T(e)}function j(e){return w(e)&&("[object Error]"===T(e)||e instanceof Error)}function $(e){return"function"==typeof e}function T(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(m(o)&&(o=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=process.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,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=[k((e=new Date).getHours()),k(e.getMinutes()),k(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}},548:()=>{},799:()=>{},545:()=>{},965:()=>{}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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:()=>yh});var e=n(585),t=n.n(e);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)}function o(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 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,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(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,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,i=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 o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}(t.links);try{for(i.s();!(r=i.n()).done;){var s=r.value;if(s.hasOwnProperty("rel")&&s.hasOwnProperty("href"))switch(s.rel){case"first":n.linkFirst=s.href;break;case"prev":n.linkPrev=s.href;break;case"next":n.linkNext=s.href;break;case"last":n.linkLast=s.href}}}catch(e){i.e(e)}finally{i.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],(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=Y.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}])&&s(t.prototype,n),r&&s(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 d(){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 f=/^(?:[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 p=[],y=0;y<256;++y)p.push((y+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(p[e[t+0]]+p[e[t+1]]+p[e[t+2]]+p[e[t+3]]+"-"+p[e[t+4]]+p[e[t+5]]+"-"+p[e[t+6]]+p[e[t+7]]+"-"+p[e[t+8]]+p[e[t+9]]+"-"+p[e[t+10]]+p[e[t+11]]+p[e[t+12]]+p[e[t+13]]+p[e[t+14]]+p[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&f.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return h(r)};var b,m=n(540),g=n.n(m),w=n(545),O=n.n(w),j=n(799),$=n.n(j),T=n(784),k=n.n(T),P=n(548);function E(e){return E="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},E(e)}function S(){S=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=RegExp(e,r);return t.set(o,i||t.get(e)),F(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1<i.length;)o++;t[n]=e[i[o]]}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&&F(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var i=n.indices;i&&(i.groups=r(i,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=E(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},S.apply(this,arguments)}function F(e,t){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},F(e,t)}function A(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 D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=U(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(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 C(e,t);var n=Object.prototype.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}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function C(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 R(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,t){if("object"!=E(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}function x(e,t,n){N(e,t),t.set(e,n)}function N(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function M(e,t){return e.get(L(e,t))}function _(e,t,n){return e.set(L(e,t),n),n}function L(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")}g()(t());var J=new WeakMap,V=new WeakMap,W=new WeakMap,B=new WeakMap,z=new WeakMap,G=new WeakMap,q=new WeakMap,H=new WeakMap,K=new WeakSet,Y=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),N(this,n=K),n.add(this),x(this,J,void 0),x(this,V,void 0),x(this,W,void 0),x(this,B,void 0),x(this,z,void 0),x(this,G,void 0),x(this,q,void 0),x(this,H,void 0),_(H,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={basicAuthScheme:{type:"basic"}},this.defaultHeaders={},_(z,this,3e4),_(G,this,3e4),_(q,this,18e5),this.readTimeout=M(G,this),this.connectTimeout=M(z,this),this.cache=!0,_(V,this,null),this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,_(W,this,null),this.username=null,this.password=null,_(B,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,o=[{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 i=null;if(void 0!==t&&t.hasOwnProperty(n)&&(i=t[n]),null===i&&("string"==typeof e||e instanceof String)){var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e.match(new RegExp("".concat(o,"=([0-9]+)")));s&&(i=s[1])}return null===i&&(i=r),i}},{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"===E(n)){var i,o;for(var s in n)if(n.hasOwnProperty(s)){i=s,o=n[s];break}var a={};for(var s in t)if(t.hasOwnProperty(s)){var u=e.convertToType(s,i),l=e.convertToType(t[s],o);a[u]=l}return a}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var i=0;i<t.length;i++)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r));else for(var o in t)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r))}}],(i=[{key:"verifySsl",get:function(){return M(B,this)},set:function(e){this.requestAgent=e?null:new(O().Agent)({rejectUnauthorized:!1}),_(B,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=$().createWriteStream(e,{flags:"a"})),_(W,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&_(V,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),_(J,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==M(J,this)&&""!==this.host&&""!==this.port?r=M(J,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var i=r+e;return i.replace(/\{([\w-]+)\}/g,(function(e,r){var i;return i=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(i)}))}},{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:"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,i=I(t.getData());try{for(i.s();!(r=i.n()).done;){var o=r.value;o.hasOwnProperty("$reserved")&&void 0!==o.get$Reserved()&&(o.get$Reserved().ETag=n)}}catch(e){i.e(e)}finally{i.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,i,o,s,a,u,l,c,d,f){var p=this,y=this.buildUrl(e,i),h=t()(r,y);if(h.oldCallback=h.callback,h.callback=function(e,t){if(t&&t.status){var n=t.status;n>=400&&401!==n&&408!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1)}this.oldCallback(e,t)},L(K,this,te).call(this,h,l),"GET"===r.toUpperCase()&&!1===this.cache&&(o._=(new Date).getTime()),h.query(L(K,this,ee).call(this,o)),h.set(this.defaultHeaders).set(L(K,this,ee).call(this,s)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==s["NTNX-Request-Id"]&&void 0!==s["NTNX-Request-Id"])){var b=v();h.set(L(K,this,ee).call(this,{"NTNX-Request-Id":b}))}var m="undefined"!=typeof window&&void 0!==window.document;m||h.set(L(K,this,ee).call(this,{"User-Agent":"Nutanix-monitoring-js-client/4.0.1-beta.1"})),this.requestAgent&&h.agent(this.requestAgent);var g={};g.response=L(K,this,oe).call(this,this.connectTimeout,M(z,this)),g.deadline=L(K,this,oe).call(this,this.readTimeout,M(G,this)),h.timeout(g);var w=s.hasOwnProperty("Content-Type")?s["Content-Type"]:L(K,this,X).call(this,c);if(w?"multipart/form-data"!=w&&h.type(w):h.header["Content-Type"]||h.type("application/json"),L(K,this,ue).call(this,M(H,this).INFO,null,"Request URL :",r,y),L(K,this,ue).call(this,M(H,this).DEBUG,L(K,this,de),"Request Headers :",void 0===h.header?"":h.header),"application/x-www-form-urlencoded"===w)h.send(L(K,this,ee).call(this,a));else if("multipart/form-data"==w){var O=L(K,this,ee).call(this,a);for(var j in O)O.hasOwnProperty(j)&&(L(K,this,Z).call(this,O[j])?h.attach(j,O[j]):h.field(j,O[j]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(L(K,this,ue).call(this,M(H,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(h);else{var T;try{T=n(965)}catch(e){L(K,this,ue).call(this,M(H,this).ERROR,null,"Error fetching steam/web")}u instanceof T.ReadableStream?u.pipeTo(new T.WritableStream({write:function(e){h.write(e)},close:function(){L(K,this,ue).call(this,M(H,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){L(K,this,ue).call(this,M(H,this).ERROR,null,"READABLE STREAM ABORTED")}})):h.send(u)}return new Promise((function(t,n){h.on("error",(function(e){L(K,p,ue).call(p,M(H,p).DEBUG,null,"Caught the following error :",e),n(e)})).on("response",(function(r){L(K,p,fe).call(p,r,e,o,f,t,n)}))}))}u&&h.send(u)}"Blob"==typeof f?h.responseType("blob"):"String"===f&&h.responseType("string"),L(K,this,ae).call(this,h),L(K,this,ue).call(this,M(H,this).DEBUG,null,"Request Body :",void 0===h._data?"":h._data);var P=s.hasOwnProperty("Accept")?s.Accept:L(K,this,X).call(this,d);return s.hasOwnProperty("Accept")&&"application/octet-stream"===s.Accept||1==d.length&&"application/octet-stream"===d[0]?(h.accept("application/octet-stream"),h.buffer(!1),new Promise((function(e,t){var r=null;if(m){var i;try{i=n(965)}catch(e){L(K,p,ue).call(p,M(H,p).ERROR,null,"Error fetching steam/web")}if(p.downloadDestination instanceof i.WritableStream){var o=p.downloadDestination.getWriter();try{h.on("data",(function(e){o.write(e)}))}catch(e){L(K,p,ue).call(p,M(H,p).ERROR,null,"Issue while downloading file",e)}h.on("response",(function(t){L(K,p,ue).call(p,M(H,p).INFO,null,"Response Status :",t.status),L(K,p,ue).call(p,M(H,p).DEBUG,L(K,p,de),"Response Headers :",t.headers);var n=L(K,p,re).call(p,t,f);e({data:n,response:t})})).on("error",(function(e){L(K,p,ue).call(p,M(H,p).ERROR,null,"Caught the following error :",e),t(e)}))}else{var s="Incompatible downloadDestination for Browser Environment, must be WritableStream";L(K,p,ue).call(p,M(H,p).ERROR,null,s),t(s)}}else{null!==p.downloadDestination&&void 0!==p.downloadDestination&&"string"==typeof p.downloadDestination||(L(K,p,ue).call(p,M(H,p).ERROR,null,"Incompatible downloadDestination must be string, is",p.downloadDestination),L(K,p,ue).call(p,M(H,p).ERROR,null,"Downloading file to base directory"),p.downloadDestination="."),r=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt";var a=$().createWriteStream(r);L(K,p,ue).call(p,M(H,p).INFO,null,"Streaming response to : ",r),h.pipe(a),h.on("response",(function(n){L(K,p,ue).call(p,M(H,p).INFO,null,"Response Status :",n.status),L(K,p,ue).call(p,M(H,p).DEBUG,L(K,p,de),"Response Headers :",n.headers);var i=L(K,p,re).call(p,n,f);n.ok||(L(K,p,ue).call(p,M(H,p).ERROR,null,i),t(D(D({},n.error),{},{data:i})));var o="";if(void 0!==n.headers["content-disposition"]&&null!==n.headers["content-disposition"]){var s=n.headers["content-disposition"].match(S(/.*filename="(.*)".*/,{filename:1})),u=k().parse(s.groups.filename);o=p.downloadDestination+"/"+u.name+"_"+Date.now()+u.ext,void 0===i&&((i=new f).data={path:k().parse(o),$objectType:"Path"})}a.on("finish",(function(){L(K,p,ue).call(p,M(H,p).INFO,null,"Finished streaming response"),0!==o.length?(L(K,p,ue).call(p,M(H,p).INFO,null,"Content-Disposition header found [",o,"] is final filename"),a.close(),$().rename(r,o,(function(){e({data:i,response:n})}))):(L(K,p,ue).call(p,M(H,p).ERROR,null,"Content-Disposition header not found [",r,"] is final filename"),e({data:i,response:n}))})).on("error",(function(e){L(K,p,ue).call(p,M(H,p).ERROR,null,"Caught the following error :",e),error.data=L(K,p,ne).call(p,error),t(e)}))})).on("error",(function(e){L(K,p,ue).call(p,M(H,p).ERROR,null,"Caught the following error :",err),null!==e.response&&void 0!==e.response?e.data=L(K,p,re).call(p,e.response,f):e.data=L(K,p,ne).call(p,e),t(e)}))}}))):(P&&h.accept(P),new Promise((function(t,n){h.on("error",(function(e){L(K,p,ue).call(p,M(H,p).DEBUG,null,"Caught the following error :",e)})).retry(p.maxRetryAttempts,p.retryInterval,[]).then((function(r){L(K,p,fe).call(p,r,e,o,f,t,n)})).catch((function(e){L(K,p,ue).call(p,M(H,p).DEBUG,null,"Caught error during the request!"),L(K,p,ue).call(p,M(H,p).ERROR,null,e),null!==e.response&&void 0!==e.response?e.data=L(K,p,re).call(p,e.response,f):e.data=L(K,p,ne).call(p,e),n(e)}))})))}}])&&R(r.prototype,i),o&&R(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}();function Q(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function X(e){for(var t=0;t<e.length;t++)if(L(K,this,Q).call(this,e[t]))return e[t];return e[0]}function Z(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 P.Blob&&e instanceof P.Blob||"function"==typeof File&&e instanceof File}function ee(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];L(K,this,Z).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function te(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||""),L(K,n,ue).call(n,M(H,n).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var i={};r.apiKeyPrefix?i[r.name]=r.apiKeyPrefix+" "+r.apiKey:i[r.name]=r.apiKey,"header"===r.in?e.set(i):e.query(i)}L(K,n,ue).call(n,M(H,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),L(K,n,ue).call(n,M(H,n).DEBUG,null,"oauth2 applied to request");break;default:throw L(K,n,ue).call(n,M(H,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function ne(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function re(e,t){if(null==e||null==t||204==e.status)return null;var n=e.body;return(null==n||"object"===E(n)&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),b.convertToType(n,t)}function ie(e,t,n){if(e instanceof l){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),i=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,i)}}function oe(e,t){return e<=0?e=t:e>M(q,this)&&(e=M(q,this)),e}function se(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,i=I(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;(o=o.split(";")[0]).includes("=")&&(o.trim(),t=t.concat(o).concat(";"))}}catch(e){i.e(e)}finally{i.f()}""!==t&&(t=t.substr(0,t.length-1))}_(V,this,t),L(K,this,ue).call(this,M(H,this).DEBUG,null,"Retained cookie :",t)}else _(V,this,null)}function ae(e){null!=M(V,this)&&e.set(L(K,this,ee).call(this,{Cookie:M(V,this)}))}function ue(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if("object"===E(e)&&"key"in e&&"value"in e&&"symbol"===E(e.value)||(e=M(H,this).INFO),!L(K,this,le).call(this,e)){r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}));var o=r.join(" ");o=L(K,this,ce).call(this)+" "+e.key+" - "+o,void 0!==M(W,this)&&null!==M(W,this)&&"function"==typeof M(W,this).log?M(W,this).log(o):console.log(o)}}function le(e){return!this.debug&&e===M(H,this).DEBUG}function ce(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function de(e){if("object"!==E(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}function fe(e,t,n,r,i,o){try{L(K,this,ue).call(this,M(H,this).INFO,null,"Response Status :",e.status),L(K,this,ue).call(this,M(H,this).DEBUG,L(K,this,de),"Response Headers :",e.headers),L(K,this,se).call(this,e||{});var s=L(K,this,re).call(this,e,r);L(K,this,ue).call(this,M(H,this).DEBUG,null,"Response Body :",s),e.ok?(this.addEtagToReservedMap(e,s),L(K,this,ie).call(this,s,t,n),i({data:s,response:e})):(L(K,this,ue).call(this,M(H,this).ERROR,null,s),o(D(D({},e.error),{},{data:s})))}catch(e){L(K,this,ue).call(this,M(H,this).DEBUG,null,"Caught error while processing response!"),L(K,this,ue).call(this,M(H,this).ERROR,null,e),e.data=L(K,this,ne).call(this,e),o(e)}}b=Y,Y.instance=new Y;var pe={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return pe[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===pe.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(pe);const ye=pe;function he(e){return he="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},he(e)}function ve(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,be(r.key),r)}}function be(e){var t=function(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=he(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==he(t)?t:t+""}var me=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()}}}])&&ve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function ge(e){return ge="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},ge(e)}function we(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?we(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=$e(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function je(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,t){if("object"!=ge(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ge(t)?t:t+""}var Te=new WeakSet,ke=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Te),n.add(t),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0.b1"},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()}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("value","undefined or null"):new me("name","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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 i in n.$unknownFields=Oe({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&je(t.prototype,n),r&&je(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Pe(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 Ee(e){return Ee="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},Ee(e)}function Se(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 Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=De(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,De(r.key),r)}}function De(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ee(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ee(t)?t:t+""}function Ie(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")}ke.prototype.name=void 0,ke.prototype.value=!1,ke.prototype.$reserved=void 0,ke.prototype.$objectType=void 0,ke.prototype.$unknownFields=void 0;var Ce=new WeakSet,Re=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ce),n.add(t),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0.b1"},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 Fe(Fe(Fe({},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})):Ie(Ce,this,Ue).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})):Ie(Ce,this,Ue).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("value","undefined or null"):new me("name","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(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)if(Array.isArray(t.value))if(0===t.value.length)n.setValue([]);else{for(o=[],s=(r=t.value)[0].hasOwnProperty("$objectType")?r[0].$objectType:Ee(r[0]),i=0;i<r.length;i++)switch(s){case"string":case"number":o.push(r[i]);break;default:throw"Unknown list of type "+s+" in data"}n.setValue(o)}else switch(s=t.value.hasOwnProperty("$objectType")?t.value.$objectType:Ee(t.value)){case"string":case"boolean":case"number":n.setValue(t.value);break;case"object":n.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+s+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Fe({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&Ae(t.prototype,n),r&&Ae(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ue(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pe(e,t);var n=Object.prototype.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)?Pe(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Ee(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}Re.prototype.name=void 0,Re.prototype.value=void 0,Re.prototype.$reserved=void 0,Re.prototype.$objectType=void 0,Re.prototype.$unknownFields=void 0;var xe={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(xe).find((function(t){return xe[t]===e}));return null==t?xe.$UNKNOWN:xe[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xe.$UNKNOWN:case xe.$REDACTED:case xe.INFO:case xe.WARNING:case xe.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(xe);const Ne=xe;function Me(e){return Me="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},Me(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 Le(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){var r,i,o;r=e,i=t,o=n[t],(i=Ve(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):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 Je(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,Ve(r.key),r)}}function Ve(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Me(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Me(t)?t:t+""}var We=new WeakSet,Be=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=We),n.add(t),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0.b1"},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 Le(Le(Le(Le(Le({},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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("severity","undefined or null"):new me("locale","undefined or null"):new me("message","undefined or null"):new me("code","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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(Ne.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 i in n.$unknownFields=Le({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Je(t.prototype,n),r&&Je(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ze(e){return ze="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},ze(e)}function Ge(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 qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ke(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function He(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,t){if("object"!=ze(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ze(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ze(t)?t:t+""}Be.prototype.code=void 0,Be.prototype.message=void 0,Be.prototype.locale="en_US",Be.prototype.severity=void 0,Be.prototype.$reserved=void 0,Be.prototype.$objectType=void 0,Be.prototype.$unknownFields=void 0;var Ye=new WeakSet,Qe=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ye),n.add(t),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0.b1"},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 qe(qe(qe({},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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("rel","undefined or null"):new me("href","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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 i in n.$unknownFields=qe({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&He(t.prototype,n),r&&He(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xe(e){return Xe="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},Xe(e)}function Ze(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 et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=nt(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(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,nt(r.key),r)}}function nt(e){var t=function(e,t){if("object"!=Xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xe(t)?t:t+""}Qe.prototype.href=void 0,Qe.prototype.rel=void 0,Qe.prototype.$reserved=void 0,Qe.prototype.$objectType=void 0,Qe.prototype.$unknownFields=void 0;var rt=new WeakSet,it=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),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.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0.b1"},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 et(et(et(et(et(et({},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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"flags"!==t||void 0!==this.flags&&null!==this.flags?"links"!==t||void 0!==this.links&&null!==this.links?"totalAvailableResults"!==t||void 0!==this.totalAvailableResults&&null!==this.totalAvailableResults?"messages"!==t||void 0!==this.messages&&null!==this.messages?"extraInfo"!==t||void 0!==this.extraInfo&&null!==this.extraInfo?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("extraInfo","undefined or null"):new me("messages","undefined or null"):new me("totalAvailableResults","undefined or null"):new me("links","undefined or null"):new me("flags","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(s=[],r=t.flags,o=0;o<r.length;o++)i=ke.constructFromObject(r[o],void 0),s.push(i);n.setFlags(s)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(s=[],r=t.links,o=0;o<r.length;o++)i=Qe.constructFromObject(r[o],void 0),s.push(i);n.setLinks(s)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&n.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(s=[],r=t.messages,o=0;o<r.length;o++)i=Be.constructFromObject(r[o],void 0),s.push(i);n.setMessages(s)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(s=[],r=t.extraInfo,o=0;o<r.length;o++)i=Re.constructFromObject(r[o],void 0),s.push(i);n.setExtraInfo(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=et({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&tt(t.prototype,n),r&&tt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ot(e){return ot="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},ot(e)}function st(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 at(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 ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?at(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ct(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):at(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lt(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,ct(r.key),r)}}function ct(e){var t=function(e,t){if("object"!=ot(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ot(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")}it.prototype.flags=void 0,it.prototype.links=void 0,it.prototype.totalAvailableResults=void 0,it.prototype.messages=void 0,it.prototype.extraInfo=void 0,it.prototype.$reserved=void 0,it.prototype.$objectType=void 0,it.prototype.$unknownFields=void 0;var ft=new WeakSet,pt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),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.$objectType="monitoring.v4.error.AppMessage",this.$reserved={$fv:"v4.r0.b1"},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 ut(ut(ut(ut(ut(ut(ut({},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(ft,this,yt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:dt(ft,this,yt).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("argumentsMap","undefined or null"):new me("errorGroup","undefined or null"):new me("locale","undefined or null"):new me("code","undefined or null"):new me("severity","undefined or null"):new me("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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(Ne.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 i in n.$unknownFields=ut({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&<(t.prototype,n),r&<(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function yt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return st(e,t);var n=Object.prototype.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)?st(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===ot(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 ht(e){return ht="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},ht(e)}function vt(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 bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vt(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=gt(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mt(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,gt(r.key),r)}}function gt(e){var t=function(e,t){if("object"!=ht(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ht(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ht(t)?t:t+""}pt.prototype.message=void 0,pt.prototype.severity=void 0,pt.prototype.code=void 0,pt.prototype.locale="en_US",pt.prototype.errorGroup=void 0,pt.prototype.argumentsMap=void 0,pt.prototype.$reserved=void 0,pt.prototype.$objectType=void 0,pt.prototype.$unknownFields=void 0;var wt=new WeakSet,Ot=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),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.$objectType="monitoring.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0.b1"},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 bt(bt(bt(bt({},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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("attributePath","undefined or null"):new me("message","undefined or null"):new me("location","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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 i in n.$unknownFields=bt({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&mt(t.prototype,n),r&&mt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function jt(e){return jt="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},jt(e)}function $t(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 Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Pt(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kt(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,Pt(r.key),r)}}function Pt(e){var t=function(e,t){if("object"!=jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jt(t)?t:t+""}Ot.prototype.location=void 0,Ot.prototype.message=void 0,Ot.prototype.attributePath=void 0,Ot.prototype.$reserved=void 0,Ot.prototype.$objectType=void 0,Ot.prototype.$unknownFields=void 0;var Et=new WeakSet,St=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Et),n.add(t),this.$objectType="monitoring.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0.b1"},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 Tt(Tt(Tt(Tt(Tt(Tt({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:this.getTimestamp()}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("validationErrorMessages","undefined or null"):new me("path","undefined or null"):new me("error","undefined or null"):new me("statusCode","undefined or null"):new me("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&n.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&n.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(s=[],r=t.validationErrorMessages,o=0;o<r.length;o++)i=Ot.constructFromObject(r[o],void 0),s.push(i);n.setValidationErrorMessages(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Tt({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&kt(t.prototype,n),r&&kt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ft(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 At(e){return At="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},At(e)}function Dt(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 It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Rt(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ct(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,Rt(r.key),r)}}function Rt(e){var t=function(e,t){if("object"!=At(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=At(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==At(t)?t:t+""}function Ut(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")}St.prototype.timestamp=void 0,St.prototype.statusCode=void 0,St.prototype.error=void 0,St.prototype.path=void 0,St.prototype.validationErrorMessages=void 0,St.prototype.$reserved=void 0,St.prototype.$objectType=void 0,St.prototype.$unknownFields=void 0;var xt=new WeakSet,Nt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=xt),n.add(t),this.$objectType="monitoring.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0.b1"},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 It(It({},!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})):Ut(xt,this,Mt).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})):Ut(xt,this,Mt).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)n.setError([]);else{for(s=[],a=(r=t.error)[0].hasOwnProperty("$objectType")?r[0].$objectType:At(r[0]),o=0;o<r.length;o++){if("monitoring.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";i=pt.constructFromObject(r[o],void 0),s.push(i)}n.setError(s)}else{if("monitoring.v4.error.SchemaValidationError"!==(a=t.error.hasOwnProperty("$objectType")?t.error.$objectType:At(t.error)))throw"Unknown datatype "+a+" in data";n.setError(St.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!u)for(var l in n.$unknownFields=It({},t.$unknownFields),t)Object.keys(n).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(n.$unknownFields[l]=t[l])}return n}}],n&&Ct(t.prototype,n),r&&Ct(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Mt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n=Object.prototype.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)?Ft(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===At(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 _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)}function Lt(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,Jt(r.key),r)}}function Jt(e){var t=function(e,t){if("object"!=_t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=_t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_t(t)?t:t+""}Nt.prototype.error=void 0,Nt.prototype.$reserved=void 0,Nt.prototype.$objectType=void 0,Nt.prototype.$unknownFields=void 0;var Vt=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&&Lt(e.prototype,null),t&&Lt(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function Wt(e){return Wt="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},Wt(e)}function Bt(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 zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=qt(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gt(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,qt(r.key),r)}}function qt(e){var t=function(e,t){if("object"!=Wt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Wt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wt(t)?t:t+""}var Ht=new WeakSet,Kt=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),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.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0.b1"},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?zt(zt({},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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new me("tenantId","undefined or null");if(!Vt.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 me("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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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 i in n.$unknownFields=zt({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Gt(t.prototype,n),r&&Gt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Yt(e){return Yt="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},Yt(e)}function Qt(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?Qt(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=en(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zt(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,t){if("object"!=Yt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Yt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yt(t)?t:t+""}function tn(e,t,n){return t=rn(t),function(e,t){if(t&&("object"===Yt(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,nn()?Reflect.construct(t,n||[],rn(e).constructor):t.apply(e,n))}function nn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nn=function(){return!!e})()}function rn(e){return rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rn(e)}function on(e,t){return on=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},on(e,t)}Kt.prototype.tenantId=void 0,Kt.prototype.$reserved=void 0,Kt.prototype.$objectType=void 0,Kt.prototype.$unknownFields=void 0;var sn=new WeakSet,an=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=tn(this,t),r=sn),r.add(n),e.$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fv:"v1.r0.b1"},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&&on(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 Xt(!1===e?Xt(Xt(Xt({},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()}:{}):Xt({},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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(null==e){if(!Vt.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 me("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===ye.update&&!Vt.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 me("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}$/")}return"links"!==t||void 0!==this.links&&null!==this.links?new me(t,"no such property exists"):new me("links","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,Kt.constructFromObject(e,n,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&n.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(s=[],r=e.links,o=0;o<r.length;o++)i=Qe.constructFromObject(r[o],void 0),s.push(i);n.setLinks(s)}if(!a)for(var u in n.$unknownFields=Xt({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Zt(n.prototype,r),i&&Zt(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Kt);function un(e){return un="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},un(e)}function ln(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 cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=fn(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dn(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,fn(r.key),r)}}function fn(e){var t=function(e,t){if("object"!=un(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=un(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==un(t)?t:t+""}an.prototype.extId=void 0,an.prototype.links=void 0;var pn=new WeakSet,yn=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=pn),n.add(t),this.$objectType="monitoring.v4.common.AlertEntityReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{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 cn(cn(cn(cn({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new me("type","undefined or null");if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),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 i in n.$unknownFields=cn({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&dn(t.prototype,n),r&&dn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function hn(e){return hn="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},hn(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){var r,i,o;r=e,i=t,o=n[t],(i=gn(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):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 mn(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,gn(r.key),r)}}function gn(e){var t=function(e,t){if("object"!=hn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hn(t)?t:t+""}yn.prototype.type=void 0,yn.prototype.name=void 0,yn.prototype.extId=void 0,yn.prototype.$reserved=void 0,yn.prototype.$objectType=void 0,yn.prototype.$unknownFields=void 0;var wn=new WeakSet,On=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=wn),n.add(t),this.$objectType="monitoring.v4.common.EntityReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{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 bn(bn(bn(bn({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new me("type","undefined or null");if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),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 i in n.$unknownFields=bn({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&mn(t.prototype,n),r&&mn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();On.prototype.type=void 0,On.prototype.name=void 0,On.prototype.extId=void 0,On.prototype.$reserved=void 0,On.prototype.$objectType=void 0,On.prototype.$unknownFields=void 0;var jn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",AVAILABILITY:"AVAILABILITY",CAPACITY:"CAPACITY",CONFIGURATION:"CONFIGURATION",PERFORMANCE:"PERFORMANCE",SYSTEM_INDICATOR:"SYSTEM_INDICATOR",CPU_CAPACITY:"CPU_CAPACITY",MEMORY_CAPACITY:"MEMORY_CAPACITY",STORAGE_CAPACITY:"STORAGE_CAPACITY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(jn).find((function(t){return jn[t]===e}));return null==t?jn.$UNKNOWN:jn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case jn.$UNKNOWN:case jn.$REDACTED:case jn.AVAILABILITY:case jn.CAPACITY:case jn.CONFIGURATION:case jn.PERFORMANCE:case jn.SYSTEM_INDICATOR:case jn.CPU_CAPACITY:case jn.MEMORY_CAPACITY:case jn.STORAGE_CAPACITY:return;default:throw new Error("Invalid : must be ImpactType.{ $UNKNOWN|$REDACTED|AVAILABILITY|CAPACITY|CONFIGURATION|PERFORMANCE|SYSTEM_INDICATOR|CPU_CAPACITY|MEMORY_CAPACITY|STORAGE_CAPACITY }")}}};Object.freeze(jn);const $n=jn;function Tn(e){return Tn="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},Tn(e)}function kn(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 Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Sn(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function En(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,Sn(r.key),r)}}function Sn(e){var t=function(e,t){if("object"!=Tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Tn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tn(t)?t:t+""}var Fn=new WeakSet,An=function(){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){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Fn),r.add(n),this.boolValue=t,this.$objectType="monitoring.v4.common.BoolValue",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getBoolValue",value:function(){return this.boolValue}},{key:"setBoolValue",value:function(e){this.boolValue=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 Pn(Pn({},void 0!==this.getBoolValue()&&null!==this.getBoolValue()?{boolValue:this.getBoolValue()}:{}),{},{$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 ye?r=["boolValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"boolValue"!==t||void 0!==this.boolValue&&null!==this.boolValue?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("boolValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("boolValue")&&null!==t.boolValue&&void 0!==t.boolValue&&n.setBoolValue(t.boolValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Pn({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&En(t.prototype,n),r&&En(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();An.prototype.boolValue=void 0,An.prototype.$reserved=void 0,An.prototype.$objectType=void 0,An.prototype.$unknownFields=void 0;var Dn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",EQUAL_TO:"EQUAL_TO",GREATER_THAN:"GREATER_THAN",GREATER_THAN_OR_EQUAL_TO:"GREATER_THAN_OR_EQUAL_TO",LESS_THAN:"LESS_THAN",LESS_THAN_OR_EQUAL_TO:"LESS_THAN_OR_EQUAL_TO",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Dn).find((function(t){return Dn[t]===e}));return null==t?Dn.$UNKNOWN:Dn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Dn.$UNKNOWN:case Dn.$REDACTED:case Dn.EQUAL_TO:case Dn.GREATER_THAN:case Dn.GREATER_THAN_OR_EQUAL_TO:case Dn.LESS_THAN:case Dn.LESS_THAN_OR_EQUAL_TO:return;default:throw new Error("Invalid : must be ComparisonOperator.{ $UNKNOWN|$REDACTED|EQUAL_TO|GREATER_THAN|GREATER_THAN_OR_EQUAL_TO|LESS_THAN|LESS_THAN_OR_EQUAL_TO }")}}};Object.freeze(Dn);const In=Dn;var Cn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",STATIC_THRESHOLD:"STATIC_THRESHOLD",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Cn).find((function(t){return Cn[t]===e}));return null==t?Cn.$UNKNOWN:Cn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Cn.$UNKNOWN:case Cn.$REDACTED:case Cn.STATIC_THRESHOLD:return;default:throw new Error("Invalid : must be ConditionType.{ $UNKNOWN|$REDACTED|STATIC_THRESHOLD }")}}};Object.freeze(Cn);const Rn=Cn;var Un={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",STRING:"STRING",BOOLEAN:"BOOLEAN",DOUBLE:"DOUBLE",LONG:"LONG",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Un).find((function(t){return Un[t]===e}));return null==t?Un.$UNKNOWN:Un[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Un.$UNKNOWN:case Un.$REDACTED:case Un.STRING:case Un.BOOLEAN:case Un.DOUBLE:case Un.LONG:return;default:throw new Error("Invalid : must be DataType.{ $UNKNOWN|$REDACTED|STRING|BOOLEAN|DOUBLE|LONG }")}}};Object.freeze(Un);const xn=Un;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 Mn(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 _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Jn(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(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,Jn(r.key),r)}}function Jn(e){var t=function(e,t){if("object"!=Nn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Nn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nn(t)?t:t+""}var Vn=new WeakSet,Wn=function(){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){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Vn),r.add(n),this.doubleValue=t,this.$objectType="monitoring.v4.common.DoubleValue",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getDoubleValue",value:function(){return this.doubleValue}},{key:"setDoubleValue",value:function(e){this.doubleValue=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 _n(_n({},void 0!==this.getDoubleValue()&&null!==this.getDoubleValue()?{doubleValue:this.getDoubleValue()}:{}),{},{$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 ye?r=["doubleValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"doubleValue"!==t||void 0!==this.doubleValue&&null!==this.doubleValue?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("doubleValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("doubleValue")&&null!==t.doubleValue&&void 0!==t.doubleValue&&n.setDoubleValue(t.doubleValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=_n({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Ln(t.prototype,n),r&&Ln(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Bn(e){return Bn="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},Bn(e)}function zn(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 Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Hn(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(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,Hn(r.key),r)}}function Hn(e){var t=function(e,t){if("object"!=Bn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Bn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bn(t)?t:t+""}Wn.prototype.doubleValue=void 0,Wn.prototype.$reserved=void 0,Wn.prototype.$objectType=void 0,Wn.prototype.$unknownFields=void 0;var Kn=new WeakSet,Yn=function(){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){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Kn),r.add(n),this.intValue=t,this.$objectType="monitoring.v4.common.IntValue",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getIntValue",value:function(){return this.intValue}},{key:"setIntValue",value:function(e){this.intValue=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 Gn(Gn({},void 0!==this.getIntValue()&&null!==this.getIntValue()?{intValue:this.getIntValue()}:{}),{},{$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 ye?r=["intValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"intValue"!==t||void 0!==this.intValue&&null!==this.intValue?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("intValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("intValue")&&null!==t.intValue&&void 0!==t.intValue&&n.setIntValue(t.intValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Gn({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&qn(t.prototype,n),r&&qn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Qn(e){return Qn="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},Qn(e)}function Xn(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 Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xn(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=tr(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function er(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,t){if("object"!=Qn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Qn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qn(t)?t:t+""}Yn.prototype.intValue=void 0,Yn.prototype.$reserved=void 0,Yn.prototype.$objectType=void 0,Yn.prototype.$unknownFields=void 0;var nr=new WeakSet,rr=function(){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){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=nr),r.add(n),this.stringValue=t,this.$objectType="monitoring.v4.common.StringValue",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getStringValue",value:function(){return this.stringValue}},{key:"setStringValue",value:function(e){this.stringValue=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 Zn(Zn({},void 0!==this.getStringValue()&&null!==this.getStringValue()?{stringValue:this.getStringValue()}:{}),{},{$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 ye?r=["stringValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"stringValue"!==t||void 0!==this.stringValue&&null!==this.stringValue?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("stringValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("stringValue")&&null!==t.stringValue&&void 0!==t.stringValue&&n.setStringValue(t.stringValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Zn({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&er(t.prototype,n),r&&er(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ir(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 or(e){return or="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},or(e)}function sr(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?sr(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=lr(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(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,lr(r.key),r)}}function lr(e){var t=function(e,t){if("object"!=or(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==or(t)?t:t+""}function cr(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")}rr.prototype.stringValue=void 0,rr.prototype.$reserved=void 0,rr.prototype.$objectType=void 0,rr.prototype.$unknownFields=void 0;var dr=new WeakSet,fr=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=dr),n.add(t),this.$objectType="monitoring.v4.common.MetricDetail",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getMetricName",value:function(){return this.metricName}},{key:"setMetricName",value:function(e){this.metricName=e}},{key:"getMetricDisplayName",value:function(){return this.metricDisplayName}},{key:"setMetricDisplayName",value:function(e){this.metricDisplayName=e}},{key:"getUnit",value:function(){return this.unit}},{key:"setUnit",value:function(e){this.unit=e}},{key:"getTriggerWaitTime",value:function(){return this.triggerWaitTime}},{key:"setTriggerWaitTime",value:function(e){this.triggerWaitTime=e}},{key:"getTriggerTime",value:function(){return this.triggerTime}},{key:"setTriggerTime",value:function(e){this.triggerTime=e}},{key:"getComparisonOperator",value:function(){return this.comparisonOperator}},{key:"setComparisonOperator",value:function(e){this.comparisonOperator=e}},{key:"getConditionType",value:function(){return this.conditionType}},{key:"setConditionType",value:function(e){this.conditionType=e}},{key:"getMetricCategory",value:function(){return this.metricCategory}},{key:"setMetricCategory",value:function(e){this.metricCategory=e}},{key:"getDataType",value:function(){return this.dataType}},{key:"setDataType",value:function(e){this.dataType=e}},{key:"getThresholdValue",value:function(){return this.thresholdValue}},{key:"setThresholdValue",value:function(e){this.thresholdValue=e}},{key:"getMetricValue",value:function(){return this.metricValue}},{key:"setMetricValue",value:function(e){this.metricValue=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(!1===e?ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar({},void 0!==this.getMetricName()&&null!==this.getMetricName()?{metricName:this.getMetricName()}:{}),void 0!==this.getMetricDisplayName()&&null!==this.getMetricDisplayName()?{metricDisplayName:this.getMetricDisplayName()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),void 0!==this.getTriggerWaitTime()&&null!==this.getTriggerWaitTime()?{triggerWaitTime:this.getTriggerWaitTime()}:{}),void 0!==this.getTriggerTime()&&null!==this.getTriggerTime()?{triggerTime:this.getTriggerTime()}:{}),void 0!==this.getComparisonOperator()&&null!==this.getComparisonOperator()?{comparisonOperator:this.getComparisonOperator()}:{}),void 0!==this.getConditionType()&&null!==this.getConditionType()?{conditionType:this.getConditionType()}:{}),void 0!==this.getMetricCategory()&&null!==this.getMetricCategory()?{metricCategory:this.getMetricCategory()}:{}),void 0!==this.getDataType()&&null!==this.getDataType()?{dataType:this.getDataType()}:{}),void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson(!1):Array.isArray(this.getThresholdValue())?this.getThresholdValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):cr(dr,this,pr).call(this,this.getThresholdValue(),!1)}:{}),void 0!==this.getMetricValue()&&null!==this.getMetricValue()?{metricValue:void 0!==this.getMetricValue().toJson?this.getMetricValue().toJson(!1):Array.isArray(this.getMetricValue())?this.getMetricValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):cr(dr,this,pr).call(this,this.getMetricValue(),!1)}:{}):ar(ar(ar(ar(ar(ar(ar(ar(ar(ar(ar({},void 0!==this.getMetricName()&&null!==this.getMetricName()?{metricName:this.getMetricName()}:{}),void 0!==this.getMetricDisplayName()&&null!==this.getMetricDisplayName()?{metricDisplayName:this.getMetricDisplayName()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),void 0!==this.getTriggerWaitTime()&&null!==this.getTriggerWaitTime()?{triggerWaitTime:this.getTriggerWaitTime()}:{}),void 0!==this.getTriggerTime()&&null!==this.getTriggerTime()?{triggerTime:this.getTriggerTime()}:{}),void 0!==this.getComparisonOperator()&&null!==this.getComparisonOperator()?{comparisonOperator:this.getComparisonOperator()}:{}),void 0!==this.getConditionType()&&null!==this.getConditionType()?{conditionType:this.getConditionType()}:{}),void 0!==this.getMetricCategory()&&null!==this.getMetricCategory()?{metricCategory:this.getMetricCategory()}:{}),void 0!==this.getDataType()&&null!==this.getDataType()?{dataType:this.getDataType()}:{}),void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson():Array.isArray(this.getThresholdValue())?this.getThresholdValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):cr(dr,this,pr).call(this,this.getThresholdValue())}:{}),void 0!==this.getMetricValue()&&null!==this.getMetricValue()?{metricValue:void 0!==this.getMetricValue().toJson?this.getMetricValue().toJson():Array.isArray(this.getMetricValue())?this.getMetricValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):cr(dr,this,pr).call(this,this.getMetricValue())}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"metricName"!==t||void 0!==this.metricName&&null!==this.metricName?"metricDisplayName"!==t||void 0!==this.metricDisplayName&&null!==this.metricDisplayName?"unit"!==t||void 0!==this.unit&&null!==this.unit?"triggerWaitTime"!==t||void 0!==this.triggerWaitTime&&null!==this.triggerWaitTime?"triggerTime"!==t||void 0!==this.triggerTime&&null!==this.triggerTime?"comparisonOperator"!==t||void 0!==this.comparisonOperator&&null!==this.comparisonOperator?"conditionType"!==t||void 0!==this.conditionType&&null!==this.conditionType?"metricCategory"!==t||void 0!==this.metricCategory&&null!==this.metricCategory?"dataType"!==t||void 0!==this.dataType&&null!==this.dataType?"thresholdValue"!==t||void 0!==this.thresholdValue&&null!==this.thresholdValue?"metricValue"!==t||void 0!==this.metricValue&&null!==this.metricValue?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("metricValue","undefined or null"):new me("thresholdValue","undefined or null"):new me("dataType","undefined or null"):new me("metricCategory","undefined or null"):new me("conditionType","undefined or null"):new me("comparisonOperator","undefined or null"):new me("triggerTime","undefined or null"):new me("triggerWaitTime","undefined or null"):new me("unit","undefined or null"):new me("metricDisplayName","undefined or null"):new me("metricName","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("metricName")&&null!==t.metricName&&void 0!==t.metricName&&n.setMetricName(t.metricName),t.hasOwnProperty("metricDisplayName")&&null!==t.metricDisplayName&&void 0!==t.metricDisplayName&&n.setMetricDisplayName(t.metricDisplayName),t.hasOwnProperty("unit")&&null!==t.unit&&void 0!==t.unit&&n.setUnit(t.unit),t.hasOwnProperty("triggerWaitTime")&&null!==t.triggerWaitTime&&void 0!==t.triggerWaitTime&&n.setTriggerWaitTime(t.triggerWaitTime),t.hasOwnProperty("triggerTime")&&null!==t.triggerTime&&void 0!==t.triggerTime&&n.setTriggerTime(t.triggerTime),t.hasOwnProperty("comparisonOperator")&&null!==t.comparisonOperator&&void 0!==t.comparisonOperator&&n.setComparisonOperator(In.constructFromObject(t.comparisonOperator)),t.hasOwnProperty("conditionType")&&null!==t.conditionType&&void 0!==t.conditionType&&n.setConditionType(Rn.constructFromObject(t.conditionType)),t.hasOwnProperty("metricCategory")&&null!==t.metricCategory&&void 0!==t.metricCategory&&n.setMetricCategory(t.metricCategory),t.hasOwnProperty("dataType")&&null!==t.dataType&&void 0!==t.dataType&&n.setDataType(xn.constructFromObject(t.dataType)),t.hasOwnProperty("thresholdValue")&&null!==t.thresholdValue&&void 0!==t.thresholdValue)switch(r=t.thresholdValue.hasOwnProperty("$objectType")?t.thresholdValue.$objectType:or(t.thresholdValue)){case"monitoring.v4.common.StringValue":n.setThresholdValue(rr.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.BoolValue":n.setThresholdValue(An.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.DoubleValue":n.setThresholdValue(Wn.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.IntValue":n.setThresholdValue(Yn.constructFromObject(t.thresholdValue,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(t.hasOwnProperty("metricValue")&&null!==t.metricValue&&void 0!==t.metricValue)switch(r=t.metricValue.hasOwnProperty("$objectType")?t.metricValue.$objectType:or(t.metricValue)){case"monitoring.v4.common.StringValue":n.setMetricValue(rr.constructFromObject(t.metricValue,void 0));break;case"monitoring.v4.common.BoolValue":n.setMetricValue(An.constructFromObject(t.metricValue,void 0));break;case"monitoring.v4.common.DoubleValue":n.setMetricValue(Wn.constructFromObject(t.metricValue,void 0));break;case"monitoring.v4.common.IntValue":n.setMetricValue(Yn.constructFromObject(t.metricValue,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!i)for(var o in n.$unknownFields=ar({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o])}return n}}],n&&ur(t.prototype,n),r&&ur(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function pr(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ir(e,t);var n=Object.prototype.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)?ir(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===or(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 yr(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 hr(e){return hr="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},hr(e)}function vr(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 br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vr(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=gr(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mr(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,gr(r.key),r)}}function gr(e){var t=function(e,t){if("object"!=hr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=hr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hr(t)?t:t+""}function wr(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")}fr.prototype.metricName=void 0,fr.prototype.metricDisplayName=void 0,fr.prototype.unit=void 0,fr.prototype.triggerWaitTime=void 0,fr.prototype.triggerTime=void 0,fr.prototype.comparisonOperator=void 0,fr.prototype.conditionType=void 0,fr.prototype.metricCategory=void 0,fr.prototype.dataType=void 0,fr.prototype.thresholdValue=void 0,fr.prototype.metricValue=void 0,fr.prototype.$reserved=void 0,fr.prototype.$objectType=void 0,fr.prototype.$unknownFields=void 0;var Or=new WeakSet,jr=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Or),n.add(t),this.$objectType="monitoring.v4.common.Parameter",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getParamName",value:function(){return this.paramName}},{key:"setParamName",value:function(e){this.paramName=e}},{key:"getParamValue",value:function(){return this.paramValue}},{key:"setParamValue",value:function(e){this.paramValue=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 br(br(br({},void 0!==this.getParamName()&&null!==this.getParamName()?{paramName:this.getParamName()}:{}),!1===e?void 0!==this.getParamValue()&&null!==this.getParamValue()?{paramValue:void 0!==this.getParamValue().toJson?this.getParamValue().toJson(!1):Array.isArray(this.getParamValue())?this.getParamValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):wr(Or,this,$r).call(this,this.getParamValue(),!1)}:{}:void 0!==this.getParamValue()&&null!==this.getParamValue()?{paramValue:void 0!==this.getParamValue().toJson?this.getParamValue().toJson():Array.isArray(this.getParamValue())?this.getParamValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):wr(Or,this,$r).call(this,this.getParamValue())}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"paramName"!==t||void 0!==this.paramName&&null!==this.paramName?"paramValue"!==t||void 0!==this.paramValue&&null!==this.paramValue?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("paramValue","undefined or null"):new me("paramName","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("paramName")&&null!==t.paramName&&void 0!==t.paramName&&n.setParamName(t.paramName),t.hasOwnProperty("paramValue")&&null!==t.paramValue&&void 0!==t.paramValue)switch(r=t.paramValue.hasOwnProperty("$objectType")?t.paramValue.$objectType:hr(t.paramValue)){case"monitoring.v4.common.StringValue":n.setParamValue(rr.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.common.BoolValue":n.setParamValue(An.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.common.IntValue":n.setParamValue(Yn.constructFromObject(t.paramValue,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!i)for(var o in n.$unknownFields=br({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o])}return n}}],n&&mr(t.prototype,n),r&&mr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function $r(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yr(e,t);var n=Object.prototype.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)?yr(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===hr(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}jr.prototype.paramName=void 0,jr.prototype.paramValue=void 0,jr.prototype.$reserved=void 0,jr.prototype.$objectType=void 0,jr.prototype.$unknownFields=void 0;var Tr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",CRITICAL:"CRITICAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Tr).find((function(t){return Tr[t]===e}));return null==t?Tr.$UNKNOWN:Tr[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Tr.$UNKNOWN:case Tr.$REDACTED:case Tr.INFO:case Tr.WARNING:case Tr.CRITICAL:return;default:throw new Error("Invalid : must be Severity.{ $UNKNOWN|$REDACTED|INFO|WARNING|CRITICAL }")}}};Object.freeze(Tr);const kr=Tr;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 Er(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 Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ar(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Er(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fr(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,Ar(r.key),r)}}function Ar(e){var t=function(e,t){if("object"!=Pr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pr(t)?t:t+""}function Dr(e,t,n){return t=Cr(t),function(e,t){if(t&&("object"===Pr(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,Ir()?Reflect.construct(t,n||[],Cr(e).constructor):t.apply(e,n))}function Ir(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ir=function(){return!!e})()}function Cr(e){return Cr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cr(e)}function Rr(e,t){return Rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rr(e,t)}var Ur=new WeakSet,xr=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Dr(this,t),r=Ur),r.add(n),e.$objectType="monitoring.v4.serviceability.RootCauseAnalysis",e.$reserved={$fv:"v4.r0.b1"},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&&Rr(e,t)}(t,e),n=t,r=[{key:"getCause",value:function(){return this.cause}},{key:"setCause",value:function(e){this.cause=e}},{key:"getResolution",value:function(){return this.resolution}},{key:"setResolution",value:function(e){this.resolution=e}},{key:"getDetail",value:function(){return this.detail}},{key:"setDetail",value:function(e){this.detail=e}},{key:"toJson",value:function(e){return Sr(!1===e?Sr(Sr(Sr(Sr(Sr(Sr({},void 0!==this.getCause()&&null!==this.getCause()?{cause:this.getCause()}:{}),void 0!==this.getResolution()&&null!==this.getResolution()?{resolution:this.getResolution()}:{}),void 0!==this.getDetail()&&null!==this.getDetail()?{detail:this.getDetail()}:{}),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()}:{}):Sr(Sr(Sr(Sr({},void 0!==this.getCause()&&null!==this.getCause()?{cause:this.getCause()}:{}),void 0!==this.getResolution()&&null!==this.getResolution()?{resolution:this.getResolution()}:{}),void 0!==this.getDetail()&&null!==this.getDetail()?{detail:this.getDetail()}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"cause"!==t||void 0!==this.cause&&null!==this.cause?"resolution"!==t||void 0!==this.resolution&&null!==this.resolution?"detail"!==t||void 0!==this.detail&&null!==this.detail?new me(t,"no such property exists"):new me("detail","undefined or null"):new me("resolution","undefined or null"):new me("cause","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("cause")&&null!==e.cause&&void 0!==e.cause&&n.setCause(e.cause),e.hasOwnProperty("resolution")&&null!==e.resolution&&void 0!==e.resolution&&n.setResolution(e.resolution),e.hasOwnProperty("detail")&&null!==e.detail&&void 0!==e.detail&&n.setDetail(e.detail),!r))for(var i in n.$unknownFields=Sr({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}}],r&&Fr(n.prototype,r),i&&Fr(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);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 Mr(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 _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Jr(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lr(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,Jr(r.key),r)}}function Jr(e){var t=function(e,t){if("object"!=Nr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Nr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nr(t)?t:t+""}xr.prototype.cause=void 0,xr.prototype.resolution=void 0,xr.prototype.detail=void 0;var Vr=new WeakSet,Wr=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Vr),n.add(t),this.$objectType="monitoring.v4.serviceability.SeverityTrail",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getSeverityChangeTime",value:function(){return this.severityChangeTime}},{key:"setSeverityChangeTime",value:function(e){this.severityChangeTime=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 _r(_r(_r({},void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getSeverityChangeTime()&&null!==this.getSeverityChangeTime()?{severityChangeTime:this.getSeverityChangeTime()}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"severity"!==t||void 0!==this.severity&&null!==this.severity?"severityChangeTime"!==t||void 0!==this.severityChangeTime&&null!==this.severityChangeTime?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("severityChangeTime","undefined or null"):new me("severity","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(kr.constructFromObject(t.severity)),t.hasOwnProperty("severityChangeTime")&&null!==t.severityChangeTime&&void 0!==t.severityChangeTime&&n.setSeverityChangeTime(t.severityChangeTime),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=_r({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Lr(t.prototype,n),r&&Lr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Br(e){return Br="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},Br(e)}function zr(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 Gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zr(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Hr(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qr(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,Hr(r.key),r)}}function Hr(e){var t=function(e,t){if("object"!=Br(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Br(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Br(t)?t:t+""}function Kr(e,t,n){return t=Qr(t),function(e,t){if(t&&("object"===Br(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,Yr()?Reflect.construct(t,n||[],Qr(e).constructor):t.apply(e,n))}function Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yr=function(){return!!e})()}function Qr(e){return Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qr(e)}function Xr(e,t){return Xr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xr(e,t)}Wr.prototype.severity=void 0,Wr.prototype.severityChangeTime=void 0,Wr.prototype.$reserved=void 0,Wr.prototype.$objectType=void 0,Wr.prototype.$unknownFields=void 0;var Zr=new WeakSet,ei=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Kr(this,t),r=Zr),r.add(n),e.$objectType="monitoring.v4.serviceability.Alert",e.$reserved={$fv:"v4.r0.b1"},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&&Xr(e,t)}(t,e),n=t,r=[{key:"getIsAcknowledged",value:function(){return this.isAcknowledged}},{key:"setIsAcknowledged",value:function(e){this.isAcknowledged=e}},{key:"getAcknowledgedByUsername",value:function(){return this.acknowledgedByUsername}},{key:"setAcknowledgedByUsername",value:function(e){this.acknowledgedByUsername=e}},{key:"getAcknowledgedTime",value:function(){return this.acknowledgedTime}},{key:"setAcknowledgedTime",value:function(e){this.acknowledgedTime=e}},{key:"getIsAutoResolved",value:function(){return this.isAutoResolved}},{key:"setIsAutoResolved",value:function(e){this.isAutoResolved=e}},{key:"getIsResolved",value:function(){return this.isResolved}},{key:"setIsResolved",value:function(e){this.isResolved=e}},{key:"getResolvedByUsername",value:function(){return this.resolvedByUsername}},{key:"setResolvedByUsername",value:function(e){this.resolvedByUsername=e}},{key:"getResolvedTime",value:function(){return this.resolvedTime}},{key:"setResolvedTime",value:function(e){this.resolvedTime=e}},{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getAffectedEntities",value:function(){return this.affectedEntities}},{key:"setAffectedEntities",value:function(e){this.affectedEntities=e}},{key:"getSeverityTrails",value:function(){return this.severityTrails}},{key:"setSeverityTrails",value:function(e){this.severityTrails=e}},{key:"getMetricDetails",value:function(){return this.metricDetails}},{key:"setMetricDetails",value:function(e){this.metricDetails=e}},{key:"getTitle",value:function(){return this.title}},{key:"setTitle",value:function(e){this.title=e}},{key:"getAlertType",value:function(){return this.alertType}},{key:"setAlertType",value:function(e){this.alertType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getClusterUUID",value:function(){return this.clusterUUID}},{key:"setClusterUUID",value:function(e){this.clusterUUID=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getOriginatingClusterUUID",value:function(){return this.originatingClusterUUID}},{key:"setOriginatingClusterUUID",value:function(e){this.originatingClusterUUID=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getIsUserDefined",value:function(){return this.isUserDefined}},{key:"setIsUserDefined",value:function(e){this.isUserDefined=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"getRootCauseAnalysis",value:function(){return this.rootCauseAnalysis}},{key:"setRootCauseAnalysis",value:function(e){this.rootCauseAnalysis=e}},{key:"toJson",value:function(e){return Gr(!1===e?Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr({},void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:this.getAcknowledgedTime()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:this.getResolvedTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSeverityTrails()&&null!==this.getSeverityTrails()?{severityTrails:this.getSeverityTrails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getRootCauseAnalysis()&&null!==this.getRootCauseAnalysis()?{rootCauseAnalysis:this.getRootCauseAnalysis().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()}:{}):Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr(Gr({},void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:this.getAcknowledgedTime()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:this.getResolvedTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getSeverityTrails()&&null!==this.getSeverityTrails()?{severityTrails:this.getSeverityTrails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getRootCauseAnalysis()&&null!==this.getRootCauseAnalysis()?{rootCauseAnalysis:this.getRootCauseAnalysis().map((function(e){return e.toJson(!1)}))}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("isAcknowledged"===t&&(void 0===this.isAcknowledged||null===this.isAcknowledged))return new me("isAcknowledged","undefined or null");if("acknowledgedByUsername"===t&&(void 0===this.acknowledgedByUsername||null===this.acknowledgedByUsername))return new me("acknowledgedByUsername","undefined or null");if("acknowledgedTime"===t&&(void 0===this.acknowledgedTime||null===this.acknowledgedTime))return new me("acknowledgedTime","undefined or null");if("isAutoResolved"===t&&(void 0===this.isAutoResolved||null===this.isAutoResolved))return new me("isAutoResolved","undefined or null");if("isResolved"===t&&(void 0===this.isResolved||null===this.isResolved))return new me("isResolved","undefined or null");if("resolvedByUsername"===t&&(void 0===this.resolvedByUsername||null===this.resolvedByUsername))return new me("resolvedByUsername","undefined or null");if("resolvedTime"===t&&(void 0===this.resolvedTime||null===this.resolvedTime))return new me("resolvedTime","undefined or null");if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new me("sourceEntity","undefined or null");if("affectedEntities"===t){if(void 0===this.affectedEntities||null===this.affectedEntities)return new me("affectedEntities","undefined or null");if(!Vt.validateMaxItems(this.affectedEntities,50))return new me("affectedEntities","does not satisfy required maxItems constraint: 50")}if("severityTrails"===t){if(void 0===this.severityTrails||null===this.severityTrails)return new me("severityTrails","undefined or null");if(!Vt.validateMaxItems(this.severityTrails,3))return new me("severityTrails","does not satisfy required maxItems constraint: 3")}if("metricDetails"===t){if(void 0===this.metricDetails||null===this.metricDetails)return new me("metricDetails","undefined or null");if(!Vt.validateMaxItems(this.metricDetails,50))return new me("metricDetails","does not satisfy required maxItems constraint: 50")}if("title"===t&&(void 0===this.title||null===this.title))return new me("title","undefined or null");if("alertType"===t&&(void 0===this.alertType||null===this.alertType))return new me("alertType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new me("classifications","undefined or null");if(!Vt.validateMaxItems(this.classifications,15))return new me("classifications","does not satisfy required maxItems constraint: 15")}if("clusterUUID"===t){if(void 0===this.clusterUUID||null===this.clusterUUID)return new me("clusterUUID","undefined or null");if(!Vt.validatePattern(this.clusterUUID,/^[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 me("clusterUUID","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("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new me("creationTime","undefined or null");if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new me("impactTypes","undefined or null");if(!Vt.validateMaxItems(this.impactTypes,8))return new me("impactTypes","does not satisfy required maxItems constraint: 8")}if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new me("lastUpdatedTime","undefined or null");if("message"===t&&(void 0===this.message||null===this.message))return new me("message","undefined or null");if("originatingClusterUUID"===t){if(void 0===this.originatingClusterUUID||null===this.originatingClusterUUID)return new me("originatingClusterUUID","undefined or null");if(!Vt.validatePattern(this.originatingClusterUUID,/^[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 me("originatingClusterUUID","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("severity"===t&&(void 0===this.severity||null===this.severity))return new me("severity","undefined or null");if("isUserDefined"===t&&(void 0===this.isUserDefined||null===this.isUserDefined))return new me("isUserDefined","undefined or null");if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new me("parameters","undefined or null");if(!Vt.validateMaxItems(this.parameters,50))return new me("parameters","does not satisfy required maxItems constraint: 50")}if("serviceName"===t&&(void 0===this.serviceName||null===this.serviceName))return new me("serviceName","undefined or null");if("rootCauseAnalysis"===t){if(void 0===this.rootCauseAnalysis||null===this.rootCauseAnalysis)return new me("rootCauseAnalysis","undefined or null");if(!Vt.validateMaxItems(this.rootCauseAnalysis,15))return new me("rootCauseAnalysis","does not satisfy required maxItems constraint: 15")}return new me(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("isAcknowledged")&&null!==e.isAcknowledged&&void 0!==e.isAcknowledged&&n.setIsAcknowledged(e.isAcknowledged),e.hasOwnProperty("acknowledgedByUsername")&&null!==e.acknowledgedByUsername&&void 0!==e.acknowledgedByUsername&&n.setAcknowledgedByUsername(e.acknowledgedByUsername),e.hasOwnProperty("acknowledgedTime")&&null!==e.acknowledgedTime&&void 0!==e.acknowledgedTime&&n.setAcknowledgedTime(e.acknowledgedTime),e.hasOwnProperty("isAutoResolved")&&null!==e.isAutoResolved&&void 0!==e.isAutoResolved&&n.setIsAutoResolved(e.isAutoResolved),e.hasOwnProperty("isResolved")&&null!==e.isResolved&&void 0!==e.isResolved&&n.setIsResolved(e.isResolved),e.hasOwnProperty("resolvedByUsername")&&null!==e.resolvedByUsername&&void 0!==e.resolvedByUsername&&n.setResolvedByUsername(e.resolvedByUsername),e.hasOwnProperty("resolvedTime")&&null!==e.resolvedTime&&void 0!==e.resolvedTime&&n.setResolvedTime(e.resolvedTime),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&n.setSourceEntity(yn.constructFromObject(e.sourceEntity)),e.hasOwnProperty("affectedEntities")&&null!==e.affectedEntities&&void 0!==e.affectedEntities){for(s=[],r=e.affectedEntities,o=0;o<r.length;o++)i=On.constructFromObject(r[o],void 0),s.push(i);n.setAffectedEntities(s)}if(e.hasOwnProperty("severityTrails")&&null!==e.severityTrails&&void 0!==e.severityTrails){for(s=[],r=e.severityTrails,o=0;o<r.length;o++)i=Wr.constructFromObject(r[o],void 0),s.push(i);n.setSeverityTrails(s)}if(e.hasOwnProperty("metricDetails")&&null!==e.metricDetails&&void 0!==e.metricDetails){for(s=[],r=e.metricDetails,o=0;o<r.length;o++)i=fr.constructFromObject(r[o],void 0),s.push(i);n.setMetricDetails(s)}if(e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&n.setTitle(e.title),e.hasOwnProperty("alertType")&&null!==e.alertType&&void 0!==e.alertType&&n.setAlertType(e.alertType),e.hasOwnProperty("classifications")&&null!==e.classifications&&void 0!==e.classifications){for(s=[],r=e.classifications,o=0;o<r.length;o++)s.push(r[o]);n.setClassifications(s)}if(e.hasOwnProperty("clusterUUID")&&null!==e.clusterUUID&&void 0!==e.clusterUUID&&n.setClusterUUID(e.clusterUUID),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&n.setCreationTime(e.creationTime),e.hasOwnProperty("impactTypes")&&null!==e.impactTypes&&void 0!==e.impactTypes){for(s=[],r=e.impactTypes,o=0;o<r.length;o++)i=$n.constructFromObject(r[o],void 0),s.push(i);n.setImpactTypes(s)}if(e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&n.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&n.setMessage(e.message),e.hasOwnProperty("originatingClusterUUID")&&null!==e.originatingClusterUUID&&void 0!==e.originatingClusterUUID&&n.setOriginatingClusterUUID(e.originatingClusterUUID),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&n.setSeverity(kr.constructFromObject(e.severity)),e.hasOwnProperty("isUserDefined")&&null!==e.isUserDefined&&void 0!==e.isUserDefined&&n.setIsUserDefined(e.isUserDefined),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(s=[],r=e.parameters,o=0;o<r.length;o++)i=jr.constructFromObject(r[o],void 0),s.push(i);n.setParameters(s)}if(e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&n.setServiceName(e.serviceName),e.hasOwnProperty("rootCauseAnalysis")&&null!==e.rootCauseAnalysis&&void 0!==e.rootCauseAnalysis){for(s=[],r=e.rootCauseAnalysis,o=0;o<r.length;o++)i=xr.constructFromObject(r[o],void 0),s.push(i);n.setRootCauseAnalysis(s)}if(!a)for(var u in n.$unknownFields=Gr({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&qr(n.prototype,r),i&&qr(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function ti(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 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 ri(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 ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ri(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=si(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oi(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,si(r.key),r)}}function si(e){var t=function(e,t){if("object"!=ni(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ni(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ni(t)?t:t+""}function ai(e,t,n){return t=li(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,ui()?Reflect.construct(t,n||[],li(e).constructor):t.apply(e,n))}function ui(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ui=function(){return!!e})()}function li(e){return li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},li(e)}function ci(e,t){return ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ci(e,t)}function di(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")}ei.prototype.isAcknowledged=!1,ei.prototype.acknowledgedByUsername=void 0,ei.prototype.acknowledgedTime=void 0,ei.prototype.isAutoResolved=!1,ei.prototype.isResolved=!1,ei.prototype.resolvedByUsername=void 0,ei.prototype.resolvedTime=void 0,ei.prototype.sourceEntity=void 0,ei.prototype.affectedEntities=void 0,ei.prototype.severityTrails=void 0,ei.prototype.metricDetails=void 0,ei.prototype.title=void 0,ei.prototype.alertType=void 0,ei.prototype.classifications=void 0,ei.prototype.clusterUUID=void 0,ei.prototype.creationTime=void 0,ei.prototype.impactTypes=void 0,ei.prototype.lastUpdatedTime=void 0,ei.prototype.message=void 0,ei.prototype.originatingClusterUUID=void 0,ei.prototype.severity=void 0,ei.prototype.isUserDefined=!1,ei.prototype.parameters=void 0,ei.prototype.serviceName=void 0,ei.prototype.rootCauseAnalysis=void 0;var fi=new WeakSet,pi=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=ai(this,t),r=fi),r.add(n),e.$objectType="monitoring.v4.serviceability.ListAlertsApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&ci(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 ii(ii(ii({},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})):di(fi,this,yi).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})):di(fi,this,yi).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:ni(r[0]),o=0;o<r.length;o++){if("monitoring.v4.serviceability.Alert"!==a)throw"Unknown list of type "+a+" in data";i=ei.constructFromObject(r[o],void 0),s.push(i)}n.setData(s)}else{if("monitoring.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ni(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Nt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=ii({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&oi(n.prototype,r),i&&oi(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function yi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ti(e,t);var n=Object.prototype.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)?ti(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"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 hi(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 vi(e){return vi="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},vi(e)}function bi(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 mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=wi(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gi(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,wi(r.key),r)}}function wi(e){var t=function(e,t){if("object"!=vi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=vi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vi(t)?t:t+""}function Oi(e,t,n){return t=$i(t),function(e,t){if(t&&("object"===vi(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,ji()?Reflect.construct(t,n||[],$i(e).constructor):t.apply(e,n))}function ji(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ji=function(){return!!e})()}function $i(e){return $i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$i(e)}function Ti(e,t){return Ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ti(e,t)}function ki(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")}pi.prototype.metadata=void 0,pi.prototype.data=void 0,pi.prototype.$reserved=void 0,pi.prototype.$objectType=void 0,pi.prototype.$unknownFields=void 0;var Pi=new WeakSet,Ei=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Oi(this,t),r=Pi),r.add(n),e.$objectType="monitoring.v4.serviceability.GetAlertApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&Ti(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 mi(mi(mi({},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})):ki(Pi,this,Si).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})):ki(Pi,this,Si).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:vi(e.data)){case"monitoring.v4.serviceability.Alert":n.setData(ei.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=mi({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&gi(n.prototype,r),i&&gi(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Si(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hi(e,t);var n=Object.prototype.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)?hi(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===vi(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 Fi(e){return Fi="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},Fi(e)}function Ai(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 Di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ci(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ii(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,Ci(r.key),r)}}function Ci(e){var t=function(e,t){if("object"!=Fi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Fi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fi(t)?t:t+""}function Ri(e,t){return e.get(Ui(e,t))}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")}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 xi=new WeakMap,Ni=function(){return e=function e(t){var n,r,i,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=xi),o.set(i,s),this.apiClient=t||Y.instance,n=xi,r=new Set,n.set(Ui(n,this),r),Ri(xi,this).add("authorization"),Ri(xi,this).add("cookie"),Ri(xi,this).add("host"),Ri(xi,this).add("user-agent")},t=[{key:"getAlertById",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 getAlertById");var r={extId:e},i={};Object.keys(n).forEach((function(e){Ri(xi,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=Di({},i),s=Ei;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listAlerts",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Di(Di(Di(Di(Di({},(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}:{}),i={};Object.keys(n).forEach((function(e){Ri(xi,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=Di({},i),s=pi;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return Y}}],t&&Ii(e.prototype,t),n&&Ii(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Mi(e){return Mi="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},Mi(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 Li(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){var r,i,o;r=e,i=t,o=n[t],(i=Vi(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):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 Ji(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,Vi(r.key),r)}}function Vi(e){var t=function(e,t){if("object"!=Mi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Mi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mi(t)?t:t+""}var Wi=new WeakSet,Bi=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),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.$objectType="monitoring.v4.serviceability.EmailConfigurationRule",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getClusterUuids",value:function(){return this.clusterUuids}},{key:"setClusterUuids",value:function(e){this.clusterUuids=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getHasGlobalEmailContactList",value:function(){return this.hasGlobalEmailContactList}},{key:"setHasGlobalEmailContactList",value:function(e){this.hasGlobalEmailContactList=e}},{key:"getMatchPhrases",value:function(){return this.matchPhrases}},{key:"setMatchPhrases",value:function(e){this.matchPhrases=e}},{key:"getRecipients",value:function(){return this.recipients}},{key:"setRecipients",value:function(e){this.recipients=e}},{key:"getSeverities",value:function(){return this.severities}},{key:"setSeverities",value:function(e){this.severities=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=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 Li(Li(Li(Li(Li(Li(Li(Li({},void 0!==this.getClusterUuids()&&null!==this.getClusterUuids()?{clusterUuids:this.getClusterUuids()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getHasGlobalEmailContactList()&&null!==this.getHasGlobalEmailContactList()?{hasGlobalEmailContactList:this.getHasGlobalEmailContactList()}:{}),void 0!==this.getMatchPhrases()&&null!==this.getMatchPhrases()?{matchPhrases:this.getMatchPhrases()}:{}),void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients()}:{}),void 0!==this.getSeverities()&&null!==this.getSeverities()?{severities:this.getSeverities()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterUuids"===t){if(void 0===this.clusterUuids||null===this.clusterUuids)return new me("clusterUuids","undefined or null");if(!Vt.validateMaxItems(this.clusterUuids,50))return new me("clusterUuids","does not satisfy required maxItems constraint: 50")}if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new me("impactTypes","undefined or null");if(!Vt.validateMaxItems(this.impactTypes,8))return new me("impactTypes","does not satisfy required maxItems constraint: 8")}if("hasGlobalEmailContactList"===t&&(void 0===this.hasGlobalEmailContactList||null===this.hasGlobalEmailContactList))return new me("hasGlobalEmailContactList","undefined or null");if("matchPhrases"===t){if(void 0===this.matchPhrases||null===this.matchPhrases)return new me("matchPhrases","undefined or null");if(!Vt.validateMaxItems(this.matchPhrases,100))return new me("matchPhrases","does not satisfy required maxItems constraint: 100")}if("recipients"===t){if(void 0===this.recipients||null===this.recipients)return new me("recipients","undefined or null");if(!Vt.validateMaxItems(this.recipients,100))return new me("recipients","does not satisfy required maxItems constraint: 100")}if("severities"===t){if(void 0===this.severities||null===this.severities)return new me("severities","undefined or null");if(!Vt.validateMaxItems(this.severities,3))return new me("severities","does not satisfy required maxItems constraint: 3")}return"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("isEnabled","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("clusterUuids")&&null!==t.clusterUuids&&void 0!==t.clusterUuids){for(s=[],r=t.clusterUuids,o=0;o<r.length;o++)s.push(r[o]);n.setClusterUuids(s)}if(t.hasOwnProperty("impactTypes")&&null!==t.impactTypes&&void 0!==t.impactTypes){for(s=[],r=t.impactTypes,o=0;o<r.length;o++)i=$n.constructFromObject(r[o],void 0),s.push(i);n.setImpactTypes(s)}if(t.hasOwnProperty("hasGlobalEmailContactList")&&null!==t.hasGlobalEmailContactList&&void 0!==t.hasGlobalEmailContactList&&n.setHasGlobalEmailContactList(t.hasGlobalEmailContactList),t.hasOwnProperty("matchPhrases")&&null!==t.matchPhrases&&void 0!==t.matchPhrases){for(s=[],r=t.matchPhrases,o=0;o<r.length;o++)s.push(r[o]);n.setMatchPhrases(s)}if(t.hasOwnProperty("recipients")&&null!==t.recipients&&void 0!==t.recipients){for(s=[],r=t.recipients,o=0;o<r.length;o++)s.push(r[o]);n.setRecipients(s)}if(t.hasOwnProperty("severities")&&null!==t.severities&&void 0!==t.severities){for(s=[],r=t.severities,o=0;o<r.length;o++)i=kr.constructFromObject(r[o],void 0),s.push(i);n.setSeverities(s)}if(t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&n.setIsEnabled(t.isEnabled),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=Li({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&Ji(t.prototype,n),r&&Ji(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function zi(e){return zi="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},zi(e)}function Gi(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 qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ki(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hi(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,Ki(r.key),r)}}function Ki(e){var t=function(e,t){if("object"!=zi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=zi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zi(t)?t:t+""}Bi.prototype.clusterUuids=void 0,Bi.prototype.impactTypes=void 0,Bi.prototype.hasGlobalEmailContactList=!1,Bi.prototype.matchPhrases=void 0,Bi.prototype.recipients=void 0,Bi.prototype.severities=void 0,Bi.prototype.isEnabled=!0,Bi.prototype.$reserved=void 0,Bi.prototype.$objectType=void 0,Bi.prototype.$unknownFields=void 0;var Yi=new WeakSet,Qi=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Yi),n.add(t),this.$objectType="monitoring.v4.serviceability.EmailTemplate",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getBodySuffix",value:function(){return this.bodySuffix}},{key:"setBodySuffix",value:function(e){this.bodySuffix=e}},{key:"getSubjectPrefix",value:function(){return this.subjectPrefix}},{key:"setSubjectPrefix",value:function(e){this.subjectPrefix=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 qi(qi(qi({},void 0!==this.getBodySuffix()&&null!==this.getBodySuffix()?{bodySuffix:this.getBodySuffix()}:{}),void 0!==this.getSubjectPrefix()&&null!==this.getSubjectPrefix()?{subjectPrefix:this.getSubjectPrefix()}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("bodySuffix"===t&&(void 0===this.bodySuffix||null===this.bodySuffix))return new me("bodySuffix","undefined or null");if("subjectPrefix"===t){if(void 0===this.subjectPrefix||null===this.subjectPrefix)return new me("subjectPrefix","undefined or null");if(!Vt.validateMaxLength(this.subjectPrefix,256))return new me("subjectPrefix","does not satisfy required maxLength constraint: 256")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("bodySuffix")&&null!==t.bodySuffix&&void 0!==t.bodySuffix&&n.setBodySuffix(t.bodySuffix),t.hasOwnProperty("subjectPrefix")&&null!==t.subjectPrefix&&void 0!==t.subjectPrefix&&n.setSubjectPrefix(t.subjectPrefix),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=qi({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Hi(t.prototype,n),r&&Hi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Qi.prototype.bodySuffix=void 0,Qi.prototype.subjectPrefix=void 0,Qi.prototype.$reserved=void 0,Qi.prototype.$objectType=void 0,Qi.prototype.$unknownFields=void 0;var Xi={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUCCESS:"SUCCESS",FAILED:"FAILED",RETRYING:"RETRYING",DISABLED:"DISABLED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Xi).find((function(t){return Xi[t]===e}));return null==t?Xi.$UNKNOWN:Xi[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Xi.$UNKNOWN:case Xi.$REDACTED:case Xi.SUCCESS:case Xi.FAILED:case Xi.RETRYING:case Xi.DISABLED:return;default:throw new Error("Invalid : must be ConnectionStatus.{ $UNKNOWN|$REDACTED|SUCCESS|FAILED|RETRYING|DISABLED }")}}};Object.freeze(Xi);const Zi=Xi;function eo(e){return eo="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},eo(e)}function to(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 no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=io(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ro(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,io(r.key),r)}}function io(e){var t=function(e,t){if("object"!=eo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=eo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eo(t)?t:t+""}var oo=new WeakSet,so=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=oo),n.add(t),this.$objectType="common.v1.config.KVStringPair",this.$reserved={$fv:"v1.r0.b1"},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 no(no(no({},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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("value","undefined or null"):new me("name","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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 i in n.$unknownFields=no({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&ro(t.prototype,n),r&&ro(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 uo(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 lo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=fo(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,t){if("object"!=ao(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ao(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ao(t)?t:t+""}so.prototype.name=void 0,so.prototype.value="",so.prototype.$reserved=void 0,so.prototype.$objectType=void 0,so.prototype.$unknownFields=void 0;var po=new WeakSet,yo=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=po),n.add(t),this.$objectType="monitoring.v4.serviceability.ParameterizedMessage",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributes",value:function(){return this.attributes}},{key:"setAttributes",value:function(e){this.attributes=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 lo(lo(lo({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributes()&&null!==this.getAttributes()?{attributes:this.getAttributes().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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"attributes"!==t||void 0!==this.attributes&&null!==this.attributes?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("attributes","undefined or null"):new me("message","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("attributes")&&null!==t.attributes&&void 0!==t.attributes){for(s=[],r=t.attributes,o=0;o<r.length;o++)i=so.constructFromObject(r[o],void 0),s.push(i);n.setAttributes(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=lo({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&co(t.prototype,n),r&&co(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ho(e){return ho="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},ho(e)}function vo(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 bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vo(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=go(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mo(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,go(r.key),r)}}function go(e){var t=function(e,t){if("object"!=ho(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ho(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ho(t)?t:t+""}yo.prototype.message=void 0,yo.prototype.attributes=void 0,yo.prototype.$reserved=void 0,yo.prototype.$objectType=void 0,yo.prototype.$unknownFields=void 0;var wo=new WeakSet,Oo=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=wo),n.add(t),this.$objectType="monitoring.v4.serviceability.CommunicationStatus",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getLastCheckedTime",value:function(){return this.lastCheckedTime}},{key:"setLastCheckedTime",value:function(e){this.lastCheckedTime=e}},{key:"getLastChangedTime",value:function(){return this.lastChangedTime}},{key:"setLastChangedTime",value:function(e){this.lastChangedTime=e}},{key:"getLastSuccessfulTransmissionTime",value:function(){return this.lastSuccessfulTransmissionTime}},{key:"setLastSuccessfulTransmissionTime",value:function(e){this.lastSuccessfulTransmissionTime=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=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 bo(bo(bo(bo(bo(bo({},void 0!==this.getLastCheckedTime()&&null!==this.getLastCheckedTime()?{lastCheckedTime:this.getLastCheckedTime()}:{}),void 0!==this.getLastChangedTime()&&null!==this.getLastChangedTime()?{lastChangedTime:this.getLastChangedTime()}:{}),void 0!==this.getLastSuccessfulTransmissionTime()&&null!==this.getLastSuccessfulTransmissionTime()?{lastSuccessfulTransmissionTime:this.getLastSuccessfulTransmissionTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage().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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"lastCheckedTime"!==t||void 0!==this.lastCheckedTime&&null!==this.lastCheckedTime?"lastChangedTime"!==t||void 0!==this.lastChangedTime&&null!==this.lastChangedTime?"lastSuccessfulTransmissionTime"!==t||void 0!==this.lastSuccessfulTransmissionTime&&null!==this.lastSuccessfulTransmissionTime?"status"!==t||void 0!==this.status&&null!==this.status?"message"!==t||void 0!==this.message&&null!==this.message?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("message","undefined or null"):new me("status","undefined or null"):new me("lastSuccessfulTransmissionTime","undefined or null"):new me("lastChangedTime","undefined or null"):new me("lastCheckedTime","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("lastCheckedTime")&&null!==t.lastCheckedTime&&void 0!==t.lastCheckedTime&&n.setLastCheckedTime(t.lastCheckedTime),t.hasOwnProperty("lastChangedTime")&&null!==t.lastChangedTime&&void 0!==t.lastChangedTime&&n.setLastChangedTime(t.lastChangedTime),t.hasOwnProperty("lastSuccessfulTransmissionTime")&&null!==t.lastSuccessfulTransmissionTime&&void 0!==t.lastSuccessfulTransmissionTime&&n.setLastSuccessfulTransmissionTime(t.lastSuccessfulTransmissionTime),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&n.setStatus(Zi.constructFromObject(t.status)),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(yo.constructFromObject(t.message)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=bo({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&mo(t.prototype,n),r&&mo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 $o(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 To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$o(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Po(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ko(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,Po(r.key),r)}}function Po(e){var t=function(e,t){if("object"!=jo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=jo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jo(t)?t:t+""}Oo.prototype.lastCheckedTime=void 0,Oo.prototype.lastChangedTime=void 0,Oo.prototype.lastSuccessfulTransmissionTime=void 0,Oo.prototype.status=void 0,Oo.prototype.message=void 0,Oo.prototype.$reserved=void 0,Oo.prototype.$objectType=void 0,Oo.prototype.$unknownFields=void 0;var Eo=new WeakSet,So=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Eo),n.add(t),this.$objectType="common.v1.config.FQDN",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{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 To(To({},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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new me("value","undefined or null");if(!Vt.validatePattern(this.value,/^(?:[a-z0-9][\\w\\-]*[a-z0-9]*\\.)*(?:(?:(?:[a-z0-9][\\w\\-]*[a-z0-9]*)(?:\\.[a-z0-9]+)?))$/))return new me("value","does not satisfy required pattern: /^(?:[a-z0-9][\\w\\-]*[a-z0-9]*\\.)*(?:(?:(?:[a-z0-9][\\w\\-]*[a-z0-9]*)(?:\\.[a-z0-9]+)?))$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,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 i in n.$unknownFields=To({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&ko(t.prototype,n),r&&ko(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Fo(e){return Fo="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},Fo(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){var r,i,o;r=e,i=t,o=n[t],(i=Co(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):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){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,Co(r.key),r)}}function Co(e){var t=function(e,t){if("object"!=Fo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Fo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fo(t)?t:t+""}So.prototype.value=void 0,So.prototype.$reserved=void 0,So.prototype.$objectType=void 0,So.prototype.$unknownFields=void 0;var Ro=new WeakSet,Uo=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ro),n.add(t),this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=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({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new me("value","undefined or null");if(!Vt.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new me("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new me("prefixLength","undefined or null");if(!Vt.validateMaximum(this.prefixLength,32))return new me("prefixLength","does not satisfy required maximum constraint: 32");if(!Vt.validateMinimum(this.prefixLength,0))return new me("prefixLength","does not satisfy required minimum constraint: 0")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Do({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Io(t.prototype,n),r&&Io(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xo(e){return xo="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},xo(e)}function No(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 Mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?No(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Lo(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):No(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,Lo(r.key),r)}}function Lo(e){var t=function(e,t){if("object"!=xo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xo(t)?t:t+""}Uo.prototype.value=void 0,Uo.prototype.prefixLength=32,Uo.prototype.$reserved=void 0,Uo.prototype.$objectType=void 0,Uo.prototype.$unknownFields=void 0;var Jo=new WeakSet,Vo=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Jo),n.add(t),this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=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 Mo(Mo(Mo({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new me("value","undefined or null");if(!Vt.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new me("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new me("prefixLength","undefined or null");if(!Vt.validateMaximum(this.prefixLength,128))return new me("prefixLength","does not satisfy required maximum constraint: 128");if(!Vt.validateMinimum(this.prefixLength,0))return new me("prefixLength","does not satisfy required minimum constraint: 0")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Mo({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&_o(t.prototype,n),r&&_o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wo(e){return Wo="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},Wo(e)}function Bo(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?Bo(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=qo(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Go(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,qo(r.key),r)}}function qo(e){var t=function(e,t){if("object"!=Wo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Wo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wo(t)?t:t+""}Vo.prototype.value=void 0,Vo.prototype.prefixLength=128,Vo.prototype.$reserved=void 0,Vo.prototype.$objectType=void 0,Vo.prototype.$unknownFields=void 0;var Ho=new WeakSet,Ko=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Ho),n.add(t),this.$objectType="common.v1.config.IPAddressOrFQDN",this.$reserved={$fv:"v1.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"getFqdn",value:function(){return this.fqdn}},{key:"setFqdn",value:function(e){this.fqdn=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:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"hasFqdn",value:function(){return!(void 0===this.fqdn||null===this.fqdn)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()||this.hasFqdn()}},{key:"toJson",value:function(e){return zo(zo(zo(zo({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}),void 0!==this.getFqdn()&&null!==this.getFqdn()?{fqdn:this.getFqdn().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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"fqdn"!==t||void 0!==this.fqdn&&null!==this.fqdn?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("fqdn","undefined or null"):new me("ipv6","undefined or null"):new me("ipv4","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(Uo.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6(Vo.constructFromObject(t.ipv6)),t.hasOwnProperty("fqdn")&&null!==t.fqdn&&void 0!==t.fqdn&&n.setFqdn(So.constructFromObject(t.fqdn)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=zo({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Go(t.prototype,n),r&&Go(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Ko.prototype.ipv4=void 0,Ko.prototype.ipv6=void 0,Ko.prototype.fqdn=void 0,Ko.prototype.$reserved=void 0,Ko.prototype.$objectType=void 0,Ko.prototype.$unknownFields=void 0;var Yo={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",HTTP:"HTTP",HTTPS:"HTTPS",SOCKS:"SOCKS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Yo).find((function(t){return Yo[t]===e}));return null==t?Yo.$UNKNOWN:Yo[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Yo.$UNKNOWN:case Yo.$REDACTED:case Yo.HTTP:case Yo.HTTPS:case Yo.SOCKS:return;default:throw new Error("Invalid : must be ProxyType.{ $UNKNOWN|$REDACTED|HTTP|HTTPS|SOCKS }")}}};Object.freeze(Yo);const Qo=Yo;function Xo(e){return Xo="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},Xo(e)}function Zo(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 es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ns(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ts(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,ns(r.key),r)}}function ns(e){var t=function(e,t){if("object"!=Xo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Xo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xo(t)?t:t+""}var rs=new WeakSet,is=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=rs),n.add(t),this.$objectType="monitoring.v4.serviceability.HttpProxy",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getAddressValue",value:function(){return this.addressValue}},{key:"setAddressValue",value:function(e){this.addressValue=e}},{key:"getPort",value:function(){return this.port}},{key:"setPort",value:function(e){this.port=e}},{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=e}},{key:"getProxyTypes",value:function(){return this.proxyTypes}},{key:"setProxyTypes",value:function(e){this.proxyTypes=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 es(es(es(es(es(es(es({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getAddressValue()&&null!==this.getAddressValue()?{addressValue:this.getAddressValue().toJson(!1)}:{}),void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getProxyTypes()&&null!==this.getProxyTypes()?{proxyTypes:this.getProxyTypes()}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("addressValue"===t&&(void 0===this.addressValue||null===this.addressValue))return new me("addressValue","undefined or null");if("port"===t){if(void 0===this.port||null===this.port)return new me("port","undefined or null");if(!Vt.validateMaximum(this.port,65536))return new me("port","does not satisfy required maximum constraint: 65536");if(!Vt.validateMinimum(this.port,0))return new me("port","does not satisfy required minimum constraint: 0")}return"username"!==t||void 0!==this.username&&null!==this.username?"password"!==t||void 0!==this.password&&null!==this.password?"proxyTypes"!==t||void 0!==this.proxyTypes&&null!==this.proxyTypes?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("proxyTypes","undefined or null"):new me("password","undefined or null"):new me("username","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("addressValue")&&null!==t.addressValue&&void 0!==t.addressValue&&n.setAddressValue(Ko.constructFromObject(t.addressValue)),t.hasOwnProperty("port")&&null!==t.port&&void 0!==t.port&&n.setPort(t.port),t.hasOwnProperty("username")&&null!==t.username&&void 0!==t.username&&n.setUsername(t.username),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&n.setPassword(t.password),t.hasOwnProperty("proxyTypes")&&null!==t.proxyTypes&&void 0!==t.proxyTypes){for(s=[],r=t.proxyTypes,o=0;o<r.length;o++)i=Qo.constructFromObject(r[o],void 0),s.push(i);n.setProxyTypes(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=es({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&ts(t.prototype,n),r&&ts(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function os(e){return os="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},os(e)}function ss(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 as(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ls(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function us(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,ls(r.key),r)}}function ls(e){var t=function(e,t){if("object"!=os(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=os(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==os(t)?t:t+""}is.prototype.name=void 0,is.prototype.addressValue=void 0,is.prototype.port=void 0,is.prototype.username=void 0,is.prototype.password=void 0,is.prototype.proxyTypes=void 0,is.prototype.$reserved=void 0,is.prototype.$objectType=void 0,is.prototype.$unknownFields=void 0;var cs=new WeakSet,ds=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=cs),n.add(t),this.$objectType="monitoring.v4.serviceability.ServiceCenter",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getIpAddress",value:function(){return this.ipAddress}},{key:"setIpAddress",value:function(e){this.ipAddress=e}},{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPort",value:function(){return this.port}},{key:"setPort",value:function(e){this.port=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 as(as(as(as(as({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("ipAddress"===t){if(void 0===this.ipAddress||null===this.ipAddress)return new me("ipAddress","undefined or null");if(!Vt.validatePattern(this.ipAddress,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new me("ipAddress","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("username"===t&&(void 0===this.username||null===this.username))return new me("username","undefined or null");if("port"===t){if(void 0===this.port||null===this.port)return new me("port","undefined or null");if(!Vt.validateMaximum(this.port,65536))return new me("port","does not satisfy required maximum constraint: 65536");if(!Vt.validateMinimum(this.port,0))return new me("port","does not satisfy required minimum constraint: 0")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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("ipAddress")&&null!==t.ipAddress&&void 0!==t.ipAddress&&n.setIpAddress(t.ipAddress),t.hasOwnProperty("username")&&null!==t.username&&void 0!==t.username&&n.setUsername(t.username),t.hasOwnProperty("port")&&null!==t.port&&void 0!==t.port&&n.setPort(t.port),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=as({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&us(t.prototype,n),r&&us(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fs(e){return fs="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},fs(e)}function ps(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 ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ps(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=vs(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hs(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,vs(r.key),r)}}function vs(e){var t=function(e,t){if("object"!=fs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=fs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fs(t)?t:t+""}ds.prototype.name=void 0,ds.prototype.ipAddress=void 0,ds.prototype.username=void 0,ds.prototype.port=void 0,ds.prototype.$reserved=void 0,ds.prototype.$objectType=void 0,ds.prototype.$unknownFields=void 0;var bs=new WeakSet,ms=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=bs),n.add(t),this.$objectType="monitoring.v4.serviceability.RemoteTunnelDetails",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getHttpProxy",value:function(){return this.httpProxy}},{key:"setHttpProxy",value:function(e){this.httpProxy=e}},{key:"getServiceCenter",value:function(){return this.serviceCenter}},{key:"setServiceCenter",value:function(e){this.serviceCenter=e}},{key:"getConnectionStatus",value:function(){return this.connectionStatus}},{key:"setConnectionStatus",value:function(e){this.connectionStatus=e}},{key:"getTransportStatus",value:function(){return this.transportStatus}},{key:"setTransportStatus",value:function(e){this.transportStatus=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 ys(ys(ys(ys(ys({},void 0!==this.getHttpProxy()&&null!==this.getHttpProxy()?{httpProxy:this.getHttpProxy().toJson(!1)}:{}),void 0!==this.getServiceCenter()&&null!==this.getServiceCenter()?{serviceCenter:this.getServiceCenter().toJson(!1)}:{}),void 0!==this.getConnectionStatus()&&null!==this.getConnectionStatus()?{connectionStatus:this.getConnectionStatus().toJson(!1)}:{}),void 0!==this.getTransportStatus()&&null!==this.getTransportStatus()?{transportStatus:this.getTransportStatus().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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"httpProxy"!==t||void 0!==this.httpProxy&&null!==this.httpProxy?"serviceCenter"!==t||void 0!==this.serviceCenter&&null!==this.serviceCenter?"connectionStatus"!==t||void 0!==this.connectionStatus&&null!==this.connectionStatus?"transportStatus"!==t||void 0!==this.transportStatus&&null!==this.transportStatus?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("transportStatus","undefined or null"):new me("connectionStatus","undefined or null"):new me("serviceCenter","undefined or null"):new me("httpProxy","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("httpProxy")&&null!==t.httpProxy&&void 0!==t.httpProxy&&n.setHttpProxy(is.constructFromObject(t.httpProxy)),t.hasOwnProperty("serviceCenter")&&null!==t.serviceCenter&&void 0!==t.serviceCenter&&n.setServiceCenter(ds.constructFromObject(t.serviceCenter)),t.hasOwnProperty("connectionStatus")&&null!==t.connectionStatus&&void 0!==t.connectionStatus&&n.setConnectionStatus(Oo.constructFromObject(t.connectionStatus)),t.hasOwnProperty("transportStatus")&&null!==t.transportStatus&&void 0!==t.transportStatus&&n.setTransportStatus(Oo.constructFromObject(t.transportStatus)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ys({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&hs(t.prototype,n),r&&hs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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){var r,i,o;r=e,i=t,o=n[t],(i=$s(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):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){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,t){if("object"!=gs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=gs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gs(t)?t:t+""}function Ts(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,ks()?Reflect.construct(t,n||[],Ps(e).constructor):t.apply(e,n))}function ks(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ks=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)}ms.prototype.httpProxy=void 0,ms.prototype.serviceCenter=void 0,ms.prototype.connectionStatus=void 0,ms.prototype.transportStatus=void 0,ms.prototype.$reserved=void 0,ms.prototype.$objectType=void 0,ms.prototype.$unknownFields=void 0;var Ss=new WeakSet,Fs=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Ts(this,t),r=Ss),r.add(n),e.$objectType="monitoring.v4.serviceability.AlertEmailConfiguration",e.$reserved={$fv:"v4.r0.b1"},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:"getDefaultNutanixEmail",value:function(){return this.defaultNutanixEmail}},{key:"setDefaultNutanixEmail",value:function(e){this.defaultNutanixEmail=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getHasDefaultNutanixEmail",value:function(){return this.hasDefaultNutanixEmail}},{key:"setHasDefaultNutanixEmail",value:function(e){this.hasDefaultNutanixEmail=e}},{key:"getIsEmailDigestEnabled",value:function(){return this.isEmailDigestEnabled}},{key:"setIsEmailDigestEnabled",value:function(e){this.isEmailDigestEnabled=e}},{key:"getIsEmptyAlertEmailDigestSkipped",value:function(){return this.isEmptyAlertEmailDigestSkipped}},{key:"setIsEmptyAlertEmailDigestSkipped",value:function(e){this.isEmptyAlertEmailDigestSkipped=e}},{key:"getEmailConfigRules",value:function(){return this.emailConfigRules}},{key:"setEmailConfigRules",value:function(e){this.emailConfigRules=e}},{key:"getEmailContactList",value:function(){return this.emailContactList}},{key:"setEmailContactList",value:function(e){this.emailContactList=e}},{key:"getEmailTemplate",value:function(){return this.emailTemplate}},{key:"setEmailTemplate",value:function(e){this.emailTemplate=e}},{key:"getTunnelDetails",value:function(){return this.tunnelDetails}},{key:"setTunnelDetails",value:function(e){this.tunnelDetails=e}},{key:"getAlertEmailDigestSendTime",value:function(){return this.alertEmailDigestSendTime}},{key:"setAlertEmailDigestSendTime",value:function(e){this.alertEmailDigestSendTime=e}},{key:"getAlertEmailDigestSendTimezone",value:function(){return this.alertEmailDigestSendTimezone}},{key:"setAlertEmailDigestSendTimezone",value:function(e){this.alertEmailDigestSendTimezone=e}},{key:"toJson",value:function(e){return Os(!1===e?Os(Os(Os(Os(Os(Os(Os(Os(Os(Os(Os(Os(Os(Os({},void 0!==this.getDefaultNutanixEmail()&&null!==this.getDefaultNutanixEmail()?{defaultNutanixEmail:this.getDefaultNutanixEmail()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getHasDefaultNutanixEmail()&&null!==this.getHasDefaultNutanixEmail()?{hasDefaultNutanixEmail:this.getHasDefaultNutanixEmail()}:{}),void 0!==this.getIsEmailDigestEnabled()&&null!==this.getIsEmailDigestEnabled()?{isEmailDigestEnabled:this.getIsEmailDigestEnabled()}:{}),void 0!==this.getIsEmptyAlertEmailDigestSkipped()&&null!==this.getIsEmptyAlertEmailDigestSkipped()?{isEmptyAlertEmailDigestSkipped:this.getIsEmptyAlertEmailDigestSkipped()}:{}),void 0!==this.getEmailConfigRules()&&null!==this.getEmailConfigRules()?{emailConfigRules:this.getEmailConfigRules().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEmailContactList()&&null!==this.getEmailContactList()?{emailContactList:this.getEmailContactList()}:{}),void 0!==this.getEmailTemplate()&&null!==this.getEmailTemplate()?{emailTemplate:this.getEmailTemplate().toJson(!1)}:{}),void 0!==this.getTunnelDetails()&&null!==this.getTunnelDetails()?{tunnelDetails:this.getTunnelDetails().toJson(!1)}:{}),void 0!==this.getAlertEmailDigestSendTime()&&null!==this.getAlertEmailDigestSendTime()?{alertEmailDigestSendTime:this.getAlertEmailDigestSendTime()}:{}),void 0!==this.getAlertEmailDigestSendTimezone()&&null!==this.getAlertEmailDigestSendTimezone()?{alertEmailDigestSendTimezone:this.getAlertEmailDigestSendTimezone()}:{}),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()}:{}):Os(Os(Os(Os(Os(Os(Os(Os(Os(Os(Os(Os({},void 0!==this.getDefaultNutanixEmail()&&null!==this.getDefaultNutanixEmail()?{defaultNutanixEmail:this.getDefaultNutanixEmail()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getHasDefaultNutanixEmail()&&null!==this.getHasDefaultNutanixEmail()?{hasDefaultNutanixEmail:this.getHasDefaultNutanixEmail()}:{}),void 0!==this.getIsEmailDigestEnabled()&&null!==this.getIsEmailDigestEnabled()?{isEmailDigestEnabled:this.getIsEmailDigestEnabled()}:{}),void 0!==this.getIsEmptyAlertEmailDigestSkipped()&&null!==this.getIsEmptyAlertEmailDigestSkipped()?{isEmptyAlertEmailDigestSkipped:this.getIsEmptyAlertEmailDigestSkipped()}:{}),void 0!==this.getEmailConfigRules()&&null!==this.getEmailConfigRules()?{emailConfigRules:this.getEmailConfigRules().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEmailContactList()&&null!==this.getEmailContactList()?{emailContactList:this.getEmailContactList()}:{}),void 0!==this.getEmailTemplate()&&null!==this.getEmailTemplate()?{emailTemplate:this.getEmailTemplate().toJson(!1)}:{}),void 0!==this.getTunnelDetails()&&null!==this.getTunnelDetails()?{tunnelDetails:this.getTunnelDetails().toJson(!1)}:{}),void 0!==this.getAlertEmailDigestSendTime()&&null!==this.getAlertEmailDigestSendTime()?{alertEmailDigestSendTime:this.getAlertEmailDigestSendTime()}:{}),void 0!==this.getAlertEmailDigestSendTimezone()&&null!==this.getAlertEmailDigestSendTimezone()?{alertEmailDigestSendTimezone:this.getAlertEmailDigestSendTimezone()}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("defaultNutanixEmail"===t){if(void 0===this.defaultNutanixEmail||null===this.defaultNutanixEmail)return new me("defaultNutanixEmail","undefined or null");if(!Vt.validatePattern(this.defaultNutanixEmail,/^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/))return new me("defaultNutanixEmail","does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/")}if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new me("isEnabled","undefined or null");if("hasDefaultNutanixEmail"===t&&(void 0===this.hasDefaultNutanixEmail||null===this.hasDefaultNutanixEmail))return new me("hasDefaultNutanixEmail","undefined or null");if("isEmailDigestEnabled"===t&&(void 0===this.isEmailDigestEnabled||null===this.isEmailDigestEnabled))return new me("isEmailDigestEnabled","undefined or null");if("isEmptyAlertEmailDigestSkipped"===t&&(void 0===this.isEmptyAlertEmailDigestSkipped||null===this.isEmptyAlertEmailDigestSkipped))return new me("isEmptyAlertEmailDigestSkipped","undefined or null");if("emailConfigRules"===t){if(void 0===this.emailConfigRules||null===this.emailConfigRules)return new me("emailConfigRules","undefined or null");if(!Vt.validateMaxItems(this.emailConfigRules,100))return new me("emailConfigRules","does not satisfy required maxItems constraint: 100")}if("emailContactList"===t){if(void 0===this.emailContactList||null===this.emailContactList)return new me("emailContactList","undefined or null");if(!Vt.validateMaxItems(this.emailContactList,100))return new me("emailContactList","does not satisfy required maxItems constraint: 100")}return"emailTemplate"!==t||void 0!==this.emailTemplate&&null!==this.emailTemplate?"tunnelDetails"!==t||void 0!==this.tunnelDetails&&null!==this.tunnelDetails?"alertEmailDigestSendTime"!==t||void 0!==this.alertEmailDigestSendTime&&null!==this.alertEmailDigestSendTime?"alertEmailDigestSendTimezone"!==t||void 0!==this.alertEmailDigestSendTimezone&&null!==this.alertEmailDigestSendTimezone?new me(t,"no such property exists"):new me("alertEmailDigestSendTimezone","undefined or null"):new me("alertEmailDigestSendTime","undefined or null"):new me("tunnelDetails","undefined or null"):new me("emailTemplate","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("defaultNutanixEmail")&&null!==e.defaultNutanixEmail&&void 0!==e.defaultNutanixEmail&&n.setDefaultNutanixEmail(e.defaultNutanixEmail),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&n.setIsEnabled(e.isEnabled),e.hasOwnProperty("hasDefaultNutanixEmail")&&null!==e.hasDefaultNutanixEmail&&void 0!==e.hasDefaultNutanixEmail&&n.setHasDefaultNutanixEmail(e.hasDefaultNutanixEmail),e.hasOwnProperty("isEmailDigestEnabled")&&null!==e.isEmailDigestEnabled&&void 0!==e.isEmailDigestEnabled&&n.setIsEmailDigestEnabled(e.isEmailDigestEnabled),e.hasOwnProperty("isEmptyAlertEmailDigestSkipped")&&null!==e.isEmptyAlertEmailDigestSkipped&&void 0!==e.isEmptyAlertEmailDigestSkipped&&n.setIsEmptyAlertEmailDigestSkipped(e.isEmptyAlertEmailDigestSkipped),e.hasOwnProperty("emailConfigRules")&&null!==e.emailConfigRules&&void 0!==e.emailConfigRules){for(s=[],r=e.emailConfigRules,o=0;o<r.length;o++)i=Bi.constructFromObject(r[o],void 0),s.push(i);n.setEmailConfigRules(s)}if(e.hasOwnProperty("emailContactList")&&null!==e.emailContactList&&void 0!==e.emailContactList){for(s=[],r=e.emailContactList,o=0;o<r.length;o++)s.push(r[o]);n.setEmailContactList(s)}if(e.hasOwnProperty("emailTemplate")&&null!==e.emailTemplate&&void 0!==e.emailTemplate&&n.setEmailTemplate(Qi.constructFromObject(e.emailTemplate)),e.hasOwnProperty("tunnelDetails")&&null!==e.tunnelDetails&&void 0!==e.tunnelDetails&&n.setTunnelDetails(ms.constructFromObject(e.tunnelDetails)),e.hasOwnProperty("alertEmailDigestSendTime")&&null!==e.alertEmailDigestSendTime&&void 0!==e.alertEmailDigestSendTime&&n.setAlertEmailDigestSendTime(e.alertEmailDigestSendTime),e.hasOwnProperty("alertEmailDigestSendTimezone")&&null!==e.alertEmailDigestSendTimezone&&void 0!==e.alertEmailDigestSendTimezone&&n.setAlertEmailDigestSendTimezone(e.alertEmailDigestSendTimezone),!a)for(var u in n.$unknownFields=Os({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&js(n.prototype,r),i&&js(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function As(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 Ds(e){return Ds="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},Ds(e)}function Is(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 Cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Is(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Us(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Is(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rs(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,Us(r.key),r)}}function Us(e){var t=function(e,t){if("object"!=Ds(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ds(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ds(t)?t:t+""}function xs(e,t,n){return t=Ms(t),function(e,t){if(t&&("object"===Ds(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,Ns()?Reflect.construct(t,n||[],Ms(e).constructor):t.apply(e,n))}function Ns(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ns=function(){return!!e})()}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ms(e)}function _s(e,t){return _s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_s(e,t)}function Ls(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")}Fs.prototype.defaultNutanixEmail=void 0,Fs.prototype.isEnabled=!1,Fs.prototype.hasDefaultNutanixEmail=!1,Fs.prototype.isEmailDigestEnabled=!1,Fs.prototype.isEmptyAlertEmailDigestSkipped=!1,Fs.prototype.emailConfigRules=void 0,Fs.prototype.emailContactList=void 0,Fs.prototype.emailTemplate=void 0,Fs.prototype.tunnelDetails=void 0,Fs.prototype.alertEmailDigestSendTime=void 0,Fs.prototype.alertEmailDigestSendTimezone=void 0;var Js=new WeakSet,Vs=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=xs(this,t),r=Js),r.add(n),e.$objectType="monitoring.v4.serviceability.GetAlertEmailConfigurationApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&_s(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 Cs(Cs(Cs({},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})):Ls(Js,this,Ws).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})):Ls(Js,this,Ws).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ds(e.data)){case"monitoring.v4.serviceability.AlertEmailConfiguration":n.setData(Fs.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=Cs({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&Rs(n.prototype,r),i&&Rs(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Ws(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return As(e,t);var n=Object.prototype.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)?As(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Ds(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 Bs(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 zs(e){return zs="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},zs(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 qs(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){var r,i,o;r=e,i=t,o=n[t],(i=Ks(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):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 Hs(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,t){if("object"!=zs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=zs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zs(t)?t:t+""}function Ys(e,t,n){return t=Xs(t),function(e,t){if(t&&("object"===zs(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,Qs()?Reflect.construct(t,n||[],Xs(e).constructor):t.apply(e,n))}function Qs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qs=function(){return!!e})()}function Xs(e){return Xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xs(e)}function Zs(e,t){return Zs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zs(e,t)}function ea(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")}Vs.prototype.metadata=void 0,Vs.prototype.data=void 0,Vs.prototype.$reserved=void 0,Vs.prototype.$objectType=void 0,Vs.prototype.$unknownFields=void 0;var ta=new WeakSet,na=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Ys(this,t),r=ta),r.add(n),e.$objectType="monitoring.v4.serviceability.UpdateAlertEmailConfigurationApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&Zs(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 qs(qs(qs({},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})):ea(ta,this,ra).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})):ea(ta,this,ra).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:zs(e.data)){case"monitoring.v4.serviceability.AlertEmailConfiguration":n.setData(Fs.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=qs({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&Hs(n.prototype,r),i&&Hs(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function ra(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bs(e,t);var n=Object.prototype.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)?Bs(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===zs(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 ia(e){return ia="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},ia(e)}function oa(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 sa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oa(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ua(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aa(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,ua(r.key),r)}}function ua(e){var t=function(e,t){if("object"!=ia(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ia(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ia(t)?t:t+""}function la(e,t){return e.get(ca(e,t))}function ca(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")}na.prototype.metadata=void 0,na.prototype.data=void 0,na.prototype.$reserved=void 0,na.prototype.$objectType=void 0,na.prototype.$unknownFields=void 0;var da=new WeakMap,fa=function(){return e=function e(t){var n,r,i,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=da),o.set(i,s),this.apiClient=t||Y.instance,n=da,r=new Set,n.set(ca(n,this),r),la(da,this).add("authorization"),la(da,this).add("cookie"),la(da,this).add("host"),la(da,this).add("user-agent")},t=[{key:"getAlertEmailConfiguration",value:function(){var e=this,t=arguments.length>0?arguments.length<=0?void 0:arguments[0]:{},n={};Object.keys(t).forEach((function(r){la(da,e).has(r.toLowerCase())||(n[r]=t[r])}));var r=sa({},n),i=Vs;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/email-config","GET",{},{},r,{},null,["basicAuthScheme"],[],["application/json"],i)}},{key:"updateAlertEmailConfiguration",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 Fs&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling updateAlertEmailConfiguration");var i={};Object.keys(r).forEach((function(e){la(da,n).has(e.toLowerCase())||(i[e]=r[e])}));var o=sa({},i);Y.addEtagReferenceToHeader(e,o);var s=na;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/email-config","PUT",{},{},o,{},t,["basicAuthScheme"],["application/json"],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return Y}}],t&&aa(e.prototype,t),n&&aa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),pa={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CREATE:"CREATE",UPDATE:"UPDATE",DELETE:"DELETE",POWERSTATECHANGE:"POWERSTATECHANGE",HA:"HA",RESTORE:"RESTORE",MIGRATE:"MIGRATE",ENABLE:"ENABLE",DISABLE:"DISABLE",RESET:"RESET",LOGIN:"LOGIN",LOGOUT:"LOGOUT",VALIDATE:"VALIDATE",FAILOVER:"FAILOVER",INPROGRESS:"INPROGRESS",ON:"ON",OFF:"OFF",JOINED:"JOINED",UNJOINED:"UNJOINED",PROTECTED:"PROTECTED",UNPROTECTED:"UNPROTECTED",QUARENTINED:"QUARENTINED",UNQUARENTINED:"UNQUARENTINED",START:"START",END:"END",TESTFAILOVER:"TESTFAILOVER",IMPORT:"IMPORT",EXPORT:"EXPORT",IMAGEIMPORT:"IMAGEIMPORT",IMAGETRANSFER:"IMAGETRANSFER",IMAGEREMOVE:"IMAGEREMOVE",IMAGEUPLOAD:"IMAGEUPLOAD",TEMPLATEGUESTUPDATEINITIATE:"TEMPLATEGUESTUPDATEINITIATE",TEMPLATEGUESTUPDATECANCEL:"TEMPLATEGUESTUPDATECANCEL",TEMPLATEGUESTUPDATECOMPLETE:"TEMPLATEGUESTUPDATECOMPLETE",TEMPLATEDEPLOY:"TEMPLATEDEPLOY",TEMPLATEVERSIONPUBLISH:"TEMPLATEVERSIONPUBLISH",CROSSCLUSTERMIGRATE:"CROSSCLUSTERMIGRATE",FLOWCLUSTERMIGRATE:"FLOWCLUSTERMIGRATE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(pa).find((function(t){return pa[t]===e}));return null==t?pa.$UNKNOWN:pa[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case pa.$UNKNOWN:case pa.$REDACTED:case pa.CREATE:case pa.UPDATE:case pa.DELETE:case pa.POWERSTATECHANGE:case pa.HA:case pa.RESTORE:case pa.MIGRATE:case pa.ENABLE:case pa.DISABLE:case pa.RESET:case pa.LOGIN:case pa.LOGOUT:case pa.VALIDATE:case pa.FAILOVER:case pa.INPROGRESS:case pa.ON:case pa.OFF:case pa.JOINED:case pa.UNJOINED:case pa.PROTECTED:case pa.UNPROTECTED:case pa.QUARENTINED:case pa.UNQUARENTINED:case pa.START:case pa.END:case pa.TESTFAILOVER:case pa.IMPORT:case pa.EXPORT:case pa.IMAGEIMPORT:case pa.IMAGETRANSFER:case pa.IMAGEREMOVE:case pa.IMAGEUPLOAD:case pa.TEMPLATEGUESTUPDATEINITIATE:case pa.TEMPLATEGUESTUPDATECANCEL:case pa.TEMPLATEGUESTUPDATECOMPLETE:case pa.TEMPLATEDEPLOY:case pa.TEMPLATEVERSIONPUBLISH:case pa.CROSSCLUSTERMIGRATE:case pa.FLOWCLUSTERMIGRATE:return;default:throw new Error("Invalid : must be OperationType.{ $UNKNOWN|$REDACTED|CREATE|UPDATE|DELETE|POWERSTATECHANGE|HA|RESTORE|MIGRATE|ENABLE|DISABLE|RESET|LOGIN|LOGOUT|VALIDATE|FAILOVER|INPROGRESS|ON|OFF|JOINED|UNJOINED|PROTECTED|UNPROTECTED|QUARENTINED|UNQUARENTINED|START|END|TESTFAILOVER|IMPORT|EXPORT|IMAGEIMPORT|IMAGETRANSFER|IMAGEREMOVE|IMAGEUPLOAD|TEMPLATEGUESTUPDATEINITIATE|TEMPLATEGUESTUPDATECANCEL|TEMPLATEGUESTUPDATECOMPLETE|TEMPLATEDEPLOY|TEMPLATEVERSIONPUBLISH|CROSSCLUSTERMIGRATE|FLOWCLUSTERMIGRATE }")}}};Object.freeze(pa);const ya=pa;function ha(e){return ha="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},ha(e)}function va(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 ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?va(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ga(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ma(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,ga(r.key),r)}}function ga(e){var t=function(e,t){if("object"!=ha(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ha(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ha(t)?t:t+""}var wa=new WeakSet,Oa=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=wa),n.add(t),this.$objectType="monitoring.v4.serviceability.AuditEntityReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{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 ba(ba(ba(ba({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new me("type","undefined or null");if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),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 i in n.$unknownFields=ba({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&ma(t.prototype,n),r&&ma(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Oa.prototype.type=void 0,Oa.prototype.name=void 0,Oa.prototype.extId=void 0,Oa.prototype.$reserved=void 0,Oa.prototype.$objectType=void 0,Oa.prototype.$unknownFields=void 0;var ja={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUCCEEDED:"SUCCEEDED",FAILED:"FAILED",ABORTED:"ABORTED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ja).find((function(t){return ja[t]===e}));return null==t?ja.$UNKNOWN:ja[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ja.$UNKNOWN:case ja.$REDACTED:case ja.SUCCEEDED:case ja.FAILED:case ja.ABORTED:return;default:throw new Error("Invalid : must be Status.{ $UNKNOWN|$REDACTED|SUCCEEDED|FAILED|ABORTED }")}}};Object.freeze(ja);const $a=ja;function Ta(e){return Ta="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},Ta(e)}function ka(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?ka(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Sa(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,Sa(r.key),r)}}function Sa(e){var t=function(e,t){if("object"!=Ta(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ta(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ta(t)?t:t+""}var Fa=new WeakSet,Aa=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Fa),n.add(t),this.$objectType="monitoring.v4.serviceability.UserReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getIpAddress",value:function(){return this.ipAddress}},{key:"setIpAddress",value:function(e){this.ipAddress=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(Pa({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress()}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("ipAddress"===t){if(void 0===this.ipAddress||null===this.ipAddress)return new me("ipAddress","undefined or null");if(!Vt.validatePattern(this.ipAddress,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new me("ipAddress","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("ipAddress")&&null!==t.ipAddress&&void 0!==t.ipAddress&&n.setIpAddress(t.ipAddress),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Pa({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Ea(t.prototype,n),r&&Ea(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Da(e){return Da="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},Da(e)}function Ia(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 Ca(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ia(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ua(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ia(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ra(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,Ua(r.key),r)}}function Ua(e){var t=function(e,t){if("object"!=Da(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Da(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Da(t)?t:t+""}function xa(e,t,n){return t=Ma(t),function(e,t){if(t&&("object"===Da(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||[],Ma(e).constructor):t.apply(e,n))}function Na(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Na=function(){return!!e})()}function Ma(e){return Ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ma(e)}function _a(e,t){return _a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_a(e,t)}Aa.prototype.extId=void 0,Aa.prototype.name=void 0,Aa.prototype.ipAddress=void 0,Aa.prototype.$reserved=void 0,Aa.prototype.$objectType=void 0,Aa.prototype.$unknownFields=void 0;var La=new WeakSet,Ja=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=xa(this,t),r=La),r.add(n),e.$objectType="monitoring.v4.serviceability.Audit",e.$reserved={$fv:"v4.r0.b1"},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&&_a(e,t)}(t,e),n=t,r=[{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"getAffectedEntities",value:function(){return this.affectedEntities}},{key:"setAffectedEntities",value:function(e){this.affectedEntities=e}},{key:"getOperationType",value:function(){return this.operationType}},{key:"setOperationType",value:function(e){this.operationType=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"getOperationStartTime",value:function(){return this.operationStartTime}},{key:"setOperationStartTime",value:function(e){this.operationStartTime=e}},{key:"getOperationEndTime",value:function(){return this.operationEndTime}},{key:"setOperationEndTime",value:function(e){this.operationEndTime=e}},{key:"getUserReference",value:function(){return this.userReference}},{key:"setUserReference",value:function(e){this.userReference=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"getAuditType",value:function(){return this.auditType}},{key:"setAuditType",value:function(e){this.auditType=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"toJson",value:function(e){return Ca(!1===e?Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOperationStartTime()&&null!==this.getOperationStartTime()?{operationStartTime:this.getOperationStartTime()}:{}),void 0!==this.getOperationEndTime()&&null!==this.getOperationEndTime()?{operationEndTime:this.getOperationEndTime()}:{}),void 0!==this.getUserReference()&&null!==this.getUserReference()?{userReference:this.getUserReference().toJson(!1)}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getAuditType()&&null!==this.getAuditType()?{auditType:this.getAuditType()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),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()}:{}):Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca(Ca({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getOperationStartTime()&&null!==this.getOperationStartTime()?{operationStartTime:this.getOperationStartTime()}:{}),void 0!==this.getOperationEndTime()&&null!==this.getOperationEndTime()?{operationEndTime:this.getOperationEndTime()}:{}),void 0!==this.getUserReference()&&null!==this.getUserReference()?{userReference:this.getUserReference().toJson(!1)}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getAuditType()&&null!==this.getAuditType()?{auditType:this.getAuditType()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new me("sourceEntity","undefined or null");if("clusterReference"===t&&(void 0===this.clusterReference||null===this.clusterReference))return new me("clusterReference","undefined or null");if("affectedEntities"===t){if(void 0===this.affectedEntities||null===this.affectedEntities)return new me("affectedEntities","undefined or null");if(!Vt.validateMaxItems(this.affectedEntities,50))return new me("affectedEntities","does not satisfy required maxItems constraint: 50")}if("operationType"===t&&(void 0===this.operationType||null===this.operationType))return new me("operationType","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new me("message","undefined or null");if(!Vt.validateMaxLength(this.message,1024))return new me("message","does not satisfy required maxLength constraint: 1024")}if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new me("parameters","undefined or null");if(!Vt.validateMaxItems(this.parameters,100))return new me("parameters","does not satisfy required maxItems constraint: 100")}return"operationStartTime"!==t||void 0!==this.operationStartTime&&null!==this.operationStartTime?"operationEndTime"!==t||void 0!==this.operationEndTime&&null!==this.operationEndTime?"userReference"!==t||void 0!==this.userReference&&null!==this.userReference?"serviceName"!==t||void 0!==this.serviceName&&null!==this.serviceName?"auditType"!==t||void 0!==this.auditType&&null!==this.auditType?"status"!==t||void 0!==this.status&&null!==this.status?"creationTime"!==t||void 0!==this.creationTime&&null!==this.creationTime?new me(t,"no such property exists"):new me("creationTime","undefined or null"):new me("status","undefined or null"):new me("auditType","undefined or null"):new me("serviceName","undefined or null"):new me("userReference","undefined or null"):new me("operationEndTime","undefined or null"):new me("operationStartTime","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&n.setSourceEntity(Oa.constructFromObject(e.sourceEntity)),e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&n.setClusterReference(On.constructFromObject(e.clusterReference)),e.hasOwnProperty("affectedEntities")&&null!==e.affectedEntities&&void 0!==e.affectedEntities){for(s=[],r=e.affectedEntities,o=0;o<r.length;o++)i=On.constructFromObject(r[o],void 0),s.push(i);n.setAffectedEntities(s)}if(e.hasOwnProperty("operationType")&&null!==e.operationType&&void 0!==e.operationType&&n.setOperationType(ya.constructFromObject(e.operationType)),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&n.setMessage(e.message),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(s=[],r=e.parameters,o=0;o<r.length;o++)i=jr.constructFromObject(r[o],void 0),s.push(i);n.setParameters(s)}if(e.hasOwnProperty("operationStartTime")&&null!==e.operationStartTime&&void 0!==e.operationStartTime&&n.setOperationStartTime(e.operationStartTime),e.hasOwnProperty("operationEndTime")&&null!==e.operationEndTime&&void 0!==e.operationEndTime&&n.setOperationEndTime(e.operationEndTime),e.hasOwnProperty("userReference")&&null!==e.userReference&&void 0!==e.userReference&&n.setUserReference(Aa.constructFromObject(e.userReference)),e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&n.setServiceName(e.serviceName),e.hasOwnProperty("auditType")&&null!==e.auditType&&void 0!==e.auditType&&n.setAuditType(e.auditType),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&n.setStatus($a.constructFromObject(e.status)),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&n.setCreationTime(e.creationTime),!a)for(var u in n.$unknownFields=Ca({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Ra(n.prototype,r),i&&Ra(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function Va(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 Wa(e){return Wa="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},Wa(e)}function Ba(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 za(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ba(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=qa(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ga(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,t){if("object"!=Wa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Wa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wa(t)?t:t+""}function Ha(e,t,n){return t=Ya(t),function(e,t){if(t&&("object"===Wa(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,Ka()?Reflect.construct(t,n||[],Ya(e).constructor):t.apply(e,n))}function Ka(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ka=function(){return!!e})()}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ya(e)}function Qa(e,t){return Qa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qa(e,t)}function Xa(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")}Ja.prototype.sourceEntity=void 0,Ja.prototype.clusterReference=void 0,Ja.prototype.affectedEntities=void 0,Ja.prototype.operationType=void 0,Ja.prototype.message=void 0,Ja.prototype.parameters=void 0,Ja.prototype.operationStartTime=void 0,Ja.prototype.operationEndTime=void 0,Ja.prototype.userReference=void 0,Ja.prototype.serviceName=void 0,Ja.prototype.auditType=void 0,Ja.prototype.status=void 0,Ja.prototype.creationTime=void 0;var Za=new WeakSet,eu=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Ha(this,t),r=Za),r.add(n),e.$objectType="monitoring.v4.serviceability.GetAuditApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&Qa(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 za(za(za({},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})):Xa(Za,this,tu).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})):Xa(Za,this,tu).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Wa(e.data)){case"monitoring.v4.serviceability.Audit":n.setData(Ja.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=za({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&Ga(n.prototype,r),i&&Ga(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function tu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Va(e,t);var n=Object.prototype.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)?Va(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Wa(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 nu(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 ru(e){return ru="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},ru(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 ou(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){var r,i,o;r=e,i=t,o=n[t],(i=au(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):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){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,au(r.key),r)}}function au(e){var t=function(e,t){if("object"!=ru(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ru(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ru(t)?t:t+""}function uu(e,t,n){return t=cu(t),function(e,t){if(t&&("object"===ru(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,lu()?Reflect.construct(t,n||[],cu(e).constructor):t.apply(e,n))}function lu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lu=function(){return!!e})()}function cu(e){return cu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cu(e)}function du(e,t){return du=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},du(e,t)}function fu(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")}eu.prototype.metadata=void 0,eu.prototype.data=void 0,eu.prototype.$reserved=void 0,eu.prototype.$objectType=void 0,eu.prototype.$unknownFields=void 0;var pu=new WeakSet,yu=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=uu(this,t),r=pu),r.add(n),e.$objectType="monitoring.v4.serviceability.ListAuditsApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&du(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 ou(ou(ou({},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})):fu(pu,this,hu).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})):fu(pu,this,hu).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:ru(r[0]),o=0;o<r.length;o++){if("monitoring.v4.serviceability.Audit"!==a)throw"Unknown list of type "+a+" in data";i=Ja.constructFromObject(r[o],void 0),s.push(i)}n.setData(s)}else{if("monitoring.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ru(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Nt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=ou({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&su(n.prototype,r),i&&su(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function hu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nu(e,t);var n=Object.prototype.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)?nu(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===ru(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 vu(e){return vu="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},vu(e)}function bu(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 mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bu(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=wu(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gu(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,wu(r.key),r)}}function wu(e){var t=function(e,t){if("object"!=vu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=vu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vu(t)?t:t+""}function Ou(e,t){return e.get(ju(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")}yu.prototype.metadata=void 0,yu.prototype.data=void 0,yu.prototype.$reserved=void 0,yu.prototype.$objectType=void 0,yu.prototype.$unknownFields=void 0;var $u=new WeakMap,Tu=function(){return e=function e(t){var n,r,i,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=$u),o.set(i,s),this.apiClient=t||Y.instance,n=$u,r=new Set,n.set(ju(n,this),r),Ou($u,this).add("authorization"),Ou($u,this).add("cookie"),Ou($u,this).add("host"),Ou($u,this).add("user-agent")},t=[{key:"getAuditById",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 getAuditById");var r={extId:e},i={};Object.keys(n).forEach((function(e){Ou($u,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=mu({},i),s=eu;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/audits/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listAudits",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=mu(mu(mu(mu(mu({},(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}:{}),i={};Object.keys(n).forEach((function(e){Ou($u,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=mu({},i),s=yu;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/audits","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return Y}}],t&&gu(e.prototype,t),n&&gu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function ku(e){return ku="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},ku(e)}function Pu(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 Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pu(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Fu(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(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,Fu(r.key),r)}}function Fu(e){var t=function(e,t){if("object"!=ku(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=ku(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ku(t)?t:t+""}var Au=new WeakSet,Du=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Au),n.add(t),this.$objectType="monitoring.v4.serviceability.EventEntityReference",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{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 Eu(Eu(Eu(Eu({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new me("type","undefined or null");if("name"===t&&(void 0===this.name||null===this.name))return new me("name","undefined or null");if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),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 i in n.$unknownFields=Eu({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Su(t.prototype,n),r&&Su(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Iu(e){return Iu="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},Iu(e)}function Cu(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 Ru(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cu(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=xu(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,xu(r.key),r)}}function xu(e){var t=function(e,t){if("object"!=Iu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Iu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Iu(t)?t:t+""}function Nu(e,t,n){return t=_u(t),function(e,t){if(t&&("object"===Iu(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,Mu()?Reflect.construct(t,n||[],_u(e).constructor):t.apply(e,n))}function Mu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mu=function(){return!!e})()}function _u(e){return _u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_u(e)}function Lu(e,t){return Lu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lu(e,t)}Du.prototype.type=void 0,Du.prototype.name=void 0,Du.prototype.extId=void 0,Du.prototype.$reserved=void 0,Du.prototype.$objectType=void 0,Du.prototype.$unknownFields=void 0;var Ju=new WeakSet,Vu=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Nu(this,t),r=Ju),r.add(n),e.$objectType="monitoring.v4.serviceability.Event",e.$reserved={$fv:"v4.r0.b1"},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:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getAffectedEntities",value:function(){return this.affectedEntities}},{key:"setAffectedEntities",value:function(e){this.affectedEntities=e}},{key:"getMetricDetails",value:function(){return this.metricDetails}},{key:"setMetricDetails",value:function(e){this.metricDetails=e}},{key:"getEventType",value:function(){return this.eventType}},{key:"setEventType",value:function(e){this.eventType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getSourceClusterUUID",value:function(){return this.sourceClusterUUID}},{key:"setSourceClusterUUID",value:function(e){this.sourceClusterUUID=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getClusterUUID",value:function(){return this.clusterUUID}},{key:"setClusterUUID",value:function(e){this.clusterUUID=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"toJson",value:function(e){return Ru(!1===e?Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getSourceClusterUUID()&&null!==this.getSourceClusterUUID()?{sourceClusterUUID:this.getSourceClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),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()}:{}):Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru(Ru({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getSourceClusterUUID()&&null!==this.getSourceClusterUUID()?{sourceClusterUUID:this.getSourceClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new me("sourceEntity","undefined or null");if("affectedEntities"===t){if(void 0===this.affectedEntities||null===this.affectedEntities)return new me("affectedEntities","undefined or null");if(!Vt.validateMaxItems(this.affectedEntities,50))return new me("affectedEntities","does not satisfy required maxItems constraint: 50")}if("metricDetails"===t){if(void 0===this.metricDetails||null===this.metricDetails)return new me("metricDetails","undefined or null");if(!Vt.validateMaxItems(this.metricDetails,100))return new me("metricDetails","does not satisfy required maxItems constraint: 100")}if("eventType"===t&&(void 0===this.eventType||null===this.eventType))return new me("eventType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new me("classifications","undefined or null");if(!Vt.validateMaxItems(this.classifications,15))return new me("classifications","does not satisfy required maxItems constraint: 15")}if("sourceClusterUUID"===t){if(void 0===this.sourceClusterUUID||null===this.sourceClusterUUID)return new me("sourceClusterUUID","undefined or null");if(!Vt.validatePattern(this.sourceClusterUUID,/^[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 me("sourceClusterUUID","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("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new me("creationTime","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new me("message","undefined or null");if(!Vt.validateMaxLength(this.message,1024))return new me("message","does not satisfy required maxLength constraint: 1024")}if("clusterUUID"===t){if(void 0===this.clusterUUID||null===this.clusterUUID)return new me("clusterUUID","undefined or null");if(!Vt.validatePattern(this.clusterUUID,/^[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 me("clusterUUID","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("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new me("parameters","undefined or null");if(!Vt.validateMaxItems(this.parameters,100))return new me("parameters","does not satisfy required maxItems constraint: 100")}return"serviceName"!==t||void 0!==this.serviceName&&null!==this.serviceName?new me(t,"no such property exists"):new me("serviceName","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&n.setSourceEntity(Du.constructFromObject(e.sourceEntity)),e.hasOwnProperty("affectedEntities")&&null!==e.affectedEntities&&void 0!==e.affectedEntities){for(s=[],r=e.affectedEntities,o=0;o<r.length;o++)i=On.constructFromObject(r[o],void 0),s.push(i);n.setAffectedEntities(s)}if(e.hasOwnProperty("metricDetails")&&null!==e.metricDetails&&void 0!==e.metricDetails){for(s=[],r=e.metricDetails,o=0;o<r.length;o++)i=fr.constructFromObject(r[o],void 0),s.push(i);n.setMetricDetails(s)}if(e.hasOwnProperty("eventType")&&null!==e.eventType&&void 0!==e.eventType&&n.setEventType(e.eventType),e.hasOwnProperty("classifications")&&null!==e.classifications&&void 0!==e.classifications){for(s=[],r=e.classifications,o=0;o<r.length;o++)s.push(r[o]);n.setClassifications(s)}if(e.hasOwnProperty("sourceClusterUUID")&&null!==e.sourceClusterUUID&&void 0!==e.sourceClusterUUID&&n.setSourceClusterUUID(e.sourceClusterUUID),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&n.setCreationTime(e.creationTime),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&n.setMessage(e.message),e.hasOwnProperty("clusterUUID")&&null!==e.clusterUUID&&void 0!==e.clusterUUID&&n.setClusterUUID(e.clusterUUID),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(s=[],r=e.parameters,o=0;o<r.length;o++)i=jr.constructFromObject(r[o],void 0),s.push(i);n.setParameters(s)}if(e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&n.setServiceName(e.serviceName),!a)for(var u in n.$unknownFields=Ru({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Uu(n.prototype,r),i&&Uu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function Wu(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 Bu(e){return Bu="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},Bu(e)}function zu(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 Gu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zu(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Hu(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qu(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,Hu(r.key),r)}}function Hu(e){var t=function(e,t){if("object"!=Bu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Bu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bu(t)?t:t+""}function Ku(e,t,n){return t=Qu(t),function(e,t){if(t&&("object"===Bu(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,Yu()?Reflect.construct(t,n||[],Qu(e).constructor):t.apply(e,n))}function Yu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yu=function(){return!!e})()}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qu(e)}function Xu(e,t){return Xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xu(e,t)}function Zu(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")}Vu.prototype.sourceEntity=void 0,Vu.prototype.affectedEntities=void 0,Vu.prototype.metricDetails=void 0,Vu.prototype.eventType=void 0,Vu.prototype.classifications=void 0,Vu.prototype.sourceClusterUUID=void 0,Vu.prototype.creationTime=void 0,Vu.prototype.message=void 0,Vu.prototype.clusterUUID=void 0,Vu.prototype.parameters=void 0,Vu.prototype.serviceName=void 0;var el=new WeakSet,tl=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Ku(this,t),r=el),r.add(n),e.$objectType="monitoring.v4.serviceability.ListEventsApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&Xu(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 Gu(Gu(Gu({},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})):Zu(el,this,nl).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})):Zu(el,this,nl).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:Bu(r[0]),o=0;o<r.length;o++){if("monitoring.v4.serviceability.Event"!==a)throw"Unknown list of type "+a+" in data";i=Vu.constructFromObject(r[o],void 0),s.push(i)}n.setData(s)}else{if("monitoring.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Bu(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Nt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=Gu({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&qu(n.prototype,r),i&&qu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function nl(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Wu(e,t);var n=Object.prototype.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)?Wu(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Bu(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 rl(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 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 ol(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?ol(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=ul(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ol(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function al(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,ul(r.key),r)}}function ul(e){var t=function(e,t){if("object"!=il(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=il(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==il(t)?t:t+""}function ll(e,t,n){return t=dl(t),function(e,t){if(t&&("object"===il(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,cl()?Reflect.construct(t,n||[],dl(e).constructor):t.apply(e,n))}function cl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cl=function(){return!!e})()}function dl(e){return dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dl(e)}function fl(e,t){return fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fl(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")}tl.prototype.metadata=void 0,tl.prototype.data=void 0,tl.prototype.$reserved=void 0,tl.prototype.$objectType=void 0,tl.prototype.$unknownFields=void 0;var yl=new WeakSet,hl=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=ll(this,t),r=yl),r.add(n),e.$objectType="monitoring.v4.serviceability.GetEventApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&fl(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 sl(sl(sl({},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})):pl(yl,this,vl).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})):pl(yl,this,vl).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:il(e.data)){case"monitoring.v4.serviceability.Event":n.setData(Vu.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=sl({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&al(n.prototype,r),i&&al(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function vl(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rl(e,t);var n=Object.prototype.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)?rl(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===il(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 bl(e){return bl="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},bl(e)}function ml(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 gl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ml(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ol(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,t){if("object"!=bl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=bl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bl(t)?t:t+""}function jl(e,t){return e.get($l(e,t))}function $l(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")}hl.prototype.metadata=void 0,hl.prototype.data=void 0,hl.prototype.$reserved=void 0,hl.prototype.$objectType=void 0,hl.prototype.$unknownFields=void 0;var Tl=new WeakMap,kl=function(){return e=function e(t){var n,r,i,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=Tl),o.set(i,s),this.apiClient=t||Y.instance,n=Tl,r=new Set,n.set($l(n,this),r),jl(Tl,this).add("authorization"),jl(Tl,this).add("cookie"),jl(Tl,this).add("host"),jl(Tl,this).add("user-agent")},t=[{key:"getEventById",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 getEventById");var r={extId:e},i={};Object.keys(n).forEach((function(e){jl(Tl,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=gl({},i),s=hl;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/events/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listEvents",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=gl(gl(gl(gl(gl({},(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}:{}),i={};Object.keys(n).forEach((function(e){jl(Tl,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=gl({},i),s=tl;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/events","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return Y}}],t&&wl(e.prototype,t),n&&wl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Pl(e){return Pl="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},Pl(e)}function El(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?El(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Al(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):El(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fl(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,Al(r.key),r)}}function Al(e){var t=function(e,t){if("object"!=Pl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Pl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pl(t)?t:t+""}var Dl=new WeakSet,Il=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Dl),n.add(t),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r0.b1"},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 Sl(Sl({},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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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 i in n.$unknownFields=Sl({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Fl(t.prototype,n),r&&Fl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Cl(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 Rl(e){return Rl="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},Rl(e)}function Ul(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 xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ml(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nl(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,Ml(r.key),r)}}function Ml(e){var t=function(e,t){if("object"!=Rl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Rl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rl(t)?t:t+""}function _l(e,t,n){return t=Jl(t),function(e,t){if(t&&("object"===Rl(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,Ll()?Reflect.construct(t,n||[],Jl(e).constructor):t.apply(e,n))}function Ll(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ll=function(){return!!e})()}function Jl(e){return Jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jl(e)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vl(e,t)}function Wl(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")}Il.prototype.extId=void 0,Il.prototype.$reserved=void 0,Il.prototype.$objectType=void 0,Il.prototype.$unknownFields=void 0;var Bl=new WeakSet,zl=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=_l(this,t),r=Bl),r.add(n),e.$objectType="monitoring.v4.serviceability.ManageAlertApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&Vl(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 xl(xl(xl({},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})):Wl(Bl,this,Gl).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})):Wl(Bl,this,Gl).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Rl(e.data)){case"prism.v4.config.TaskReference":n.setData(Il.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=xl({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&Nl(n.prototype,r),i&&Nl(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Gl(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cl(e,t);var n=Object.prototype.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)?Cl(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Rl(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}zl.prototype.metadata=void 0,zl.prototype.data=void 0,zl.prototype.$reserved=void 0,zl.prototype.$objectType=void 0,zl.prototype.$unknownFields=void 0;var ql={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RESOLVE:"RESOLVE",ACKNOWLEDGE:"ACKNOWLEDGE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ql).find((function(t){return ql[t]===e}));return null==t?ql.$UNKNOWN:ql[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ql.$UNKNOWN:case ql.$REDACTED:case ql.RESOLVE:case ql.ACKNOWLEDGE:return;default:throw new Error("Invalid : must be ActionType.{ $UNKNOWN|$REDACTED|RESOLVE|ACKNOWLEDGE }")}}};Object.freeze(ql);const Hl=ql;function Kl(e){return Kl="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},Kl(e)}function Yl(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?Yl(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Zl(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xl(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,Zl(r.key),r)}}function Zl(e){var t=function(e,t){if("object"!=Kl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Kl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kl(t)?t:t+""}var ec=new WeakSet,tc=function(){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){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=ec),r.add(n),this.actionType=t,this.$objectType="monitoring.v4.serviceability.AlertActionSpec",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getActionType",value:function(){return this.actionType}},{key:"setActionType",value:function(e){this.actionType=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 Ql(Ql({},void 0!==this.getActionType()&&null!==this.getActionType()?{actionType:this.getActionType()}:{}),{},{$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 ye?r=["actionType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"actionType"!==t||void 0!==this.actionType&&null!==this.actionType?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("actionType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("actionType")&&null!==t.actionType&&void 0!==t.actionType&&n.setActionType(Hl.constructFromObject(t.actionType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Ql({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Xl(t.prototype,n),r&&Xl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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 rc(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 ic(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,oc(r.key),r)}}function oc(e){var t=function(e,t){if("object"!=nc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=nc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nc(t)?t:t+""}function sc(e,t){return e.get(ac(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")}tc.prototype.actionType=void 0,tc.prototype.$reserved=void 0,tc.prototype.$objectType=void 0,tc.prototype.$unknownFields=void 0;var uc=new WeakMap,lc=function(){return e=function e(t){var n,r,i,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=uc),o.set(i,s),this.apiClient=t||Y.instance,n=uc,r=new Set,n.set(ac(n,this),r),sc(uc,this).add("authorization"),sc(uc,this).add("cookie"),sc(uc,this).add("host"),sc(uc,this).add("user-agent")},t=[{key:"manageAlert",value:function(e,t){var n,r=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof tc&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling manageAlert");if(null==n)throw new Error("Invalid body when calling manageAlert");var o={extId:e},s={};Object.keys(i).forEach((function(e){sc(uc,r).has(e.toLowerCase())||(s[e]=i[e])}));var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=oc(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},s);Y.addEtagReferenceToHeader(t,a);var u=zl;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/{extId}/$actions/manage-alert","POST",o,{},a,{},n,["basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return Y}}],t&&ic(e.prototype,t),n&&ic(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();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 dc(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 fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dc(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=yc(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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,yc(r.key),r)}}function yc(e){var t=function(e,t){if("object"!=cc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=cc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cc(t)?t:t+""}var hc=new WeakSet,vc=function(){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){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=hc),r.add(n),this.extId=t,this.$objectType="monitoring.v4.serviceability.EntityFilter",this.$reserved={$fv:"v4.r0.b1"},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 fc(fc({},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 ye?r=["extId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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 i in n.$unknownFields=fc({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&pc(t.prototype,n),r&&pc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();vc.prototype.extId=void 0,vc.prototype.$reserved=void 0,vc.prototype.$objectType=void 0,vc.prototype.$unknownFields=void 0;var bc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CATEGORY:"CATEGORY",CLUSTER:"CLUSTER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(bc).find((function(t){return bc[t]===e}));return null==t?bc.$UNKNOWN:bc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case bc.$UNKNOWN:case bc.$REDACTED:case bc.CATEGORY:case bc.CLUSTER:return;default:throw new Error("Invalid : must be GroupEntityType.{ $UNKNOWN|$REDACTED|CATEGORY|CLUSTER }")}}};Object.freeze(bc);const mc=bc;function gc(e){return gc="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},gc(e)}function wc(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 Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wc(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=$c(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jc(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,t){if("object"!=gc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=gc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gc(t)?t:t+""}var Tc=new WeakSet,kc=function(){function e(t,n){var r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,i=Tc),i.add(r),this.extId=t,this.type=n,this.$objectType="monitoring.v4.serviceability.GroupFilter",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=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 Oc(Oc(Oc({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getType()&&null!==this.getType()?{type: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 ye?r=["extId","type"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}return"type"!==t||void 0!==this.type&&null!==this.type?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("type","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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("type")&&null!==t.type&&void 0!==t.type&&n.setType(mc.constructFromObject(t.type)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Oc({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&jc(t.prototype,n),r&&jc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Pc(e){return Pc="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},Pc(e)}function Ec(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 Sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ec(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ac(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fc(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,Ac(r.key),r)}}function Ac(e){var t=function(e,t){if("object"!=Pc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Pc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pc(t)?t:t+""}kc.prototype.extId=void 0,kc.prototype.type=void 0,kc.prototype.$reserved=void 0,kc.prototype.$objectType=void 0,kc.prototype.$unknownFields=void 0;var Dc=new WeakSet,Ic=function(){function e(t,n){var r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,i=Dc),i.add(r),this.entityUuid=t,this.policyIds=n,this.$objectType="monitoring.v4.serviceability.RelatedPolicy",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getEntityUuid",value:function(){return this.entityUuid}},{key:"setEntityUuid",value:function(e){this.entityUuid=e}},{key:"getPolicyIds",value:function(){return this.policyIds}},{key:"setPolicyIds",value:function(e){this.policyIds=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 Sc(Sc(Sc({},void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getPolicyIds()&&null!==this.getPolicyIds()?{policyIds:this.getPolicyIds()}:{}),{},{$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 ye?r=["entityUuid","policyIds"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("entityUuid"===t){if(void 0===this.entityUuid||null===this.entityUuid)return new me("entityUuid","undefined or null");if(!Vt.validatePattern(this.entityUuid,/^[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 me("entityUuid","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"policyIds"!==t||void 0!==this.policyIds&&null!==this.policyIds?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("policyIds","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("entityUuid")&&null!==t.entityUuid&&void 0!==t.entityUuid&&n.setEntityUuid(t.entityUuid),t.hasOwnProperty("policyIds")&&null!==t.policyIds&&void 0!==t.policyIds){for(o=[],r=t.policyIds,i=0;i<r.length;i++)o.push(r[i]);n.setPolicyIds(o)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var a in n.$unknownFields=Sc({},t.$unknownFields),t)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=t[a])}return n}}],n&&Fc(t.prototype,n),r&&Fc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Cc(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 Rc(e){return Rc="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},Rc(e)}function Uc(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 xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uc(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Mc(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nc(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,Mc(r.key),r)}}function Mc(e){var t=function(e,t){if("object"!=Rc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Rc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rc(t)?t:t+""}function _c(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")}Ic.prototype.entityUuid=void 0,Ic.prototype.policyIds=void 0,Ic.prototype.$reserved=void 0,Ic.prototype.$objectType=void 0,Ic.prototype.$unknownFields=void 0;var Lc=new WeakSet,Jc=function(){function e(t,n,r){var i,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=Lc),o.add(i),this.metricName=t,this.operator=n,this.thresholdValue=r,this.$objectType="monitoring.v4.serviceability.Condition",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getMetricName",value:function(){return this.metricName}},{key:"setMetricName",value:function(e){this.metricName=e}},{key:"getOperator",value:function(){return this.operator}},{key:"setOperator",value:function(e){this.operator=e}},{key:"getThresholdValue",value:function(){return this.thresholdValue}},{key:"setThresholdValue",value:function(e){this.thresholdValue=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 xc(xc(xc(xc({},void 0!==this.getMetricName()&&null!==this.getMetricName()?{metricName:this.getMetricName()}:{}),void 0!==this.getOperator()&&null!==this.getOperator()?{operator:this.getOperator()}:{}),!1===e?void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson(!1):Array.isArray(this.getThresholdValue())?this.getThresholdValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):_c(Lc,this,Vc).call(this,this.getThresholdValue(),!1)}:{}:void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson():Array.isArray(this.getThresholdValue())?this.getThresholdValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):_c(Lc,this,Vc).call(this,this.getThresholdValue())}:{}),{},{$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 ye?r=["metricName","operator","thresholdValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("metricName"===t){if(void 0===this.metricName||null===this.metricName)return new me("metricName","undefined or null");if(!Vt.validateMaxLength(this.metricName,150))return new me("metricName","does not satisfy required maxLength constraint: 150");if(!Vt.validateMinLength(this.metricName,1))return new me("metricName","does not satisfy required minLength constraint: 1")}return"operator"!==t||void 0!==this.operator&&null!==this.operator?"thresholdValue"!==t||void 0!==this.thresholdValue&&null!==this.thresholdValue?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("thresholdValue","undefined or null"):new me("operator","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("metricName")&&null!==t.metricName&&void 0!==t.metricName&&n.setMetricName(t.metricName),t.hasOwnProperty("operator")&&null!==t.operator&&void 0!==t.operator&&n.setOperator(In.constructFromObject(t.operator)),t.hasOwnProperty("thresholdValue")&&null!==t.thresholdValue&&void 0!==t.thresholdValue)switch(r=t.thresholdValue.hasOwnProperty("$objectType")?t.thresholdValue.$objectType:Rc(t.thresholdValue)){case"monitoring.v4.common.DoubleValue":n.setThresholdValue(Wn.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.IntValue":n.setThresholdValue(Yn.constructFromObject(t.thresholdValue,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!i)for(var o in n.$unknownFields=xc({},t.$unknownFields),t)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o])}return n}}],n&&Nc(t.prototype,n),r&&Nc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Vc(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cc(e,t);var n=Object.prototype.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)?Cc(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Rc(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}Jc.prototype.metricName=void 0,Jc.prototype.operator=void 0,Jc.prototype.thresholdValue=void 0,Jc.prototype.$reserved=void 0,Jc.prototype.$objectType=void 0,Jc.prototype.$unknownFields=void 0;var Wc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WARNING:"WARNING",CRITICAL:"CRITICAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Wc).find((function(t){return Wc[t]===e}));return null==t?Wc.$UNKNOWN:Wc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Wc.$UNKNOWN:case Wc.$REDACTED:case Wc.WARNING:case Wc.CRITICAL:return;default:throw new Error("Invalid : must be PolicySeverityLevel.{ $UNKNOWN|$REDACTED|WARNING|CRITICAL }")}}};Object.freeze(Wc);const Bc=Wc;function zc(e){return zc="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},zc(e)}function Gc(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 qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gc(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Kc(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hc(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,Kc(r.key),r)}}function Kc(e){var t=function(e,t){if("object"!=zc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=zc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zc(t)?t:t+""}var Yc=new WeakSet,Qc=function(){function e(t,n,r){var i,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=Yc),o.add(i),this.conditionType=t,this.condition=n,this.severityLevel=r,this.$objectType="monitoring.v4.serviceability.TriggerCondition",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getConditionType",value:function(){return this.conditionType}},{key:"setConditionType",value:function(e){this.conditionType=e}},{key:"getCondition",value:function(){return this.condition}},{key:"setCondition",value:function(e){this.condition=e}},{key:"getSeverityLevel",value:function(){return this.severityLevel}},{key:"setSeverityLevel",value:function(e){this.severityLevel=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 qc(qc(qc(qc({},void 0!==this.getConditionType()&&null!==this.getConditionType()?{conditionType:this.getConditionType()}:{}),void 0!==this.getCondition()&&null!==this.getCondition()?{condition:this.getCondition().toJson(!1)}:{}),void 0!==this.getSeverityLevel()&&null!==this.getSeverityLevel()?{severityLevel:this.getSeverityLevel()}:{}),{},{$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 ye?r=["conditionType","condition","severityLevel"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"conditionType"!==t||void 0!==this.conditionType&&null!==this.conditionType?"condition"!==t||void 0!==this.condition&&null!==this.condition?"severityLevel"!==t||void 0!==this.severityLevel&&null!==this.severityLevel?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("severityLevel","undefined or null"):new me("condition","undefined or null"):new me("conditionType","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("conditionType")&&null!==t.conditionType&&void 0!==t.conditionType&&n.setConditionType(Rn.constructFromObject(t.conditionType)),t.hasOwnProperty("condition")&&null!==t.condition&&void 0!==t.condition&&n.setCondition(Jc.constructFromObject(t.condition)),t.hasOwnProperty("severityLevel")&&null!==t.severityLevel&&void 0!==t.severityLevel&&n.setSeverityLevel(Bc.constructFromObject(t.severityLevel)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=qc({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Hc(t.prototype,n),r&&Hc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xc(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 Zc(e){return Zc="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},Zc(e)}function ed(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 td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ed(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=rd(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nd(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,rd(r.key),r)}}function rd(e){var t=function(e,t){if("object"!=Zc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Zc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zc(t)?t:t+""}function id(e,t,n){return t=sd(t),function(e,t){if(t&&("object"===Zc(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,od()?Reflect.construct(t,n||[],sd(e).constructor):t.apply(e,n))}function od(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(od=function(){return!!e})()}function sd(e){return sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sd(e)}function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ad(e,t)}function ud(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")}Qc.prototype.conditionType=void 0,Qc.prototype.condition=void 0,Qc.prototype.severityLevel=void 0,Qc.prototype.$reserved=void 0,Qc.prototype.$objectType=void 0,Qc.prototype.$unknownFields=void 0;var ld=new WeakSet,cd=function(e){function t(e,n,r){var i,o,s;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(o=i=id(this,t),s=ld),s.add(o),i.title=e,i.triggerConditions=n,i.entityType=r,i.$objectType="monitoring.v4.serviceability.UserDefinedPolicy",i.$reserved={$fv:"v4.r0.b1"},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&&ad(e,t)}(t,e),n=t,r=[{key:"getTitle",value:function(){return this.title}},{key:"setTitle",value:function(e){this.title=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getIsAutoResolved",value:function(){return this.isAutoResolved}},{key:"setIsAutoResolved",value:function(e){this.isAutoResolved=e}},{key:"getFilters",value:function(){return this.filters}},{key:"setFilters",value:function(e){this.filters=e}},{key:"getTriggerConditions",value:function(){return this.triggerConditions}},{key:"setTriggerConditions",value:function(e){this.triggerConditions=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getCreatedBy",value:function(){return this.createdBy}},{key:"setCreatedBy",value:function(e){this.createdBy=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getIsExpectedToErrorOnConflict",value:function(){return this.isExpectedToErrorOnConflict}},{key:"setIsExpectedToErrorOnConflict",value:function(e){this.isExpectedToErrorOnConflict=e}},{key:"getPoliciesToOverride",value:function(){return this.policiesToOverride}},{key:"setPoliciesToOverride",value:function(e){this.policiesToOverride=e}},{key:"getTriggerWaitPeriod",value:function(){return this.triggerWaitPeriod}},{key:"setTriggerWaitPeriod",value:function(e){this.triggerWaitPeriod=e}},{key:"getRelatedPolicies",value:function(){return this.relatedPolicies}},{key:"setRelatedPolicies",value:function(e){this.relatedPolicies=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"toJson",value:function(e){return td(!1===e?td(td(td(td(td(td(td(td(td(td(td(td(td(td(td(td(td({},void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getFilters()&&null!==this.getFilters()?{filters:void 0!==this.getFilters().toJson?this.getFilters().toJson(!1):Array.isArray(this.getFilters())?this.getFilters().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ud(ld,this,dd).call(this,this.getFilters(),!1)}:{}),void 0!==this.getTriggerConditions()&&null!==this.getTriggerConditions()?{triggerConditions:this.getTriggerConditions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getIsExpectedToErrorOnConflict()&&null!==this.getIsExpectedToErrorOnConflict()?{isExpectedToErrorOnConflict:this.getIsExpectedToErrorOnConflict()}:{}),void 0!==this.getPoliciesToOverride()&&null!==this.getPoliciesToOverride()?{policiesToOverride:this.getPoliciesToOverride()}:{}),void 0!==this.getTriggerWaitPeriod()&&null!==this.getTriggerWaitPeriod()?{triggerWaitPeriod:this.getTriggerWaitPeriod()}:{}),void 0!==this.getRelatedPolicies()&&null!==this.getRelatedPolicies()?{relatedPolicies:this.getRelatedPolicies().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),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()}:{}):td(td(td(td(td(td(td(td(td(td(td(td(td({},void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getFilters()&&null!==this.getFilters()?{filters:void 0!==this.getFilters().toJson?this.getFilters().toJson():Array.isArray(this.getFilters())?this.getFilters().map((function(e){return void 0!==e.toJson?e.toJson():e})):ud(ld,this,dd).call(this,this.getFilters())}:{}),void 0!==this.getTriggerConditions()&&null!==this.getTriggerConditions()?{triggerConditions:this.getTriggerConditions().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getIsExpectedToErrorOnConflict()&&null!==this.getIsExpectedToErrorOnConflict()?{isExpectedToErrorOnConflict:this.getIsExpectedToErrorOnConflict()}:{}),void 0!==this.getPoliciesToOverride()&&null!==this.getPoliciesToOverride()?{policiesToOverride:this.getPoliciesToOverride()}:{}),void 0!==this.getTriggerWaitPeriod()&&null!==this.getTriggerWaitPeriod()?{triggerWaitPeriod:this.getTriggerWaitPeriod()}:{}),void 0!==this.getRelatedPolicies()&&null!==this.getRelatedPolicies()?{relatedPolicies:this.getRelatedPolicies().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),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 ye?r=["title","triggerConditions","entityType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("title"===t){if(void 0===this.title||null===this.title)return new me("title","undefined or null");if(!Vt.validateMaxLength(this.title,150))return new me("title","does not satisfy required maxLength constraint: 150");if(!Vt.validateMinLength(this.title,1))return new me("title","does not satisfy required minLength constraint: 1")}if("description"===t){if(void 0===this.description||null===this.description)return new me("description","undefined or null");if(!Vt.validateMaxLength(this.description,500))return new me("description","does not satisfy required maxLength constraint: 500")}if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new me("isEnabled","undefined or null");if("isAutoResolved"===t&&(void 0===this.isAutoResolved||null===this.isAutoResolved))return new me("isAutoResolved","undefined or null");if("filters"===t&&(void 0===this.filters||null===this.filters))return new me("filters","undefined or null");if("triggerConditions"===t){if(void 0===this.triggerConditions||null===this.triggerConditions)return new me("triggerConditions","undefined or null");if(!Vt.validateMaxItems(this.triggerConditions,4))return new me("triggerConditions","does not satisfy required maxItems constraint: 4");if(!Vt.validateMinItems(this.triggerConditions,1))return new me("triggerConditions","does not satisfy required minItems constraint: 1")}if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new me("impactTypes","undefined or null");if(!Vt.validateMaxItems(this.impactTypes,8))return new me("impactTypes","does not satisfy required maxItems constraint: 8")}if("createdBy"===t&&(void 0===this.createdBy||null===this.createdBy))return new me("createdBy","undefined or null");if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new me("lastUpdatedTime","undefined or null");if("isExpectedToErrorOnConflict"===t&&(void 0===this.isExpectedToErrorOnConflict||null===this.isExpectedToErrorOnConflict))return new me("isExpectedToErrorOnConflict","undefined or null");if("policiesToOverride"===t){if(void 0===this.policiesToOverride||null===this.policiesToOverride)return new me("policiesToOverride","undefined or null");if(!Vt.validateMaxItems(this.policiesToOverride,100))return new me("policiesToOverride","does not satisfy required maxItems constraint: 100")}if("triggerWaitPeriod"===t&&(void 0===this.triggerWaitPeriod||null===this.triggerWaitPeriod))return new me("triggerWaitPeriod","undefined or null");if("relatedPolicies"===t){if(void 0===this.relatedPolicies||null===this.relatedPolicies)return new me("relatedPolicies","undefined or null");if(!Vt.validateMaxItems(this.relatedPolicies,100))return new me("relatedPolicies","does not satisfy required maxItems constraint: 100")}if("entityType"===t){if(void 0===this.entityType||null===this.entityType)return new me("entityType","undefined or null");if(!Vt.validateMaxLength(this.entityType,10))return new me("entityType","does not satisfy required maxLength constraint: 10");if(!Vt.validateMinLength(this.entityType,1))return new me("entityType","does not satisfy required minLength constraint: 1")}return new me(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&n.setTitle(e.title),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&n.setDescription(e.description),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&n.setIsEnabled(e.isEnabled),e.hasOwnProperty("isAutoResolved")&&null!==e.isAutoResolved&&void 0!==e.isAutoResolved&&n.setIsAutoResolved(e.isAutoResolved),e.hasOwnProperty("filters")&&null!==e.filters&&void 0!==e.filters){if(!Array.isArray(e.filters))throw"Unknown datatype "+(a=e.filters.hasOwnProperty("$objectType")?e.filters.$objectType:Zc(e.filters))+" in data";if(0===e.filters.length)n.setFilters([]);else{for(s=[],a=(r=e.filters)[0].hasOwnProperty("$objectType")?r[0].$objectType:Zc(r[0]),o=0;o<r.length;o++)switch(a){case"monitoring.v4.serviceability.EntityFilter":i=vc.constructFromObject(r[o],void 0),s.push(i);break;case"monitoring.v4.serviceability.GroupFilter":i=kc.constructFromObject(r[o],void 0),s.push(i);break;default:throw"Unknown list of type "+a+" in data"}n.setFilters(s)}}if(e.hasOwnProperty("triggerConditions")&&null!==e.triggerConditions&&void 0!==e.triggerConditions){for(s=[],r=e.triggerConditions,o=0;o<r.length;o++)i=Qc.constructFromObject(r[o],void 0),s.push(i);n.setTriggerConditions(s)}if(e.hasOwnProperty("impactTypes")&&null!==e.impactTypes&&void 0!==e.impactTypes){for(s=[],r=e.impactTypes,o=0;o<r.length;o++)i=$n.constructFromObject(r[o],void 0),s.push(i);n.setImpactTypes(s)}if(e.hasOwnProperty("createdBy")&&null!==e.createdBy&&void 0!==e.createdBy&&n.setCreatedBy(e.createdBy),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&n.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("isExpectedToErrorOnConflict")&&null!==e.isExpectedToErrorOnConflict&&void 0!==e.isExpectedToErrorOnConflict&&n.setIsExpectedToErrorOnConflict(e.isExpectedToErrorOnConflict),e.hasOwnProperty("policiesToOverride")&&null!==e.policiesToOverride&&void 0!==e.policiesToOverride){for(s=[],r=e.policiesToOverride,o=0;o<r.length;o++)s.push(r[o]);n.setPoliciesToOverride(s)}if(e.hasOwnProperty("triggerWaitPeriod")&&null!==e.triggerWaitPeriod&&void 0!==e.triggerWaitPeriod&&n.setTriggerWaitPeriod(e.triggerWaitPeriod),e.hasOwnProperty("relatedPolicies")&&null!==e.relatedPolicies&&void 0!==e.relatedPolicies){for(s=[],r=e.relatedPolicies,o=0;o<r.length;o++)i=Ic.constructFromObject(r[o],void 0),s.push(i);n.setRelatedPolicies(s)}if(e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&n.setEntityType(e.entityType),!u)for(var l in n.$unknownFields=td({},e.$unknownFields),e)Object.keys(n).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(n.$unknownFields[l]=e[l])}return n}}],r&&nd(n.prototype,r),i&&nd(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function dd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xc(e,t);var n=Object.prototype.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)?Xc(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Zc(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 fd(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 pd(e){return pd="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},pd(e)}function yd(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 hd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yd(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=bd(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vd(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,bd(r.key),r)}}function bd(e){var t=function(e,t){if("object"!=pd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=pd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pd(t)?t:t+""}function md(e,t,n){return t=wd(t),function(e,t){if(t&&("object"===pd(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,gd()?Reflect.construct(t,n||[],wd(e).constructor):t.apply(e,n))}function gd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gd=function(){return!!e})()}function wd(e){return wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wd(e)}function Od(e,t){return Od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Od(e,t)}function jd(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")}cd.prototype.title=void 0,cd.prototype.description=void 0,cd.prototype.isEnabled=!1,cd.prototype.isAutoResolved=!0,cd.prototype.filters=void 0,cd.prototype.triggerConditions=void 0,cd.prototype.impactTypes=void 0,cd.prototype.createdBy=void 0,cd.prototype.lastUpdatedTime=void 0,cd.prototype.isExpectedToErrorOnConflict=!0,cd.prototype.policiesToOverride=void 0,cd.prototype.triggerWaitPeriod=void 0,cd.prototype.relatedPolicies=void 0,cd.prototype.entityType=void 0;var $d=new WeakSet,Td=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=md(this,t),r=$d),r.add(n),e.$objectType="monitoring.v4.serviceability.CreateUdaPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&Od(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 hd(hd(hd({},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})):jd($d,this,kd).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})):jd($d,this,kd).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:pd(e.data)){case"monitoring.v4.serviceability.UserDefinedPolicy":n.setData(cd.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=hd({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&vd(n.prototype,r),i&&vd(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function kd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fd(e,t);var n=Object.prototype.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)?fd(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===pd(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 Pd(e){return Pd="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},Pd(e)}function Ed(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 Sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ed(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ad(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ed(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fd(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,t){if("object"!=Pd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Pd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pd(t)?t:t+""}Td.prototype.metadata=void 0,Td.prototype.data=void 0,Td.prototype.$reserved=void 0,Td.prototype.$objectType=void 0,Td.prototype.$unknownFields=void 0;var Dd=new WeakSet,Id=function(){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){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,r=Dd),r.add(n),this.extId=t,this.$objectType="monitoring.v4.serviceability.ConflictingPolicy",this.$reserved={$fv:"v4.r0.b1"},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 Sd(Sd({},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 ye?r=["extId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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 i in n.$unknownFields=Sd({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&Fd(t.prototype,n),r&&Fd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Cd(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 Rd(e){return Rd="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},Rd(e)}function Ud(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 xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ud(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Md(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ud(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nd(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,Md(r.key),r)}}function Md(e){var t=function(e,t){if("object"!=Rd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Rd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rd(t)?t:t+""}function _d(e,t,n){return t=Jd(t),function(e,t){if(t&&("object"===Rd(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,Ld()?Reflect.construct(t,n||[],Jd(e).constructor):t.apply(e,n))}function Ld(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ld=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jd(e)}function Vd(e,t){return Vd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vd(e,t)}function Wd(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")}Id.prototype.extId=void 0,Id.prototype.$reserved=void 0,Id.prototype.$objectType=void 0,Id.prototype.$unknownFields=void 0;var Bd=new WeakSet,zd=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=_d(this,t),r=Bd),r.add(n),e.$objectType="monitoring.v4.serviceability.FindConflictingUdaPoliciesApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&Vd(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 xd(xd(xd({},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})):Wd(Bd,this,Gd).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})):Wd(Bd,this,Gd).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:Rd(r[0]),o=0;o<r.length;o++){if("monitoring.v4.serviceability.ConflictingPolicy"!==a)throw"Unknown list of type "+a+" in data";i=Id.constructFromObject(r[o],void 0),s.push(i)}n.setData(s)}else{if("monitoring.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Rd(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Nt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=xd({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&Nd(n.prototype,r),i&&Nd(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Gd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cd(e,t);var n=Object.prototype.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)?Cd(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Rd(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 qd(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 Hd(e){return Hd="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},Hd(e)}function Kd(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 Yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kd(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Xd(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qd(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,Xd(r.key),r)}}function Xd(e){var t=function(e,t){if("object"!=Hd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Hd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hd(t)?t:t+""}function Zd(e,t,n){return t=tf(t),function(e,t){if(t&&("object"===Hd(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,ef()?Reflect.construct(t,n||[],tf(e).constructor):t.apply(e,n))}function ef(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ef=function(){return!!e})()}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tf(e)}function nf(e,t){return nf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},nf(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")}zd.prototype.metadata=void 0,zd.prototype.data=void 0,zd.prototype.$reserved=void 0,zd.prototype.$objectType=void 0,zd.prototype.$unknownFields=void 0;var of=new WeakSet,sf=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Zd(this,t),r=of),r.add(n),e.$objectType="monitoring.v4.serviceability.UpdateUdaPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&nf(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 Yd(Yd(Yd({},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})):rf(of,this,af).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})):rf(of,this,af).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Hd(e.data)){case"monitoring.v4.serviceability.UserDefinedPolicy":n.setData(cd.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=Yd({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&Qd(n.prototype,r),i&&Qd(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function af(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qd(e,t);var n=Object.prototype.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)?qd(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Hd(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 uf(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 lf(e){return lf="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},lf(e)}function cf(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?cf(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=pf(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ff(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,pf(r.key),r)}}function pf(e){var t=function(e,t){if("object"!=lf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=lf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lf(t)?t:t+""}function yf(e,t,n){return t=vf(t),function(e,t){if(t&&("object"===lf(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,hf()?Reflect.construct(t,n||[],vf(e).constructor):t.apply(e,n))}function hf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hf=function(){return!!e})()}function vf(e){return vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vf(e)}function bf(e,t){return bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bf(e,t)}function mf(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")}sf.prototype.metadata=void 0,sf.prototype.data=void 0,sf.prototype.$reserved=void 0,sf.prototype.$objectType=void 0,sf.prototype.$unknownFields=void 0;var gf=new WeakSet,wf=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=yf(this,t),r=gf),r.add(n),e.$objectType="monitoring.v4.serviceability.DeleteUdaPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&bf(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})):mf(gf,this,Of).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})):mf(gf,this,Of).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&n.setData(null),r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:lf(e.data)){case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;case"":n.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=df({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&ff(n.prototype,r),i&&ff(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Of(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return uf(e,t);var n=Object.prototype.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)?uf(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===lf(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 jf(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 $f(e){return $f="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},$f(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 kf(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){var r,i,o;r=e,i=t,o=n[t],(i=Ef(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):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 Pf(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,Ef(r.key),r)}}function Ef(e){var t=function(e,t){if("object"!=$f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=$f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$f(t)?t:t+""}function Sf(e,t,n){return t=Af(t),function(e,t){if(t&&("object"===$f(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,Ff()?Reflect.construct(t,n||[],Af(e).constructor):t.apply(e,n))}function Ff(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ff=function(){return!!e})()}function Af(e){return Af=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Af(e)}function Df(e,t){return Df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Df(e,t)}function If(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")}wf.prototype.metadata=void 0,wf.prototype.data=void 0,wf.prototype.$reserved=void 0,wf.prototype.$objectType=void 0,wf.prototype.$unknownFields=void 0;var Cf=new WeakSet,Rf=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Sf(this,t),r=Cf),r.add(n),e.$objectType="monitoring.v4.serviceability.ListUdaPoliciesApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&Df(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 kf(kf(kf({},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})):If(Cf,this,Uf).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})):If(Cf,this,Uf).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)n.setData([]);else{for(s=[],a=(r=e.data)[0].hasOwnProperty("$objectType")?r[0].$objectType:$f(r[0]),o=0;o<r.length;o++){if("monitoring.v4.serviceability.UserDefinedPolicy"!==a)throw"Unknown list of type "+a+" in data";i=cd.constructFromObject(r[o],void 0),s.push(i)}n.setData(s)}else{if("monitoring.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:$f(e.data)))throw"Unknown datatype "+a+" in data";n.setData(Nt.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!u)for(var c in n.$unknownFields=kf({},e.$unknownFields),e)Object.keys(n).includes(c)||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(n.$unknownFields[c]=e[c])}return n}}],r&&Pf(n.prototype,r),i&&Pf(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Uf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jf(e,t);var n=Object.prototype.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)?jf(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===$f(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 xf(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 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 _f(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){var r,i,o;r=e,i=t,o=n[t],(i=Jf(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):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 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,t){if("object"!=Nf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Nf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nf(t)?t:t+""}function Vf(e,t,n){return t=Bf(t),function(e,t){if(t&&("object"===Nf(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,Wf()?Reflect.construct(t,n||[],Bf(e).constructor):t.apply(e,n))}function Wf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wf=function(){return!!e})()}function Bf(e){return Bf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bf(e)}function zf(e,t){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zf(e,t)}function Gf(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")}Rf.prototype.metadata=void 0,Rf.prototype.data=void 0,Rf.prototype.$reserved=void 0,Rf.prototype.$objectType=void 0,Rf.prototype.$unknownFields=void 0;var qf=new WeakSet,Hf=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Vf(this,t),r=qf),r.add(n),e.$objectType="monitoring.v4.serviceability.GetUdaPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&zf(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 _f(_f(_f({},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})):Gf(qf,this,Kf).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})):Gf(qf,this,Kf).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Nf(e.data)){case"monitoring.v4.serviceability.UserDefinedPolicy":n.setData(cd.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=_f({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&Lf(n.prototype,r),i&&Lf(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Kf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return xf(e,t);var n=Object.prototype.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)?xf(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Nf(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 Yf(e){return Yf="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},Yf(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 Xf(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){var r,i,o;r=e,i=t,o=n[t],(i=ep(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):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 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,ep(r.key),r)}}function ep(e){var t=function(e,t){if("object"!=Yf(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Yf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yf(t)?t:t+""}function tp(e,t){return e.get(np(e,t))}function np(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")}Hf.prototype.metadata=void 0,Hf.prototype.data=void 0,Hf.prototype.$reserved=void 0,Hf.prototype.$objectType=void 0,Hf.prototype.$unknownFields=void 0;var rp=new WeakMap,ip=function(){return e=function e(t){var n,r,i,o,s;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s=void 0,function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=rp),o.set(i,s),this.apiClient=t||Y.instance,n=rp,r=new Set,n.set(np(n,this),r),tp(rp,this).add("authorization"),tp(rp,this).add("cookie"),tp(rp,this).add("host"),tp(rp,this).add("user-agent")},t=[{key:"createUdaPolicy",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 cd&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createUdaPolicy");var i={};Object.keys(r).forEach((function(e){tp(rp,n).has(e.toLowerCase())||(i[e]=r[e])}));var o=Xf({},i);Y.addEtagReferenceToHeader(e,o);var s=Td;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/user-defined-policies","POST",{},{},o,{},t,["basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"deleteUdaPolicyById",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 deleteUdaPolicyById");var r={extId:e},i={};Object.keys(n).forEach((function(e){tp(rp,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=Xf({},i),s=wf;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/user-defined-policies/{extId}","DELETE",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"findConflictingUdaPolicies",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 cd&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling findConflictingUdaPolicies");var i={};Object.keys(r).forEach((function(e){tp(rp,n).has(e.toLowerCase())||(i[e]=r[e])}));var o=Xf({},i);Y.addEtagReferenceToHeader(e,o);var s=zd;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/user-defined-policies/$actions/find-conflicts","POST",{},{},o,{},t,["basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"getUdaPolicyById",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 getUdaPolicyById");var r={extId:e},i={};Object.keys(n).forEach((function(e){tp(rp,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=Xf({},i),s=Hf;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/user-defined-policies/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listUdaPolicies",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Xf(Xf(Xf(Xf(Xf({},(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}:{}),i={};Object.keys(n).forEach((function(e){tp(rp,t).has(e.toLowerCase())||(i[e]=n[e])}));var o=Xf({},i),s=Rf;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/user-defined-policies","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"updateUdaPolicyById",value:function(e,t){var n,r=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof cd&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateUdaPolicyById");if(null==n)throw new Error("Invalid body when calling updateUdaPolicyById");var o={extId:e},s={};Object.keys(i).forEach((function(e){tp(rp,r).has(e.toLowerCase())||(s[e]=i[e])}));var a=Xf({},s);Y.addEtagReferenceToHeader(t,a);var u=sf;return this.apiClient.callApi("/api/monitoring/v4.0.b1/serviceability/alerts/user-defined-policies/{extId}","PUT",o,{},a,{},n,["basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return Y}}],t&&Zf(e.prototype,t),n&&Zf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function op(e){return op="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},op(e)}function sp(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 ap(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sp(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=lp(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function up(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,lp(r.key),r)}}function lp(e){var t=function(e,t){if("object"!=op(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=op(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==op(t)?t:t+""}var cp=new WeakSet,dp=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=cp),n.add(t),this.$objectType="monitoring.v4.common.CauseAndResolution",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getCause",value:function(){return this.cause}},{key:"setCause",value:function(e){this.cause=e}},{key:"getResolution",value:function(){return this.resolution}},{key:"setResolution",value:function(e){this.resolution=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 ap(ap(ap({},void 0!==this.getCause()&&null!==this.getCause()?{cause:this.getCause()}:{}),void 0!==this.getResolution()&&null!==this.getResolution()?{resolution:this.getResolution()}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"cause"!==t||void 0!==this.cause&&null!==this.cause?"resolution"!==t||void 0!==this.resolution&&null!==this.resolution?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("resolution","undefined or null"):new me("cause","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("cause")&&null!==t.cause&&void 0!==t.cause&&n.setCause(t.cause),t.hasOwnProperty("resolution")&&null!==t.resolution&&void 0!==t.resolution&&n.setResolution(t.resolution),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ap({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&up(t.prototype,n),r&&up(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();dp.prototype.cause=void 0,dp.prototype.resolution=void 0,dp.prototype.$reserved=void 0,dp.prototype.$objectType=void 0,dp.prototype.$unknownFields=void 0;var fp={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ENABLED:"ENABLED",DISABLED:"DISABLED",NOT_SUPPORTED:"NOT_SUPPORTED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(fp).find((function(t){return fp[t]===e}));return null==t?fp.$UNKNOWN:fp[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case fp.$UNKNOWN:case fp.$REDACTED:case fp.ENABLED:case fp.DISABLED:case fp.NOT_SUPPORTED:return;default:throw new Error("Invalid : must be AutoResolve.{ $UNKNOWN|$REDACTED|ENABLED|DISABLED|NOT_SUPPORTED }")}}};Object.freeze(fp);const pp=fp;function yp(e){return yp="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},yp(e)}function hp(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 vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hp(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=mp(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bp(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,mp(r.key),r)}}function mp(e){var t=function(e,t){if("object"!=yp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=yp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yp(t)?t:t+""}var gp=new WeakSet,wp=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=gp),n.add(t),this.$objectType="monitoring.v4.serviceability.SeverityThresholdInfo",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=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 vp(vp(vp({},void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"severity"!==t||void 0!==this.severity&&null!==this.severity?"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"$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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("isEnabled","undefined or null"):new me("severity","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(n=n||new e,t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(kr.constructFromObject(t.severity)),t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&n.setIsEnabled(t.isEnabled),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=vp({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&bp(t.prototype,n),r&&bp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Op(e){return Op="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},Op(e)}function jp(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 $p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jp(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=kp(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tp(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,kp(r.key),r)}}function kp(e){var t=function(e,t){if("object"!=Op(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Op(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Op(t)?t:t+""}wp.prototype.severity=void 0,wp.prototype.isEnabled=void 0,wp.prototype.$reserved=void 0,wp.prototype.$objectType=void 0,wp.prototype.$unknownFields=void 0;var Pp=new WeakSet,Ep=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Pp),n.add(t),this.$objectType="monitoring.v4.serviceability.AlertConfigExceptionGroup",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getAutoResolve",value:function(){return this.autoResolve}},{key:"setAutoResolve",value:function(e){this.autoResolve=e}},{key:"getClusterUuids",value:function(){return this.clusterUuids}},{key:"setClusterUuids",value:function(e){this.clusterUuids=e}},{key:"getSeverityThresholdInfos",value:function(){return this.severityThresholdInfos}},{key:"setSeverityThresholdInfos",value:function(e){this.severityThresholdInfos=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 $p($p($p($p({},void 0!==this.getAutoResolve()&&null!==this.getAutoResolve()?{autoResolve:this.getAutoResolve()}:{}),void 0!==this.getClusterUuids()&&null!==this.getClusterUuids()?{clusterUuids:this.getClusterUuids()}:{}),void 0!==this.getSeverityThresholdInfos()&&null!==this.getSeverityThresholdInfos()?{severityThresholdInfos:this.getSeverityThresholdInfos().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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("autoResolve"===t&&(void 0===this.autoResolve||null===this.autoResolve))return new me("autoResolve","undefined or null");if("clusterUuids"===t){if(void 0===this.clusterUuids||null===this.clusterUuids)return new me("clusterUuids","undefined or null");if(!Vt.validateMaxItems(this.clusterUuids,100))return new me("clusterUuids","does not satisfy required maxItems constraint: 100")}if("severityThresholdInfos"===t){if(void 0===this.severityThresholdInfos||null===this.severityThresholdInfos)return new me("severityThresholdInfos","undefined or null");if(!Vt.validateMaxItems(this.severityThresholdInfos,3))return new me("severityThresholdInfos","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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("autoResolve")&&null!==t.autoResolve&&void 0!==t.autoResolve&&n.setAutoResolve(pp.constructFromObject(t.autoResolve)),t.hasOwnProperty("clusterUuids")&&null!==t.clusterUuids&&void 0!==t.clusterUuids){for(s=[],r=t.clusterUuids,o=0;o<r.length;o++)s.push(r[o]);n.setClusterUuids(s)}if(t.hasOwnProperty("severityThresholdInfos")&&null!==t.severityThresholdInfos&&void 0!==t.severityThresholdInfos){for(s=[],r=t.severityThresholdInfos,o=0;o<r.length;o++)i=wp.constructFromObject(r[o],void 0),s.push(i);n.setSeverityThresholdInfos(s)}if(t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!a)for(var u in n.$unknownFields=$p({},t.$unknownFields),t)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=t[u])}return n}}],n&&Tp(t.prototype,n),r&&Tp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Sp(e){return Sp="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},Sp(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 Ap(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){var r,i,o;r=e,i=t,o=n[t],(i=Ip(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):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){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,Ip(r.key),r)}}function Ip(e){var t=function(e,t){if("object"!=Sp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Sp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sp(t)?t:t+""}function Cp(e,t,n){return t=Up(t),function(e,t){if(t&&("object"===Sp(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,Rp()?Reflect.construct(t,n||[],Up(e).constructor):t.apply(e,n))}function Rp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rp=function(){return!!e})()}function Up(e){return Up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Up(e)}function xp(e,t){return xp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xp(e,t)}Ep.prototype.autoResolve=void 0,Ep.prototype.clusterUuids=void 0,Ep.prototype.severityThresholdInfos=void 0,Ep.prototype.$reserved=void 0,Ep.prototype.$objectType=void 0,Ep.prototype.$unknownFields=void 0;var Np=new WeakSet,Mp=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Cp(this,t),r=Np),r.add(n),e.$objectType="monitoring.v4.serviceability.AlertDb",e.$reserved={$fv:"v4.r0.b1"},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&&xp(e,t)}(t,e),n=t,r=[{key:"getProtobuf",value:function(){return this.protobuf}},{key:"setProtobuf",value:function(e){this.protobuf=e}},{key:"getIsAcknowledged",value:function(){return this.isAcknowledged}},{key:"setIsAcknowledged",value:function(e){this.isAcknowledged=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getIsAutoResolved",value:function(){return this.isAutoResolved}},{key:"setIsAutoResolved",value:function(e){this.isAutoResolved=e}},{key:"getIsResolved",value:function(){return this.isResolved}},{key:"setIsResolved",value:function(e){this.isResolved=e}},{key:"getAlertType",value:function(){return this.alertType}},{key:"setAlertType",value:function(e){this.alertType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getOriginatingClusterUUID",value:function(){return this.originatingClusterUUID}},{key:"setOriginatingClusterUUID",value:function(e){this.originatingClusterUUID=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getAcknowledgedTime",value:function(){return this.acknowledgedTime}},{key:"setAcknowledgedTime",value:function(e){this.acknowledgedTime=e}},{key:"getResolvedTime",value:function(){return this.resolvedTime}},{key:"setResolvedTime",value:function(e){this.resolvedTime=e}},{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getCluster",value:function(){return this.cluster}},{key:"setCluster",value:function(e){this.cluster=e}},{key:"getIsUserDefined",value:function(){return this.isUserDefined}},{key:"setIsUserDefined",value:function(e){this.isUserDefined=e}},{key:"getResolvedByUsername",value:function(){return this.resolvedByUsername}},{key:"setResolvedByUsername",value:function(e){this.resolvedByUsername=e}},{key:"getAcknowledgedByUsername",value:function(){return this.acknowledgedByUsername}},{key:"setAcknowledgedByUsername",value:function(e){this.acknowledgedByUsername=e}},{key:"toJson",value:function(e){return Ap(!1===e?Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap({},void 0!==this.getProtobuf()&&null!==this.getProtobuf()?{protobuf:this.getProtobuf()}:{}),void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:this.getAcknowledgedTime()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:this.getResolvedTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getCluster()&&null!==this.getCluster()?{cluster:this.getCluster()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),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()}:{}):Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap(Ap({},void 0!==this.getProtobuf()&&null!==this.getProtobuf()?{protobuf:this.getProtobuf()}:{}),void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:this.getAcknowledgedTime()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:this.getResolvedTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getCluster()&&null!==this.getCluster()?{cluster:this.getCluster()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("protobuf"===t&&(void 0===this.protobuf||null===this.protobuf))return new me("protobuf","undefined or null");if("isAcknowledged"===t&&(void 0===this.isAcknowledged||null===this.isAcknowledged))return new me("isAcknowledged","undefined or null");if("serviceName"===t&&(void 0===this.serviceName||null===this.serviceName))return new me("serviceName","undefined or null");if("severity"===t&&(void 0===this.severity||null===this.severity))return new me("severity","undefined or null");if("isAutoResolved"===t&&(void 0===this.isAutoResolved||null===this.isAutoResolved))return new me("isAutoResolved","undefined or null");if("isResolved"===t&&(void 0===this.isResolved||null===this.isResolved))return new me("isResolved","undefined or null");if("alertType"===t&&(void 0===this.alertType||null===this.alertType))return new me("alertType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new me("classifications","undefined or null");if(!Vt.validateMaxItems(this.classifications,15))return new me("classifications","does not satisfy required maxItems constraint: 15")}if("originatingClusterUUID"===t){if(void 0===this.originatingClusterUUID||null===this.originatingClusterUUID)return new me("originatingClusterUUID","undefined or null");if(!Vt.validatePattern(this.originatingClusterUUID,/^[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 me("originatingClusterUUID","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("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new me("creationTime","undefined or null");if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new me("impactTypes","undefined or null");if(!Vt.validateMaxItems(this.impactTypes,8))return new me("impactTypes","does not satisfy required maxItems constraint: 8")}if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new me("lastUpdatedTime","undefined or null");if("acknowledgedTime"===t&&(void 0===this.acknowledgedTime||null===this.acknowledgedTime))return new me("acknowledgedTime","undefined or null");if("resolvedTime"===t&&(void 0===this.resolvedTime||null===this.resolvedTime))return new me("resolvedTime","undefined or null");if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new me("sourceEntity","undefined or null");if("cluster"===t){if(void 0===this.cluster||null===this.cluster)return new me("cluster","undefined or null");if(!Vt.validateMaxItems(this.cluster,50))return new me("cluster","does not satisfy required maxItems constraint: 50")}return"isUserDefined"!==t||void 0!==this.isUserDefined&&null!==this.isUserDefined?"resolvedByUsername"!==t||void 0!==this.resolvedByUsername&&null!==this.resolvedByUsername?"acknowledgedByUsername"!==t||void 0!==this.acknowledgedByUsername&&null!==this.acknowledgedByUsername?new me(t,"no such property exists"):new me("acknowledgedByUsername","undefined or null"):new me("resolvedByUsername","undefined or null"):new me("isUserDefined","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i,o,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,an.constructFromObject(e,n,!0),e.hasOwnProperty("protobuf")&&null!==e.protobuf&&void 0!==e.protobuf&&n.setProtobuf(e.protobuf),e.hasOwnProperty("isAcknowledged")&&null!==e.isAcknowledged&&void 0!==e.isAcknowledged&&n.setIsAcknowledged(e.isAcknowledged),e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&n.setServiceName(e.serviceName),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&n.setSeverity(kr.constructFromObject(e.severity)),e.hasOwnProperty("isAutoResolved")&&null!==e.isAutoResolved&&void 0!==e.isAutoResolved&&n.setIsAutoResolved(e.isAutoResolved),e.hasOwnProperty("isResolved")&&null!==e.isResolved&&void 0!==e.isResolved&&n.setIsResolved(e.isResolved),e.hasOwnProperty("alertType")&&null!==e.alertType&&void 0!==e.alertType&&n.setAlertType(e.alertType),e.hasOwnProperty("classifications")&&null!==e.classifications&&void 0!==e.classifications){for(s=[],r=e.classifications,o=0;o<r.length;o++)s.push(r[o]);n.setClassifications(s)}if(e.hasOwnProperty("originatingClusterUUID")&&null!==e.originatingClusterUUID&&void 0!==e.originatingClusterUUID&&n.setOriginatingClusterUUID(e.originatingClusterUUID),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&n.setCreationTime(e.creationTime),e.hasOwnProperty("impactTypes")&&null!==e.impactTypes&&void 0!==e.impactTypes){for(s=[],r=e.impactTypes,o=0;o<r.length;o++)i=$n.constructFromObject(r[o],void 0),s.push(i);n.setImpactTypes(s)}if(e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&n.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("acknowledgedTime")&&null!==e.acknowledgedTime&&void 0!==e.acknowledgedTime&&n.setAcknowledgedTime(e.acknowledgedTime),e.hasOwnProperty("resolvedTime")&&null!==e.resolvedTime&&void 0!==e.resolvedTime&&n.setResolvedTime(e.resolvedTime),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&n.setSourceEntity(yn.constructFromObject(e.sourceEntity)),e.hasOwnProperty("cluster")&&null!==e.cluster&&void 0!==e.cluster){for(s=[],r=e.cluster,o=0;o<r.length;o++)s.push(r[o]);n.setCluster(s)}if(e.hasOwnProperty("isUserDefined")&&null!==e.isUserDefined&&void 0!==e.isUserDefined&&n.setIsUserDefined(e.isUserDefined),e.hasOwnProperty("resolvedByUsername")&&null!==e.resolvedByUsername&&void 0!==e.resolvedByUsername&&n.setResolvedByUsername(e.resolvedByUsername),e.hasOwnProperty("acknowledgedByUsername")&&null!==e.acknowledgedByUsername&&void 0!==e.acknowledgedByUsername&&n.setAcknowledgedByUsername(e.acknowledgedByUsername),!a)for(var u in n.$unknownFields=Ap({},e.$unknownFields),e)Object.keys(n).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(n.$unknownFields[u]=e[u])}return n}}],r&&Dp(n.prototype,r),i&&Dp(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(an);function _p(e){return _p="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},_p(e)}function Lp(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 Jp(e,t,n){return(t=Wp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vp(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,Wp(r.key),r)}}function Wp(e){var t=function(e,t){if("object"!=_p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=_p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_p(t)?t:t+""}function Bp(e,t,n){return t=Gp(t),function(e,t){if(t&&("object"===_p(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,zp()?Reflect.construct(t,n||[],Gp(e).constructor):t.apply(e,n))}function zp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zp=function(){return!!e})()}function Gp(e){return Gp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gp(e)}function qp(e,t){return qp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qp(e,t)}Mp.prototype.protobuf=void 0,Mp.prototype.isAcknowledged=void 0,Mp.prototype.serviceName=void 0,Mp.prototype.severity=void 0,Mp.prototype.isAutoResolved=void 0,Mp.prototype.isResolved=void 0,Mp.prototype.alertType=void 0,Mp.prototype.classifications=void 0,Mp.prototype.originatingClusterUUID=void 0,Mp.prototype.creationTime=void 0,Mp.prototype.impactTypes=void 0,Mp.prototype.lastUpdatedTime=void 0,Mp.prototype.acknowledgedTime=void 0,Mp.prototype.resolvedTime=void 0,Mp.prototype.sourceEntity=void 0,Mp.prototype.cluster=void 0,Mp.prototype.isUserDefined=void 0,Mp.prototype.resolvedByUsername=void 0,Mp.prototype.acknowledgedByUsername=void 0;var Hp=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),(e=Bp(this,t)).$objectType="monitoring.v4.serviceability.RootCauseAnalysisProjection",e.$reserved={$fv:"v4.r0.b1"},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&&qp(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return new me(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,xr.constructFromObject(e,n,!0),!r))for(var i in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lp(Object(n),!0).forEach((function(t){Jp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}}],r&&Vp(n.prototype,r),i&&Vp(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(xr);function Kp(e){return Kp="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},Kp(e)}function Yp(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 Qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yp(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Zp(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xp(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,Zp(r.key),r)}}function Zp(e){var t=function(e,t){if("object"!=Kp(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Kp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kp(t)?t:t+""}function ey(e,t,n){return t=ny(t),function(e,t){if(t&&("object"===Kp(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,ty()?Reflect.construct(t,n||[],ny(e).constructor):t.apply(e,n))}function ty(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ty=function(){return!!e})()}function ny(e){return ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ny(e)}function ry(e,t){return ry=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ry(e,t)}var iy=new WeakSet,oy=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=ey(this,t),r=iy),r.add(n),e.$objectType="monitoring.v4.serviceability.AlertDbProjection",e.$reserved={$fv:"v4.r0.b1"},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&&ry(e,t)}(t,e),n=t,r=[{key:"getRootCauseAnalysisProjection",value:function(){return this.rootCauseAnalysisProjection}},{key:"setRootCauseAnalysisProjection",value:function(e){this.rootCauseAnalysisProjection=e}},{key:"toJson",value:function(e){return Qp(!1===e?Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp({},void 0!==this.getRootCauseAnalysisProjection()&&null!==this.getRootCauseAnalysisProjection()?{rootCauseAnalysisProjection:this.getRootCauseAnalysisProjection().toJson(!1)}:{}),void 0!==this.getProtobuf()&&null!==this.getProtobuf()?{protobuf:this.getProtobuf()}:{}),void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:this.getAcknowledgedTime()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:this.getResolvedTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getCluster()&&null!==this.getCluster()?{cluster:this.getCluster()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),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()}:{}):Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp(Qp({},void 0!==this.getRootCauseAnalysisProjection()&&null!==this.getRootCauseAnalysisProjection()?{rootCauseAnalysisProjection:this.getRootCauseAnalysisProjection().toJson(!1)}:{}),void 0!==this.getProtobuf()&&null!==this.getProtobuf()?{protobuf:this.getProtobuf()}:{}),void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:this.getLastUpdatedTime()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:this.getAcknowledgedTime()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:this.getResolvedTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getCluster()&&null!==this.getCluster()?{cluster:this.getCluster()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return"rootCauseAnalysisProjection"!==t||void 0!==this.rootCauseAnalysisProjection&&null!==this.rootCauseAnalysisProjection?new me(t,"no such property exists"):new me("rootCauseAnalysisProjection","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Mp.constructFromObject(e,n,!0),e.hasOwnProperty("rootCauseAnalysisProjection")&&null!==e.rootCauseAnalysisProjection&&void 0!==e.rootCauseAnalysisProjection&&n.setRootCauseAnalysisProjection(Hp.constructFromObject(e.rootCauseAnalysisProjection)),!r))for(var i in n.$unknownFields=Qp({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}}],r&&Xp(n.prototype,r),i&&Xp(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Mp);function sy(e){return sy="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},sy(e)}function ay(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 uy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ay(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=cy(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ay(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ly(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,cy(r.key),r)}}function cy(e){var t=function(e,t){if("object"!=sy(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=sy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sy(t)?t:t+""}oy.prototype.rootCauseAnalysisProjection=void 0;var dy=new WeakSet,fy=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=dy),n.add(t),this.$objectType="monitoring.v4.serviceability.AuditDb",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getProtobuf",value:function(){return this.protobuf}},{key:"setProtobuf",value:function(e){this.protobuf=e}},{key:"getUserReference",value:function(){return this.userReference}},{key:"setUserReference",value:function(e){this.userReference=e}},{key:"getOperationType",value:function(){return this.operationType}},{key:"setOperationType",value:function(e){this.operationType=e}},{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getAuditType",value:function(){return this.auditType}},{key:"setAuditType",value:function(e){this.auditType=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getOperationStartTime",value:function(){return this.operationStartTime}},{key:"setOperationStartTime",value:function(e){this.operationStartTime=e}},{key:"getOperationEndTime",value:function(){return this.operationEndTime}},{key:"setOperationEndTime",value:function(e){this.operationEndTime=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=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 uy(uy(uy(uy(uy(uy(uy(uy(uy(uy(uy(uy({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getProtobuf()&&null!==this.getProtobuf()?{protobuf:this.getProtobuf()}:{}),void 0!==this.getUserReference()&&null!==this.getUserReference()?{userReference:this.getUserReference().toJson(!1)}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAuditType()&&null!==this.getAuditType()?{auditType:this.getAuditType()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getOperationStartTime()&&null!==this.getOperationStartTime()?{operationStartTime:this.getOperationStartTime()}:{}),void 0!==this.getOperationEndTime()&&null!==this.getOperationEndTime()?{operationEndTime:this.getOperationEndTime()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}if("protobuf"===t&&(void 0===this.protobuf||null===this.protobuf))return new me("protobuf","undefined or null");if("userReference"===t&&(void 0===this.userReference||null===this.userReference))return new me("userReference","undefined or null");if("operationType"===t&&(void 0===this.operationType||null===this.operationType))return new me("operationType","undefined or null");if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new me("sourceEntity","undefined or null");if("auditType"===t&&(void 0===this.auditType||null===this.auditType))return new me("auditType","undefined or null");if("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new me("creationTime","undefined or null");if("operationStartTime"===t&&(void 0===this.operationStartTime||null===this.operationStartTime))return new me("operationStartTime","undefined or null");if("operationEndTime"===t&&(void 0===this.operationEndTime||null===this.operationEndTime))return new me("operationEndTime","undefined or null");if("status"===t&&(void 0===this.status||null===this.status))return new me("status","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new me("message","undefined or null");if(!Vt.validateMaxLength(this.message,1024))return new me("message","does not satisfy required maxLength constraint: 1024")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var 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("protobuf")&&null!==t.protobuf&&void 0!==t.protobuf&&n.setProtobuf(t.protobuf),t.hasOwnProperty("userReference")&&null!==t.userReference&&void 0!==t.userReference&&n.setUserReference(Aa.constructFromObject(t.userReference)),t.hasOwnProperty("operationType")&&null!==t.operationType&&void 0!==t.operationType&&n.setOperationType(ya.constructFromObject(t.operationType)),t.hasOwnProperty("sourceEntity")&&null!==t.sourceEntity&&void 0!==t.sourceEntity&&n.setSourceEntity(Oa.constructFromObject(t.sourceEntity)),t.hasOwnProperty("auditType")&&null!==t.auditType&&void 0!==t.auditType&&n.setAuditType(t.auditType),t.hasOwnProperty("creationTime")&&null!==t.creationTime&&void 0!==t.creationTime&&n.setCreationTime(t.creationTime),t.hasOwnProperty("operationStartTime")&&null!==t.operationStartTime&&void 0!==t.operationStartTime&&n.setOperationStartTime(t.operationStartTime),t.hasOwnProperty("operationEndTime")&&null!==t.operationEndTime&&void 0!==t.operationEndTime&&n.setOperationEndTime(t.operationEndTime),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&n.setStatus($a.constructFromObject(t.status)),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=uy({},t.$unknownFields),t)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}}],n&&ly(t.prototype,n),r&&ly(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function py(e){return py="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},py(e)}function yy(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 hy(e,t,n){return(t=by(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vy(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,by(r.key),r)}}function by(e){var t=function(e,t){if("object"!=py(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=py(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==py(t)?t:t+""}function my(e,t,n){return t=wy(t),function(e,t){if(t&&("object"===py(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,gy()?Reflect.construct(t,n||[],wy(e).constructor):t.apply(e,n))}function gy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gy=function(){return!!e})()}function wy(e){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wy(e)}function Oy(e,t){return Oy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oy(e,t)}fy.prototype.extId=void 0,fy.prototype.protobuf=void 0,fy.prototype.userReference=void 0,fy.prototype.operationType=void 0,fy.prototype.sourceEntity=void 0,fy.prototype.auditType=void 0,fy.prototype.creationTime=void 0,fy.prototype.operationStartTime=void 0,fy.prototype.operationEndTime=void 0,fy.prototype.status=void 0,fy.prototype.message=void 0,fy.prototype.$reserved=void 0,fy.prototype.$objectType=void 0,fy.prototype.$unknownFields=void 0;var jy=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),(e=my(this,t)).$objectType="monitoring.v4.serviceability.AuditDbProjection",e.$reserved={$fv:"v4.r0.b1"},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&&Oy(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return new me(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,fy.constructFromObject(e,n,!0),!r))for(var i in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yy(Object(n),!0).forEach((function(t){hy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}}],r&&vy(n.prototype,r),i&&vy(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(fy);function $y(e){return $y="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},$y(e)}function Ty(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 ky(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ty(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Ey(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ty(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Py(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,Ey(r.key),r)}}function Ey(e){var t=function(e,t){if("object"!=$y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=$y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$y(t)?t:t+""}var Sy=new WeakSet,Fy=function(){function e(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=Sy),n.add(t),this.$objectType="monitoring.v4.serviceability.EventDb",this.$reserved={$fv:"v4.r0.b1"},this.$unknownFields={}}return t=e,n=[{key:"getProtobuf",value:function(){return this.protobuf}},{key:"setProtobuf",value:function(e){this.protobuf=e}},{key:"getEventType",value:function(){return this.eventType}},{key:"setEventType",value:function(e){this.eventType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=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 ky(ky(ky(ky(ky(ky(ky(ky({},void 0!==this.getProtobuf()&&null!==this.getProtobuf()?{protobuf:this.getProtobuf()}:{}),void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:this.getCreationTime()}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),{},{$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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){if("protobuf"===t&&(void 0===this.protobuf||null===this.protobuf))return new me("protobuf","undefined or null");if("eventType"===t&&(void 0===this.eventType||null===this.eventType))return new me("eventType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new me("classifications","undefined or null");if(!Vt.validateMaxItems(this.classifications,15))return new me("classifications","does not satisfy required maxItems constraint: 15")}if("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new me("creationTime","undefined or null");if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new me("sourceEntity","undefined or null");if("extId"===t){if(void 0===this.extId||null===this.extId)return new me("extId","undefined or null");if(!Vt.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 me("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}$/")}if("message"===t){if(void 0===this.message||null===this.message)return new me("message","undefined or null");if(!Vt.validateMaxLength(this.message,1024))return new me("message","does not satisfy required maxLength constraint: 1024")}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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t,n){var r,i,o,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(n=n||new e,t.hasOwnProperty("protobuf")&&null!==t.protobuf&&void 0!==t.protobuf&&n.setProtobuf(t.protobuf),t.hasOwnProperty("eventType")&&null!==t.eventType&&void 0!==t.eventType&&n.setEventType(t.eventType),t.hasOwnProperty("classifications")&&null!==t.classifications&&void 0!==t.classifications){for(o=[],r=t.classifications,i=0;i<r.length;i++)o.push(r[i]);n.setClassifications(o)}if(t.hasOwnProperty("creationTime")&&null!==t.creationTime&&void 0!==t.creationTime&&n.setCreationTime(t.creationTime),t.hasOwnProperty("sourceEntity")&&null!==t.sourceEntity&&void 0!==t.sourceEntity&&n.setSourceEntity(Du.constructFromObject(t.sourceEntity)),t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&n.setExtId(t.extId),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(t.message),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!s)for(var a in n.$unknownFields=ky({},t.$unknownFields),t)Object.keys(n).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(n.$unknownFields[a]=t[a])}return n}}],n&&Py(t.prototype,n),r&&Py(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ay(e){return Ay="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},Ay(e)}function Dy(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 Iy(e,t,n){return(t=Ry(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cy(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,Ry(r.key),r)}}function Ry(e){var t=function(e,t){if("object"!=Ay(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Ay(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ay(t)?t:t+""}function Uy(e,t,n){return t=Ny(t),function(e,t){if(t&&("object"===Ay(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,xy()?Reflect.construct(t,n||[],Ny(e).constructor):t.apply(e,n))}function xy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xy=function(){return!!e})()}function Ny(e){return Ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ny(e)}function My(e,t){return My=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},My(e,t)}Fy.prototype.protobuf=void 0,Fy.prototype.eventType=void 0,Fy.prototype.classifications=void 0,Fy.prototype.creationTime=void 0,Fy.prototype.sourceEntity=void 0,Fy.prototype.extId=void 0,Fy.prototype.message=void 0,Fy.prototype.$reserved=void 0,Fy.prototype.$objectType=void 0,Fy.prototype.$unknownFields=void 0;var _y=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),(e=Uy(this,t)).$objectType="monitoring.v4.serviceability.EventDbProjection",e.$reserved={$fv:"v4.r0.b1"},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&&My(e,t)}(t,e),n=t,r=[{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):e()}))}},{key:"validateProperty",value:function(e,t){return new me(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Fy.constructFromObject(e,n,!0),!r))for(var i in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dy(Object(n),!0).forEach((function(t){Iy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}}],r&&Cy(n.prototype,r),i&&Cy(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Fy);function Ly(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 Jy(e){return Jy="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},Jy(e)}function Vy(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 Wy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vy(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=zy(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function By(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,zy(r.key),r)}}function zy(e){var t=function(e,t){if("object"!=Jy(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=Jy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jy(t)?t:t+""}function Gy(e,t,n){return t=Hy(t),function(e,t){if(t&&("object"===Jy(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,qy()?Reflect.construct(t,n||[],Hy(e).constructor):t.apply(e,n))}function qy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qy=function(){return!!e})()}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hy(e)}function Ky(e,t){return Ky=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ky(e,t)}function Yy(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 Qy=new WeakSet,Xy=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=Gy(this,t),r=Qy),r.add(n),e.$objectType="monitoring.v4.serviceability.ManageAlertsApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&Ky(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 Wy(Wy(Wy({},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})):Yy(Qy,this,Zy).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})):Yy(Qy,this,Zy).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Jy(e.data)){case"prism.v4.config.TaskReference":n.setData(Il.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=Wy({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&By(n.prototype,r),i&&By(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Zy(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ly(e,t);var n=Object.prototype.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)?Ly(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===Jy(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 eh(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 th(e){return th="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},th(e)}function nh(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 rh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nh(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=oh(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ih(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,oh(r.key),r)}}function oh(e){var t=function(e,t){if("object"!=th(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=th(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==th(t)?t:t+""}function sh(e,t,n){return t=uh(t),function(e,t){if(t&&("object"===th(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,ah()?Reflect.construct(t,n||[],uh(e).constructor):t.apply(e,n))}function ah(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ah=function(){return!!e})()}function uh(e){return uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uh(e)}function lh(e,t){return lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lh(e,t)}function ch(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")}Xy.prototype.metadata=void 0,Xy.prototype.data=void 0,Xy.prototype.$reserved=void 0,Xy.prototype.$objectType=void 0,Xy.prototype.$unknownFields=void 0;var dh=new WeakSet,fh=function(e){function t(){var e,n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=e=sh(this,t),r=dh),r.add(n),e.$objectType="monitoring.v4.serviceability.UpdateSdaPolicyApiResponse",e.$reserved={$fv:"v4.r0.b1"},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&&lh(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 rh(rh(rh({},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})):ch(dh,this,ph).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})):ch(dh,this,ph).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 ye?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach((function(t){(o=n.validateProperty(t,e))&&i.push(o)})),new Promise((function(e,t){0!==i.length?t(o):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 me(t,"no such property exists"):new me("$unknownFields","undefined or null"):new me("$objectType","undefined or null"):new me("$reserved","undefined or null"):new me("data","undefined or null"):new me("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(n=n||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,n),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&n.setMetadata(it.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(r=e.data.hasOwnProperty("$objectType")?e.data.$objectType:th(e.data)){case"prism.v4.config.TaskReference":n.setData(Il.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":n.setData(Nt.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+r+" in data"}if(e.hasOwnProperty("$reserved")&&(n.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(n.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(n.$unknownFields=e.$unknownFields),!i)for(var o in n.$unknownFields=rh({},e.$unknownFields),e)Object.keys(n).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o])}return n}}],r&&ih(n.prototype,r),i&&ih(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function ph(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eh(e,t);var n=Object.prototype.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)?eh(e,t):void 0}}(e,t)||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.")}()}(e,2),r=n[0],i=n[1];return[r,void 0!==i.toJson?i.toJson(t):i]}))):"object"===th(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}fh.prototype.metadata=void 0,fh.prototype.data=void 0,fh.prototype.$reserved=void 0,fh.prototype.$objectType=void 0,fh.prototype.$unknownFields=void 0;const yh={ApiClient:Y,AlertsApi:Ni,AlertEmailConfigurationApi:fa,AuditsApi:Tu,EventsApi:kl,ManageAlertsApi:lc,UserDefinedPoliciesApi:ip,FQDN:So,Flag:ke,IPAddressOrFQDN:Ko,IPv4Address:Uo,IPv6Address:Vo,KVPair:Re,KVStringPair:so,Message:Be,MessageSeverity:Ne,TenantAwareModel:Kt,ApiLink:Qe,ApiResponseMetadata:it,ExternalizableAbstractModel:an,AlertEntityReference:yn,BoolValue:An,CauseAndResolution:dp,ComparisonOperator:In,ConditionType:Rn,DataType:xn,DoubleValue:Wn,EntityReference:On,ImpactType:$n,IntValue:Yn,MetricDetail:fr,OperationType:ya,Parameter:jr,Severity:kr,StringValue:rr,AppMessage:pt,ErrorResponse:Nt,SchemaValidationError:St,SchemaValidationErrorMessage:Ot,ActionType:Hl,Alert:ei,AlertActionSpec:tc,AlertConfigExceptionGroup:Ep,AlertDb:Mp,AlertDbProjection:oy,AlertEmailConfiguration:Fs,Audit:Ja,AuditDb:fy,AuditDbProjection:jy,AuditEntityReference:Oa,AutoResolve:pp,CommunicationStatus:Oo,Condition:Jc,ConflictingPolicy:Id,ConnectionStatus:Zi,CreateUdaPolicyApiResponse:Td,DeleteUdaPolicyApiResponse:wf,EmailConfigurationRule:Bi,EmailTemplate:Qi,EntityFilter:vc,Event:Vu,EventDb:Fy,EventDbProjection:_y,EventEntityReference:Du,FindConflictingUdaPoliciesApiResponse:zd,GetAlertApiResponse:Ei,GetAlertEmailConfigurationApiResponse:Vs,GetAuditApiResponse:eu,GetEventApiResponse:hl,GetUdaPolicyApiResponse:Hf,GroupEntityType:mc,GroupFilter:kc,HttpProxy:is,ListAlertsApiResponse:pi,ListAuditsApiResponse:yu,ListEventsApiResponse:tl,ListUdaPoliciesApiResponse:Rf,ManageAlertApiResponse:zl,ManageAlertsApiResponse:Xy,ParameterizedMessage:yo,PolicySeverityLevel:Bc,ProxyType:Qo,RelatedPolicy:Ic,RemoteTunnelDetails:ms,RootCauseAnalysis:xr,RootCauseAnalysisProjection:Hp,ServiceCenter:ds,SeverityThresholdInfo:wp,SeverityTrail:Wr,Status:$a,TriggerCondition:Qc,UpdateAlertEmailConfigurationApiResponse:na,UpdateSdaPolicyApiResponse:fh,UpdateUdaPolicyApiResponse:sf,UserDefinedPolicy:cd,UserReference:Aa,TaskReference:Il}})(),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.Monitoring=t())}("undefined"==typeof self?this:self,()=>(()=>{var e={19:(e,t,n)=>{"use strict";var r=n(897);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.get=function(e){return this.header[e.toLowerCase()]},i.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(this[i]=n[i]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},i.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=a,a.default=a,a.stable=d,a.stableStringify=d;var n="[...]",r="[Circular]",i=[],o=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,n,r){var a;void 0===r&&(r=s()),l(e,"",0,[],void 0,0,r);try{a=0===o.length?JSON.stringify(e,t,n):JSON.stringify(e,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var u=i.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return a}function u(e,t,n,r){var s=Object.getOwnPropertyDescriptor(r,n);void 0!==s.get?s.configurable?(Object.defineProperty(r,n,{value:e}),i.push([r,n,t,s])):o.push([t,n,e]):(r[n]=e,i.push([r,n,t]))}function l(e,i,o,s,a,c,d){var f;if(c+=1,"object"===t(e)&&null!==e){for(f=0;f<s.length;f++)if(s[f]===e)return void u(r,e,i,a);if(void 0!==d.depthLimit&&c>d.depthLimit)return void u(n,e,i,a);if(void 0!==d.edgesLimit&&o+1>d.edgesLimit)return void u(n,e,i,a);if(s.push(e),Array.isArray(e))for(f=0;f<e.length;f++)l(e[f],f,f,s,e,c,d);else{var p=Object.keys(e);for(f=0;f<p.length;f++){var y=p[f];l(e[y],y,f,s,e,c,d)}}s.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function d(e,t,n,r){void 0===r&&(r=s());var a,u=f(e,"",0,[],void 0,0,r)||e;try{a=0===o.length?JSON.stringify(u,t,n):JSON.stringify(u,p(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var l=i.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return a}function f(e,o,s,a,l,d,p){var y;if(d+=1,"object"===t(e)&&null!==e){for(y=0;y<a.length;y++)if(a[y]===e)return void u(r,e,o,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==p.depthLimit&&d>p.depthLimit)return void u(n,e,o,l);if(void 0!==p.edgesLimit&&s+1>p.edgesLimit)return void u(n,e,o,l);if(a.push(e),Array.isArray(e))for(y=0;y<e.length;y++)f(e[y],y,y,a,e,d,p);else{var h={},v=Object.keys(e).sort(c);for(y=0;y<v.length;y++){var b=v[y];f(e[b],b,y,a,e,d,p),h[b]=e[b]}if(void 0===l)return h;i.push([l,o,e]),l[o]=h}a.pop()}}function p(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(o.length>0)for(var r=0;r<o.length;r++){var i=o[r];if(i[1]===t&&i[0]===n){n=i[2],o.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 i=t.status;if(i>=500)return!0;if((i>=400||i<200)&&-1===n.indexOf(i))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 i=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),i(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 i=t.length,o=e-i;if(0!==o){if(o<0)throw new Error("Cannot have more delays than retries");for(var s=t[i-1],a=0;a<o+1;a++)t.push(s)}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 i;"undefined"!=typeof window?i=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),i=void 0):i=self;var o=n(960),s=n(340),a=n(695),u=n(388),l=n(19),c=n(619);function d(){}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 f=t=e.exports;t.Request=g,f.getXHR=function(){if(i.XMLHttpRequest&&(!i.location||"file:"!==i.location.protocol||!i.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 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={},i=e.split("&"),o=0,s=i.length;o<s;++o)-1===(n=(t=i[o]).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,i,o=e.split(/\r?\n/),s={},a=0,u=o.length;a<u;++a)-1!==(t=(n=o[a]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),i=p(n.slice(t+1)),s[r]=i);return s}(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=f("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}f.serializeObject=y,f.parseString=v,f.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"},f.serialize={"application/x-www-form-urlencoded":y,"application/json":s},f.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(m.prototype),m.prototype._parseBody=function(e){var t=f.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=f.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,")"),i=new Error(r);return i.status=this.status,i.method=t,i.url=n,i},f.Response=m,o(g.prototype),a(g.prototype),g.prototype.type=function(e){return this.set("Content-Type",f.types[e]||e),this},g.prototype.accept=function(e){return this.set("Accept",f.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 i.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||d,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=f.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 i=this._header["content-type"],o=this._serializer||f.serialize[i?i.split(";")[0]:""];!o&&b(i)&&(o=f.serialize["application/json"]),o&&(n=o(n))}for(var s in this.header)null!==this.header[s]&&Object.prototype.hasOwnProperty.call(this.header,s)&&t.setRequestHeader(s,this.header[s]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new f.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),c.prototype.del=c.prototype.delete,f.get=function(e,t,n){var r=f("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.head=function(e,t,n){var r=f("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.options=function(e,t,n){var r=f("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.del=w,f.delete=w,f.patch=function(e,t,n){var r=f("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.post=function(e,t,n){var r=f("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.put=function(e,t,n){var r=f("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 i=n(388);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.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.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},o.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 s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.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&&s.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},o.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()},o.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)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(i(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},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.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(i(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},o.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},o.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},o.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=i(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&&i(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},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.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("&")}}},o.prototype._appendQueryString=function(){console.warn("Unsupported")},o.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)}},o.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 i="win32"===process.platform,o=n(818);function s(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];i&&"."!==i&&(".."===i?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(i))}return n}function a(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 d(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",i=l.exec(r);return[n,i[1],i[2],i[3]]}function f(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 p(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}c.resolve=function(){for(var e="",t="",n=!1,r=arguments.length-1;r>=-1;r--){var i;if(r>=0?i=arguments[r]:e?(i=process.env["="+e])&&i.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(i=e+"\\"):i=process.cwd(),!o.isString(i))throw new TypeError("Arguments to path.resolve must be strings");if(i){var a=f(i),u=a.device,l=a.isUnc,c=a.isAbsolute,d=a.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=d+"\\"+t,n=c),e&&n))break}}return l&&(e=p(e)),e+(n?"\\":"")+(t=s(t.split(/[\\\/]+/),!n).join("\\"))||"."},c.normalize=function(e){var t=f(e),n=t.device,r=t.isUnc,i=t.isAbsolute,o=t.tail,a=/[\\\/]$/.test(o);return(o=s(o.split(/[\\\/]+/),!i).join("\\"))||i||(o="."),o&&a&&(o+="\\"),r&&(n=p(n)),n+(i?"\\":"")+o},c.isAbsolute=function(e){return f(e).isAbsolute},c.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!o.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(),i=a(t.split("\\")),o=a(n.split("\\")),s=a(r.split("\\")),u=Math.min(o.length,s.length),l=u,d=0;d<u;d++)if(o[d]!==s[d]){l=d;break}if(0==l)return t;var f=[];for(d=l;d<o.length;d++)f.push("..");return(f=f.concat(i.slice(l))).join("\\")},c._makeLong=function(e){if(!o.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=d(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=d(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return d(e)[3]},c.format=function(e){if(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!o.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));var n=e.dir,i=e.base||"";return n?n[n.length-1]===c.sep?n+i:n+c.sep+i:i},c.parse=function(e){if(!o.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=d(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(!o.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r[0])}return(t?"/":"")+(e=s(e.split("/"),!t).join("/"))||"."},h.normalize=function(e){var t=h.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=s(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(!o.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=a(e.split("/")),r=a(t.split("/")),i=Math.min(n.length,r.length),o=i,s=0;s<i;s++)if(n[s]!==r[s]){o=s;break}var u=[];for(s=o;s<n.length;s++)u.push("..");return(u=u.concat(r.slice(o))).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(!o.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!o.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(!o.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=i?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 i=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(a(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,s=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=o)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<o;u=r[++n])h(u)||!w(u)?s+=" "+u:s+=" "+a(u);return s},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 i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),i=!0}return e.apply(this,arguments)}};var o,s={};function a(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=a.styles[t];return n?"["+a.colors[n][0]+"m"+e+"["+a.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 i=n.inspect(r,e);return b(i)||(i=c(e,i,r)),i}var o=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(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),j(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(n);if(0===s.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 d(n)}var l,w="",k=!1,T=["{","}"];return p(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=" "+d(n)),0!==s.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,i){for(var o=[],s=0,a=t.length;s<a;++s)E(t,String(s))?o.push(f(e,t,n,r,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(f(e,t,n,r,i,!0))}),o}(e,n,r,a,s):s.map(function(t){return f(e,n,r,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]}(l,w,T)):T[0]+w+T[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),E(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=h(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(a=o?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")),m(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(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(o)&&(o=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=process.pid;s[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=a,a.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]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,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(),i=n.shift();return r&&i&&(e[r]=i),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 i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,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 i=(n=n.slice(0)).length;r<i;++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:()=>{}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.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:()=>lO});var e=n(585),t=n.n(e);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)}function o(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 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,a(r.key),r)}}function a(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(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,i=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 o(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)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 s,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}(t.links);try{for(i.s();!(r=i.n()).done;){var s=r.value;if(s.hasOwnProperty("rel")&&s.hasOwnProperty("href"))switch(s.rel){case"first":n.linkFirst=s.href;break;case"prev":n.linkPrev=s.href;break;case"next":n.linkNext=s.href;break;case"last":n.linkLast=s.href}}}catch(e){i.e(e)}finally{i.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],n&&s(t.prototype,n),r&&s(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 d(){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 f=/^(?:[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 p=[],y=0;y<256;++y)p.push((y+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(p[e[t+0]]+p[e[t+1]]+p[e[t+2]]+p[e[t+3]]+"-"+p[e[t+4]]+p[e[t+5]]+"-"+p[e[t+6]]+p[e[t+7]]+"-"+p[e[t+8]]+p[e[t+9]]+"-"+p[e[t+10]]+p[e[t+11]]+p[e[t+12]]+p[e[t+13]]+p[e[t+14]]+p[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&f.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},v=function(e,t,n){var r=(e=e||{}).random||(e.rng||d)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];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,D(r.key),r)}}function D(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 A=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 C(e){return C="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},C(e)}function I(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"!=C(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=C(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==C(t)?t:t+""}var U=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()}}}])&&I(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function x(e){return x="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},x(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 _(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){M(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 M(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 V(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"!=x(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=x(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==x(t)?t:t+""}var J=new WeakSet,W=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,J),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 _(_(_({},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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,128))return new U("name","does not satisfy required maxLength constraint: 128");if(!A.validateMinLength(this.name,3))return new U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("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 i in n.$unknownFields=_({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&V(t.prototype,n),r&&V(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function B(e){return B="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},B(e)}function z(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 G(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 q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach(function(t){K(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(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 H(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"!=B(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==B(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")}W.prototype.name=void 0,W.prototype.value=!1,W.prototype.$reserved=void 0,W.prototype.$objectType=void 0,W.prototype.$unknownFields=void 0;var Q=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,Q),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 q(q({},!1===e?void 0!==this.getMap()&&null!==this.getMap()?{map:X(Q,this,ee).call(this,this.getMap(),!1)}:{}:void 0!==this.getMap()&&null!==this.getMap()?{map:X(Q,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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("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 i in n.$unknownFields=q({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&H(t.prototype,n),r&&H(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,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return z(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)?z(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===B(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 ie(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){oe(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 oe(e,t,n){return(t=ae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(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,ae(r.key),r)}}function ae(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")}Z.prototype.map=void 0,Z.prototype.$reserved=void 0,Z.prototype.$objectType=void 0,Z.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 ie(ie(ie({},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,de).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,de).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,128))return new U("name","does not satisfy required maxLength constraint: 128");if(!A.validateMinLength(this.name,3))return new U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=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("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)a.setValue([]);else{for(o=[],s=(n=t.value)[0].hasOwnProperty("$objectType")?n[0].$objectType:ne(n[0]),i=0;i<n.length;i++)switch(s){case"string":case"integer":case"number":o.push(n[i]);break;case"common.v1.config.MapOfStringWrapper":r=Z.constructFromObject(n[i],void 0),o.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setValue(o)}else switch(s=t.value.hasOwnProperty("$objectType")?t.value.$objectType:ne(t.value)){case"string":case"boolean":case"number":a.setValue(t.value);break;case"object":a.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+s+" in data"}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!u)for(var l in a.$unknownFields=ie({},t.$unknownFields),t)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=t[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&se(t.prototype,n),r&&se(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function de(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"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 fe={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(fe).find(function(t){return fe[t]===e});return null==t?fe.$UNKNOWN:fe[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case fe.$UNKNOWN:case fe.$REDACTED:case fe.INFO:case fe.WARNING:case fe.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(fe);const pe=fe;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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("severity","undefined or null"):new U("locale","undefined or null"):new U("message","undefined or null"):new U("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(pe.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 i in n.$unknownFields=ve({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("rel","undefined or null"):new U("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 i in n.$unknownFields=ke({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);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 De(e){return De="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},De(e)}function Ae(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 Ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(n),!0).forEach(function(t){Ie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ie(e,t,n){return(t=Ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(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,Ue(r.key),r)}}function Ue(e){var t=function(e){if("object"!=De(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=De(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==De(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 xe,Ne=new WeakSet,_e=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,Ne),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 Ce(Ce(Ce(Ce(Ce(Ce({},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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new U("flags","undefined or null");if(!A.validateMaxItems(this.flags,20))return new U("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new U("links","undefined or null");if(!A.validateMaxItems(this.links,20))return new U("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new U("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new U("messages","undefined or null");if(!A.validateMaxItems(this.messages,20))return new U("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new U("extraInfo","undefined or null");if(!A.validateMaxItems(this.extraInfo,20))return new U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(o=[],n=t.flags,i=0;i<n.length;i++)r=W.constructFromObject(n[i],void 0),o.push(r);s.setFlags(o)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(o=[],n=t.links,i=0;i<n.length;i++)r=Fe.constructFromObject(n[i],void 0),o.push(r);s.setLinks(o)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&s.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(o=[],n=t.messages,i=0;i<n.length;i++)r=Oe.constructFromObject(n[i],void 0),o.push(r);s.setMessages(o)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(o=[],n=t.extraInfo,i=0;i<n.length;i++)r=ce.constructFromObject(n[i],void 0),o.push(r);s.setExtraInfo(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Ce({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Re(t.prototype,n),r&&Re(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Me(){Me=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=RegExp(e,r);return t.set(o,i||t.get(e)),Ve(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1<i.length;)o++;t[n]=e[i[o]]}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&&Ve(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var i=n.indices;i&&(i.groups=r(i,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)(>|$)/g,function(e,t,n){if(""===n)return e;var r=o[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""}))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=Be(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)})}return e[Symbol.replace].call(this,n,i)},Me.apply(this,arguments)}function Ve(e,t){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ve(e,t)}function Le(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 Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach(function(t){We(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function We(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 Be(e){return Be="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},Be(e)}function ze(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 Ge(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)?Ge(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function Ge(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 qe(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"!=Be(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Be(t)?t:t+""}function He(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(Ze(e,t))}function Qe(e,t,n){return e.set(Ze(e,t),n),n}function Ze(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.flags=void 0,_e.prototype.links=void 0,_e.prototype.totalAvailableResults=void 0,_e.prototype.messages=void 0,_e.prototype.extraInfo=void 0,_e.prototype.$reserved=void 0,_e.prototype.$objectType=void 0,_e.prototype.$unknownFields=void 0,m()(t());var et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,it=new WeakMap,ot=new WeakMap,st=new WeakMap,at=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),He(this,et,void 0),He(this,tt,void 0),He(this,nt,void 0),He(this,rt,void 0),He(this,it,void 0),He(this,ot,void 0),He(this,st,void 0),He(this,at,void 0),Qe(at,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={},Qe(it,this,3e4),Qe(ot,this,3e4),Qe(st,this,108e5),this.readTimeout=Xe(ot,this),this.connectTimeout=Xe(it,this),this.cache=!0,Qe(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,Qe(nt,this,null),this.username=null,this.password=null,Qe(rt,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,i=[{key:"verifySsl",get:function(){return Xe(rt,this)},set:function(e){this.requestAgent=e?null:new(w().Agent)({rejectUnauthorized:!1}),Qe(rt,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=j().createWriteStream(e,{flags:"a"})),Qe(nt,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&Qe(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),Qe(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 i=r+e;return i.replace(/\{([\w-]+)\}/g,function(e,r){var i;return i=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(i)})}},{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,i=ze(t.getData());try{for(i.s();!(r=i.n()).done;){var o=r.value;o.hasOwnProperty("$reserved")&&void 0!==o.get$Reserved()&&(o.get$Reserved().ETag=n)}}catch(e){i.e(e)}finally{i.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,i,o,s,a,u,l,c,d,f){var p=this,y=this.buildUrl(e,i),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 i=1e3*parseInt(r,10);this._retryDelays[this._retries]=i}}}this.oldCallback(e,t)},Ze(ut,this,yt).call(this,h,l),"GET"===r.toUpperCase()&&!1===this.cache&&(o._=(new Date).getTime()),h.query(Ze(ut,this,pt).call(this,o)),h.set(this.defaultHeaders).set(Ze(ut,this,pt).call(this,s)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==s["NTNX-Request-Id"]&&void 0!==s["NTNX-Request-Id"])){var b=v();h.set(Ze(ut,this,pt).call(this,{"NTNX-Request-Id":b}))}var m="undefined"!=typeof window&&void 0!==window.document;m||(this.downloadDestination=".",h.set(Ze(ut,this,pt).call(this,{"User-Agent":"Nutanix-monitoring-js-client/4.1.1"}))),this.requestAgent&&h.agent(this.requestAgent);var g={};g.response=Ze(ut,this,mt).call(this,this.connectTimeout,Xe(it,this)),g.deadline=Ze(ut,this,mt).call(this,this.readTimeout,Xe(ot,this)),h.timeout(g);var w=s.hasOwnProperty("Content-Type")?s["Content-Type"]:Ze(ut,this,dt).call(this,c);if(w?"multipart/form-data"!=w&&h.type(w):h.header["Content-Type"]||h.type("application/json"),Ze(ut,this,Ot).call(this,Xe(at,this).INFO,null,"Request URL :",r,y),Ze(ut,this,Ot).call(this,Xe(at,this).DEBUG,Ze(ut,this,$t),"Request Headers :",void 0===h.header?"":h.header),"application/x-www-form-urlencoded"===w)h.send(Ze(ut,this,pt).call(this,a));else if("multipart/form-data"==w){var O=Ze(ut,this,pt).call(this,a);for(var $ in O)O.hasOwnProperty($)&&(Ze(ut,this,ft).call(this,O[$])?h.attach($,O[$]):h.field($,O[$]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(Ze(ut,this,Ot).call(this,Xe(at,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(h);else{var k;try{k=n(965)}catch(e){Ze(ut,this,Ot).call(this,Xe(at,this).ERROR,null,"Error fetching steam/web")}u instanceof k.ReadableStream?u.pipeTo(new k.WritableStream({write:function(e){h.write(e)},close:function(){Ze(ut,this,Ot).call(this,Xe(at,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){Ze(ut,this,Ot).call(this,Xe(at,this).ERROR,null,"READABLE STREAM ABORTED")}})):h.send(u)}return new Promise(function(t,n){h.on("error",function(e){Ze(ut,p,Ot).call(p,Xe(at,p).DEBUG,null,"Caught the following error :",e),n(e)}).on("response",function(r){Ze(ut,p,kt).call(p,r,e,o,f,t,n)})})}u&&h.send(u)}"Blob"==typeof f?h.responseType("blob"):"String"===f&&h.responseType("string"),Ze(ut,this,wt).call(this,h),Ze(ut,this,Ot).call(this,Xe(at,this).DEBUG,null,"Request Body :",void 0===h._data?"":h._data);var T=s.hasOwnProperty("Accept")&&null!=s.Accept?s.Accept:d.join(", "),P=["application/octet-stream","application/pdf","application/zip"];return T&&h.accept(T),new Promise(function(i,s){h.buffer(!1).redirects(0).retry(p.maxRetryAttempts,p.retryInterval,[]).withCredentials(p.withCredentials).on("error",function(e){Ze(ut,p,Ot).call(p,Xe(at,p).DEBUG,null,"Caught the following error :",e)}).end(function(a,u){if(a)Ze(ut,p,Ot).call(p,Xe(at,p).DEBUG,null,"Caught error during the request!"),Ze(ut,p,Ot).call(p,Xe(at,p).ERROR,null,a),null!==a.response&&void 0!==a.response?a.data=Ze(ut,p,vt).call(p,a.response,f):a.data=Ze(ut,p,ht).call(p,a),s(a);else{Ze(ut,p,Ot).call(p,Xe(at,p).INFO,null,"Response Status :",u.status),Ze(ut,p,Ot).call(p,Xe(at,p).DEBUG,Ze(ut,p,$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){Ze(ut,p,Ot).call(p,Xe(at,p).ERROR,null,"Error fetching steam/web")}if(p.downloadDestination instanceof c.WritableStream){var d=p.downloadDestination.getWriter();try{u.on("data",function(e){d.write(e)})}catch(e){Ze(ut,p,Ot).call(p,Xe(at,p).ERROR,null,"Issue while downloading file",e)}u.on("end",function(){Ze(ut,p,Ot).call(p,Xe(at,p).INFO,null,"Finished streaming response"),d.close();var e=Ze(ut,p,vt).call(p,u,f);i({data:e,response:u})}).on("error",function(e){Ze(ut,p,Ot).call(p,Xe(at,p).ERROR,null,"Caught the following error :",e),e.data=Ze(ut,p,ht).call(p,e),s(e)})}else{var y="Incompatible downloadDestination for Browser Environment, must be WritableStream";Ze(ut,p,Ot).call(p,Xe(at,p).ERROR,null,y),s(y)}}else{var v=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",b=j().createWriteStream(v);Ze(ut,p,Tt).call(p,u,b,v,i,s,f)}else if(302==u.status){var g=p.downloadDestination+"/downloaded_file_"+Date.now()+".txt",w=p;Ze(ut,p,Ot).call(p,Xe(at,p).INFO,null,"Redirecting to :",u.headers.location);var O=t()(r,u.headers.location);O.set(h.header),u.headers.hasOwnProperty("x-redirect-token")&&(Ze(ut,p,Ot).call(p,Xe(at,p).INFO,null,"Writing X-Redirect-Token into Cookie"),O.set("Cookie",u.headers["x-redirect-token"])),O.redirects(0),O.withCredentials(p.withCredentials),O.buffer(!1);var $=j().createWriteStream(g);O.pipe($),O.on("response",function(e){Ze(ut,w,Ot).call(w,Xe(at,w).INFO,null,"Received response after redirection :",e.status),Ze(ut,w,Tt).call(w,e,$,g,i,s,f)})}else Ze(ut,p,kt).call(p,u,e,o,f,i,s)}})})}}],o=[{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 i=null;if(void 0!==t&&t.hasOwnProperty(n)&&(i=t[n]),null===i&&("string"==typeof e||e instanceof String)){var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e.match(new RegExp("".concat(o,"=([0-9]+)")));s&&(i=s[1])}return null===i&&(i=r),i}},{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"===Be(n)){var i,o;for(var s in n)if(n.hasOwnProperty(s)){i=s,o=n[s];break}var a={};for(var s in t)if(t.hasOwnProperty(s)){var u=e.convertToType(s,i),l=e.convertToType(t[s],o);a[u]=l}return a}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var i=0;i<t.length;i++)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r));else for(var o in t)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r))}}],i&&qe(r.prototype,i),o&&qe(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}();function ct(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function dt(e){for(var t=0;t<e.length;t++)if(Ze(ut,this,ct).call(this,e[t]))return e[t];return e[0]}function ft(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 pt(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];Ze(ut,this,ft).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||""),Ze(ut,n,Ot).call(n,Xe(at,n).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var i={};r.apiKeyPrefix?i[r.name]=r.apiKeyPrefix+" "+r.apiKey:i[r.name]=r.apiKey,"header"===r.in?e.set(i):e.query(i)}Ze(ut,n,Ot).call(n,Xe(at,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),Ze(ut,n,Ot).call(n,Xe(at,n).DEBUG,null,"oauth2 applied to request");break;default:throw Ze(ut,n,Ot).call(n,Xe(at,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"])){(o=new t).data=new T.Blob([e.text],{type:e.headers["content-type"]});var n=new W;n.name="hasError",n.value=!1;var r=[n],i=new _e;return i.flags=r,o.metadata=i,o}var o;return(null==(o=e.body)||"object"===Be(o)&&void 0===o.length&&!Object.keys(o).length)&&(o=e.text),xe.convertToType(o,t)}function bt(e,t,n){if(e instanceof l){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),i=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,i)}}function mt(e,t){return e<=0?e=t:e>Xe(st,this)&&(e=Xe(st,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,i=ze(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;(o=o.split(";")[0]).includes("=")&&(o.trim(),t=t.concat(o).concat(";"))}}catch(e){i.e(e)}finally{i.f()}""!==t&&(t=t.substr(0,t.length-1))}Qe(tt,this,t),Ze(ut,this,Ot).call(this,Xe(at,this).DEBUG,null,"Retained cookie :",t)}else Qe(tt,this,null)}function wt(e){null!=Xe(tt,this)&&e.set(Ze(ut,this,pt).call(this,{Cookie:Xe(tt,this)}))}function Ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if("object"===Be(e)&&"key"in e&&"value"in e&&"symbol"===Be(e.value)||(e=Xe(at,this).INFO),!Ze(ut,this,jt).call(this,e)){r=r.map(function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)});var o=r.join(" ");o=(new Date).toISOString()+" "+e.key+" - "+o,void 0!==Xe(nt,this)&&null!==Xe(nt,this)&&"function"==typeof Xe(nt,this).log?Xe(nt,this).log(o):console.log(o)}}function jt(e){return!this.debug&&e===Xe(at,this).DEBUG}function $t(e){if("object"!==Be(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,i,o){try{var s=Ze(ut,this,vt).call(this,e,r);Ze(ut,this,Ot).call(this,Xe(at,this).INFO,null,"Response Status :",e.status),Ze(ut,this,Ot).call(this,Xe(at,this).DEBUG,Ze(ut,this,$t),"Response Headers :",e.headers),Ze(ut,this,gt).call(this,e||{}),Ze(ut,this,Ot).call(this,Xe(at,this).DEBUG,null,"Response Body :",s),204==e.status&&null==s?i({data:s,response:e}):e.ok&&null!=s?(this.addEtagToReservedMap(e,s),Ze(ut,this,bt).call(this,s,t,n),i({data:s,response:e})):(Ze(ut,this,Ot).call(this,Xe(at,this).ERROR,null,s),o(Je(Je({},e.error),{},{data:s})))}catch(e){Ze(ut,this,Ot).call(this,Xe(at,this).DEBUG,null,"Caught error while processing response!"),Ze(ut,this,Ot).call(this,Xe(at,this).ERROR,null,e),e.data=Ze(ut,this,ht).call(this,e),o(e)}}function Tt(e,t,n,r,i,o){var s=this;Ze(ut,this,Ot).call(this,Xe(at,this).INFO,null,"Streaming response to : ",n);try{e.on("data",function(e){t.write(e)})}catch(e){Ze(ut,this,Ot).call(this,Xe(at,this).ERROR,null,"Issue while downloading file",e)}var a=new o,u="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){var l=e.headers["content-disposition"].match(Me(/.*filename="(.*)".*/,{filename:1})),c=k().parse(l.groups.filename);u=this.downloadDestination+"/"+c.name+"_"+Date.now()+c.ext,a.data={path:k().parse(u),$objectType:"Path"};var d=new W;d.name="hasError",d.value=!1;var f=[d],p=new _e;p.flags=f,a.metadata=p}e.on("end",function(){Ze(ut,s,Ot).call(s,Xe(at,s).INFO,null,"Finished streaming response"),0!==u.length?(Ze(ut,s,Ot).call(s,Xe(at,s).INFO,null,"Content-Disposition header found [",u,"] is final filename"),t.close(),j().renameSync(n,u),r({data:a,response:e})):(Ze(ut,s,Ot).call(s,Xe(at,s).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),r({data:a,response:e}))}),e.on("error",function(e){Ze(ut,s,Ot).call(s,Xe(at,s).ERROR,null,"Caught the following error :",e),error.data=Ze(ut,s,ht).call(s,error),i(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){Dt(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 Dt(e,t,n){return(t=Ct(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function At(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,Ct(r.key),r)}}function Ct(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 It(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")}xe=lt,lt.instance=new lt;var Rt=new WeakSet,Ut=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,Rt),this.$objectType="monitoring.v4.error.AppMessage",this.$reserved={$fv:"v4.r1"},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:It(Rt,this,xt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:It(Rt,this,xt).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("argumentsMap","undefined or null"):new U("errorGroup","undefined or null"):new U("locale","undefined or null"):new U("code","undefined or null"):new U("severity","undefined or null"):new U("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(pe.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 i in n.$unknownFields=Ft({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&At(t.prototype,n),r&&At(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"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 Nt(e){return Nt="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},Nt(e)}function _t(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach(function(t){Vt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vt(e,t,n){return(t=Jt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lt(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,Jt(r.key),r)}}function Jt(e){var t=function(e){if("object"!=Nt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nt(t)?t:t+""}Ut.prototype.message=void 0,Ut.prototype.severity=void 0,Ut.prototype.code=void 0,Ut.prototype.locale="en_US",Ut.prototype.errorGroup=void 0,Ut.prototype.argumentsMap=void 0,Ut.prototype.$reserved=void 0,Ut.prototype.$objectType=void 0,Ut.prototype.$unknownFields=void 0;var Wt=new WeakSet,Bt=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,Wt),this.$objectType="monitoring.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r1"},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 Mt(Mt(Mt(Mt({},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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("attributePath","undefined or null"):new U("message","undefined or null"):new U("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 i in n.$unknownFields=Mt({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Lt(t.prototype,n),r&&Lt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function zt(e){return zt="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},zt(e)}function Gt(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 qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach(function(t){Kt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(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 Ht(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"!=zt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zt(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")}Bt.prototype.location=void 0,Bt.prototype.message=void 0,Bt.prototype.attributePath=void 0,Bt.prototype.$reserved=void 0,Bt.prototype.$objectType=void 0,Bt.prototype.$unknownFields=void 0;var Qt=new WeakSet,Zt=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,Qt),this.$objectType="monitoring.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r1"},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 qt(qt(qt(qt(qt(qt({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Xt(Qt,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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("validationErrorMessages","undefined or null"):new U("path","undefined or null"):new U("error","undefined or null"):new U("statusCode","undefined or null"):new U("timestamp","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&s.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&s.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&s.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&s.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(o=[],n=t.validationErrorMessages,i=0;i<n.length;i++)r=Bt.constructFromObject(n[i],void 0),o.push(r);s.setValidationErrorMessages(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=qt({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ht(t.prototype,n),r&&Ht(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){sn(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 sn(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 an(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")}Zt.prototype.timestamp=void 0,Zt.prototype.statusCode=void 0,Zt.prototype.error=void 0,Zt.prototype.path=void 0,Zt.prototype.validationErrorMessages=void 0,Zt.prototype.$reserved=void 0,Zt.prototype.$objectType=void 0,Zt.prototype.$unknownFields=void 0;var cn=new WeakSet,dn=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="monitoring.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r1"},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,fn).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,fn).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("error","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)a.setError([]);else{for(o=[],s=(n=t.error)[0].hasOwnProperty("$objectType")?n[0].$objectType:nn(n[0]),i=0;i<n.length;i++){if("monitoring.v4.error.AppMessage"!==s)throw"Unknown list of type "+s+" in data";r=Ut.constructFromObject(n[i],void 0),o.push(r)}a.setError(o)}else{if("monitoring.v4.error.SchemaValidationError"!==(s=t.error.hasOwnProperty("$objectType")?t.error.$objectType:nn(t.error)))throw"Unknown datatype "+s+" in data";a.setError(Zt.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!u)for(var l in a.$unknownFields=on({},t.$unknownFields),t)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=t[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&an(t.prototype,n),r&&an(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"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 pn(e){return pn="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},pn(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"!=pn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pn(t)?t:t+""}dn.prototype.error=void 0,dn.prototype.$reserved=void 0,dn.prototype.$objectType=void 0,dn.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="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?hn(hn({},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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new U("tenantId","undefined or null");if(!A.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 U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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 i in n.$unknownFields=hn({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);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){return On="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},On(e)}function jn(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 $n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach(function(t){kn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kn(e,t,n){return(t=Pn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tn(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,Pn(r.key),r)}}function Pn(e){var t=function(e){if("object"!=On(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=On(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==On(t)?t:t+""}function En(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(En=function(){return!!e})()}function Sn(e){return Sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sn(e)}function Fn(e,t){return Fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fn(e,t)}wn.prototype.tenantId=void 0,wn.prototype.$reserved=void 0,wn.prototype.$objectType=void 0,wn.prototype.$unknownFields=void 0;var Dn=new WeakSet,An=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=Sn(t),function(e,t){if(t&&("object"==On(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,En()?Reflect.construct(t,n||[],Sn(e).constructor):t.apply(e,n))}(this,t),Dn),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&&Fn(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?$n($n($n($n({},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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(null==e){if(!A.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 U("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&&!A.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 U("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 U("links","undefined or null");if(!A.validateMaxItems(this.links,20))return new U("links","does not satisfy required maxItems constraint: 20")}return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,wn.constructFromObject(e,s,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&s.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(o=[],n=e.links,i=0;i<n.length;i++)r=Fe.constructFromObject(n[i],void 0),o.push(r);s.setLinks(o)}if(!a)for(var u in s.$unknownFields=$n({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Tn(n.prototype,r),i&&Tn(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(wn);function Cn(e){return Cn="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},Cn(e)}function In(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 Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?In(Object(n),!0).forEach(function(t){Un(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Un(e,t,n){return(t=Nn(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,Nn(r.key),r)}}function Nn(e){var t=function(e){if("object"!=Cn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cn(t)?t:t+""}An.prototype.extId=void 0,An.prototype.links=void 0,wn.prototype.tenantId=void 0;var _n=new WeakSet,Mn=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,_n),this.$objectType="monitoring.v4.common.AlertEntityReference",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{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 Rn(Rn(Rn(Rn({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new U("type","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),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 i in n.$unknownFields=Rn({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);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 Vn(e){return Vn="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},Vn(e)}function Ln(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 Jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach(function(t){Wn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wn(e,t,n){return(t=zn(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,zn(r.key),r)}}function zn(e){var t=function(e){if("object"!=Vn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vn(t)?t:t+""}Mn.prototype.type=void 0,Mn.prototype.name=void 0,Mn.prototype.extId=void 0,Mn.prototype.$reserved=void 0,Mn.prototype.$objectType=void 0,Mn.prototype.$unknownFields=void 0;var Gn=new WeakSet,qn=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="monitoring.v4.common.EntityReference",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{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 Jn(Jn(Jn(Jn({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new U("type","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),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 i in n.$unknownFields=Jn({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);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}();qn.prototype.type=void 0,qn.prototype.name=void 0,qn.prototype.extId=void 0,qn.prototype.$reserved=void 0,qn.prototype.$objectType=void 0,qn.prototype.$unknownFields=void 0;var Kn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",AVAILABILITY:"AVAILABILITY",CAPACITY:"CAPACITY",CONFIGURATION:"CONFIGURATION",PERFORMANCE:"PERFORMANCE",SYSTEM_INDICATOR:"SYSTEM_INDICATOR",CPU_CAPACITY:"CPU_CAPACITY",MEMORY_CAPACITY:"MEMORY_CAPACITY",STORAGE_CAPACITY:"STORAGE_CAPACITY",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Kn).find(function(t){return Kn[t]===e});return null==t?Kn.$UNKNOWN:Kn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Kn.$UNKNOWN:case Kn.$REDACTED:case Kn.AVAILABILITY:case Kn.CAPACITY:case Kn.CONFIGURATION:case Kn.PERFORMANCE:case Kn.SYSTEM_INDICATOR:case Kn.CPU_CAPACITY:case Kn.MEMORY_CAPACITY:case Kn.STORAGE_CAPACITY:return;default:throw new Error("Invalid : must be ImpactType.{ $UNKNOWN|$REDACTED|AVAILABILITY|CAPACITY|CONFIGURATION|PERFORMANCE|SYSTEM_INDICATOR|CPU_CAPACITY|MEMORY_CAPACITY|STORAGE_CAPACITY }")}}};Object.freeze(Kn);const Hn=Kn;function Yn(e){return Yn="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},Yn(e)}function Xn(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 Qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xn(Object(n),!0).forEach(function(t){Zn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zn(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 er(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"!=Yn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yn(t)?t:t+""}var nr=new WeakSet,rr=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,nr),this.boolValue=t,this.$objectType="monitoring.v4.common.BoolValue",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getBoolValue",value:function(){return this.boolValue}},{key:"setBoolValue",value:function(e){this.boolValue=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 Qn(Qn({},void 0!==this.getBoolValue()&&null!==this.getBoolValue()?{boolValue:this.getBoolValue()}:{}),{},{$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=["boolValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"boolValue"!==t||void 0!==this.boolValue&&null!==this.boolValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("boolValue","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("boolValue")&&null!==t.boolValue&&void 0!==t.boolValue&&n.setBoolValue(t.boolValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Qn({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&er(t.prototype,n),r&&er(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();rr.prototype.boolValue=void 0,rr.prototype.$reserved=void 0,rr.prototype.$objectType=void 0,rr.prototype.$unknownFields=void 0;var ir={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",EQUAL_TO:"EQUAL_TO",GREATER_THAN:"GREATER_THAN",GREATER_THAN_OR_EQUAL_TO:"GREATER_THAN_OR_EQUAL_TO",LESS_THAN:"LESS_THAN",LESS_THAN_OR_EQUAL_TO:"LESS_THAN_OR_EQUAL_TO",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ir).find(function(t){return ir[t]===e});return null==t?ir.$UNKNOWN:ir[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ir.$UNKNOWN:case ir.$REDACTED:case ir.EQUAL_TO:case ir.GREATER_THAN:case ir.GREATER_THAN_OR_EQUAL_TO:case ir.LESS_THAN:case ir.LESS_THAN_OR_EQUAL_TO:return;default:throw new Error("Invalid : must be ComparisonOperator.{ $UNKNOWN|$REDACTED|EQUAL_TO|GREATER_THAN|GREATER_THAN_OR_EQUAL_TO|LESS_THAN|LESS_THAN_OR_EQUAL_TO }")}}};Object.freeze(ir);const or=ir;var sr={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",STATIC_THRESHOLD:"STATIC_THRESHOLD",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.STATIC_THRESHOLD:return;default:throw new Error("Invalid : must be ConditionType.{ $UNKNOWN|$REDACTED|STATIC_THRESHOLD }")}}};Object.freeze(sr);const ar=sr;var ur={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",STRING:"STRING",BOOLEAN:"BOOLEAN",DOUBLE:"DOUBLE",LONG:"LONG",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ur).find(function(t){return ur[t]===e});return null==t?ur.$UNKNOWN:ur[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ur.$UNKNOWN:case ur.$REDACTED:case ur.STRING:case ur.BOOLEAN:case ur.DOUBLE:case ur.LONG:return;default:throw new Error("Invalid : must be DataType.{ $UNKNOWN|$REDACTED|STRING|BOOLEAN|DOUBLE|LONG }")}}};Object.freeze(ur);const lr=ur;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 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 fr(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){pr(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 pr(e,t,n){return(t=hr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yr(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,hr(r.key),r)}}function hr(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+""}var vr=new WeakSet,br=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,vr),this.doubleValue=t,this.$objectType="monitoring.v4.common.DoubleValue",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getDoubleValue",value:function(){return this.doubleValue}},{key:"setDoubleValue",value:function(e){this.doubleValue=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 fr(fr({},void 0!==this.getDoubleValue()&&null!==this.getDoubleValue()?{doubleValue:this.getDoubleValue()}:{}),{},{$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=["doubleValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"doubleValue"!==t||void 0!==this.doubleValue&&null!==this.doubleValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("doubleValue","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("doubleValue")&&null!==t.doubleValue&&void 0!==t.doubleValue&&n.setDoubleValue(t.doubleValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=fr({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&yr(t.prototype,n),r&&yr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function mr(e){return mr="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},mr(e)}function gr(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?gr(Object(n),!0).forEach(function(t){Or(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Or(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 jr(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"!=mr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mr(t)?t:t+""}br.prototype.doubleValue=void 0,br.prototype.$reserved=void 0,br.prototype.$objectType=void 0,br.prototype.$unknownFields=void 0;var kr=new WeakSet,Tr=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,kr),this.intValue=t,this.$objectType="monitoring.v4.common.IntValue",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getIntValue",value:function(){return this.intValue}},{key:"setIntValue",value:function(e){this.intValue=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({},void 0!==this.getIntValue()&&null!==this.getIntValue()?{intValue:this.getIntValue()}:{}),{},{$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=["intValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"intValue"!==t||void 0!==this.intValue&&null!==this.intValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("intValue","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("intValue")&&null!==t.intValue&&void 0!==t.intValue&&n.setIntValue(t.intValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=wr({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&jr(t.prototype,n),r&&jr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 Er(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 Sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Er(Object(n),!0).forEach(function(t){Fr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Er(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fr(e,t,n){return(t=Ar(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dr(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,Ar(r.key),r)}}function Ar(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+""}Tr.prototype.intValue=void 0,Tr.prototype.$reserved=void 0,Tr.prototype.$objectType=void 0,Tr.prototype.$unknownFields=void 0;var Cr=new WeakSet,Ir=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,Cr),this.stringValue=t,this.$objectType="monitoring.v4.common.StringValue",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getStringValue",value:function(){return this.stringValue}},{key:"setStringValue",value:function(e){this.stringValue=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 Sr(Sr({},void 0!==this.getStringValue()&&null!==this.getStringValue()?{stringValue:this.getStringValue()}:{}),{},{$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=["stringValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"stringValue"!==t||void 0!==this.stringValue&&null!==this.stringValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("stringValue","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("stringValue")&&null!==t.stringValue&&void 0!==t.stringValue&&n.setStringValue(t.stringValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Sr({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Dr(t.prototype,n),r&&Dr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Rr(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 Ur(e){return Ur="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},Ur(e)}function xr(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 Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xr(Object(n),!0).forEach(function(t){_r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _r(e,t,n){return(t=Vr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mr(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,Vr(r.key),r)}}function Vr(e){var t=function(e){if("object"!=Ur(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ur(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ur(t)?t:t+""}function Lr(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")}Ir.prototype.stringValue=void 0,Ir.prototype.$reserved=void 0,Ir.prototype.$objectType=void 0,Ir.prototype.$unknownFields=void 0;var Jr=new WeakSet,Wr=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,Jr),this.$objectType="monitoring.v4.common.MetricDetail",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getMetricName",value:function(){return this.metricName}},{key:"setMetricName",value:function(e){this.metricName=e}},{key:"getMetricDisplayName",value:function(){return this.metricDisplayName}},{key:"setMetricDisplayName",value:function(e){this.metricDisplayName=e}},{key:"getUnit",value:function(){return this.unit}},{key:"setUnit",value:function(e){this.unit=e}},{key:"getTriggerWaitTimeSeconds",value:function(){return this.triggerWaitTimeSeconds}},{key:"setTriggerWaitTimeSeconds",value:function(e){this.triggerWaitTimeSeconds=e}},{key:"getTriggerTime",value:function(){return this.triggerTime}},{key:"setTriggerTime",value:function(e){this.triggerTime=e}},{key:"getComparisonOperator",value:function(){return this.comparisonOperator}},{key:"setComparisonOperator",value:function(e){this.comparisonOperator=e}},{key:"getConditionType",value:function(){return this.conditionType}},{key:"setConditionType",value:function(e){this.conditionType=e}},{key:"getMetricCategory",value:function(){return this.metricCategory}},{key:"setMetricCategory",value:function(e){this.metricCategory=e}},{key:"getDataType",value:function(){return this.dataType}},{key:"setDataType",value:function(e){this.dataType=e}},{key:"getThresholdValue",value:function(){return this.thresholdValue}},{key:"setThresholdValue",value:function(e){this.thresholdValue=e}},{key:"getMetricValue",value:function(){return this.metricValue}},{key:"setMetricValue",value:function(e){this.metricValue=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 Nr(!1===e?Nr(Nr(Nr(Nr(Nr(Nr(Nr(Nr(Nr(Nr(Nr({},void 0!==this.getMetricName()&&null!==this.getMetricName()?{metricName:this.getMetricName()}:{}),void 0!==this.getMetricDisplayName()&&null!==this.getMetricDisplayName()?{metricDisplayName:this.getMetricDisplayName()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),void 0!==this.getTriggerWaitTimeSeconds()&&null!==this.getTriggerWaitTimeSeconds()?{triggerWaitTimeSeconds:this.getTriggerWaitTimeSeconds()}:{}),void 0!==this.getTriggerTime()&&null!==this.getTriggerTime()?{triggerTime:Lr(Jr,this,zr).call(this,this.getTriggerTime(),!1)}:{}),void 0!==this.getComparisonOperator()&&null!==this.getComparisonOperator()?{comparisonOperator:this.getComparisonOperator()}:{}),void 0!==this.getConditionType()&&null!==this.getConditionType()?{conditionType:this.getConditionType()}:{}),void 0!==this.getMetricCategory()&&null!==this.getMetricCategory()?{metricCategory:this.getMetricCategory()}:{}),void 0!==this.getDataType()&&null!==this.getDataType()?{dataType:this.getDataType()}:{}),void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson(!1):Array.isArray(this.getThresholdValue())?this.getThresholdValue().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Lr(Jr,this,Br).call(this,this.getThresholdValue(),!1)}:{}),void 0!==this.getMetricValue()&&null!==this.getMetricValue()?{metricValue:void 0!==this.getMetricValue().toJson?this.getMetricValue().toJson(!1):Array.isArray(this.getMetricValue())?this.getMetricValue().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Lr(Jr,this,Br).call(this,this.getMetricValue(),!1)}:{}):Nr(Nr(Nr(Nr(Nr(Nr(Nr(Nr(Nr(Nr(Nr({},void 0!==this.getMetricName()&&null!==this.getMetricName()?{metricName:this.getMetricName()}:{}),void 0!==this.getMetricDisplayName()&&null!==this.getMetricDisplayName()?{metricDisplayName:this.getMetricDisplayName()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),void 0!==this.getTriggerWaitTimeSeconds()&&null!==this.getTriggerWaitTimeSeconds()?{triggerWaitTimeSeconds:this.getTriggerWaitTimeSeconds()}:{}),void 0!==this.getTriggerTime()&&null!==this.getTriggerTime()?{triggerTime:Lr(Jr,this,zr).call(this,this.getTriggerTime(),!1)}:{}),void 0!==this.getComparisonOperator()&&null!==this.getComparisonOperator()?{comparisonOperator:this.getComparisonOperator()}:{}),void 0!==this.getConditionType()&&null!==this.getConditionType()?{conditionType:this.getConditionType()}:{}),void 0!==this.getMetricCategory()&&null!==this.getMetricCategory()?{metricCategory:this.getMetricCategory()}:{}),void 0!==this.getDataType()&&null!==this.getDataType()?{dataType:this.getDataType()}:{}),void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson():Array.isArray(this.getThresholdValue())?this.getThresholdValue().map(function(e){return void 0!==e.toJson?e.toJson():e}):Lr(Jr,this,Br).call(this,this.getThresholdValue())}:{}),void 0!==this.getMetricValue()&&null!==this.getMetricValue()?{metricValue:void 0!==this.getMetricValue().toJson?this.getMetricValue().toJson():Array.isArray(this.getMetricValue())?this.getMetricValue().map(function(e){return void 0!==e.toJson?e.toJson():e}):Lr(Jr,this,Br).call(this,this.getMetricValue())}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("metricName"===t){if(void 0===this.metricName||null===this.metricName)return new U("metricName","undefined or null");if(!A.validateMaxLength(this.metricName,1e3))return new U("metricName","does not satisfy required maxLength constraint: 1000")}if("metricDisplayName"===t){if(void 0===this.metricDisplayName||null===this.metricDisplayName)return new U("metricDisplayName","undefined or null");if(!A.validateMaxLength(this.metricDisplayName,1e3))return new U("metricDisplayName","does not satisfy required maxLength constraint: 1000")}return"unit"!==t||void 0!==this.unit&&null!==this.unit?"triggerWaitTimeSeconds"!==t||void 0!==this.triggerWaitTimeSeconds&&null!==this.triggerWaitTimeSeconds?"triggerTime"!==t||void 0!==this.triggerTime&&null!==this.triggerTime?"comparisonOperator"!==t||void 0!==this.comparisonOperator&&null!==this.comparisonOperator?"conditionType"!==t||void 0!==this.conditionType&&null!==this.conditionType?"metricCategory"!==t||void 0!==this.metricCategory&&null!==this.metricCategory?"dataType"!==t||void 0!==this.dataType&&null!==this.dataType?"thresholdValue"!==t||void 0!==this.thresholdValue&&null!==this.thresholdValue?"metricValue"!==t||void 0!==this.metricValue&&null!==this.metricValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("metricValue","undefined or null"):new U("thresholdValue","undefined or null"):new U("dataType","undefined or null"):new U("metricCategory","undefined or null"):new U("conditionType","undefined or null"):new U("comparisonOperator","undefined or null"):new U("triggerTime","undefined or null"):new U("triggerWaitTimeSeconds","undefined or null"):new U("unit","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("metricName")&&null!==t.metricName&&void 0!==t.metricName&&r.setMetricName(t.metricName),t.hasOwnProperty("metricDisplayName")&&null!==t.metricDisplayName&&void 0!==t.metricDisplayName&&r.setMetricDisplayName(t.metricDisplayName),t.hasOwnProperty("unit")&&null!==t.unit&&void 0!==t.unit&&r.setUnit(t.unit),t.hasOwnProperty("triggerWaitTimeSeconds")&&null!==t.triggerWaitTimeSeconds&&void 0!==t.triggerWaitTimeSeconds&&r.setTriggerWaitTimeSeconds(t.triggerWaitTimeSeconds),t.hasOwnProperty("triggerTime")&&null!==t.triggerTime&&void 0!==t.triggerTime&&r.setTriggerTime(t.triggerTime),t.hasOwnProperty("comparisonOperator")&&null!==t.comparisonOperator&&void 0!==t.comparisonOperator&&r.setComparisonOperator(or.constructFromObject(t.comparisonOperator)),t.hasOwnProperty("conditionType")&&null!==t.conditionType&&void 0!==t.conditionType&&r.setConditionType(ar.constructFromObject(t.conditionType)),t.hasOwnProperty("metricCategory")&&null!==t.metricCategory&&void 0!==t.metricCategory&&r.setMetricCategory(t.metricCategory),t.hasOwnProperty("dataType")&&null!==t.dataType&&void 0!==t.dataType&&r.setDataType(lr.constructFromObject(t.dataType)),t.hasOwnProperty("thresholdValue")&&null!==t.thresholdValue&&void 0!==t.thresholdValue)switch(n=t.thresholdValue.hasOwnProperty("$objectType")?t.thresholdValue.$objectType:Ur(t.thresholdValue)){case"monitoring.v4.common.StringValue":r.setThresholdValue(Ir.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.BoolValue":r.setThresholdValue(rr.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.DoubleValue":r.setThresholdValue(br.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.IntValue":r.setThresholdValue(Tr.constructFromObject(t.thresholdValue,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("metricValue")&&null!==t.metricValue&&void 0!==t.metricValue)switch(n=t.metricValue.hasOwnProperty("$objectType")?t.metricValue.$objectType:Ur(t.metricValue)){case"monitoring.v4.common.StringValue":r.setMetricValue(Ir.constructFromObject(t.metricValue,void 0));break;case"monitoring.v4.common.BoolValue":r.setMetricValue(rr.constructFromObject(t.metricValue,void 0));break;case"monitoring.v4.common.DoubleValue":r.setMetricValue(br.constructFromObject(t.metricValue,void 0));break;case"monitoring.v4.common.IntValue":r.setMetricValue(Tr.constructFromObject(t.metricValue,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),!i)for(var o in r.$unknownFields=Nr({},t.$unknownFields),t)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Mr(t.prototype,n),r&&Mr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Br(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Rr(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)?Rr(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Ur(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 zr(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Gr(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 qr(e){return qr="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},qr(e)}function Kr(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 Hr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kr(Object(n),!0).forEach(function(t){Yr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yr(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 Xr(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"!=qr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qr(t)?t:t+""}function Zr(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")}Wr.prototype.metricName=void 0,Wr.prototype.metricDisplayName=void 0,Wr.prototype.unit=void 0,Wr.prototype.triggerWaitTimeSeconds=void 0,Wr.prototype.triggerTime=void 0,Wr.prototype.comparisonOperator=void 0,Wr.prototype.conditionType=void 0,Wr.prototype.metricCategory=void 0,Wr.prototype.dataType=void 0,Wr.prototype.thresholdValue=void 0,Wr.prototype.metricValue=void 0,Wr.prototype.$reserved=void 0,Wr.prototype.$objectType=void 0,Wr.prototype.$unknownFields=void 0;var ei=new WeakSet,ti=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,ei),this.$objectType="monitoring.v4.common.Parameter",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getParamName",value:function(){return this.paramName}},{key:"setParamName",value:function(e){this.paramName=e}},{key:"getParamValue",value:function(){return this.paramValue}},{key:"setParamValue",value:function(e){this.paramValue=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 Hr(Hr(Hr({},void 0!==this.getParamName()&&null!==this.getParamName()?{paramName:this.getParamName()}:{}),!1===e?void 0!==this.getParamValue()&&null!==this.getParamValue()?{paramValue:void 0!==this.getParamValue().toJson?this.getParamValue().toJson(!1):Array.isArray(this.getParamValue())?this.getParamValue().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Zr(ei,this,ni).call(this,this.getParamValue(),!1)}:{}:void 0!==this.getParamValue()&&null!==this.getParamValue()?{paramValue:void 0!==this.getParamValue().toJson?this.getParamValue().toJson():Array.isArray(this.getParamValue())?this.getParamValue().map(function(e){return void 0!==e.toJson?e.toJson():e}):Zr(ei,this,ni).call(this,this.getParamValue())}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("paramName"===t){if(void 0===this.paramName||null===this.paramName)return new U("paramName","undefined or null");if(!A.validateMaxLength(this.paramName,100))return new U("paramName","does not satisfy required maxLength constraint: 100")}return"paramValue"!==t||void 0!==this.paramValue&&null!==this.paramValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("paramValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("paramName")&&null!==t.paramName&&void 0!==t.paramName&&r.setParamName(t.paramName),t.hasOwnProperty("paramValue")&&null!==t.paramValue&&void 0!==t.paramValue)switch(n=t.paramValue.hasOwnProperty("$objectType")?t.paramValue.$objectType:qr(t.paramValue)){case"monitoring.v4.common.StringValue":r.setParamValue(Ir.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.common.BoolValue":r.setParamValue(rr.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.common.IntValue":r.setParamValue(Tr.constructFromObject(t.paramValue,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),!i)for(var o in r.$unknownFields=Hr({},t.$unknownFields),t)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Xr(t.prototype,n),r&&Xr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ni(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Gr(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)?Gr(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===qr(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}ti.prototype.paramName=void 0,ti.prototype.paramValue=void 0,ti.prototype.$reserved=void 0,ti.prototype.$objectType=void 0,ti.prototype.$unknownFields=void 0;var ri={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",CRITICAL:"CRITICAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ri).find(function(t){return ri[t]===e});return null==t?ri.$UNKNOWN:ri[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ri.$UNKNOWN:case ri.$REDACTED:case ri.INFO:case ri.WARNING:case ri.CRITICAL:return;default:throw new Error("Invalid : must be Severity.{ $UNKNOWN|$REDACTED|INFO|WARNING|CRITICAL }")}}};Object.freeze(ri);const ii=ri;function oi(e){return oi="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},oi(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 ai(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){ui(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 ui(e,t,n){return(t=ci(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,ci(r.key),r)}}function ci(e){var t=function(e){if("object"!=oi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oi(t)?t:t+""}var di=new WeakSet,fi=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,di),this.$objectType="monitoring.v4.serviceability.RootCauseAnalysis",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCause",value:function(){return this.cause}},{key:"setCause",value:function(e){this.cause=e}},{key:"getResolution",value:function(){return this.resolution}},{key:"setResolution",value:function(e){this.resolution=e}},{key:"getDetail",value:function(){return this.detail}},{key:"setDetail",value:function(e){this.detail=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 ai(ai(ai(ai({},void 0!==this.getCause()&&null!==this.getCause()?{cause:this.getCause()}:{}),void 0!==this.getResolution()&&null!==this.getResolution()?{resolution:this.getResolution()}:{}),void 0!==this.getDetail()&&null!==this.getDetail()?{detail:this.getDetail()}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"cause"!==t||void 0!==this.cause&&null!==this.cause?"resolution"!==t||void 0!==this.resolution&&null!==this.resolution?"detail"!==t||void 0!==this.detail&&null!==this.detail?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("detail","undefined or null"):new U("resolution","undefined or null"):new U("cause","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("cause")&&null!==t.cause&&void 0!==t.cause&&n.setCause(t.cause),t.hasOwnProperty("resolution")&&null!==t.resolution&&void 0!==t.resolution&&n.setResolution(t.resolution),t.hasOwnProperty("detail")&&null!==t.detail&&void 0!==t.detail&&n.setDetail(t.detail),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ai({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&li(t.prototype,n),r&&li(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function pi(e){return pi="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},pi(e)}function yi(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 hi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yi(Object(n),!0).forEach(function(t){vi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vi(e,t,n){return(t=mi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bi(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,mi(r.key),r)}}function mi(e){var t=function(e){if("object"!=pi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pi(t)?t:t+""}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")}fi.prototype.cause=void 0,fi.prototype.resolution=void 0,fi.prototype.detail=void 0,fi.prototype.$reserved=void 0,fi.prototype.$objectType=void 0,fi.prototype.$unknownFields=void 0;var wi=new WeakSet,Oi=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,wi),this.$objectType="monitoring.v4.serviceability.SeverityTrail",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getSeverityChangeTime",value:function(){return this.severityChangeTime}},{key:"setSeverityChangeTime",value:function(e){this.severityChangeTime=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 hi(hi(hi({},void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getSeverityChangeTime()&&null!==this.getSeverityChangeTime()?{severityChangeTime:gi(wi,this,ji).call(this,this.getSeverityChangeTime(),!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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"severity"!==t||void 0!==this.severity&&null!==this.severity?"severityChangeTime"!==t||void 0!==this.severityChangeTime&&null!==this.severityChangeTime?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("severityChangeTime","undefined or null"):new U("severity","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("severity")&&null!==t.severity&&void 0!==t.severity&&n.setSeverity(ii.constructFromObject(t.severity)),t.hasOwnProperty("severityChangeTime")&&null!==t.severityChangeTime&&void 0!==t.severityChangeTime&&n.setSeverityChangeTime(t.severityChangeTime),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=hi({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&bi(t.prototype,n),r&&bi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ji(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}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)}function ki(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 Ti(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ki(Object(n),!0).forEach(function(t){Pi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pi(e,t,n){return(t=Si(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,Si(r.key),r)}}function Si(e){var t=function(e){if("object"!=$i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$i(t)?t:t+""}function Fi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Fi=function(){return!!e})()}function Di(e){return Di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Di(e)}function Ai(e,t){return Ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ai(e,t)}function Ci(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.severity=void 0,Oi.prototype.severityChangeTime=void 0,Oi.prototype.$reserved=void 0,Oi.prototype.$objectType=void 0,Oi.prototype.$unknownFields=void 0;var Ii=new WeakSet,Ri=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=Di(t),function(e,t){if(t&&("object"==$i(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,Fi()?Reflect.construct(t,n||[],Di(e).constructor):t.apply(e,n))}(this,t),Ii),e.$objectType="monitoring.v4.serviceability.Alert",e.$reserved={$fv:"v4.r1"},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&&Ai(e,t)}(t,e),n=t,r=[{key:"getIsAcknowledged",value:function(){return this.isAcknowledged}},{key:"setIsAcknowledged",value:function(e){this.isAcknowledged=e}},{key:"getAcknowledgedByUsername",value:function(){return this.acknowledgedByUsername}},{key:"setAcknowledgedByUsername",value:function(e){this.acknowledgedByUsername=e}},{key:"getAcknowledgedTime",value:function(){return this.acknowledgedTime}},{key:"setAcknowledgedTime",value:function(e){this.acknowledgedTime=e}},{key:"getIsAutoResolved",value:function(){return this.isAutoResolved}},{key:"setIsAutoResolved",value:function(e){this.isAutoResolved=e}},{key:"getIsResolved",value:function(){return this.isResolved}},{key:"setIsResolved",value:function(e){this.isResolved=e}},{key:"getResolvedByUsername",value:function(){return this.resolvedByUsername}},{key:"setResolvedByUsername",value:function(e){this.resolvedByUsername=e}},{key:"getResolvedTime",value:function(){return this.resolvedTime}},{key:"setResolvedTime",value:function(e){this.resolvedTime=e}},{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getAffectedEntities",value:function(){return this.affectedEntities}},{key:"setAffectedEntities",value:function(e){this.affectedEntities=e}},{key:"getSeverityTrails",value:function(){return this.severityTrails}},{key:"setSeverityTrails",value:function(e){this.severityTrails=e}},{key:"getMetricDetails",value:function(){return this.metricDetails}},{key:"setMetricDetails",value:function(e){this.metricDetails=e}},{key:"getTitle",value:function(){return this.title}},{key:"setTitle",value:function(e){this.title=e}},{key:"getAlertType",value:function(){return this.alertType}},{key:"setAlertType",value:function(e){this.alertType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getClusterUUID",value:function(){return this.clusterUUID}},{key:"setClusterUUID",value:function(e){this.clusterUUID=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getOriginatingClusterUUID",value:function(){return this.originatingClusterUUID}},{key:"setOriginatingClusterUUID",value:function(e){this.originatingClusterUUID=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getIsUserDefined",value:function(){return this.isUserDefined}},{key:"setIsUserDefined",value:function(e){this.isUserDefined=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"getRootCauseAnalysis",value:function(){return this.rootCauseAnalysis}},{key:"setRootCauseAnalysis",value:function(e){this.rootCauseAnalysis=e}},{key:"toJson",value:function(e){return Ti(!1===e?Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti({},void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:Ci(Ii,this,Ui).call(this,this.getAcknowledgedTime(),!1)}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:Ci(Ii,this,Ui).call(this,this.getResolvedTime(),!1)}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSeverityTrails()&&null!==this.getSeverityTrails()?{severityTrails:this.getSeverityTrails().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:Ci(Ii,this,Ui).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:Ci(Ii,this,Ui).call(this,this.getLastUpdatedTime(),!1)}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getRootCauseAnalysis()&&null!==this.getRootCauseAnalysis()?{rootCauseAnalysis:this.getRootCauseAnalysis().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()}:{}):Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti(Ti({},void 0!==this.getIsAcknowledged()&&null!==this.getIsAcknowledged()?{isAcknowledged:this.getIsAcknowledged()}:{}),void 0!==this.getAcknowledgedByUsername()&&null!==this.getAcknowledgedByUsername()?{acknowledgedByUsername:this.getAcknowledgedByUsername()}:{}),void 0!==this.getAcknowledgedTime()&&null!==this.getAcknowledgedTime()?{acknowledgedTime:Ci(Ii,this,Ui).call(this,this.getAcknowledgedTime(),!1)}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getIsResolved()&&null!==this.getIsResolved()?{isResolved:this.getIsResolved()}:{}),void 0!==this.getResolvedByUsername()&&null!==this.getResolvedByUsername()?{resolvedByUsername:this.getResolvedByUsername()}:{}),void 0!==this.getResolvedTime()&&null!==this.getResolvedTime()?{resolvedTime:Ci(Ii,this,Ui).call(this,this.getResolvedTime(),!1)}:{}),void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSeverityTrails()&&null!==this.getSeverityTrails()?{severityTrails:this.getSeverityTrails().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getAlertType()&&null!==this.getAlertType()?{alertType:this.getAlertType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:Ci(Ii,this,Ui).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:Ci(Ii,this,Ui).call(this,this.getLastUpdatedTime(),!1)}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getOriginatingClusterUUID()&&null!==this.getOriginatingClusterUUID()?{originatingClusterUUID:this.getOriginatingClusterUUID()}:{}),void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{}),void 0!==this.getIsUserDefined()&&null!==this.getIsUserDefined()?{isUserDefined:this.getIsUserDefined()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getRootCauseAnalysis()&&null!==this.getRootCauseAnalysis()?{rootCauseAnalysis:this.getRootCauseAnalysis().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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("isAcknowledged"===t&&(void 0===this.isAcknowledged||null===this.isAcknowledged))return new U("isAcknowledged","undefined or null");if("acknowledgedByUsername"===t){if(void 0===this.acknowledgedByUsername||null===this.acknowledgedByUsername)return new U("acknowledgedByUsername","undefined or null");if(!A.validateMaxLength(this.acknowledgedByUsername,255))return new U("acknowledgedByUsername","does not satisfy required maxLength constraint: 255")}if("acknowledgedTime"===t&&(void 0===this.acknowledgedTime||null===this.acknowledgedTime))return new U("acknowledgedTime","undefined or null");if("isAutoResolved"===t&&(void 0===this.isAutoResolved||null===this.isAutoResolved))return new U("isAutoResolved","undefined or null");if("isResolved"===t&&(void 0===this.isResolved||null===this.isResolved))return new U("isResolved","undefined or null");if("resolvedByUsername"===t){if(void 0===this.resolvedByUsername||null===this.resolvedByUsername)return new U("resolvedByUsername","undefined or null");if(!A.validateMaxLength(this.resolvedByUsername,255))return new U("resolvedByUsername","does not satisfy required maxLength constraint: 255")}if("resolvedTime"===t&&(void 0===this.resolvedTime||null===this.resolvedTime))return new U("resolvedTime","undefined or null");if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new U("sourceEntity","undefined or null");if("affectedEntities"===t){if(void 0===this.affectedEntities||null===this.affectedEntities)return new U("affectedEntities","undefined or null");if(!A.validateMaxItems(this.affectedEntities,50))return new U("affectedEntities","does not satisfy required maxItems constraint: 50")}if("severityTrails"===t){if(void 0===this.severityTrails||null===this.severityTrails)return new U("severityTrails","undefined or null");if(!A.validateMaxItems(this.severityTrails,3))return new U("severityTrails","does not satisfy required maxItems constraint: 3")}if("metricDetails"===t){if(void 0===this.metricDetails||null===this.metricDetails)return new U("metricDetails","undefined or null");if(!A.validateMaxItems(this.metricDetails,50))return new U("metricDetails","does not satisfy required maxItems constraint: 50")}if("title"===t&&(void 0===this.title||null===this.title))return new U("title","undefined or null");if("alertType"===t&&(void 0===this.alertType||null===this.alertType))return new U("alertType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new U("classifications","undefined or null");if(!A.validateMaxItems(this.classifications,15))return new U("classifications","does not satisfy required maxItems constraint: 15")}if("clusterUUID"===t){if(void 0===this.clusterUUID||null===this.clusterUUID)return new U("clusterUUID","undefined or null");if(!A.validatePattern(this.clusterUUID,/^[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 U("clusterUUID","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("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new U("creationTime","undefined or null");if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new U("impactTypes","undefined or null");if(!A.validateMaxItems(this.impactTypes,8))return new U("impactTypes","does not satisfy required maxItems constraint: 8")}if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new U("lastUpdatedTime","undefined or null");if("message"===t&&(void 0===this.message||null===this.message))return new U("message","undefined or null");if("originatingClusterUUID"===t){if(void 0===this.originatingClusterUUID||null===this.originatingClusterUUID)return new U("originatingClusterUUID","undefined or null");if(!A.validatePattern(this.originatingClusterUUID,/^[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 U("originatingClusterUUID","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("severity"===t&&(void 0===this.severity||null===this.severity))return new U("severity","undefined or null");if("isUserDefined"===t&&(void 0===this.isUserDefined||null===this.isUserDefined))return new U("isUserDefined","undefined or null");if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new U("parameters","undefined or null");if(!A.validateMaxItems(this.parameters,50))return new U("parameters","does not satisfy required maxItems constraint: 50")}if("serviceName"===t){if(void 0===this.serviceName||null===this.serviceName)return new U("serviceName","undefined or null");if(!A.validateMaxLength(this.serviceName,50))return new U("serviceName","does not satisfy required maxLength constraint: 50")}if("rootCauseAnalysis"===t){if(void 0===this.rootCauseAnalysis||null===this.rootCauseAnalysis)return new U("rootCauseAnalysis","undefined or null");if(!A.validateMaxItems(this.rootCauseAnalysis,15))return new U("rootCauseAnalysis","does not satisfy required maxItems constraint: 15")}return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,An.constructFromObject(e,s,!0),e.hasOwnProperty("isAcknowledged")&&null!==e.isAcknowledged&&void 0!==e.isAcknowledged&&s.setIsAcknowledged(e.isAcknowledged),e.hasOwnProperty("acknowledgedByUsername")&&null!==e.acknowledgedByUsername&&void 0!==e.acknowledgedByUsername&&s.setAcknowledgedByUsername(e.acknowledgedByUsername),e.hasOwnProperty("acknowledgedTime")&&null!==e.acknowledgedTime&&void 0!==e.acknowledgedTime&&s.setAcknowledgedTime(e.acknowledgedTime),e.hasOwnProperty("isAutoResolved")&&null!==e.isAutoResolved&&void 0!==e.isAutoResolved&&s.setIsAutoResolved(e.isAutoResolved),e.hasOwnProperty("isResolved")&&null!==e.isResolved&&void 0!==e.isResolved&&s.setIsResolved(e.isResolved),e.hasOwnProperty("resolvedByUsername")&&null!==e.resolvedByUsername&&void 0!==e.resolvedByUsername&&s.setResolvedByUsername(e.resolvedByUsername),e.hasOwnProperty("resolvedTime")&&null!==e.resolvedTime&&void 0!==e.resolvedTime&&s.setResolvedTime(e.resolvedTime),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&s.setSourceEntity(Mn.constructFromObject(e.sourceEntity)),e.hasOwnProperty("affectedEntities")&&null!==e.affectedEntities&&void 0!==e.affectedEntities){for(o=[],n=e.affectedEntities,i=0;i<n.length;i++)r=qn.constructFromObject(n[i],void 0),o.push(r);s.setAffectedEntities(o)}if(e.hasOwnProperty("severityTrails")&&null!==e.severityTrails&&void 0!==e.severityTrails){for(o=[],n=e.severityTrails,i=0;i<n.length;i++)r=Oi.constructFromObject(n[i],void 0),o.push(r);s.setSeverityTrails(o)}if(e.hasOwnProperty("metricDetails")&&null!==e.metricDetails&&void 0!==e.metricDetails){for(o=[],n=e.metricDetails,i=0;i<n.length;i++)r=Wr.constructFromObject(n[i],void 0),o.push(r);s.setMetricDetails(o)}if(e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&s.setTitle(e.title),e.hasOwnProperty("alertType")&&null!==e.alertType&&void 0!==e.alertType&&s.setAlertType(e.alertType),e.hasOwnProperty("classifications")&&null!==e.classifications&&void 0!==e.classifications){for(o=[],n=e.classifications,i=0;i<n.length;i++)o.push(n[i]);s.setClassifications(o)}if(e.hasOwnProperty("clusterUUID")&&null!==e.clusterUUID&&void 0!==e.clusterUUID&&s.setClusterUUID(e.clusterUUID),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&s.setCreationTime(e.creationTime),e.hasOwnProperty("impactTypes")&&null!==e.impactTypes&&void 0!==e.impactTypes){for(o=[],n=e.impactTypes,i=0;i<n.length;i++)r=Hn.constructFromObject(n[i],void 0),o.push(r);s.setImpactTypes(o)}if(e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&s.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&s.setMessage(e.message),e.hasOwnProperty("originatingClusterUUID")&&null!==e.originatingClusterUUID&&void 0!==e.originatingClusterUUID&&s.setOriginatingClusterUUID(e.originatingClusterUUID),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&s.setSeverity(ii.constructFromObject(e.severity)),e.hasOwnProperty("isUserDefined")&&null!==e.isUserDefined&&void 0!==e.isUserDefined&&s.setIsUserDefined(e.isUserDefined),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(o=[],n=e.parameters,i=0;i<n.length;i++)r=ti.constructFromObject(n[i],void 0),o.push(r);s.setParameters(o)}if(e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&s.setServiceName(e.serviceName),e.hasOwnProperty("rootCauseAnalysis")&&null!==e.rootCauseAnalysis&&void 0!==e.rootCauseAnalysis){for(o=[],n=e.rootCauseAnalysis,i=0;i<n.length;i++)r=fi.constructFromObject(n[i],void 0),o.push(r);s.setRootCauseAnalysis(o)}if(!a)for(var u in s.$unknownFields=Ti({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Ei(n.prototype,r),i&&Ei(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(An);function Ui(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function xi(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 _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 Mi(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){Vi(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 Vi(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 Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bi(e)}function zi(e,t){return zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zi(e,t)}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")}Ri.prototype.isAcknowledged=!1,Ri.prototype.acknowledgedByUsername=void 0,Ri.prototype.acknowledgedTime=void 0,Ri.prototype.isAutoResolved=!1,Ri.prototype.isResolved=!1,Ri.prototype.resolvedByUsername=void 0,Ri.prototype.resolvedTime=void 0,Ri.prototype.sourceEntity=void 0,Ri.prototype.affectedEntities=void 0,Ri.prototype.severityTrails=void 0,Ri.prototype.metricDetails=void 0,Ri.prototype.title=void 0,Ri.prototype.alertType=void 0,Ri.prototype.classifications=void 0,Ri.prototype.clusterUUID=void 0,Ri.prototype.creationTime=void 0,Ri.prototype.impactTypes=void 0,Ri.prototype.lastUpdatedTime=void 0,Ri.prototype.message=void 0,Ri.prototype.originatingClusterUUID=void 0,Ri.prototype.severity=void 0,Ri.prototype.isUserDefined=!1,Ri.prototype.parameters=void 0,Ri.prototype.serviceName=void 0,Ri.prototype.rootCauseAnalysis=void 0,An.prototype.extId=void 0,An.prototype.links=void 0,wn.prototype.tenantId=void 0;var qi=new WeakSet,Ki=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=Bi(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||[],Bi(e).constructor):t.apply(e,n))}(this,t),qi),e.$objectType="monitoring.v4.serviceability.ListAlertsApiResponse",e.$reserved={$fv:"v4.r1"},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&&zi(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 Mi(Mi(Mi({},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}):Gi(qi,this,Hi).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}):Gi(qi,this,Hi).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Ni(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.Alert"!==s)throw"Unknown list of type "+s+" in data";r=Ri.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ni(e.data)))throw"Unknown datatype "+s+" in data";a.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Mi({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Li(n.prototype,r),i&&Li(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Hi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return xi(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)?xi(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"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 Yi(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 Xi(e){return Xi="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},Xi(e)}function Qi(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?Qi(Object(n),!0).forEach(function(t){eo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eo(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 to(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"!=Xi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xi(t)?t:t+""}function ro(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ro=function(){return!!e})()}function io(e){return io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},io(e)}function oo(e,t){return oo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oo(e,t)}function so(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")}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;var ao=new WeakSet,uo=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=io(t),function(e,t){if(t&&("object"==Xi(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,ro()?Reflect.construct(t,n||[],io(e).constructor):t.apply(e,n))}(this,t),ao),e.$objectType="monitoring.v4.serviceability.GetAlertApiResponse",e.$reserved={$fv:"v4.r1"},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&&oo(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}):so(ao,this,lo).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}):so(ao,this,lo).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Xi(e.data)){case"monitoring.v4.serviceability.Alert":r.setData(Ri.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=Zi({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&to(n.prototype,r),i&&to(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function lo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Yi(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)?Yi(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Xi(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 co(e){return co="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},co(e)}function fo(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 po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(n),!0).forEach(function(t){yo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yo(e,t,n){return(t=vo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ho(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,vo(r.key),r)}}function vo(e){var t=function(e){if("object"!=co(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==co(t)?t:t+""}function bo(e,t){return e.get(mo(e,t))}function mo(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")}uo.prototype.metadata=void 0,uo.prototype.data=void 0,uo.prototype.$reserved=void 0,uo.prototype.$objectType=void 0,uo.prototype.$unknownFields=void 0;var go=new WeakMap,wo=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,go,void 0),this.apiClient=t||lt.instance,n=go,r=new Set,n.set(mo(n,this),r),bo(go,this).add("authorization"),bo(go,this).add("cookie"),bo(go,this).add("host"),bo(go,this).add("user-agent")},t=[{key:"getAlertById",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 getAlertById");var r={extId:e},i={};Object.keys(n).forEach(function(e){bo(go,t).has(e.toLowerCase())||(i[e]=n[e])});var o=po({},i),s=uo;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listAlerts",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=po(po(po(po(po({},(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}:{}),i={};Object.keys(n).forEach(function(e){bo(go,t).has(e.toLowerCase())||(i[e]=n[e])});var o=po({},i),s=Ki;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&ho(e.prototype,t),n&&ho(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Oo={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ENABLED:"ENABLED",DISABLED:"DISABLED",NOT_SUPPORTED:"NOT_SUPPORTED",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.ENABLED:case Oo.DISABLED:case Oo.NOT_SUPPORTED:return;default:throw new Error("Invalid : must be AutoResolveState.{ $UNKNOWN|$REDACTED|ENABLED|DISABLED|NOT_SUPPORTED }")}}};Object.freeze(Oo);const jo=Oo;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 ko(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 To(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ko(Object(n),!0).forEach(function(t){Po(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ko(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Po(e,t,n){return(t=So(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eo(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,So(r.key),r)}}function So(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 Fo=new WeakSet,Do=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,Fo),this.currentBoolValue=t,this.$objectType="monitoring.v4.serviceability.BooleanConfigurableParamValue",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getDefaultBoolValue",value:function(){return this.defaultBoolValue}},{key:"setDefaultBoolValue",value:function(e){this.defaultBoolValue=e}},{key:"getCurrentBoolValue",value:function(){return this.currentBoolValue}},{key:"setCurrentBoolValue",value:function(e){this.currentBoolValue=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 To(To(!1===e?To({},void 0!==this.getDefaultBoolValue()&&null!==this.getDefaultBoolValue()?{defaultBoolValue:this.getDefaultBoolValue()}:{}):{},void 0!==this.getCurrentBoolValue()&&null!==this.getCurrentBoolValue()?{currentBoolValue:this.getCurrentBoolValue()}:{}),{},{$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=["currentBoolValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"defaultBoolValue"!==t||void 0!==this.defaultBoolValue&&null!==this.defaultBoolValue?"currentBoolValue"!==t||void 0!==this.currentBoolValue&&null!==this.currentBoolValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("currentBoolValue","undefined or null"):new U("defaultBoolValue","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("defaultBoolValue")&&null!==t.defaultBoolValue&&void 0!==t.defaultBoolValue&&n.setDefaultBoolValue(t.defaultBoolValue),t.hasOwnProperty("currentBoolValue")&&null!==t.currentBoolValue&&void 0!==t.currentBoolValue&&n.setCurrentBoolValue(t.currentBoolValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=To({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Eo(t.prototype,n),r&&Eo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ao(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 Co(e){return Co="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},Co(e)}function Io(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 Ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(n),!0).forEach(function(t){Uo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Io(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Uo(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 xo(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"!=Co(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Co(t)?t:t+""}function _o(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")}Do.prototype.defaultBoolValue=void 0,Do.prototype.currentBoolValue=void 0,Do.prototype.$reserved=void 0,Do.prototype.$objectType=void 0,Do.prototype.$unknownFields=void 0;var Mo=new WeakSet,Vo=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.minimumValue=t,this.maximumValue=n,this.$objectType="monitoring.v4.serviceability.ConfigurableParamValueRange",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getMinimumValue",value:function(){return this.minimumValue}},{key:"setMinimumValue",value:function(e){this.minimumValue=e}},{key:"getMaximumValue",value:function(){return this.maximumValue}},{key:"setMaximumValue",value:function(e){this.maximumValue=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 Ro(!1===e?Ro(Ro({},void 0!==this.getMinimumValue()&&null!==this.getMinimumValue()?{minimumValue:void 0!==this.getMinimumValue().toJson?this.getMinimumValue().toJson(!1):Array.isArray(this.getMinimumValue())?this.getMinimumValue().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):_o(Mo,this,Lo).call(this,this.getMinimumValue(),!1)}:{}),void 0!==this.getMaximumValue()&&null!==this.getMaximumValue()?{maximumValue:void 0!==this.getMaximumValue().toJson?this.getMaximumValue().toJson(!1):Array.isArray(this.getMaximumValue())?this.getMaximumValue().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):_o(Mo,this,Lo).call(this,this.getMaximumValue(),!1)}:{}):Ro(Ro({},void 0!==this.getMinimumValue()&&null!==this.getMinimumValue()?{minimumValue:void 0!==this.getMinimumValue().toJson?this.getMinimumValue().toJson():Array.isArray(this.getMinimumValue())?this.getMinimumValue().map(function(e){return void 0!==e.toJson?e.toJson():e}):_o(Mo,this,Lo).call(this,this.getMinimumValue())}:{}),void 0!==this.getMaximumValue()&&null!==this.getMaximumValue()?{maximumValue:void 0!==this.getMaximumValue().toJson?this.getMaximumValue().toJson():Array.isArray(this.getMaximumValue())?this.getMaximumValue().map(function(e){return void 0!==e.toJson?e.toJson():e}):_o(Mo,this,Lo).call(this,this.getMaximumValue())}:{}),{},{$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=["minimumValue","maximumValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"minimumValue"!==t||void 0!==this.minimumValue&&null!==this.minimumValue?"maximumValue"!==t||void 0!==this.maximumValue&&null!==this.maximumValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("maximumValue","undefined or null"):new U("minimumValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("minimumValue")&&null!==t.minimumValue&&void 0!==t.minimumValue){if("number"!==(n=t.minimumValue.hasOwnProperty("$objectType")?t.minimumValue.$objectType:Co(t.minimumValue)))throw"Unknown datatype "+n+" in data";r.setMinimumValue(t.minimumValue)}if(t.hasOwnProperty("maximumValue")&&null!==t.maximumValue&&void 0!==t.maximumValue){if("number"!==(n=t.maximumValue.hasOwnProperty("$objectType")?t.maximumValue.$objectType:Co(t.maximumValue)))throw"Unknown datatype "+n+" in data";r.setMaximumValue(t.maximumValue)}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!i)for(var o in r.$unknownFields=Ro({},t.$unknownFields),t)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&xo(t.prototype,n),r&&xo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Lo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ao(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)?Ao(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Co(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 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 Bo(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){zo(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 zo(e,t,n){return(t=qo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Go(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,qo(r.key),r)}}function qo(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+""}Vo.prototype.minimumValue=void 0,Vo.prototype.maximumValue=void 0,Vo.prototype.$reserved=void 0,Vo.prototype.$objectType=void 0,Vo.prototype.$unknownFields=void 0;var Ko=new WeakSet,Ho=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,Ko),this.currentFloatValue=t,this.$objectType="monitoring.v4.serviceability.FloatConfigurableParamValue",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getDefaultFloatValue",value:function(){return this.defaultFloatValue}},{key:"setDefaultFloatValue",value:function(e){this.defaultFloatValue=e}},{key:"getCurrentFloatValue",value:function(){return this.currentFloatValue}},{key:"setCurrentFloatValue",value:function(e){this.currentFloatValue=e}},{key:"getValidValueRanges",value:function(){return this.validValueRanges}},{key:"setValidValueRanges",value:function(e){this.validValueRanges=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 Bo(!1===e?Bo(Bo(Bo({},void 0!==this.getDefaultFloatValue()&&null!==this.getDefaultFloatValue()?{defaultFloatValue:this.getDefaultFloatValue()}:{}),void 0!==this.getCurrentFloatValue()&&null!==this.getCurrentFloatValue()?{currentFloatValue:this.getCurrentFloatValue()}:{}),void 0!==this.getValidValueRanges()&&null!==this.getValidValueRanges()?{validValueRanges:this.getValidValueRanges().map(function(e){return e.toJson(!1)})}:{}):Bo({},void 0!==this.getCurrentFloatValue()&&null!==this.getCurrentFloatValue()?{currentFloatValue:this.getCurrentFloatValue()}:{}),{},{$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=["currentFloatValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("defaultFloatValue"===t&&(void 0===this.defaultFloatValue||null===this.defaultFloatValue))return new U("defaultFloatValue","undefined or null");if("currentFloatValue"===t&&(void 0===this.currentFloatValue||null===this.currentFloatValue))return new U("currentFloatValue","undefined or null");if("validValueRanges"===t){if(void 0===this.validValueRanges||null===this.validValueRanges)return new U("validValueRanges","undefined or null");if(!A.validateMaxItems(this.validValueRanges,5))return new U("validValueRanges","does not satisfy required maxItems constraint: 5")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("defaultFloatValue")&&null!==t.defaultFloatValue&&void 0!==t.defaultFloatValue&&s.setDefaultFloatValue(t.defaultFloatValue),t.hasOwnProperty("currentFloatValue")&&null!==t.currentFloatValue&&void 0!==t.currentFloatValue&&s.setCurrentFloatValue(t.currentFloatValue),t.hasOwnProperty("validValueRanges")&&null!==t.validValueRanges&&void 0!==t.validValueRanges){for(o=[],n=t.validValueRanges,i=0;i<n.length;i++)r=Vo.constructFromObject(n[i],void 0),o.push(r);s.setValidValueRanges(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Bo({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Go(t.prototype,n),r&&Go(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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 Qo(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){Zo(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 Zo(e,t,n){return(t=ts(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function es(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,ts(r.key),r)}}function ts(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+""}Ho.prototype.defaultFloatValue=void 0,Ho.prototype.currentFloatValue=void 0,Ho.prototype.validValueRanges=void 0,Ho.prototype.$reserved=void 0,Ho.prototype.$objectType=void 0,Ho.prototype.$unknownFields=void 0;var ns=new WeakSet,rs=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,ns),this.currentIntValue=t,this.$objectType="monitoring.v4.serviceability.IntConfigurableParamValue",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getDefaultIntValue",value:function(){return this.defaultIntValue}},{key:"setDefaultIntValue",value:function(e){this.defaultIntValue=e}},{key:"getCurrentIntValue",value:function(){return this.currentIntValue}},{key:"setCurrentIntValue",value:function(e){this.currentIntValue=e}},{key:"getValidValueRanges",value:function(){return this.validValueRanges}},{key:"setValidValueRanges",value:function(e){this.validValueRanges=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 Qo(!1===e?Qo(Qo(Qo({},void 0!==this.getDefaultIntValue()&&null!==this.getDefaultIntValue()?{defaultIntValue:this.getDefaultIntValue()}:{}),void 0!==this.getCurrentIntValue()&&null!==this.getCurrentIntValue()?{currentIntValue:this.getCurrentIntValue()}:{}),void 0!==this.getValidValueRanges()&&null!==this.getValidValueRanges()?{validValueRanges:this.getValidValueRanges().map(function(e){return e.toJson(!1)})}:{}):Qo({},void 0!==this.getCurrentIntValue()&&null!==this.getCurrentIntValue()?{currentIntValue:this.getCurrentIntValue()}:{}),{},{$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=["currentIntValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("defaultIntValue"===t&&(void 0===this.defaultIntValue||null===this.defaultIntValue))return new U("defaultIntValue","undefined or null");if("currentIntValue"===t&&(void 0===this.currentIntValue||null===this.currentIntValue))return new U("currentIntValue","undefined or null");if("validValueRanges"===t){if(void 0===this.validValueRanges||null===this.validValueRanges)return new U("validValueRanges","undefined or null");if(!A.validateMaxItems(this.validValueRanges,5))return new U("validValueRanges","does not satisfy required maxItems constraint: 5")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("defaultIntValue")&&null!==t.defaultIntValue&&void 0!==t.defaultIntValue&&s.setDefaultIntValue(t.defaultIntValue),t.hasOwnProperty("currentIntValue")&&null!==t.currentIntValue&&void 0!==t.currentIntValue&&s.setCurrentIntValue(t.currentIntValue),t.hasOwnProperty("validValueRanges")&&null!==t.validValueRanges&&void 0!==t.validValueRanges){for(o=[],n=t.validValueRanges,i=0;i<n.length;i++)r=Vo.constructFromObject(n[i],void 0),o.push(r);s.setValidValueRanges(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Qo({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&es(t.prototype,n),r&&es(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function is(e){return is="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},is(e)}function os(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 ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?os(Object(n),!0).forEach(function(t){as(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):os(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function as(e,t,n){return(t=ls(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function us(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,ls(r.key),r)}}function ls(e){var t=function(e){if("object"!=is(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=is(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==is(t)?t:t+""}rs.prototype.defaultIntValue=void 0,rs.prototype.currentIntValue=void 0,rs.prototype.validValueRanges=void 0,rs.prototype.$reserved=void 0,rs.prototype.$objectType=void 0,rs.prototype.$unknownFields=void 0;var cs=new WeakSet,ds=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,cs),this.currentStrValue=t,this.$objectType="monitoring.v4.serviceability.StringConfigurableParamValue",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getDefaultStrValue",value:function(){return this.defaultStrValue}},{key:"setDefaultStrValue",value:function(e){this.defaultStrValue=e}},{key:"getCurrentStrValue",value:function(){return this.currentStrValue}},{key:"setCurrentStrValue",value:function(e){this.currentStrValue=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 ss(ss(!1===e?ss({},void 0!==this.getDefaultStrValue()&&null!==this.getDefaultStrValue()?{defaultStrValue:this.getDefaultStrValue()}:{}):{},void 0!==this.getCurrentStrValue()&&null!==this.getCurrentStrValue()?{currentStrValue:this.getCurrentStrValue()}:{}),{},{$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=["currentStrValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"defaultStrValue"!==t||void 0!==this.defaultStrValue&&null!==this.defaultStrValue?"currentStrValue"!==t||void 0!==this.currentStrValue&&null!==this.currentStrValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("currentStrValue","undefined or null"):new U("defaultStrValue","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("defaultStrValue")&&null!==t.defaultStrValue&&void 0!==t.defaultStrValue&&n.setDefaultStrValue(t.defaultStrValue),t.hasOwnProperty("currentStrValue")&&null!==t.currentStrValue&&void 0!==t.currentStrValue&&n.setCurrentStrValue(t.currentStrValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=ss({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&us(t.prototype,n),r&&us(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fs(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 ps(e){return ps="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},ps(e)}function ys(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 hs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ys(Object(n),!0).forEach(function(t){vs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vs(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 bs(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"!=ps(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ps(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ps(t)?t:t+""}function gs(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")}ds.prototype.defaultStrValue=void 0,ds.prototype.currentStrValue=void 0,ds.prototype.$reserved=void 0,ds.prototype.$objectType=void 0,ds.prototype.$unknownFields=void 0;var ws=new WeakSet,Os=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,ws),this.name=t,this.paramValue=n,this.$objectType="monitoring.v4.serviceability.AlertPolicyConfigurableParameter",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getDisplayName",value:function(){return this.displayName}},{key:"setDisplayName",value:function(e){this.displayName=e}},{key:"getUnit",value:function(){return this.unit}},{key:"setUnit",value:function(e){this.unit=e}},{key:"getParamValue",value:function(){return this.paramValue}},{key:"setParamValue",value:function(e){this.paramValue=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 hs(!1===e?hs(hs(hs(hs({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),void 0!==this.getParamValue()&&null!==this.getParamValue()?{paramValue:void 0!==this.getParamValue().toJson?this.getParamValue().toJson(!1):Array.isArray(this.getParamValue())?this.getParamValue().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):gs(ws,this,js).call(this,this.getParamValue(),!1)}:{}):hs(hs({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getParamValue()&&null!==this.getParamValue()?{paramValue:void 0!==this.getParamValue().toJson?this.getParamValue().toJson():Array.isArray(this.getParamValue())?this.getParamValue().map(function(e){return void 0!==e.toJson?e.toJson():e}):gs(ws,this,js).call(this,this.getParamValue())}:{}),{},{$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","paramValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(null==e&&!A.validateMaxLength(this.name,100))return new U("name","does not satisfy required maxLength constraint: 100")}if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new U("displayName","undefined or null");if(!A.validateMaxLength(this.displayName,200))return new U("displayName","does not satisfy required maxLength constraint: 200")}if("unit"===t){if(void 0===this.unit||null===this.unit)return new U("unit","undefined or null");if(!A.validateMaxLength(this.unit,100))return new U("unit","does not satisfy required maxLength constraint: 100")}return"paramValue"!==t||void 0!==this.paramValue&&null!==this.paramValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("paramValue","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&r.setName(t.name),t.hasOwnProperty("displayName")&&null!==t.displayName&&void 0!==t.displayName&&r.setDisplayName(t.displayName),t.hasOwnProperty("unit")&&null!==t.unit&&void 0!==t.unit&&r.setUnit(t.unit),t.hasOwnProperty("paramValue")&&null!==t.paramValue&&void 0!==t.paramValue)switch(n=t.paramValue.hasOwnProperty("$objectType")?t.paramValue.$objectType:ps(t.paramValue)){case"monitoring.v4.serviceability.IntConfigurableParamValue":r.setParamValue(rs.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.serviceability.FloatConfigurableParamValue":r.setParamValue(Ho.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.serviceability.BooleanConfigurableParamValue":r.setParamValue(Do.constructFromObject(t.paramValue,void 0));break;case"monitoring.v4.serviceability.StringConfigurableParamValue":r.setParamValue(ds.constructFromObject(t.paramValue,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),!i)for(var o in r.$unknownFields=hs({},t.$unknownFields),t)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&bs(t.prototype,n),r&&bs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function js(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return fs(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)?fs(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===ps(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}Os.prototype.name=void 0,Os.prototype.displayName=void 0,Os.prototype.unit=void 0,Os.prototype.paramValue=void 0,Os.prototype.$reserved=void 0,Os.prototype.$objectType=void 0,Os.prototype.$unknownFields=void 0;var $s={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ENABLED:"ENABLED",DISABLED:"DISABLED",NOT_SUPPORTED:"NOT_SUPPORTED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys($s).find(function(t){return $s[t]===e});return null==t?$s.$UNKNOWN:$s[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case $s.$UNKNOWN:case $s.$REDACTED:case $s.ENABLED:case $s.DISABLED:case $s.NOT_SUPPORTED:return;default:throw new Error("Invalid : must be PropertyState.{ $UNKNOWN|$REDACTED|ENABLED|DISABLED|NOT_SUPPORTED }")}}};Object.freeze($s);const ks=$s;function Ts(e){return Ts="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},Ts(e)}function Ps(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 Es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ps(Object(n),!0).forEach(function(t){Ss(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ps(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ss(e,t,n){return(t=Ds(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,Ds(r.key),r)}}function Ds(e){var t=function(e){if("object"!=Ts(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ts(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ts(t)?t:t+""}var As=new WeakSet,Cs=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,As),this.$objectType="monitoring.v4.serviceability.SeverityConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getState",value:function(){return this.state}},{key:"setState",value:function(e){this.state=e}},{key:"getThresholdParameters",value:function(){return this.thresholdParameters}},{key:"setThresholdParameters",value:function(e){this.thresholdParameters=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 Es(Es(Es({},void 0!==this.getState()&&null!==this.getState()?{state:this.getState()}:{}),void 0!==this.getThresholdParameters()&&null!==this.getThresholdParameters()?{thresholdParameters:this.getThresholdParameters().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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("state"===t&&(void 0===this.state||null===this.state))return new U("state","undefined or null");if("thresholdParameters"===t){if(void 0===this.thresholdParameters||null===this.thresholdParameters)return new U("thresholdParameters","undefined or null");if(!A.validateMaxItems(this.thresholdParameters,5))return new U("thresholdParameters","does not satisfy required maxItems constraint: 5")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("state")&&null!==t.state&&void 0!==t.state&&s.setState(ks.constructFromObject(t.state)),t.hasOwnProperty("thresholdParameters")&&null!==t.thresholdParameters&&void 0!==t.thresholdParameters){for(o=[],n=t.thresholdParameters,i=0;i<n.length;i++)r=Os.constructFromObject(n[i],void 0),o.push(r);s.setThresholdParameters(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Es({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Fs(t.prototype,n),r&&Fs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Is(e){return Is="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},Is(e)}function Rs(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 Us(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(n),!0).forEach(function(t){xs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xs(e,t,n){return(t=_s(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,_s(r.key),r)}}function _s(e){var t=function(e){if("object"!=Is(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Is(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Is(t)?t:t+""}Cs.prototype.state=void 0,Cs.prototype.thresholdParameters=void 0,Cs.prototype.$reserved=void 0,Cs.prototype.$objectType=void 0,Cs.prototype.$unknownFields=void 0;var Ms=new WeakSet,Vs=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,Ms),this.$objectType="monitoring.v4.serviceability.AlertConfig",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getAutoResolve",value:function(){return this.autoResolve}},{key:"setAutoResolve",value:function(e){this.autoResolve=e}},{key:"getCriticalSeverity",value:function(){return this.criticalSeverity}},{key:"setCriticalSeverity",value:function(e){this.criticalSeverity=e}},{key:"getWarningSeverity",value:function(){return this.warningSeverity}},{key:"setWarningSeverity",value:function(e){this.warningSeverity=e}},{key:"getInfoSeverity",value:function(){return this.infoSeverity}},{key:"setInfoSeverity",value:function(e){this.infoSeverity=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 Us(Us(Us(Us(Us({},void 0!==this.getAutoResolve()&&null!==this.getAutoResolve()?{autoResolve:this.getAutoResolve()}:{}),void 0!==this.getCriticalSeverity()&&null!==this.getCriticalSeverity()?{criticalSeverity:this.getCriticalSeverity().toJson(!1)}:{}),void 0!==this.getWarningSeverity()&&null!==this.getWarningSeverity()?{warningSeverity:this.getWarningSeverity().toJson(!1)}:{}),void 0!==this.getInfoSeverity()&&null!==this.getInfoSeverity()?{infoSeverity:this.getInfoSeverity().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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"autoResolve"!==t||void 0!==this.autoResolve&&null!==this.autoResolve?"criticalSeverity"!==t||void 0!==this.criticalSeverity&&null!==this.criticalSeverity?"warningSeverity"!==t||void 0!==this.warningSeverity&&null!==this.warningSeverity?"infoSeverity"!==t||void 0!==this.infoSeverity&&null!==this.infoSeverity?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("infoSeverity","undefined or null"):new U("warningSeverity","undefined or null"):new U("criticalSeverity","undefined or null"):new U("autoResolve","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("autoResolve")&&null!==t.autoResolve&&void 0!==t.autoResolve&&n.setAutoResolve(jo.constructFromObject(t.autoResolve)),t.hasOwnProperty("criticalSeverity")&&null!==t.criticalSeverity&&void 0!==t.criticalSeverity&&n.setCriticalSeverity(Cs.constructFromObject(t.criticalSeverity)),t.hasOwnProperty("warningSeverity")&&null!==t.warningSeverity&&void 0!==t.warningSeverity&&n.setWarningSeverity(Cs.constructFromObject(t.warningSeverity)),t.hasOwnProperty("infoSeverity")&&null!==t.infoSeverity&&void 0!==t.infoSeverity&&n.setInfoSeverity(Cs.constructFromObject(t.infoSeverity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Us({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Ns(t.prototype,n),r&&Ns(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ls(e){return Ls="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},Ls(e)}function Js(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 Ws(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Js(Object(n),!0).forEach(function(t){Bs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Js(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bs(e,t,n){return(t=Gs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zs(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,Gs(r.key),r)}}function Gs(e){var t=function(e){if("object"!=Ls(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ls(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ls(t)?t:t+""}function qs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qs=function(){return!!e})()}function Ks(e){return Ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ks(e)}function Hs(e,t){return Hs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hs(e,t)}function Ys(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")}Vs.prototype.autoResolve=void 0,Vs.prototype.criticalSeverity=void 0,Vs.prototype.warningSeverity=void 0,Vs.prototype.infoSeverity=void 0,Vs.prototype.$reserved=void 0,Vs.prototype.$objectType=void 0,Vs.prototype.$unknownFields=void 0;var Xs=new WeakSet,Qs=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=Ks(t),function(e,t){if(t&&("object"==Ls(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,qs()?Reflect.construct(t,n||[],Ks(e).constructor):t.apply(e,n))}(this,t),Xs),e.$objectType="monitoring.v4.serviceability.ClusterConfig",e.$reserved={$fv:"v4.r1"},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&&Hs(e,t)}(t,e),n=t,r=[{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getLastModifiedByUser",value:function(){return this.lastModifiedByUser}},{key:"setLastModifiedByUser",value:function(e){this.lastModifiedByUser=e}},{key:"getLastModifiedTime",value:function(){return this.lastModifiedTime}},{key:"setLastModifiedTime",value:function(e){this.lastModifiedTime=e}},{key:"getScheduleIntervalSeconds",value:function(){return this.scheduleIntervalSeconds}},{key:"setScheduleIntervalSeconds",value:function(e){this.scheduleIntervalSeconds=e}},{key:"getConfigurableParameters",value:function(){return this.configurableParameters}},{key:"setConfigurableParameters",value:function(e){this.configurableParameters=e}},{key:"getAlertConfig",value:function(){return this.alertConfig}},{key:"setAlertConfig",value:function(e){this.alertConfig=e}},{key:"toJson",value:function(e){return Ws(!1===e?Ws(Ws(Ws(Ws(Ws(Ws(Ws(Ws(Ws({},void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getLastModifiedByUser()&&null!==this.getLastModifiedByUser()?{lastModifiedByUser:this.getLastModifiedByUser()}:{}),void 0!==this.getLastModifiedTime()&&null!==this.getLastModifiedTime()?{lastModifiedTime:Ys(Xs,this,Zs).call(this,this.getLastModifiedTime(),!1)}:{}),void 0!==this.getScheduleIntervalSeconds()&&null!==this.getScheduleIntervalSeconds()?{scheduleIntervalSeconds:this.getScheduleIntervalSeconds()}:{}),void 0!==this.getConfigurableParameters()&&null!==this.getConfigurableParameters()?{configurableParameters:this.getConfigurableParameters().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getAlertConfig()&&null!==this.getAlertConfig()?{alertConfig:this.getAlertConfig().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()}:{}):Ws(Ws(Ws(Ws({},void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getScheduleIntervalSeconds()&&null!==this.getScheduleIntervalSeconds()?{scheduleIntervalSeconds:this.getScheduleIntervalSeconds()}:{}),void 0!==this.getConfigurableParameters()&&null!==this.getConfigurableParameters()?{configurableParameters:this.getConfigurableParameters().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getAlertConfig()&&null!==this.getAlertConfig()?{alertConfig:this.getAlertConfig().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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new U("isEnabled","undefined or null");if("lastModifiedByUser"===t&&(void 0===this.lastModifiedByUser||null===this.lastModifiedByUser))return new U("lastModifiedByUser","undefined or null");if("lastModifiedTime"===t&&(void 0===this.lastModifiedTime||null===this.lastModifiedTime))return new U("lastModifiedTime","undefined or null");if("scheduleIntervalSeconds"===t&&(void 0===this.scheduleIntervalSeconds||null===this.scheduleIntervalSeconds))return new U("scheduleIntervalSeconds","undefined or null");if("configurableParameters"===t){if(void 0===this.configurableParameters||null===this.configurableParameters)return new U("configurableParameters","undefined or null");if(!A.validateMaxItems(this.configurableParameters,5))return new U("configurableParameters","does not satisfy required maxItems constraint: 5")}return"alertConfig"!==t||void 0!==this.alertConfig&&null!==this.alertConfig?new U(t,"no such property exists"):new U("alertConfig","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,An.constructFromObject(e,s,!0),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&s.setIsEnabled(e.isEnabled),e.hasOwnProperty("lastModifiedByUser")&&null!==e.lastModifiedByUser&&void 0!==e.lastModifiedByUser&&s.setLastModifiedByUser(e.lastModifiedByUser),e.hasOwnProperty("lastModifiedTime")&&null!==e.lastModifiedTime&&void 0!==e.lastModifiedTime&&s.setLastModifiedTime(e.lastModifiedTime),e.hasOwnProperty("scheduleIntervalSeconds")&&null!==e.scheduleIntervalSeconds&&void 0!==e.scheduleIntervalSeconds&&s.setScheduleIntervalSeconds(e.scheduleIntervalSeconds),e.hasOwnProperty("configurableParameters")&&null!==e.configurableParameters&&void 0!==e.configurableParameters){for(o=[],n=e.configurableParameters,i=0;i<n.length;i++)r=Os.constructFromObject(n[i],void 0),o.push(r);s.setConfigurableParameters(o)}if(e.hasOwnProperty("alertConfig")&&null!==e.alertConfig&&void 0!==e.alertConfig&&s.setAlertConfig(Vs.constructFromObject(e.alertConfig)),!a)for(var u in s.$unknownFields=Ws({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&zs(n.prototype,r),i&&zs(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(An);function Zs(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Qs.prototype.isEnabled=void 0,Qs.prototype.lastModifiedByUser=void 0,Qs.prototype.lastModifiedTime=void 0,Qs.prototype.scheduleIntervalSeconds=void 0,Qs.prototype.configurableParameters=void 0,Qs.prototype.alertConfig=void 0,An.prototype.extId=void 0,An.prototype.links=void 0,wn.prototype.tenantId=void 0;var ea={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PC:"PC",PE:"PE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ea).find(function(t){return ea[t]===e});return null==t?ea.$UNKNOWN:ea[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ea.$UNKNOWN:case ea.$REDACTED:case ea.PC:case ea.PE:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|PC|PE }")}}};Object.freeze(ea);const ta=ea;var na={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",DISK:"DISK",VIRTUAL_DISK:"VIRTUAL_DISK",VM:"VM",CONTAINER:"CONTAINER",HOST:"HOST",CLUSTER:"CLUSTER",VOLUME_GROUP:"VOLUME_GROUP",FILE_SERVER:"FILE_SERVER",HOST_NIC:"HOST_NIC",RECOVERY_PLAN:"RECOVERY_PLAN",PROTECTION_DOMAIN:"PROTECTION_DOMAIN",PROTECTION_RULE:"PROTECTION_RULE",ACTION_RULE_RESULT:"ACTION_RULE_RESULT",AVAILABILITY_ZONE_PHYSICAL:"AVAILABILITY_ZONE_PHYSICAL",CONSISTENCY_GROUP_CONFIG:"CONSISTENCY_GROUP_CONFIG",OVA:"OVA",VOLUME_GROUP_CONFIG:"VOLUME_GROUP_CONFIG",VPN_CONNECTION:"VPN_CONNECTION",REMOTE_SITE:"REMOTE_SITE",STORAGE_POOL:"STORAGE_POOL",LAYER2_STRETCH:"LAYER2_STRETCH",ATLAS_VIRTUAL_NETWORK:"ATLAS_VIRTUAL_NETWORK",IPFIX_EXPORTER:"IPFIX_EXPORTER",ATLAS_ROUTING_POLICY:"ATLAS_ROUTING_POLICY",BGP_SESSION:"BGP_SESSION",MSP:"MSP",VPN_GATEWAY:"VPN_GATEWAY",ATLAS_LOAD_BALANCER_SESSION:"ATLAS_LOAD_BALANCER_SESSION",ATLAS_FLOW_GATEWAY:"ATLAS_FLOW_GATEWAY",PRISM_CENTRAL:"PRISM_CENTRAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(na).find(function(t){return na[t]===e});return null==t?na.$UNKNOWN:na[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case na.$UNKNOWN:case na.$REDACTED:case na.DISK:case na.VIRTUAL_DISK:case na.VM:case na.CONTAINER:case na.HOST:case na.CLUSTER:case na.VOLUME_GROUP:case na.FILE_SERVER:case na.HOST_NIC:case na.RECOVERY_PLAN:case na.PROTECTION_DOMAIN:case na.PROTECTION_RULE:case na.ACTION_RULE_RESULT:case na.AVAILABILITY_ZONE_PHYSICAL:case na.CONSISTENCY_GROUP_CONFIG:case na.OVA:case na.VOLUME_GROUP_CONFIG:case na.VPN_CONNECTION:case na.REMOTE_SITE:case na.STORAGE_POOL:case na.LAYER2_STRETCH:case na.ATLAS_VIRTUAL_NETWORK:case na.IPFIX_EXPORTER:case na.ATLAS_ROUTING_POLICY:case na.BGP_SESSION:case na.MSP:case na.VPN_GATEWAY:case na.ATLAS_LOAD_BALANCER_SESSION:case na.ATLAS_FLOW_GATEWAY:case na.PRISM_CENTRAL:return;default:throw new Error("Invalid : must be EntityType.{ $UNKNOWN|$REDACTED|DISK|VIRTUAL_DISK|VM|CONTAINER|HOST|CLUSTER|VOLUME_GROUP|FILE_SERVER|HOST_NIC|RECOVERY_PLAN|PROTECTION_DOMAIN|PROTECTION_RULE|ACTION_RULE_RESULT|AVAILABILITY_ZONE_PHYSICAL|CONSISTENCY_GROUP_CONFIG|OVA|VOLUME_GROUP_CONFIG|VPN_CONNECTION|REMOTE_SITE|STORAGE_POOL|LAYER2_STRETCH|ATLAS_VIRTUAL_NETWORK|IPFIX_EXPORTER|ATLAS_ROUTING_POLICY|BGP_SESSION|MSP|VPN_GATEWAY|ATLAS_LOAD_BALANCER_SESSION|ATLAS_FLOW_GATEWAY|PRISM_CENTRAL }")}}};Object.freeze(na);const ra=na;var ia={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CLUSTER:"CLUSTER",NODE:"NODE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ia).find(function(t){return ia[t]===e});return null==t?ia.$UNKNOWN:ia[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ia.$UNKNOWN:case ia.$REDACTED:case ia.CLUSTER:case ia.NODE:return;default:throw new Error("Invalid : must be Scope.{ $UNKNOWN|$REDACTED|CLUSTER|NODE }")}}};Object.freeze(ia);const oa=ia;var sa={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SCHEDULED:"SCHEDULED",NOT_SCHEDULED:"NOT_SCHEDULED",EVENT_DRIVEN:"EVENT_DRIVEN",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(sa).find(function(t){return sa[t]===e});return null==t?sa.$UNKNOWN:sa[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case sa.$UNKNOWN:case sa.$REDACTED:case sa.SCHEDULED:case sa.NOT_SCHEDULED:case sa.EVENT_DRIVEN:return;default:throw new Error("Invalid : must be SdaSubType.{ $UNKNOWN|$REDACTED|SCHEDULED|NOT_SCHEDULED|EVENT_DRIVEN }")}}};Object.freeze(sa);const aa=sa;var ua={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",HEALTH_CHECK:"HEALTH_CHECK",SERVICE_DEFINED:"SERVICE_DEFINED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ua).find(function(t){return ua[t]===e});return null==t?ua.$UNKNOWN:ua[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ua.$UNKNOWN:case ua.$REDACTED:case ua.HEALTH_CHECK:case ua.SERVICE_DEFINED:return;default:throw new Error("Invalid : must be SdaType.{ $UNKNOWN|$REDACTED|HEALTH_CHECK|SERVICE_DEFINED }")}}};Object.freeze(ua);const la=ua;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 da(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 fa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?da(Object(n),!0).forEach(function(t){pa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):da(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pa(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)}var ga=new WeakSet,wa=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),ga),e.$objectType="monitoring.v4.serviceability.SystemDefinedPolicy",e.$reserved={$fv:"v4.r1"},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:"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:"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:"getPolicyId",value:function(){return this.policyId}},{key:"setPolicyId",value:function(e){this.policyId=e}},{key:"getTitle",value:function(){return this.title}},{key:"setTitle",value:function(e){this.title=e}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getSubType",value:function(){return this.subType}},{key:"setSubType",value:function(e){this.subType=e}},{key:"getScope",value:function(){return this.scope}},{key:"setScope",value:function(e){this.scope=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getKbArticles",value:function(){return this.kbArticles}},{key:"setKbArticles",value:function(e){this.kbArticles=e}},{key:"getTargetClusters",value:function(){return this.targetClusters}},{key:"setTargetClusters",value:function(e){this.targetClusters=e}},{key:"getPublisher",value:function(){return this.publisher}},{key:"setPublisher",value:function(e){this.publisher=e}},{key:"getClusterConfigs",value:function(){return this.clusterConfigs}},{key:"setClusterConfigs",value:function(e){this.clusterConfigs=e}},{key:"toJson",value:function(e){return fa(!1===e?fa(fa(fa(fa(fa(fa(fa(fa(fa(fa(fa(fa(fa(fa(fa(fa(fa({},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.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getPolicyId()&&null!==this.getPolicyId()?{policyId:this.getPolicyId()}:{}),void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getSubType()&&null!==this.getSubType()?{subType:this.getSubType()}:{}),void 0!==this.getScope()&&null!==this.getScope()?{scope:this.getScope()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getKbArticles()&&null!==this.getKbArticles()?{kbArticles:this.getKbArticles()}:{}),void 0!==this.getTargetClusters()&&null!==this.getTargetClusters()?{targetClusters:this.getTargetClusters()}:{}),void 0!==this.getPublisher()&&null!==this.getPublisher()?{publisher:this.getPublisher()}:{}),void 0!==this.getClusterConfigs()&&null!==this.getClusterConfigs()?{clusterConfigs:this.getClusterConfigs().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):fa(fa(fa(fa(fa(fa(fa(fa(fa(fa(fa(fa(fa(fa(fa({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getPolicyId()&&null!==this.getPolicyId()?{policyId:this.getPolicyId()}:{}),void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getSubType()&&null!==this.getSubType()?{subType:this.getSubType()}:{}),void 0!==this.getScope()&&null!==this.getScope()?{scope:this.getScope()}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getKbArticles()&&null!==this.getKbArticles()?{kbArticles:this.getKbArticles()}:{}),void 0!==this.getTargetClusters()&&null!==this.getTargetClusters()?{targetClusters:this.getTargetClusters()}:{}),void 0!==this.getPublisher()&&null!==this.getPublisher()?{publisher:this.getPublisher()}:{}),void 0!==this.getClusterConfigs()&&null!==this.getClusterConfigs()?{clusterConfigs:this.getClusterConfigs().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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.validateMaxLength(this.extId,100))return new U("extId","does not satisfy required maxLength constraint: 100");if(!A.validatePattern(this.extId,/^\\d+$/))return new U("extId","does not satisfy required pattern: /^\\d+$/")}if("links"===t){if(void 0===this.links||null===this.links)return new U("links","undefined or null");if(!A.validateMaxItems(this.links,20))return new U("links","does not satisfy required maxItems constraint: 20")}if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("description"===t){if(void 0===this.description||null===this.description)return new U("description","undefined or null");if(!A.validateMaxLength(this.description,400))return new U("description","does not satisfy required maxLength constraint: 400")}if("policyId"===t){if(void 0===this.policyId||null===this.policyId)return new U("policyId","undefined or null");if(!A.validatePattern(this.policyId,/^{A}\\d+$/))return new U("policyId","does not satisfy required pattern: /^{A}\\d+$/")}if("title"===t){if(void 0===this.title||null===this.title)return new U("title","undefined or null");if(!A.validateMaxLength(this.title,250))return new U("title","does not satisfy required maxLength constraint: 250")}if("type"===t&&(void 0===this.type||null===this.type))return new U("type","undefined or null");if("subType"===t&&(void 0===this.subType||null===this.subType))return new U("subType","undefined or null");if("scope"===t&&(void 0===this.scope||null===this.scope))return new U("scope","undefined or null");if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new U("entityType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new U("classifications","undefined or null");if(!A.validateMaxItems(this.classifications,15))return new U("classifications","does not satisfy required maxItems constraint: 15")}if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new U("impactTypes","undefined or null");if(!A.validateMaxItems(this.impactTypes,8))return new U("impactTypes","does not satisfy required maxItems constraint: 8")}if("kbArticles"===t&&(void 0===this.kbArticles||null===this.kbArticles))return new U("kbArticles","undefined or null");if("targetClusters"===t){if(void 0===this.targetClusters||null===this.targetClusters)return new U("targetClusters","undefined or null");if(!A.validateMaxItems(this.targetClusters,2))return new U("targetClusters","does not satisfy required maxItems constraint: 2");if(!A.validateMinItems(this.targetClusters,1))return new U("targetClusters","does not satisfy required minItems constraint: 1")}if("publisher"===t){if(void 0===this.publisher||null===this.publisher)return new U("publisher","undefined or null");if(!A.validateMinLength(this.publisher,1))return new U("publisher","does not satisfy required minLength constraint: 1")}if("clusterConfigs"===t){if(void 0===this.clusterConfigs||null===this.clusterConfigs)return new U("clusterConfigs","undefined or null");if(!A.validateMaxItems(this.clusterConfigs,350))return new U("clusterConfigs","does not satisfy required maxItems constraint: 350");if(!A.validateMinItems(this.clusterConfigs,1))return new U("clusterConfigs","does not satisfy required minItems constraint: 1")}return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,wn.constructFromObject(e,s,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&s.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(o=[],n=e.links,i=0;i<n.length;i++)r=Fe.constructFromObject(n[i],void 0),o.push(r);s.setLinks(o)}if(e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&s.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&s.setDescription(e.description),e.hasOwnProperty("policyId")&&null!==e.policyId&&void 0!==e.policyId&&s.setPolicyId(e.policyId),e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&s.setTitle(e.title),e.hasOwnProperty("type")&&null!==e.type&&void 0!==e.type&&s.setType(la.constructFromObject(e.type)),e.hasOwnProperty("subType")&&null!==e.subType&&void 0!==e.subType&&s.setSubType(aa.constructFromObject(e.subType)),e.hasOwnProperty("scope")&&null!==e.scope&&void 0!==e.scope&&s.setScope(oa.constructFromObject(e.scope)),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&s.setEntityType(ra.constructFromObject(e.entityType)),e.hasOwnProperty("classifications")&&null!==e.classifications&&void 0!==e.classifications){for(o=[],n=e.classifications,i=0;i<n.length;i++)o.push(n[i]);s.setClassifications(o)}if(e.hasOwnProperty("impactTypes")&&null!==e.impactTypes&&void 0!==e.impactTypes){for(o=[],n=e.impactTypes,i=0;i<n.length;i++)r=Hn.constructFromObject(n[i],void 0),o.push(r);s.setImpactTypes(o)}if(e.hasOwnProperty("kbArticles")&&null!==e.kbArticles&&void 0!==e.kbArticles){for(o=[],n=e.kbArticles,i=0;i<n.length;i++)o.push(n[i]);s.setKbArticles(o)}if(e.hasOwnProperty("targetClusters")&&null!==e.targetClusters&&void 0!==e.targetClusters){for(o=[],n=e.targetClusters,i=0;i<n.length;i++)r=ta.constructFromObject(n[i],void 0),o.push(r);s.setTargetClusters(o)}if(e.hasOwnProperty("publisher")&&null!==e.publisher&&void 0!==e.publisher&&s.setPublisher(e.publisher),e.hasOwnProperty("clusterConfigs")&&null!==e.clusterConfigs&&void 0!==e.clusterConfigs){for(o=[],n=e.clusterConfigs,i=0;i<n.length;i++)r=Qs.constructFromObject(n[i],void 0),o.push(r);s.setClusterConfigs(o)}if(!a)for(var u in s.$unknownFields=fa({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ya(n.prototype,r),i&&ya(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(wn);function Oa(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 ja(e){return ja="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},ja(e)}function $a(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 ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$a(Object(n),!0).forEach(function(t){Ta(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ta(e,t,n){return(t=Ea(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pa(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,Ea(r.key),r)}}function Ea(e){var t=function(e){if("object"!=ja(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ja(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ja(t)?t:t+""}function Sa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sa=function(){return!!e})()}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fa(e)}function Da(e,t){return Da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Da(e,t)}function Aa(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")}wa.prototype.extId=void 0,wa.prototype.links=void 0,wa.prototype.name=void 0,wa.prototype.description=void 0,wa.prototype.policyId=void 0,wa.prototype.title=void 0,wa.prototype.type=void 0,wa.prototype.subType=void 0,wa.prototype.scope=void 0,wa.prototype.entityType=void 0,wa.prototype.classifications=void 0,wa.prototype.impactTypes=void 0,wa.prototype.kbArticles=void 0,wa.prototype.targetClusters=["PE"],wa.prototype.publisher="NCC",wa.prototype.clusterConfigs=void 0,wn.prototype.tenantId=void 0;var Ca=new WeakSet,Ia=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=Fa(t),function(e,t){if(t&&("object"==ja(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,Sa()?Reflect.construct(t,n||[],Fa(e).constructor):t.apply(e,n))}(this,t),Ca),e.$objectType="monitoring.v4.serviceability.GetSdaPolicyApiResponse",e.$reserved={$fv:"v4.r1"},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&&Da(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 ka(ka(ka({},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}):Aa(Ca,this,Ra).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}):Aa(Ca,this,Ra).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ja(e.data)){case"monitoring.v4.serviceability.SystemDefinedPolicy":r.setData(wa.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=ka({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Pa(n.prototype,r),i&&Pa(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Ra(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Oa(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)?Oa(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===ja(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 Ua(e){return Ua="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},Ua(e)}function xa(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 Na(e,t,n){return(t=Ma(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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,Ma(r.key),r)}}function Ma(e){var t=function(e){if("object"!=Ua(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ua(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ua(t)?t:t+""}function Va(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Va=function(){return!!e})()}function La(e){return La=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},La(e)}function Ja(e,t){return Ja=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ja(e,t)}Ia.prototype.metadata=void 0,Ia.prototype.data=void 0,Ia.prototype.$reserved=void 0,Ia.prototype.$objectType=void 0,Ia.prototype.$unknownFields=void 0;var Wa=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),(e=function(e,t,n){return t=La(t),function(e,t){if(t&&("object"==Ua(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||[],La(e).constructor):t.apply(e,n))}(this,t)).$objectType="monitoring.v4.serviceability.ClusterConfigProjection",e.$reserved={$fv:"v4.r1"},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&&Ja(e,t)}(t,e),n=t,r=[{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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return new U(t,"no such property exists")}}],i=[{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,Qs.constructFromObject(e,n,!0),!r))for(var i in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xa(Object(n),!0).forEach(function(t){Na(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&_a(n.prototype,r),i&&_a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(Qs);function Ba(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 za(e){return za="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},za(e)}function Ga(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 qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ga(Object(n),!0).forEach(function(t){Ka(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ga(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ka(e,t,n){return(t=Ya(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ha(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,Ya(r.key),r)}}function Ya(e){var t=function(e){if("object"!=za(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=za(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==za(t)?t:t+""}function Xa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Xa=function(){return!!e})()}function Qa(e){return Qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qa(e)}function Za(e,t){return Za=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Za(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")}var tu=new WeakSet,nu=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=Qa(t),function(e,t){if(t&&("object"==za(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,Xa()?Reflect.construct(t,n||[],Qa(e).constructor):t.apply(e,n))}(this,t),tu),e.$objectType="monitoring.v4.serviceability.ListClusterConfigsApiResponse",e.$reserved={$fv:"v4.r1"},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&&Za(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 qa(qa(qa({},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(tu,this,ru).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(tu,this,ru).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:za(n[0]),i=0;i<n.length;i++)switch(s){case"monitoring.v4.serviceability.ClusterConfig":r=Qs.constructFromObject(n[i],void 0),o.push(r);break;case"monitoring.v4.serviceability.ClusterConfigProjection":r=Wa.constructFromObject(n[i],void 0),o.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:za(e.data)))throw"Unknown datatype "+s+" in data";a.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=qa({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Ha(n.prototype,r),i&&Ha(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function ru(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ba(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)?Ba(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===za(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 iu(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 su(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?su(Object(n),!0).forEach(function(t){uu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):su(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uu(e,t,n){return(t=cu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lu(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,cu(r.key),r)}}function cu(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 du(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(du=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 yu(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.metadata=void 0,nu.prototype.data=void 0,nu.prototype.$reserved=void 0,nu.prototype.$objectType=void 0,nu.prototype.$unknownFields=void 0;var hu=new WeakSet,vu=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,du()?Reflect.construct(t,n||[],fu(e).constructor):t.apply(e,n))}(this,t),hu),e.$objectType="monitoring.v4.serviceability.GetClusterConfigApiResponse",e.$reserved={$fv:"v4.r1"},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}):yu(hu,this,bu).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}):yu(hu,this,bu).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ou(e.data)){case"monitoring.v4.serviceability.ClusterConfig":r.setData(Qs.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=au({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&lu(n.prototype,r),i&&lu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function bu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return iu(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)?iu(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"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 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+""}vu.prototype.metadata=void 0,vu.prototype.data=void 0,vu.prototype.$reserved=void 0,vu.prototype.$objectType=void 0,vu.prototype.$unknownFields=void 0;var ku=new WeakSet,Tu=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,ku),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 wu(wu({},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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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 i in n.$unknownFields=wu({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ju(t.prototype,n),r&&ju(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Pu(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 Eu(e){return Eu="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},Eu(e)}function Su(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 Fu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Su(Object(n),!0).forEach(function(t){Du(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Su(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Du(e,t,n){return(t=Cu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Au(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,Cu(r.key),r)}}function Cu(e){var t=function(e){if("object"!=Eu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Eu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Eu(t)?t:t+""}function Iu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Iu=function(){return!!e})()}function Ru(e){return Ru=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ru(e)}function Uu(e,t){return Uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Uu(e,t)}function xu(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")}Tu.prototype.extId=void 0,Tu.prototype.$reserved=void 0,Tu.prototype.$objectType=void 0,Tu.prototype.$unknownFields=void 0;var Nu=new WeakSet,_u=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=Ru(t),function(e,t){if(t&&("object"==Eu(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,Iu()?Reflect.construct(t,n||[],Ru(e).constructor):t.apply(e,n))}(this,t),Nu),e.$objectType="monitoring.v4.serviceability.UpdateClusterConfigApiResponse",e.$reserved={$fv:"v4.r1"},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&&Uu(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 Fu(Fu(Fu({},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}):xu(Nu,this,Mu).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}):xu(Nu,this,Mu).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Eu(e.data)){case"prism.v4.config.TaskReference":r.setData(Tu.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=Fu({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Au(n.prototype,r),i&&Au(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Mu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Pu(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)?Pu(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Eu(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 Vu(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 Lu(e){return Lu="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},Lu(e)}function Ju(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?Ju(Object(n),!0).forEach(function(t){Bu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ju(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bu(e,t,n){return(t=Gu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zu(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,Gu(r.key),r)}}function Gu(e){var t=function(e){if("object"!=Lu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lu(t)?t:t+""}function qu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qu=function(){return!!e})()}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ku(e)}function Hu(e,t){return Hu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hu(e,t)}function Yu(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")}_u.prototype.metadata=void 0,_u.prototype.data=void 0,_u.prototype.$reserved=void 0,_u.prototype.$objectType=void 0,_u.prototype.$unknownFields=void 0;var Xu=new WeakSet,Qu=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=Ku(t),function(e,t){if(t&&("object"==Lu(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,qu()?Reflect.construct(t,n||[],Ku(e).constructor):t.apply(e,n))}(this,t),Xu),e.$objectType="monitoring.v4.serviceability.ListSdaPoliciesApiResponse",e.$reserved={$fv:"v4.r1"},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&&Hu(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}):Yu(Xu,this,Zu).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}):Yu(Xu,this,Zu).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Lu(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.SystemDefinedPolicy"!==s)throw"Unknown list of type "+s+" in data";r=wa.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Lu(e.data)))throw"Unknown datatype "+s+" in data";a.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Wu({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&zu(n.prototype,r),i&&zu(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Zu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Vu(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)?Vu(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Lu(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 el(e){return el="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},el(e)}function tl(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 nl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tl(Object(n),!0).forEach(function(t){rl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rl(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 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,ol(r.key),r)}}function ol(e){var t=function(e){if("object"!=el(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=el(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==el(t)?t:t+""}function sl(e,t){return e.get(al(e,t))}function al(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")}Qu.prototype.metadata=void 0,Qu.prototype.data=void 0,Qu.prototype.$reserved=void 0,Qu.prototype.$objectType=void 0,Qu.prototype.$unknownFields=void 0;var ul=new WeakMap,ll=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,ul,void 0),this.apiClient=t||lt.instance,n=ul,r=new Set,n.set(al(n,this),r),sl(ul,this).add("authorization"),sl(ul,this).add("cookie"),sl(ul,this).add("host"),sl(ul,this).add("user-agent")},t=[{key:"getClusterConfigById",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(null==e)throw new Error("Missing the required parameter 'systemDefinedPolicyExtId' when calling getClusterConfigById");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getClusterConfigById");var i={systemDefinedPolicyExtId:e,extId:t},o={};Object.keys(r).forEach(function(e){sl(ul,n).has(e.toLowerCase())||(o[e]=r[e])});var s=nl({},o),a=vu;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/system-defined-policies/{systemDefinedPolicyExtId}/cluster-configs/{extId}","GET",i,{},s,{},null,["basicAuthScheme"],[],["application/json"],a)}},{key:"getSdaPolicyById",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 getSdaPolicyById");var r={extId:e},i={};Object.keys(n).forEach(function(e){sl(ul,t).has(e.toLowerCase())||(i[e]=n[e])});var o=nl({},i),s=Ia;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/system-defined-policies/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listClusterConfigsBySdaId",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'systemDefinedPolicyExtId' when calling listClusterConfigsBySdaId");var i={systemDefinedPolicyExtId:e},o=nl(nl(nl(nl(nl({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}),t.hasOwnProperty("$orderby")?{$orderby:t.$orderby}:{}),t.hasOwnProperty("$select")?{$select:t.$select}:{}),s={};Object.keys(r).forEach(function(e){sl(ul,n).has(e.toLowerCase())||(s[e]=r[e])});var a=nl({},s),u=nu;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/system-defined-policies/{systemDefinedPolicyExtId}/cluster-configs","GET",i,o,a,{},null,["basicAuthScheme"],[],["application/json"],u)}},{key:"listSdaPolicies",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=nl(nl(nl(nl(nl({},(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}:{}),i={};Object.keys(n).forEach(function(e){sl(ul,t).has(e.toLowerCase())||(i[e]=n[e])});var o=nl({},i),s=Qu;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/system-defined-policies","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"updateClusterConfigById",value:function(e,t,n){var r,i=this,o=(arguments.length<=3?0:arguments.length-3)>0?arguments.length<=3?void 0:arguments[3]:{};if(r=n instanceof Qs&&"function"==typeof n.toJson?n.toJson():n,null==e)throw new Error("Missing the required parameter 'systemDefinedPolicyExtId' when calling updateClusterConfigById");if(null==t)throw new Error("Missing the required parameter 'extId' when calling updateClusterConfigById");if(null==r)throw new Error("Invalid body when calling updateClusterConfigById");var s={systemDefinedPolicyExtId:e,extId:t},a={};Object.keys(o).forEach(function(e){sl(ul,i).has(e.toLowerCase())||(a[e]=o[e])});var u=nl({},a);lt.addEtagReferenceToHeader(n,u);var l=_u;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/system-defined-policies/{systemDefinedPolicyExtId}/cluster-configs/{extId}","PUT",s,{},u,{},r,["basicAuthScheme"],["application/json"],["application/json"],l)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&il(e.prototype,t),n&&il(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();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 dl(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 fl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dl(Object(n),!0).forEach(function(t){pl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pl(e,t,n){return(t=hl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yl(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,hl(r.key),r)}}function hl(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+""}var vl=new WeakSet,bl=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,vl),this.$objectType="monitoring.v4.serviceability.EmailConfigurationRule",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getClusterUuids",value:function(){return this.clusterUuids}},{key:"setClusterUuids",value:function(e){this.clusterUuids=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getHasGlobalEmailContactList",value:function(){return this.hasGlobalEmailContactList}},{key:"setHasGlobalEmailContactList",value:function(e){this.hasGlobalEmailContactList=e}},{key:"getMatchPhrases",value:function(){return this.matchPhrases}},{key:"setMatchPhrases",value:function(e){this.matchPhrases=e}},{key:"getRecipients",value:function(){return this.recipients}},{key:"setRecipients",value:function(e){this.recipients=e}},{key:"getSeverities",value:function(){return this.severities}},{key:"setSeverities",value:function(e){this.severities=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=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 fl(fl(fl(fl(fl(fl(fl(fl({},void 0!==this.getClusterUuids()&&null!==this.getClusterUuids()?{clusterUuids:this.getClusterUuids()}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getHasGlobalEmailContactList()&&null!==this.getHasGlobalEmailContactList()?{hasGlobalEmailContactList:this.getHasGlobalEmailContactList()}:{}),void 0!==this.getMatchPhrases()&&null!==this.getMatchPhrases()?{matchPhrases:this.getMatchPhrases()}:{}),void 0!==this.getRecipients()&&null!==this.getRecipients()?{recipients:this.getRecipients()}:{}),void 0!==this.getSeverities()&&null!==this.getSeverities()?{severities:this.getSeverities()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("clusterUuids"===t){if(void 0===this.clusterUuids||null===this.clusterUuids)return new U("clusterUuids","undefined or null");if(!A.validateMaxItems(this.clusterUuids,50))return new U("clusterUuids","does not satisfy required maxItems constraint: 50")}if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new U("impactTypes","undefined or null");if(!A.validateMaxItems(this.impactTypes,8))return new U("impactTypes","does not satisfy required maxItems constraint: 8")}if("hasGlobalEmailContactList"===t&&(void 0===this.hasGlobalEmailContactList||null===this.hasGlobalEmailContactList))return new U("hasGlobalEmailContactList","undefined or null");if("matchPhrases"===t){if(void 0===this.matchPhrases||null===this.matchPhrases)return new U("matchPhrases","undefined or null");if(!A.validateMaxItems(this.matchPhrases,100))return new U("matchPhrases","does not satisfy required maxItems constraint: 100")}if("recipients"===t){if(void 0===this.recipients||null===this.recipients)return new U("recipients","undefined or null");if(!A.validateMaxItems(this.recipients,100))return new U("recipients","does not satisfy required maxItems constraint: 100")}if("severities"===t){if(void 0===this.severities||null===this.severities)return new U("severities","undefined or null");if(!A.validateMaxItems(this.severities,3))return new U("severities","does not satisfy required maxItems constraint: 3")}return"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("isEnabled","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("clusterUuids")&&null!==t.clusterUuids&&void 0!==t.clusterUuids){for(o=[],n=t.clusterUuids,i=0;i<n.length;i++)o.push(n[i]);s.setClusterUuids(o)}if(t.hasOwnProperty("impactTypes")&&null!==t.impactTypes&&void 0!==t.impactTypes){for(o=[],n=t.impactTypes,i=0;i<n.length;i++)r=Hn.constructFromObject(n[i],void 0),o.push(r);s.setImpactTypes(o)}if(t.hasOwnProperty("hasGlobalEmailContactList")&&null!==t.hasGlobalEmailContactList&&void 0!==t.hasGlobalEmailContactList&&s.setHasGlobalEmailContactList(t.hasGlobalEmailContactList),t.hasOwnProperty("matchPhrases")&&null!==t.matchPhrases&&void 0!==t.matchPhrases){for(o=[],n=t.matchPhrases,i=0;i<n.length;i++)o.push(n[i]);s.setMatchPhrases(o)}if(t.hasOwnProperty("recipients")&&null!==t.recipients&&void 0!==t.recipients){for(o=[],n=t.recipients,i=0;i<n.length;i++)o.push(n[i]);s.setRecipients(o)}if(t.hasOwnProperty("severities")&&null!==t.severities&&void 0!==t.severities){for(o=[],n=t.severities,i=0;i<n.length;i++)r=ii.constructFromObject(n[i],void 0),o.push(r);s.setSeverities(o)}if(t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&s.setIsEnabled(t.isEnabled),t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=fl({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&yl(t.prototype,n),r&&yl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ml(e){return ml="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},ml(e)}function gl(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 wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gl(Object(n),!0).forEach(function(t){Ol(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ol(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 jl(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"!=ml(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ml(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ml(t)?t:t+""}bl.prototype.clusterUuids=void 0,bl.prototype.impactTypes=void 0,bl.prototype.hasGlobalEmailContactList=!1,bl.prototype.matchPhrases=void 0,bl.prototype.recipients=void 0,bl.prototype.severities=void 0,bl.prototype.isEnabled=!0,bl.prototype.$reserved=void 0,bl.prototype.$objectType=void 0,bl.prototype.$unknownFields=void 0;var kl=new WeakSet,Tl=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,kl),this.$objectType="monitoring.v4.serviceability.EmailTemplate",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getBodySuffix",value:function(){return this.bodySuffix}},{key:"setBodySuffix",value:function(e){this.bodySuffix=e}},{key:"getSubjectPrefix",value:function(){return this.subjectPrefix}},{key:"setSubjectPrefix",value:function(e){this.subjectPrefix=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 wl(wl(wl({},void 0!==this.getBodySuffix()&&null!==this.getBodySuffix()?{bodySuffix:this.getBodySuffix()}:{}),void 0!==this.getSubjectPrefix()&&null!==this.getSubjectPrefix()?{subjectPrefix:this.getSubjectPrefix()}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("bodySuffix"===t&&(void 0===this.bodySuffix||null===this.bodySuffix))return new U("bodySuffix","undefined or null");if("subjectPrefix"===t){if(void 0===this.subjectPrefix||null===this.subjectPrefix)return new U("subjectPrefix","undefined or null");if(!A.validateMaxLength(this.subjectPrefix,256))return new U("subjectPrefix","does not satisfy required maxLength constraint: 256")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("bodySuffix")&&null!==t.bodySuffix&&void 0!==t.bodySuffix&&n.setBodySuffix(t.bodySuffix),t.hasOwnProperty("subjectPrefix")&&null!==t.subjectPrefix&&void 0!==t.subjectPrefix&&n.setSubjectPrefix(t.subjectPrefix),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=wl({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&jl(t.prototype,n),r&&jl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Tl.prototype.bodySuffix=void 0,Tl.prototype.subjectPrefix=void 0,Tl.prototype.$reserved=void 0,Tl.prototype.$objectType=void 0,Tl.prototype.$unknownFields=void 0;var Pl={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUCCESS:"SUCCESS",FAILED:"FAILED",RETRYING:"RETRYING",DISABLED:"DISABLED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Pl).find(function(t){return Pl[t]===e});return null==t?Pl.$UNKNOWN:Pl[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Pl.$UNKNOWN:case Pl.$REDACTED:case Pl.SUCCESS:case Pl.FAILED:case Pl.RETRYING:case Pl.DISABLED:return;default:throw new Error("Invalid : must be ConnectionStatus.{ $UNKNOWN|$REDACTED|SUCCESS|FAILED|RETRYING|DISABLED }")}}};Object.freeze(Pl);const El=Pl;function Sl(e){return Sl="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},Sl(e)}function Fl(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 Dl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fl(Object(n),!0).forEach(function(t){Al(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Al(e,t,n){return(t=Il(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cl(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,Il(r.key),r)}}function Il(e){var t=function(e){if("object"!=Sl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sl(t)?t:t+""}var Rl=new WeakSet,Ul=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,Rl),this.$objectType="common.v1.config.KVStringPair",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 Dl(Dl(Dl({},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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,128))return new U("name","does not satisfy required maxLength constraint: 128");if(!A.validateMinLength(this.name,3))return new U("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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("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 i in n.$unknownFields=Dl({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Cl(t.prototype,n),r&&Cl(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 Nl(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 _l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nl(Object(n),!0).forEach(function(t){Ml(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ml(e,t,n){return(t=Ll(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vl(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,Ll(r.key),r)}}function Ll(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+""}Ul.prototype.name=void 0,Ul.prototype.value="",Ul.prototype.$reserved=void 0,Ul.prototype.$objectType=void 0,Ul.prototype.$unknownFields=void 0;var Jl=new WeakSet,Wl=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,Jl),this.$objectType="monitoring.v4.serviceability.ParameterizedMessage",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributes",value:function(){return this.attributes}},{key:"setAttributes",value:function(e){this.attributes=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 _l(_l(_l({},void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getAttributes()&&null!==this.getAttributes()?{attributes:this.getAttributes().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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("message"===t&&(void 0===this.message||null===this.message))return new U("message","undefined or null");if("attributes"===t){if(void 0===this.attributes||null===this.attributes)return new U("attributes","undefined or null");if(!A.validateMaxItems(this.attributes,100))return new U("attributes","does not satisfy required maxItems constraint: 100")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&s.setMessage(t.message),t.hasOwnProperty("attributes")&&null!==t.attributes&&void 0!==t.attributes){for(o=[],n=t.attributes,i=0;i<n.length;i++)r=Ul.constructFromObject(n[i],void 0),o.push(r);s.setAttributes(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=_l({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Vl(t.prototype,n),r&&Vl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Bl(e){return Bl="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},Bl(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 Gl(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){ql(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 ql(e,t,n){return(t=Hl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kl(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,Hl(r.key),r)}}function Hl(e){var t=function(e){if("object"!=Bl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Bl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Bl(t)?t:t+""}function Yl(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")}Wl.prototype.message=void 0,Wl.prototype.attributes=void 0,Wl.prototype.$reserved=void 0,Wl.prototype.$objectType=void 0,Wl.prototype.$unknownFields=void 0;var Xl=new WeakSet,Ql=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,Xl),this.$objectType="monitoring.v4.serviceability.CommunicationStatus",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getLastCheckedTime",value:function(){return this.lastCheckedTime}},{key:"setLastCheckedTime",value:function(e){this.lastCheckedTime=e}},{key:"getLastChangedTime",value:function(){return this.lastChangedTime}},{key:"setLastChangedTime",value:function(e){this.lastChangedTime=e}},{key:"getLastSuccessfulTransmissionTime",value:function(){return this.lastSuccessfulTransmissionTime}},{key:"setLastSuccessfulTransmissionTime",value:function(e){this.lastSuccessfulTransmissionTime=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=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 Gl(Gl(Gl(Gl(Gl(Gl({},void 0!==this.getLastCheckedTime()&&null!==this.getLastCheckedTime()?{lastCheckedTime:Yl(Xl,this,Zl).call(this,this.getLastCheckedTime(),!1)}:{}),void 0!==this.getLastChangedTime()&&null!==this.getLastChangedTime()?{lastChangedTime:Yl(Xl,this,Zl).call(this,this.getLastChangedTime(),!1)}:{}),void 0!==this.getLastSuccessfulTransmissionTime()&&null!==this.getLastSuccessfulTransmissionTime()?{lastSuccessfulTransmissionTime:Yl(Xl,this,Zl).call(this,this.getLastSuccessfulTransmissionTime(),!1)}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage().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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"lastCheckedTime"!==t||void 0!==this.lastCheckedTime&&null!==this.lastCheckedTime?"lastChangedTime"!==t||void 0!==this.lastChangedTime&&null!==this.lastChangedTime?"lastSuccessfulTransmissionTime"!==t||void 0!==this.lastSuccessfulTransmissionTime&&null!==this.lastSuccessfulTransmissionTime?"status"!==t||void 0!==this.status&&null!==this.status?"message"!==t||void 0!==this.message&&null!==this.message?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("message","undefined or null"):new U("status","undefined or null"):new U("lastSuccessfulTransmissionTime","undefined or null"):new U("lastChangedTime","undefined or null"):new U("lastCheckedTime","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("lastCheckedTime")&&null!==t.lastCheckedTime&&void 0!==t.lastCheckedTime&&n.setLastCheckedTime(t.lastCheckedTime),t.hasOwnProperty("lastChangedTime")&&null!==t.lastChangedTime&&void 0!==t.lastChangedTime&&n.setLastChangedTime(t.lastChangedTime),t.hasOwnProperty("lastSuccessfulTransmissionTime")&&null!==t.lastSuccessfulTransmissionTime&&void 0!==t.lastSuccessfulTransmissionTime&&n.setLastSuccessfulTransmissionTime(t.lastSuccessfulTransmissionTime),t.hasOwnProperty("status")&&null!==t.status&&void 0!==t.status&&n.setStatus(El.constructFromObject(t.status)),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&n.setMessage(Wl.constructFromObject(t.message)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Gl({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Kl(t.prototype,n),r&&Kl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Zl(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function ec(e){return ec="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},ec(e)}function tc(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 nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tc(Object(n),!0).forEach(function(t){rc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rc(e,t,n){return(t=oc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ic(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,oc(r.key),r)}}function oc(e){var t=function(e){if("object"!=ec(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ec(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ec(t)?t:t+""}Ql.prototype.lastCheckedTime=void 0,Ql.prototype.lastChangedTime=void 0,Ql.prototype.lastSuccessfulTransmissionTime=void 0,Ql.prototype.status=void 0,Ql.prototype.message=void 0,Ql.prototype.$reserved=void 0,Ql.prototype.$objectType=void 0,Ql.prototype.$unknownFields=void 0;var sc=new WeakSet,ac=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,sc),this.$objectType="common.v1.config.FQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{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 nc(nc({},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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new U("value","undefined or null");if(!A.validatePattern(this.value,/^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\.)+[a-zA-ZÀ-ÿ]{2,63}$/))return new U("value","does not satisfy required pattern: /^([a-zA-Z0-9À-ÿ]+(?:-[a-zA-Z0-9À-ÿ]+)*\\.)+[a-zA-ZÀ-ÿ]{2,63}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("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 i in n.$unknownFields=nc({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ic(t.prototype,n),r&&ic(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function uc(e){return uc="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},uc(e)}function lc(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 cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lc(Object(n),!0).forEach(function(t){dc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dc(e,t,n){return(t=pc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fc(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,pc(r.key),r)}}function pc(e){var t=function(e){if("object"!=uc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=uc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==uc(t)?t:t+""}ac.prototype.value=void 0,ac.prototype.$reserved=void 0,ac.prototype.$objectType=void 0,ac.prototype.$unknownFields=void 0;var yc=new WeakSet,hc=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,yc),this.value=t,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=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 cc(cc(cc({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$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=["value"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new U("value","undefined or null");if(!A.validatePattern(this.value,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new U("value","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new U("prefixLength","undefined or null");if(!A.validateMaximum(this.prefixLength,32))return new U("prefixLength","does not satisfy required maximum constraint: 32");if(!A.validateMinimum(this.prefixLength,0))return new U("prefixLength","does not satisfy required minimum constraint: 0")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=cc({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&fc(t.prototype,n),r&&fc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function vc(e){return vc="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},vc(e)}function bc(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 mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bc(Object(n),!0).forEach(function(t){gc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gc(e,t,n){return(t=Oc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wc(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,Oc(r.key),r)}}function Oc(e){var t=function(e){if("object"!=vc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vc(t)?t:t+""}hc.prototype.value=void 0,hc.prototype.prefixLength=32,hc.prototype.$reserved=void 0,hc.prototype.$objectType=void 0,hc.prototype.$unknownFields=void 0;var jc=new WeakSet,$c=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,jc),this.value=t,this.$objectType="common.v1.config.IPv6Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getPrefixLength",value:function(){return this.prefixLength}},{key:"setPrefixLength",value:function(e){this.prefixLength=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 mc(mc(mc({},void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{}),void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{}),{},{$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=["value"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new U("value","undefined or null");if(!A.validatePattern(this.value,/^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/))return new U("value","does not satisfy required pattern: /^(?:(?:(?:[A-Fa-f0-9]{1,4}:){6}|(?=(?:[A-Fa-f0-9]{0,4}:){0,6}(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$)(([0-9a-fA-F]{1,4}:){0,5}|:)((:[0-9a-fA-F]{1,4}){1,5}:|:)|::(?:[A-Fa-f0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])|(?:[A-Fa-f0-9]{1,4}:){7}[A-Fa-f0-9]{1,4}|(?=(?:[A-Fa-f0-9]{0,4}:){0,7}[A-Fa-f0-9]{0,4}$)(([0-9a-fA-F]{1,4}:){1,7}|:)((:[0-9a-fA-F]{1,4}){1,7}|:)|(?:[A-Fa-f0-9]{1,4}:){7}:|:(:[A-Fa-f0-9]{1,4}){7})$/")}if("prefixLength"===t){if(void 0===this.prefixLength||null===this.prefixLength)return new U("prefixLength","undefined or null");if(!A.validateMaximum(this.prefixLength,128))return new U("prefixLength","does not satisfy required maximum constraint: 128");if(!A.validateMinimum(this.prefixLength,0))return new U("prefixLength","does not satisfy required minimum constraint: 0")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("value")&&null!==t.value&&void 0!==t.value&&n.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&n.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=mc({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&wc(t.prototype,n),r&&wc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function kc(e){return kc="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},kc(e)}function Tc(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?Tc(Object(n),!0).forEach(function(t){Ec(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ec(e,t,n){return(t=Fc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sc(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,Fc(r.key),r)}}function Fc(e){var t=function(e){if("object"!=kc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kc(t)?t:t+""}$c.prototype.value=void 0,$c.prototype.prefixLength=128,$c.prototype.$reserved=void 0,$c.prototype.$objectType=void 0,$c.prototype.$unknownFields=void 0;var Dc=new WeakSet,Ac=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,Dc),this.$objectType="common.v1.config.IPAddressOrFQDN",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIpv4",value:function(){return this.ipv4}},{key:"setIpv4",value:function(e){this.ipv4=e}},{key:"getIpv6",value:function(){return this.ipv6}},{key:"setIpv6",value:function(e){this.ipv6=e}},{key:"getFqdn",value:function(){return this.fqdn}},{key:"setFqdn",value:function(e){this.fqdn=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:"hasIpv4",value:function(){return!(void 0===this.ipv4||null===this.ipv4)}},{key:"hasIpv6",value:function(){return!(void 0===this.ipv6||null===this.ipv6)}},{key:"hasFqdn",value:function(){return!(void 0===this.fqdn||null===this.fqdn)}},{key:"isValid",value:function(){return this.hasIpv4()||this.hasIpv6()||this.hasFqdn()}},{key:"toJson",value:function(e){return Pc(Pc(Pc(Pc({},void 0!==this.getIpv4()&&null!==this.getIpv4()?{ipv4:this.getIpv4().toJson(!1)}:{}),void 0!==this.getIpv6()&&null!==this.getIpv6()?{ipv6:this.getIpv6().toJson(!1)}:{}),void 0!==this.getFqdn()&&null!==this.getFqdn()?{fqdn:this.getFqdn().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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"ipv4"!==t||void 0!==this.ipv4&&null!==this.ipv4?"ipv6"!==t||void 0!==this.ipv6&&null!==this.ipv6?"fqdn"!==t||void 0!==this.fqdn&&null!==this.fqdn?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("fqdn","undefined or null"):new U("ipv6","undefined or null"):new U("ipv4","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("ipv4")&&null!==t.ipv4&&void 0!==t.ipv4&&n.setIpv4(hc.constructFromObject(t.ipv4)),t.hasOwnProperty("ipv6")&&null!==t.ipv6&&void 0!==t.ipv6&&n.setIpv6($c.constructFromObject(t.ipv6)),t.hasOwnProperty("fqdn")&&null!==t.fqdn&&void 0!==t.fqdn&&n.setFqdn(ac.constructFromObject(t.fqdn)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Pc({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Sc(t.prototype,n),r&&Sc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Ac.prototype.ipv4=void 0,Ac.prototype.ipv6=void 0,Ac.prototype.fqdn=void 0,Ac.prototype.$reserved=void 0,Ac.prototype.$objectType=void 0,Ac.prototype.$unknownFields=void 0;var Cc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",HTTP:"HTTP",HTTPS:"HTTPS",SOCKS:"SOCKS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Cc).find(function(t){return Cc[t]===e});return null==t?Cc.$UNKNOWN:Cc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Cc.$UNKNOWN:case Cc.$REDACTED:case Cc.HTTP:case Cc.HTTPS:case Cc.SOCKS:return;default:throw new Error("Invalid : must be ProxyType.{ $UNKNOWN|$REDACTED|HTTP|HTTPS|SOCKS }")}}};Object.freeze(Cc);const Ic=Cc;function Rc(e){return Rc="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},Rc(e)}function Uc(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 xc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uc(Object(n),!0).forEach(function(t){Nc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nc(e,t,n){return(t=Mc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _c(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,Mc(r.key),r)}}function Mc(e){var t=function(e){if("object"!=Rc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rc(t)?t:t+""}var Vc=new WeakSet,Lc=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,Vc),this.$objectType="monitoring.v4.serviceability.HttpProxy",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getAddressValue",value:function(){return this.addressValue}},{key:"setAddressValue",value:function(e){this.addressValue=e}},{key:"getPort",value:function(){return this.port}},{key:"setPort",value:function(e){this.port=e}},{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=e}},{key:"getProxyTypes",value:function(){return this.proxyTypes}},{key:"setProxyTypes",value:function(e){this.proxyTypes=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 xc(xc(xc(xc(xc(xc(xc({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getAddressValue()&&null!==this.getAddressValue()?{addressValue:this.getAddressValue().toJson(!1)}:{}),void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getProxyTypes()&&null!==this.getProxyTypes()?{proxyTypes:this.getProxyTypes()}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("addressValue"===t&&(void 0===this.addressValue||null===this.addressValue))return new U("addressValue","undefined or null");if("port"===t){if(void 0===this.port||null===this.port)return new U("port","undefined or null");if(!A.validateMaximum(this.port,65536))return new U("port","does not satisfy required maximum constraint: 65536");if(!A.validateMinimum(this.port,0))return new U("port","does not satisfy required minimum constraint: 0")}if("username"===t){if(void 0===this.username||null===this.username)return new U("username","undefined or null");if(!A.validateMaxLength(this.username,255))return new U("username","does not satisfy required maxLength constraint: 255")}if("password"===t&&(void 0===this.password||null===this.password))return new U("password","undefined or null");if("proxyTypes"===t){if(void 0===this.proxyTypes||null===this.proxyTypes)return new U("proxyTypes","undefined or null");if(!A.validateMaxItems(this.proxyTypes,100))return new U("proxyTypes","does not satisfy required maxItems constraint: 100")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=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("addressValue")&&null!==t.addressValue&&void 0!==t.addressValue&&s.setAddressValue(Ac.constructFromObject(t.addressValue)),t.hasOwnProperty("port")&&null!==t.port&&void 0!==t.port&&s.setPort(t.port),t.hasOwnProperty("username")&&null!==t.username&&void 0!==t.username&&s.setUsername(t.username),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&s.setPassword(t.password),t.hasOwnProperty("proxyTypes")&&null!==t.proxyTypes&&void 0!==t.proxyTypes){for(o=[],n=t.proxyTypes,i=0;i<n.length;i++)r=Ic.constructFromObject(n[i],void 0),o.push(r);s.setProxyTypes(o)}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=xc({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&_c(t.prototype,n),r&&_c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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 Wc(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 Bc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach(function(t){zc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zc(e,t,n){return(t=qc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gc(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,qc(r.key),r)}}function qc(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+""}Lc.prototype.name=void 0,Lc.prototype.addressValue=void 0,Lc.prototype.port=void 0,Lc.prototype.username=void 0,Lc.prototype.password=void 0,Lc.prototype.proxyTypes=void 0,Lc.prototype.$reserved=void 0,Lc.prototype.$objectType=void 0,Lc.prototype.$unknownFields=void 0;var Kc=new WeakSet,Hc=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,Kc),this.$objectType="monitoring.v4.serviceability.ServiceCenter",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getIpAddress",value:function(){return this.ipAddress}},{key:"setIpAddress",value:function(e){this.ipAddress=e}},{key:"getUsername",value:function(){return this.username}},{key:"setUsername",value:function(e){this.username=e}},{key:"getPort",value:function(){return this.port}},{key:"setPort",value:function(e){this.port=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 Bc(Bc(Bc(Bc(Bc({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress()}:{}),void 0!==this.getUsername()&&null!==this.getUsername()?{username:this.getUsername()}:{}),void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("ipAddress"===t){if(void 0===this.ipAddress||null===this.ipAddress)return new U("ipAddress","undefined or null");if(!A.validatePattern(this.ipAddress,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new U("ipAddress","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}if("username"===t){if(void 0===this.username||null===this.username)return new U("username","undefined or null");if(!A.validateMaxLength(this.username,255))return new U("username","does not satisfy required maxLength constraint: 255")}if("port"===t){if(void 0===this.port||null===this.port)return new U("port","undefined or null");if(!A.validateMaximum(this.port,65536))return new U("port","does not satisfy required maximum constraint: 65536");if(!A.validateMinimum(this.port,0))return new U("port","does not satisfy required minimum constraint: 0")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("ipAddress")&&null!==t.ipAddress&&void 0!==t.ipAddress&&n.setIpAddress(t.ipAddress),t.hasOwnProperty("username")&&null!==t.username&&void 0!==t.username&&n.setUsername(t.username),t.hasOwnProperty("port")&&null!==t.port&&void 0!==t.port&&n.setPort(t.port),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Bc({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Gc(t.prototype,n),r&&Gc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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 Qc(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){Zc(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 Zc(e,t,n){return(t=td(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ed(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,td(r.key),r)}}function td(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+""}Hc.prototype.name=void 0,Hc.prototype.ipAddress=void 0,Hc.prototype.username=void 0,Hc.prototype.port=void 0,Hc.prototype.$reserved=void 0,Hc.prototype.$objectType=void 0,Hc.prototype.$unknownFields=void 0;var nd=new WeakSet,rd=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,nd),this.$objectType="monitoring.v4.serviceability.RemoteTunnelDetails",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getHttpProxy",value:function(){return this.httpProxy}},{key:"setHttpProxy",value:function(e){this.httpProxy=e}},{key:"getServiceCenter",value:function(){return this.serviceCenter}},{key:"setServiceCenter",value:function(e){this.serviceCenter=e}},{key:"getConnectionStatus",value:function(){return this.connectionStatus}},{key:"setConnectionStatus",value:function(e){this.connectionStatus=e}},{key:"getTransportStatus",value:function(){return this.transportStatus}},{key:"setTransportStatus",value:function(e){this.transportStatus=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 Qc(Qc(Qc(Qc(Qc({},void 0!==this.getHttpProxy()&&null!==this.getHttpProxy()?{httpProxy:this.getHttpProxy().toJson(!1)}:{}),void 0!==this.getServiceCenter()&&null!==this.getServiceCenter()?{serviceCenter:this.getServiceCenter().toJson(!1)}:{}),void 0!==this.getConnectionStatus()&&null!==this.getConnectionStatus()?{connectionStatus:this.getConnectionStatus().toJson(!1)}:{}),void 0!==this.getTransportStatus()&&null!==this.getTransportStatus()?{transportStatus:this.getTransportStatus().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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"httpProxy"!==t||void 0!==this.httpProxy&&null!==this.httpProxy?"serviceCenter"!==t||void 0!==this.serviceCenter&&null!==this.serviceCenter?"connectionStatus"!==t||void 0!==this.connectionStatus&&null!==this.connectionStatus?"transportStatus"!==t||void 0!==this.transportStatus&&null!==this.transportStatus?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("transportStatus","undefined or null"):new U("connectionStatus","undefined or null"):new U("serviceCenter","undefined or null"):new U("httpProxy","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("httpProxy")&&null!==t.httpProxy&&void 0!==t.httpProxy&&n.setHttpProxy(Lc.constructFromObject(t.httpProxy)),t.hasOwnProperty("serviceCenter")&&null!==t.serviceCenter&&void 0!==t.serviceCenter&&n.setServiceCenter(Hc.constructFromObject(t.serviceCenter)),t.hasOwnProperty("connectionStatus")&&null!==t.connectionStatus&&void 0!==t.connectionStatus&&n.setConnectionStatus(Ql.constructFromObject(t.connectionStatus)),t.hasOwnProperty("transportStatus")&&null!==t.transportStatus&&void 0!==t.transportStatus&&n.setTransportStatus(Ql.constructFromObject(t.transportStatus)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Qc({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ed(t.prototype,n),r&&ed(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function id(e){return id="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},id(e)}function od(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 sd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?od(Object(n),!0).forEach(function(t){ad(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):od(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ad(e,t,n){return(t=ld(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ud(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,ld(r.key),r)}}function ld(e){var t=function(e){if("object"!=id(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=id(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==id(t)?t:t+""}function cd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(cd=function(){return!!e})()}function dd(e){return dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dd(e)}function fd(e,t){return fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fd(e,t)}rd.prototype.httpProxy=void 0,rd.prototype.serviceCenter=void 0,rd.prototype.connectionStatus=void 0,rd.prototype.transportStatus=void 0,rd.prototype.$reserved=void 0,rd.prototype.$objectType=void 0,rd.prototype.$unknownFields=void 0;var pd=new WeakSet,yd=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=dd(t),function(e,t){if(t&&("object"==id(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,cd()?Reflect.construct(t,n||[],dd(e).constructor):t.apply(e,n))}(this,t),pd),e.$objectType="monitoring.v4.serviceability.AlertEmailConfiguration",e.$reserved={$fv:"v4.r1"},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&&fd(e,t)}(t,e),n=t,r=[{key:"getDefaultNutanixEmail",value:function(){return this.defaultNutanixEmail}},{key:"setDefaultNutanixEmail",value:function(e){this.defaultNutanixEmail=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getHasDefaultNutanixEmail",value:function(){return this.hasDefaultNutanixEmail}},{key:"setHasDefaultNutanixEmail",value:function(e){this.hasDefaultNutanixEmail=e}},{key:"getIsEmailDigestEnabled",value:function(){return this.isEmailDigestEnabled}},{key:"setIsEmailDigestEnabled",value:function(e){this.isEmailDigestEnabled=e}},{key:"getIsEmptyAlertEmailDigestSkipped",value:function(){return this.isEmptyAlertEmailDigestSkipped}},{key:"setIsEmptyAlertEmailDigestSkipped",value:function(e){this.isEmptyAlertEmailDigestSkipped=e}},{key:"getEmailConfigRules",value:function(){return this.emailConfigRules}},{key:"setEmailConfigRules",value:function(e){this.emailConfigRules=e}},{key:"getEmailContactList",value:function(){return this.emailContactList}},{key:"setEmailContactList",value:function(e){this.emailContactList=e}},{key:"getEmailTemplate",value:function(){return this.emailTemplate}},{key:"setEmailTemplate",value:function(e){this.emailTemplate=e}},{key:"getTunnelDetails",value:function(){return this.tunnelDetails}},{key:"setTunnelDetails",value:function(e){this.tunnelDetails=e}},{key:"getAlertEmailDigestSendTime",value:function(){return this.alertEmailDigestSendTime}},{key:"setAlertEmailDigestSendTime",value:function(e){this.alertEmailDigestSendTime=e}},{key:"getAlertEmailDigestSendTimezone",value:function(){return this.alertEmailDigestSendTimezone}},{key:"setAlertEmailDigestSendTimezone",value:function(e){this.alertEmailDigestSendTimezone=e}},{key:"toJson",value:function(e){return sd(!1===e?sd(sd(sd(sd(sd(sd(sd(sd(sd(sd(sd(sd(sd(sd({},void 0!==this.getDefaultNutanixEmail()&&null!==this.getDefaultNutanixEmail()?{defaultNutanixEmail:this.getDefaultNutanixEmail()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getHasDefaultNutanixEmail()&&null!==this.getHasDefaultNutanixEmail()?{hasDefaultNutanixEmail:this.getHasDefaultNutanixEmail()}:{}),void 0!==this.getIsEmailDigestEnabled()&&null!==this.getIsEmailDigestEnabled()?{isEmailDigestEnabled:this.getIsEmailDigestEnabled()}:{}),void 0!==this.getIsEmptyAlertEmailDigestSkipped()&&null!==this.getIsEmptyAlertEmailDigestSkipped()?{isEmptyAlertEmailDigestSkipped:this.getIsEmptyAlertEmailDigestSkipped()}:{}),void 0!==this.getEmailConfigRules()&&null!==this.getEmailConfigRules()?{emailConfigRules:this.getEmailConfigRules().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEmailContactList()&&null!==this.getEmailContactList()?{emailContactList:this.getEmailContactList()}:{}),void 0!==this.getEmailTemplate()&&null!==this.getEmailTemplate()?{emailTemplate:this.getEmailTemplate().toJson(!1)}:{}),void 0!==this.getTunnelDetails()&&null!==this.getTunnelDetails()?{tunnelDetails:this.getTunnelDetails().toJson(!1)}:{}),void 0!==this.getAlertEmailDigestSendTime()&&null!==this.getAlertEmailDigestSendTime()?{alertEmailDigestSendTime:this.getAlertEmailDigestSendTime()}:{}),void 0!==this.getAlertEmailDigestSendTimezone()&&null!==this.getAlertEmailDigestSendTimezone()?{alertEmailDigestSendTimezone:this.getAlertEmailDigestSendTimezone()}:{}),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()}:{}):sd(sd(sd(sd(sd(sd(sd(sd(sd(sd(sd({},void 0!==this.getDefaultNutanixEmail()&&null!==this.getDefaultNutanixEmail()?{defaultNutanixEmail:this.getDefaultNutanixEmail()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getHasDefaultNutanixEmail()&&null!==this.getHasDefaultNutanixEmail()?{hasDefaultNutanixEmail:this.getHasDefaultNutanixEmail()}:{}),void 0!==this.getIsEmailDigestEnabled()&&null!==this.getIsEmailDigestEnabled()?{isEmailDigestEnabled:this.getIsEmailDigestEnabled()}:{}),void 0!==this.getIsEmptyAlertEmailDigestSkipped()&&null!==this.getIsEmptyAlertEmailDigestSkipped()?{isEmptyAlertEmailDigestSkipped:this.getIsEmptyAlertEmailDigestSkipped()}:{}),void 0!==this.getEmailConfigRules()&&null!==this.getEmailConfigRules()?{emailConfigRules:this.getEmailConfigRules().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEmailContactList()&&null!==this.getEmailContactList()?{emailContactList:this.getEmailContactList()}:{}),void 0!==this.getEmailTemplate()&&null!==this.getEmailTemplate()?{emailTemplate:this.getEmailTemplate().toJson(!1)}:{}),void 0!==this.getTunnelDetails()&&null!==this.getTunnelDetails()?{tunnelDetails:this.getTunnelDetails().toJson(!1)}:{}),void 0!==this.getAlertEmailDigestSendTime()&&null!==this.getAlertEmailDigestSendTime()?{alertEmailDigestSendTime:this.getAlertEmailDigestSendTime()}:{}),void 0!==this.getAlertEmailDigestSendTimezone()&&null!==this.getAlertEmailDigestSendTimezone()?{alertEmailDigestSendTimezone:this.getAlertEmailDigestSendTimezone()}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("defaultNutanixEmail"===t){if(void 0===this.defaultNutanixEmail||null===this.defaultNutanixEmail)return new U("defaultNutanixEmail","undefined or null");if(!A.validatePattern(this.defaultNutanixEmail,/^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/))return new U("defaultNutanixEmail","does not satisfy required pattern: /^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$/")}if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new U("isEnabled","undefined or null");if("hasDefaultNutanixEmail"===t&&(void 0===this.hasDefaultNutanixEmail||null===this.hasDefaultNutanixEmail))return new U("hasDefaultNutanixEmail","undefined or null");if("isEmailDigestEnabled"===t&&(void 0===this.isEmailDigestEnabled||null===this.isEmailDigestEnabled))return new U("isEmailDigestEnabled","undefined or null");if("isEmptyAlertEmailDigestSkipped"===t&&(void 0===this.isEmptyAlertEmailDigestSkipped||null===this.isEmptyAlertEmailDigestSkipped))return new U("isEmptyAlertEmailDigestSkipped","undefined or null");if("emailConfigRules"===t){if(void 0===this.emailConfigRules||null===this.emailConfigRules)return new U("emailConfigRules","undefined or null");if(!A.validateMaxItems(this.emailConfigRules,100))return new U("emailConfigRules","does not satisfy required maxItems constraint: 100")}if("emailContactList"===t){if(void 0===this.emailContactList||null===this.emailContactList)return new U("emailContactList","undefined or null");if(!A.validateMaxItems(this.emailContactList,100))return new U("emailContactList","does not satisfy required maxItems constraint: 100")}return"emailTemplate"!==t||void 0!==this.emailTemplate&&null!==this.emailTemplate?"tunnelDetails"!==t||void 0!==this.tunnelDetails&&null!==this.tunnelDetails?"alertEmailDigestSendTime"!==t||void 0!==this.alertEmailDigestSendTime&&null!==this.alertEmailDigestSendTime?"alertEmailDigestSendTimezone"!==t||void 0!==this.alertEmailDigestSendTimezone&&null!==this.alertEmailDigestSendTimezone?new U(t,"no such property exists"):new U("alertEmailDigestSendTimezone","undefined or null"):new U("alertEmailDigestSendTime","undefined or null"):new U("tunnelDetails","undefined or null"):new U("emailTemplate","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,An.constructFromObject(e,s,!0),e.hasOwnProperty("defaultNutanixEmail")&&null!==e.defaultNutanixEmail&&void 0!==e.defaultNutanixEmail&&s.setDefaultNutanixEmail(e.defaultNutanixEmail),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&s.setIsEnabled(e.isEnabled),e.hasOwnProperty("hasDefaultNutanixEmail")&&null!==e.hasDefaultNutanixEmail&&void 0!==e.hasDefaultNutanixEmail&&s.setHasDefaultNutanixEmail(e.hasDefaultNutanixEmail),e.hasOwnProperty("isEmailDigestEnabled")&&null!==e.isEmailDigestEnabled&&void 0!==e.isEmailDigestEnabled&&s.setIsEmailDigestEnabled(e.isEmailDigestEnabled),e.hasOwnProperty("isEmptyAlertEmailDigestSkipped")&&null!==e.isEmptyAlertEmailDigestSkipped&&void 0!==e.isEmptyAlertEmailDigestSkipped&&s.setIsEmptyAlertEmailDigestSkipped(e.isEmptyAlertEmailDigestSkipped),e.hasOwnProperty("emailConfigRules")&&null!==e.emailConfigRules&&void 0!==e.emailConfigRules){for(o=[],n=e.emailConfigRules,i=0;i<n.length;i++)r=bl.constructFromObject(n[i],void 0),o.push(r);s.setEmailConfigRules(o)}if(e.hasOwnProperty("emailContactList")&&null!==e.emailContactList&&void 0!==e.emailContactList){for(o=[],n=e.emailContactList,i=0;i<n.length;i++)o.push(n[i]);s.setEmailContactList(o)}if(e.hasOwnProperty("emailTemplate")&&null!==e.emailTemplate&&void 0!==e.emailTemplate&&s.setEmailTemplate(Tl.constructFromObject(e.emailTemplate)),e.hasOwnProperty("tunnelDetails")&&null!==e.tunnelDetails&&void 0!==e.tunnelDetails&&s.setTunnelDetails(rd.constructFromObject(e.tunnelDetails)),e.hasOwnProperty("alertEmailDigestSendTime")&&null!==e.alertEmailDigestSendTime&&void 0!==e.alertEmailDigestSendTime&&s.setAlertEmailDigestSendTime(e.alertEmailDigestSendTime),e.hasOwnProperty("alertEmailDigestSendTimezone")&&null!==e.alertEmailDigestSendTimezone&&void 0!==e.alertEmailDigestSendTimezone&&s.setAlertEmailDigestSendTimezone(e.alertEmailDigestSendTimezone),!a)for(var u in s.$unknownFields=sd({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ud(n.prototype,r),i&&ud(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(An);function hd(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 vd(e){return vd="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},vd(e)}function bd(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 md(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bd(Object(n),!0).forEach(function(t){gd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gd(e,t,n){return(t=Od(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wd(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,Od(r.key),r)}}function Od(e){var t=function(e){if("object"!=vd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vd(t)?t:t+""}function jd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(jd=function(){return!!e})()}function $d(e){return $d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$d(e)}function kd(e,t){return kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kd(e,t)}function Td(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")}yd.prototype.defaultNutanixEmail=void 0,yd.prototype.isEnabled=!1,yd.prototype.hasDefaultNutanixEmail=!1,yd.prototype.isEmailDigestEnabled=!1,yd.prototype.isEmptyAlertEmailDigestSkipped=!1,yd.prototype.emailConfigRules=void 0,yd.prototype.emailContactList=void 0,yd.prototype.emailTemplate=void 0,yd.prototype.tunnelDetails=void 0,yd.prototype.alertEmailDigestSendTime=void 0,yd.prototype.alertEmailDigestSendTimezone=void 0,An.prototype.extId=void 0,An.prototype.links=void 0,wn.prototype.tenantId=void 0;var Pd=new WeakSet,Ed=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=$d(t),function(e,t){if(t&&("object"==vd(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,jd()?Reflect.construct(t,n||[],$d(e).constructor):t.apply(e,n))}(this,t),Pd),e.$objectType="monitoring.v4.serviceability.GetAlertEmailConfigurationApiResponse",e.$reserved={$fv:"v4.r1"},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&&kd(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 md(md(md({},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}):Td(Pd,this,Sd).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}):Td(Pd,this,Sd).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:vd(e.data)){case"monitoring.v4.serviceability.AlertEmailConfiguration":r.setData(yd.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=md({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&wd(n.prototype,r),i&&wd(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Sd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return hd(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)?hd(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===vd(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 Fd(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 Dd(e){return Dd="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},Dd(e)}function Ad(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 Cd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ad(Object(n),!0).forEach(function(t){Id(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ad(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Id(e,t,n){return(t=Ud(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rd(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,Ud(r.key),r)}}function Ud(e){var t=function(e){if("object"!=Dd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dd(t)?t:t+""}function xd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xd=function(){return!!e})()}function Nd(e){return Nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nd(e)}function _d(e,t){return _d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_d(e,t)}function Md(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")}Ed.prototype.metadata=void 0,Ed.prototype.data=void 0,Ed.prototype.$reserved=void 0,Ed.prototype.$objectType=void 0,Ed.prototype.$unknownFields=void 0;var Vd=new WeakSet,Ld=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=Nd(t),function(e,t){if(t&&("object"==Dd(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,xd()?Reflect.construct(t,n||[],Nd(e).constructor):t.apply(e,n))}(this,t),Vd),e.$objectType="monitoring.v4.serviceability.UpdateAlertEmailConfigurationApiResponse",e.$reserved={$fv:"v4.r1"},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&&_d(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 Cd(Cd(Cd({},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}):Md(Vd,this,Jd).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}):Md(Vd,this,Jd).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Dd(n[0]),i=0;i<n.length;i++){if("monitoring.v4.error.AppMessage"!==s)throw"Unknown list of type "+s+" in data";r=Ut.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Dd(e.data)))throw"Unknown datatype "+s+" in data";a.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Cd({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Rd(n.prototype,r),i&&Rd(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Jd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Fd(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)?Fd(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Dd(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 Wd(e){return Wd="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},Wd(e)}function Bd(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 zd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bd(Object(n),!0).forEach(function(t){Gd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gd(e,t,n){return(t=Kd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qd(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,Kd(r.key),r)}}function Kd(e){var t=function(e){if("object"!=Wd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wd(t)?t:t+""}function Hd(e,t){return e.get(Yd(e,t))}function Yd(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")}Ld.prototype.metadata=void 0,Ld.prototype.data=void 0,Ld.prototype.$reserved=void 0,Ld.prototype.$objectType=void 0,Ld.prototype.$unknownFields=void 0;var Xd=new WeakMap,Qd=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,Xd,void 0),this.apiClient=t||lt.instance,n=Xd,r=new Set,n.set(Yd(n,this),r),Hd(Xd,this).add("authorization"),Hd(Xd,this).add("cookie"),Hd(Xd,this).add("host"),Hd(Xd,this).add("user-agent")},t=[{key:"getAlertEmailConfiguration",value:function(){var e=this,t=arguments.length>0?arguments.length<=0?void 0:arguments[0]:{},n={};Object.keys(t).forEach(function(r){Hd(Xd,e).has(r.toLowerCase())||(n[r]=t[r])});var r=zd({},n),i=Ed;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/email-config","GET",{},{},r,{},null,["basicAuthScheme"],[],["application/json"],i)}},{key:"updateAlertEmailConfiguration",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 yd&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling updateAlertEmailConfiguration");var i={};Object.keys(r).forEach(function(e){Hd(Xd,n).has(e.toLowerCase())||(i[e]=r[e])});var o=zd({},i);lt.addEtagReferenceToHeader(e,o);var s=Ld;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/email-config","PUT",{},{},o,{},t,["basicAuthScheme"],["application/json"],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&qd(e.prototype,t),n&&qd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Zd={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CREATE:"CREATE",UPDATE:"UPDATE",DELETE:"DELETE",POWERSTATECHANGE:"POWERSTATECHANGE",HA:"HA",RESTORE:"RESTORE",MIGRATE:"MIGRATE",ENABLE:"ENABLE",DISABLE:"DISABLE",RESET:"RESET",LOGIN:"LOGIN",LOGOUT:"LOGOUT",VALIDATE:"VALIDATE",FAILOVER:"FAILOVER",INPROGRESS:"INPROGRESS",ON:"ON",OFF:"OFF",JOINED:"JOINED",UNJOINED:"UNJOINED",PROTECTED:"PROTECTED",UNPROTECTED:"UNPROTECTED",QUARENTINED:"QUARENTINED",UNQUARENTINED:"UNQUARENTINED",START:"START",END:"END",TESTFAILOVER:"TESTFAILOVER",IMPORT:"IMPORT",EXPORT:"EXPORT",IMAGEIMPORT:"IMAGEIMPORT",IMAGETRANSFER:"IMAGETRANSFER",IMAGEREMOVE:"IMAGEREMOVE",IMAGEUPLOAD:"IMAGEUPLOAD",TEMPLATEGUESTUPDATEINITIATE:"TEMPLATEGUESTUPDATEINITIATE",TEMPLATEGUESTUPDATECANCEL:"TEMPLATEGUESTUPDATECANCEL",TEMPLATEGUESTUPDATECOMPLETE:"TEMPLATEGUESTUPDATECOMPLETE",TEMPLATEDEPLOY:"TEMPLATEDEPLOY",TEMPLATEVERSIONPUBLISH:"TEMPLATEVERSIONPUBLISH",CROSSCLUSTERMIGRATE:"CROSSCLUSTERMIGRATE",FLOWCONFIGMIGRATE:"FLOWCONFIGMIGRATE",SUSPEND:"SUSPEND",RESUME:"RESUME",GENERATEURL:"GENERATEURL",DOWNLOAD:"DOWNLOAD",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Zd).find(function(t){return Zd[t]===e});return null==t?Zd.$UNKNOWN:Zd[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Zd.$UNKNOWN:case Zd.$REDACTED:case Zd.CREATE:case Zd.UPDATE:case Zd.DELETE:case Zd.POWERSTATECHANGE:case Zd.HA:case Zd.RESTORE:case Zd.MIGRATE:case Zd.ENABLE:case Zd.DISABLE:case Zd.RESET:case Zd.LOGIN:case Zd.LOGOUT:case Zd.VALIDATE:case Zd.FAILOVER:case Zd.INPROGRESS:case Zd.ON:case Zd.OFF:case Zd.JOINED:case Zd.UNJOINED:case Zd.PROTECTED:case Zd.UNPROTECTED:case Zd.QUARENTINED:case Zd.UNQUARENTINED:case Zd.START:case Zd.END:case Zd.TESTFAILOVER:case Zd.IMPORT:case Zd.EXPORT:case Zd.IMAGEIMPORT:case Zd.IMAGETRANSFER:case Zd.IMAGEREMOVE:case Zd.IMAGEUPLOAD:case Zd.TEMPLATEGUESTUPDATEINITIATE:case Zd.TEMPLATEGUESTUPDATECANCEL:case Zd.TEMPLATEGUESTUPDATECOMPLETE:case Zd.TEMPLATEDEPLOY:case Zd.TEMPLATEVERSIONPUBLISH:case Zd.CROSSCLUSTERMIGRATE:case Zd.FLOWCONFIGMIGRATE:case Zd.SUSPEND:case Zd.RESUME:case Zd.GENERATEURL:case Zd.DOWNLOAD:return;default:throw new Error("Invalid : must be OperationType.{ $UNKNOWN|$REDACTED|CREATE|UPDATE|DELETE|POWERSTATECHANGE|HA|RESTORE|MIGRATE|ENABLE|DISABLE|RESET|LOGIN|LOGOUT|VALIDATE|FAILOVER|INPROGRESS|ON|OFF|JOINED|UNJOINED|PROTECTED|UNPROTECTED|QUARENTINED|UNQUARENTINED|START|END|TESTFAILOVER|IMPORT|EXPORT|IMAGEIMPORT|IMAGETRANSFER|IMAGEREMOVE|IMAGEUPLOAD|TEMPLATEGUESTUPDATEINITIATE|TEMPLATEGUESTUPDATECANCEL|TEMPLATEGUESTUPDATECOMPLETE|TEMPLATEDEPLOY|TEMPLATEVERSIONPUBLISH|CROSSCLUSTERMIGRATE|FLOWCONFIGMIGRATE|SUSPEND|RESUME|GENERATEURL|DOWNLOAD }")}}};Object.freeze(Zd);const ef=Zd;function tf(e){return tf="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},tf(e)}function nf(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 rf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(n),!0).forEach(function(t){of(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function of(e,t,n){return(t=af(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,af(r.key),r)}}function af(e){var t=function(e){if("object"!=tf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tf(t)?t:t+""}var uf=new WeakSet,lf=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,uf),this.$objectType="monitoring.v4.serviceability.AuditEntityReference",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{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 rf(rf(rf(rf({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new U("type","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),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 i in n.$unknownFields=rf({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&sf(t.prototype,n),r&&sf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();lf.prototype.type=void 0,lf.prototype.name=void 0,lf.prototype.extId=void 0,lf.prototype.$reserved=void 0,lf.prototype.$objectType=void 0,lf.prototype.$unknownFields=void 0;var cf={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUCCEEDED:"SUCCEEDED",FAILED:"FAILED",ABORTED:"ABORTED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(cf).find(function(t){return cf[t]===e});return null==t?cf.$UNKNOWN:cf[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case cf.$UNKNOWN:case cf.$REDACTED:case cf.SUCCEEDED:case cf.FAILED:case cf.ABORTED:return;default:throw new Error("Invalid : must be Status.{ $UNKNOWN|$REDACTED|SUCCEEDED|FAILED|ABORTED }")}}};Object.freeze(cf);const df=cf;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 yf(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){hf(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 hf(e,t,n){return(t=bf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vf(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,bf(r.key),r)}}function bf(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+""}var mf=new WeakSet,gf=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,mf),this.$objectType="monitoring.v4.serviceability.UserReference",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:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getIpAddress",value:function(){return this.ipAddress}},{key:"setIpAddress",value:function(e){this.ipAddress=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({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress()}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("ipAddress"===t){if(void 0===this.ipAddress||null===this.ipAddress)return new U("ipAddress","undefined or null");if(!A.validatePattern(this.ipAddress,/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/))return new U("ipAddress","does not satisfy required pattern: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),t.hasOwnProperty("ipAddress")&&null!==t.ipAddress&&void 0!==t.ipAddress&&n.setIpAddress(t.ipAddress),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=yf({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&vf(t.prototype,n),r&&vf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function wf(e){return wf="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},wf(e)}function Of(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 jf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Of(Object(n),!0).forEach(function(t){$f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Of(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $f(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 kf(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"!=wf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wf(t)?t:t+""}function Pf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pf=function(){return!!e})()}function Ef(e){return Ef=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ef(e)}function Sf(e,t){return Sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sf(e,t)}function Ff(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")}gf.prototype.extId=void 0,gf.prototype.name=void 0,gf.prototype.ipAddress=void 0,gf.prototype.$reserved=void 0,gf.prototype.$objectType=void 0,gf.prototype.$unknownFields=void 0;var Df=new WeakSet,Af=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=Ef(t),function(e,t){if(t&&("object"==wf(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,Pf()?Reflect.construct(t,n||[],Ef(e).constructor):t.apply(e,n))}(this,t),Df),e.$objectType="monitoring.v4.serviceability.Audit",e.$reserved={$fv:"v4.r1"},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&&Sf(e,t)}(t,e),n=t,r=[{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getClusterReference",value:function(){return this.clusterReference}},{key:"setClusterReference",value:function(e){this.clusterReference=e}},{key:"getAffectedEntities",value:function(){return this.affectedEntities}},{key:"setAffectedEntities",value:function(e){this.affectedEntities=e}},{key:"getOperationType",value:function(){return this.operationType}},{key:"setOperationType",value:function(e){this.operationType=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"getOperationStartTime",value:function(){return this.operationStartTime}},{key:"setOperationStartTime",value:function(e){this.operationStartTime=e}},{key:"getOperationEndTime",value:function(){return this.operationEndTime}},{key:"setOperationEndTime",value:function(e){this.operationEndTime=e}},{key:"getUserReference",value:function(){return this.userReference}},{key:"setUserReference",value:function(e){this.userReference=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"getAuditType",value:function(){return this.auditType}},{key:"setAuditType",value:function(e){this.auditType=e}},{key:"getStatus",value:function(){return this.status}},{key:"setStatus",value:function(e){this.status=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"toJson",value:function(e){return jf(!1===e?jf(jf(jf(jf(jf(jf(jf(jf(jf(jf(jf(jf(jf(jf(jf(jf({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getOperationStartTime()&&null!==this.getOperationStartTime()?{operationStartTime:Ff(Df,this,Cf).call(this,this.getOperationStartTime(),!1)}:{}),void 0!==this.getOperationEndTime()&&null!==this.getOperationEndTime()?{operationEndTime:Ff(Df,this,Cf).call(this,this.getOperationEndTime(),!1)}:{}),void 0!==this.getUserReference()&&null!==this.getUserReference()?{userReference:this.getUserReference().toJson(!1)}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getAuditType()&&null!==this.getAuditType()?{auditType:this.getAuditType()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:Ff(Df,this,Cf).call(this,this.getCreationTime(),!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()}:{}):jf(jf(jf(jf(jf(jf(jf(jf(jf(jf(jf(jf(jf({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getClusterReference()&&null!==this.getClusterReference()?{clusterReference:this.getClusterReference().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getOperationType()&&null!==this.getOperationType()?{operationType:this.getOperationType()}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getOperationStartTime()&&null!==this.getOperationStartTime()?{operationStartTime:Ff(Df,this,Cf).call(this,this.getOperationStartTime(),!1)}:{}),void 0!==this.getOperationEndTime()&&null!==this.getOperationEndTime()?{operationEndTime:Ff(Df,this,Cf).call(this,this.getOperationEndTime(),!1)}:{}),void 0!==this.getUserReference()&&null!==this.getUserReference()?{userReference:this.getUserReference().toJson(!1)}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),void 0!==this.getAuditType()&&null!==this.getAuditType()?{auditType:this.getAuditType()}:{}),void 0!==this.getStatus()&&null!==this.getStatus()?{status:this.getStatus()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:Ff(Df,this,Cf).call(this,this.getCreationTime(),!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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new U("sourceEntity","undefined or null");if("clusterReference"===t&&(void 0===this.clusterReference||null===this.clusterReference))return new U("clusterReference","undefined or null");if("affectedEntities"===t){if(void 0===this.affectedEntities||null===this.affectedEntities)return new U("affectedEntities","undefined or null");if(!A.validateMaxItems(this.affectedEntities,50))return new U("affectedEntities","does not satisfy required maxItems constraint: 50")}if("operationType"===t&&(void 0===this.operationType||null===this.operationType))return new U("operationType","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new U("message","undefined or null");if(!A.validateMaxLength(this.message,1024))return new U("message","does not satisfy required maxLength constraint: 1024")}if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new U("parameters","undefined or null");if(!A.validateMaxItems(this.parameters,100))return new U("parameters","does not satisfy required maxItems constraint: 100")}if("operationStartTime"===t&&(void 0===this.operationStartTime||null===this.operationStartTime))return new U("operationStartTime","undefined or null");if("operationEndTime"===t&&(void 0===this.operationEndTime||null===this.operationEndTime))return new U("operationEndTime","undefined or null");if("userReference"===t&&(void 0===this.userReference||null===this.userReference))return new U("userReference","undefined or null");if("serviceName"===t){if(void 0===this.serviceName||null===this.serviceName)return new U("serviceName","undefined or null");if(!A.validateMaxLength(this.serviceName,50))return new U("serviceName","does not satisfy required maxLength constraint: 50")}return"auditType"!==t||void 0!==this.auditType&&null!==this.auditType?"status"!==t||void 0!==this.status&&null!==this.status?"creationTime"!==t||void 0!==this.creationTime&&null!==this.creationTime?new U(t,"no such property exists"):new U("creationTime","undefined or null"):new U("status","undefined or null"):new U("auditType","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,An.constructFromObject(e,s,!0),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&s.setSourceEntity(lf.constructFromObject(e.sourceEntity)),e.hasOwnProperty("clusterReference")&&null!==e.clusterReference&&void 0!==e.clusterReference&&s.setClusterReference(qn.constructFromObject(e.clusterReference)),e.hasOwnProperty("affectedEntities")&&null!==e.affectedEntities&&void 0!==e.affectedEntities){for(o=[],n=e.affectedEntities,i=0;i<n.length;i++)r=qn.constructFromObject(n[i],void 0),o.push(r);s.setAffectedEntities(o)}if(e.hasOwnProperty("operationType")&&null!==e.operationType&&void 0!==e.operationType&&s.setOperationType(ef.constructFromObject(e.operationType)),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&s.setMessage(e.message),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(o=[],n=e.parameters,i=0;i<n.length;i++)r=ti.constructFromObject(n[i],void 0),o.push(r);s.setParameters(o)}if(e.hasOwnProperty("operationStartTime")&&null!==e.operationStartTime&&void 0!==e.operationStartTime&&s.setOperationStartTime(e.operationStartTime),e.hasOwnProperty("operationEndTime")&&null!==e.operationEndTime&&void 0!==e.operationEndTime&&s.setOperationEndTime(e.operationEndTime),e.hasOwnProperty("userReference")&&null!==e.userReference&&void 0!==e.userReference&&s.setUserReference(gf.constructFromObject(e.userReference)),e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&s.setServiceName(e.serviceName),e.hasOwnProperty("auditType")&&null!==e.auditType&&void 0!==e.auditType&&s.setAuditType(e.auditType),e.hasOwnProperty("status")&&null!==e.status&&void 0!==e.status&&s.setStatus(df.constructFromObject(e.status)),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&s.setCreationTime(e.creationTime),!a)for(var u in s.$unknownFields=jf({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&kf(n.prototype,r),i&&kf(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(An);function Cf(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function If(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 Rf(e){return Rf="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},Rf(e)}function Uf(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 xf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uf(Object(n),!0).forEach(function(t){Nf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Nf(e,t,n){return(t=Mf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,Mf(r.key),r)}}function Mf(e){var t=function(e){if("object"!=Rf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Rf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rf(t)?t:t+""}function Vf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Vf=function(){return!!e})()}function Lf(e){return Lf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lf(e)}function Jf(e,t){return Jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jf(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")}Af.prototype.sourceEntity=void 0,Af.prototype.clusterReference=void 0,Af.prototype.affectedEntities=void 0,Af.prototype.operationType=void 0,Af.prototype.message=void 0,Af.prototype.parameters=void 0,Af.prototype.operationStartTime=void 0,Af.prototype.operationEndTime=void 0,Af.prototype.userReference=void 0,Af.prototype.serviceName=void 0,Af.prototype.auditType=void 0,Af.prototype.status=void 0,Af.prototype.creationTime=void 0,An.prototype.extId=void 0,An.prototype.links=void 0,wn.prototype.tenantId=void 0;var Bf=new WeakSet,zf=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=Lf(t),function(e,t){if(t&&("object"==Rf(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,Vf()?Reflect.construct(t,n||[],Lf(e).constructor):t.apply(e,n))}(this,t),Bf),e.$objectType="monitoring.v4.serviceability.GetAuditApiResponse",e.$reserved={$fv:"v4.r1"},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&&Jf(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 xf(xf(xf({},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(Bf,this,Gf).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(Bf,this,Gf).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Rf(e.data)){case"monitoring.v4.serviceability.Audit":r.setData(Af.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=xf({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&_f(n.prototype,r),i&&_f(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Gf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return If(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)?If(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Rf(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 qf(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 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 Hf(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?Hf(Object(n),!0).forEach(function(t){Xf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xf(e,t,n){return(t=Zf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qf(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,Zf(r.key),r)}}function Zf(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 ep(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ep=function(){return!!e})()}function tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tp(e)}function np(e,t){return np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},np(e,t)}function rp(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")}zf.prototype.metadata=void 0,zf.prototype.data=void 0,zf.prototype.$reserved=void 0,zf.prototype.$objectType=void 0,zf.prototype.$unknownFields=void 0;var ip=new WeakSet,op=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=tp(t),function(e,t){if(t&&("object"==Kf(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,ep()?Reflect.construct(t,n||[],tp(e).constructor):t.apply(e,n))}(this,t),ip),e.$objectType="monitoring.v4.serviceability.ListAuditsApiResponse",e.$reserved={$fv:"v4.r1"},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&&np(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 Yf(Yf(Yf({},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}):rp(ip,this,sp).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}):rp(ip,this,sp).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Kf(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.Audit"!==s)throw"Unknown list of type "+s+" in data";r=Af.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Kf(e.data)))throw"Unknown datatype "+s+" in data";a.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Yf({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Qf(n.prototype,r),i&&Qf(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function sp(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return qf(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)?qf(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Kf(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 ap(e){return ap="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},ap(e)}function up(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 lp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?up(Object(n),!0).forEach(function(t){cp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):up(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cp(e,t,n){return(t=fp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dp(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,fp(r.key),r)}}function fp(e){var t=function(e){if("object"!=ap(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ap(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ap(t)?t:t+""}function pp(e,t){return e.get(yp(e,t))}function yp(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")}op.prototype.metadata=void 0,op.prototype.data=void 0,op.prototype.$reserved=void 0,op.prototype.$objectType=void 0,op.prototype.$unknownFields=void 0;var hp=new WeakMap,vp=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,hp,void 0),this.apiClient=t||lt.instance,n=hp,r=new Set,n.set(yp(n,this),r),pp(hp,this).add("authorization"),pp(hp,this).add("cookie"),pp(hp,this).add("host"),pp(hp,this).add("user-agent")},t=[{key:"getAuditById",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 getAuditById");var r={extId:e},i={};Object.keys(n).forEach(function(e){pp(hp,t).has(e.toLowerCase())||(i[e]=n[e])});var o=lp({},i),s=zf;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/audits/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listAudits",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=lp(lp(lp(lp(lp({},(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}:{}),i={};Object.keys(n).forEach(function(e){pp(hp,t).has(e.toLowerCase())||(i[e]=n[e])});var o=lp({},i),s=op;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/audits","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&dp(e.prototype,t),n&&dp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function bp(e){return bp="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},bp(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 gp(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){wp(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 wp(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 Op(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"!=bp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bp(t)?t:t+""}var $p=new WeakSet,kp=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,$p),this.userName=t,this.$objectType="monitoring.v4.serviceability.Credential",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getUserName",value:function(){return this.userName}},{key:"setUserName",value:function(e){this.userName=e}},{key:"getPassword",value:function(){return this.password}},{key:"setPassword",value:function(e){this.password=e}},{key:"getKeyFilePath",value:function(){return this.keyFilePath}},{key:"setKeyFilePath",value:function(e){this.keyFilePath=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 gp(gp(gp(gp({},void 0!==this.getUserName()&&null!==this.getUserName()?{userName:this.getUserName()}:{}),void 0!==this.getPassword()&&null!==this.getPassword()?{password:this.getPassword()}:{}),void 0!==this.getKeyFilePath()&&null!==this.getKeyFilePath()?{keyFilePath:this.getKeyFilePath()}:{}),{},{$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=["userName"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("userName"===t){if(void 0===this.userName||null===this.userName)return new U("userName","undefined or null");if(!A.validateMaxLength(this.userName,100))return new U("userName","does not satisfy required maxLength constraint: 100")}if("password"===t){if(void 0===this.password||null===this.password)return new U("password","undefined or null");if(!A.validateMaxLength(this.password,100))return new U("password","does not satisfy required maxLength constraint: 100")}if("keyFilePath"===t){if(void 0===this.keyFilePath||null===this.keyFilePath)return new U("keyFilePath","undefined or null");if(!A.validateMaxLength(this.keyFilePath,100))return new U("keyFilePath","does not satisfy required maxLength constraint: 100")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("userName")&&null!==t.userName&&void 0!==t.userName&&n.setUserName(t.userName),t.hasOwnProperty("password")&&null!==t.password&&void 0!==t.password&&n.setPassword(t.password),t.hasOwnProperty("keyFilePath")&&null!==t.keyFilePath&&void 0!==t.keyFilePath&&n.setKeyFilePath(t.keyFilePath),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=gp({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Op(t.prototype,n),r&&Op(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();kp.prototype.userName=void 0,kp.prototype.password=void 0,kp.prototype.keyFilePath=void 0,kp.prototype.$reserved=void 0,kp.prototype.$objectType=void 0,kp.prototype.$unknownFields=void 0;var Tp={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SFTP:"SFTP",FTP:"FTP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Tp).find(function(t){return Tp[t]===e});return null==t?Tp.$UNKNOWN:Tp[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Tp.$UNKNOWN:case Tp.$REDACTED:case Tp.SFTP:case Tp.FTP:return;default:throw new Error("Invalid : must be ServerUploadProtocol.{ $UNKNOWN|$REDACTED|SFTP|FTP }")}}};Object.freeze(Tp);const Pp=Tp;function Ep(e){return Ep="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},Ep(e)}function Sp(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 Fp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sp(Object(n),!0).forEach(function(t){Dp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dp(e,t,n){return(t=Cp(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,Cp(r.key),r)}}function Cp(e){var t=function(e){if("object"!=Ep(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ep(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ep(t)?t:t+""}var Ip=new WeakSet,Rp=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,Ip),this.protocol=t,this.serverAddress=n,this.credential=r,this.$objectType="monitoring.v4.serviceability.CustomServerUploadParams",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getProtocol",value:function(){return this.protocol}},{key:"setProtocol",value:function(e){this.protocol=e}},{key:"getServerAddress",value:function(){return this.serverAddress}},{key:"setServerAddress",value:function(e){this.serverAddress=e}},{key:"getPort",value:function(){return this.port}},{key:"setPort",value:function(e){this.port=e}},{key:"getCredential",value:function(){return this.credential}},{key:"setCredential",value:function(e){this.credential=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=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 Fp(Fp(Fp(Fp(Fp(Fp({},void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{}),void 0!==this.getServerAddress()&&null!==this.getServerAddress()?{serverAddress:this.getServerAddress().toJson(!1)}:{}),void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{}),void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().toJson(!1)}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),{},{$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=["protocol","serverAddress","credential"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("protocol"===t&&(void 0===this.protocol||null===this.protocol))return new U("protocol","undefined or null");if("serverAddress"===t&&(void 0===this.serverAddress||null===this.serverAddress))return new U("serverAddress","undefined or null");if("port"===t&&(void 0===this.port||null===this.port))return new U("port","undefined or null");if("credential"===t&&(void 0===this.credential||null===this.credential))return new U("credential","undefined or null");if("path"===t){if(void 0===this.path||null===this.path)return new U("path","undefined or null");if(!A.validateMaxLength(this.path,100))return new U("path","does not satisfy required maxLength constraint: 100")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("protocol")&&null!==t.protocol&&void 0!==t.protocol&&n.setProtocol(Pp.constructFromObject(t.protocol)),t.hasOwnProperty("serverAddress")&&null!==t.serverAddress&&void 0!==t.serverAddress&&n.setServerAddress(Ac.constructFromObject(t.serverAddress)),t.hasOwnProperty("port")&&null!==t.port&&void 0!==t.port&&n.setPort(t.port),t.hasOwnProperty("credential")&&null!==t.credential&&void 0!==t.credential&&n.setCredential(kp.constructFromObject(t.credential)),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Fp({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);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 Up(e){return Up="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},Up(e)}function xp(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 Np(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xp(Object(n),!0).forEach(function(t){_p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _p(e,t,n){return(t=Vp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mp(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,Vp(r.key),r)}}function Vp(e){var t=function(e){if("object"!=Up(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Up(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Up(t)?t:t+""}Rp.prototype.protocol=void 0,Rp.prototype.serverAddress=void 0,Rp.prototype.port=void 0,Rp.prototype.credential=void 0,Rp.prototype.path=void 0,Rp.prototype.$reserved=void 0,Rp.prototype.$objectType=void 0,Rp.prototype.$unknownFields=void 0;var Lp=new WeakSet,Jp=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,Lp),this.$objectType="monitoring.v4.serviceability.LocalUploadParams",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=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 Np(Np({},void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("path"===t){if(void 0===this.path||null===this.path)return new U("path","undefined or null");if(!A.validateMaxLength(this.path,100))return new U("path","does not satisfy required maxLength constraint: 100")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Np({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Mp(t.prototype,n),r&&Mp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wp(e){return Wp="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},Wp(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 zp(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=Kp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qp(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,Kp(r.key),r)}}function Kp(e){var t=function(e){if("object"!=Wp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wp(t)?t:t+""}Jp.prototype.path="/home/nutanix/data/logbay/bundles",Jp.prototype.$reserved=void 0,Jp.prototype.$objectType=void 0,Jp.prototype.$unknownFields=void 0;var Hp=new WeakSet,Yp=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,Hp),this.caseNumber=t,this.$objectType="monitoring.v4.serviceability.NtnxServerUploadParams",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCaseNumber",value:function(){return this.caseNumber}},{key:"setCaseNumber",value:function(e){this.caseNumber=e}},{key:"getProtocol",value:function(){return this.protocol}},{key:"setProtocol",value:function(e){this.protocol=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 zp(zp(zp({},void 0!==this.getCaseNumber()&&null!==this.getCaseNumber()?{caseNumber:this.getCaseNumber()}:{}),void 0!==this.getProtocol()&&null!==this.getProtocol()?{protocol:this.getProtocol()}:{}),{},{$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=["caseNumber"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("caseNumber"===t){if(void 0===this.caseNumber||null===this.caseNumber)return new U("caseNumber","undefined or null");if(!A.validateMinimum(this.caseNumber,1e6))return new U("caseNumber","does not satisfy required minimum constraint: 1000000")}return"protocol"!==t||void 0!==this.protocol&&null!==this.protocol?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("protocol","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("caseNumber")&&null!==t.caseNumber&&void 0!==t.caseNumber&&n.setCaseNumber(t.caseNumber),t.hasOwnProperty("protocol")&&null!==t.protocol&&void 0!==t.protocol&&n.setProtocol(Pp.constructFromObject(t.protocol)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=zp({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&qp(t.prototype,n),r&&qp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Xp(e){return Xp="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},Xp(e)}function Qp(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 Zp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qp(Object(n),!0).forEach(function(t){ey(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ey(e,t,n){return(t=ny(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ty(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,ny(r.key),r)}}function ny(e){var t=function(e){if("object"!=Xp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Xp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Xp(t)?t:t+""}Yp.prototype.caseNumber=void 0,Yp.prototype.protocol=void 0,Yp.prototype.$reserved=void 0,Yp.prototype.$objectType=void 0,Yp.prototype.$unknownFields=void 0;var ry=new WeakSet,iy=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,ry),this.credential=t,this.path=n,this.$objectType="monitoring.v4.serviceability.StorageContainerUploadParams",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getIpAddress",value:function(){return this.ipAddress}},{key:"setIpAddress",value:function(e){this.ipAddress=e}},{key:"getPort",value:function(){return this.port}},{key:"setPort",value:function(e){this.port=e}},{key:"getCredential",value:function(){return this.credential}},{key:"setCredential",value:function(e){this.credential=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=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 Zp(Zp(Zp(Zp(Zp({},void 0!==this.getIpAddress()&&null!==this.getIpAddress()?{ipAddress:this.getIpAddress().toJson(!1)}:{}),void 0!==this.getPort()&&null!==this.getPort()?{port:this.getPort()}:{}),void 0!==this.getCredential()&&null!==this.getCredential()?{credential:this.getCredential().toJson(!1)}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),{},{$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=["credential","path"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("ipAddress"===t&&(void 0===this.ipAddress||null===this.ipAddress))return new U("ipAddress","undefined or null");if("port"===t&&(void 0===this.port||null===this.port))return new U("port","undefined or null");if("credential"===t&&(void 0===this.credential||null===this.credential))return new U("credential","undefined or null");if("path"===t){if(void 0===this.path||null===this.path)return new U("path","undefined or null");if(!A.validateMaxLength(this.path,100))return new U("path","does not satisfy required maxLength constraint: 100")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("ipAddress")&&null!==t.ipAddress&&void 0!==t.ipAddress&&n.setIpAddress(hc.constructFromObject(t.ipAddress)),t.hasOwnProperty("port")&&null!==t.port&&void 0!==t.port&&n.setPort(t.port),t.hasOwnProperty("credential")&&null!==t.credential&&void 0!==t.credential&&n.setCredential(kp.constructFromObject(t.credential)),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&n.setPath(t.path),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Zp({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ty(t.prototype,n),r&&ty(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function oy(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 sy(e){return sy="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},sy(e)}function ay(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 uy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ay(Object(n),!0).forEach(function(t){ly(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ay(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ly(e,t,n){return(t=dy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cy(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,dy(r.key),r)}}function dy(e){var t=function(e){if("object"!=sy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sy(t)?t:t+""}function fy(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")}iy.prototype.ipAddress=void 0,iy.prototype.port=2222,iy.prototype.credential=void 0,iy.prototype.path=void 0,iy.prototype.$reserved=void 0,iy.prototype.$objectType=void 0,iy.prototype.$unknownFields=void 0;var py=new WeakSet,yy=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,py),this.uploadParams=t,this.$objectType="monitoring.v4.serviceability.ArchiveOpts",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getArchiveName",value:function(){return this.archiveName}},{key:"setArchiveName",value:function(e){this.archiveName=e}},{key:"getUploadParams",value:function(){return this.uploadParams}},{key:"setUploadParams",value:function(e){this.uploadParams=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 uy(uy(uy({},void 0!==this.getArchiveName()&&null!==this.getArchiveName()?{archiveName:this.getArchiveName()}:{}),!1===e?void 0!==this.getUploadParams()&&null!==this.getUploadParams()?{uploadParams:void 0!==this.getUploadParams().toJson?this.getUploadParams().toJson(!1):Array.isArray(this.getUploadParams())?this.getUploadParams().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):fy(py,this,hy).call(this,this.getUploadParams(),!1)}:{}:void 0!==this.getUploadParams()&&null!==this.getUploadParams()?{uploadParams:void 0!==this.getUploadParams().toJson?this.getUploadParams().toJson():Array.isArray(this.getUploadParams())?this.getUploadParams().map(function(e){return void 0!==e.toJson?e.toJson():e}):fy(py,this,hy).call(this,this.getUploadParams())}:{}),{},{$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=["uploadParams"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("archiveName"===t){if(void 0===this.archiveName||null===this.archiveName)return new U("archiveName","undefined or null");if(!A.validateMaxLength(this.archiveName,100))return new U("archiveName","does not satisfy required maxLength constraint: 100")}return"uploadParams"!==t||void 0!==this.uploadParams&&null!==this.uploadParams?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("uploadParams","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("archiveName")&&null!==t.archiveName&&void 0!==t.archiveName&&r.setArchiveName(t.archiveName),t.hasOwnProperty("uploadParams")&&null!==t.uploadParams&&void 0!==t.uploadParams)switch(n=t.uploadParams.hasOwnProperty("$objectType")?t.uploadParams.$objectType:sy(t.uploadParams)){case"monitoring.v4.serviceability.LocalUploadParams":r.setUploadParams(Jp.constructFromObject(t.uploadParams,void 0));break;case"monitoring.v4.serviceability.NtnxServerUploadParams":r.setUploadParams(Yp.constructFromObject(t.uploadParams,void 0));break;case"monitoring.v4.serviceability.CustomServerUploadParams":r.setUploadParams(Rp.constructFromObject(t.uploadParams,void 0));break;case"monitoring.v4.serviceability.StorageContainerUploadParams":r.setUploadParams(iy.constructFromObject(t.uploadParams,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),!i)for(var o in r.$unknownFields=uy({},t.$unknownFields),t)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&cy(t.prototype,n),r&&cy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function hy(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return oy(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)?oy(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===sy(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 vy(e){return vy="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},vy(e)}function by(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 my(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?by(Object(n),!0).forEach(function(t){gy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):by(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gy(e,t,n){return(t=Oy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wy(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,Oy(r.key),r)}}function Oy(e){var t=function(e){if("object"!=vy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vy(t)?t:t+""}function jy(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")}yy.prototype.archiveName="NTNX-Log",yy.prototype.uploadParams=void 0,yy.prototype.$reserved=void 0,yy.prototype.$objectType=void 0,yy.prototype.$unknownFields=void 0;var $y=new WeakSet,ky=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,$y),this.startTime=t,this.endTime=n,this.archiveOpts=r,this.$objectType="monitoring.v4.serviceability.LogCollectionSpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{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:"getIncludeTags",value:function(){return this.includeTags}},{key:"setIncludeTags",value:function(e){this.includeTags=e}},{key:"getShouldAnonymize",value:function(){return this.shouldAnonymize}},{key:"setShouldAnonymize",value:function(e){this.shouldAnonymize=e}},{key:"getNodeIpList",value:function(){return this.nodeIpList}},{key:"setNodeIpList",value:function(e){this.nodeIpList=e}},{key:"getShouldCollectFromDisabledNode",value:function(){return this.shouldCollectFromDisabledNode}},{key:"setShouldCollectFromDisabledNode",value:function(e){this.shouldCollectFromDisabledNode=e}},{key:"getExcludeTags",value:function(){return this.excludeTags}},{key:"setExcludeTags",value:function(e){this.excludeTags=e}},{key:"getArchiveOpts",value:function(){return this.archiveOpts}},{key:"setArchiveOpts",value:function(e){this.archiveOpts=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=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 my(my(my(my(my(my(my(my(my(my({},void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:jy($y,this,Ty).call(this,this.getStartTime(),!1)}:{}),void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:jy($y,this,Ty).call(this,this.getEndTime(),!1)}:{}),void 0!==this.getIncludeTags()&&null!==this.getIncludeTags()?{includeTags:this.getIncludeTags()}:{}),void 0!==this.getShouldAnonymize()&&null!==this.getShouldAnonymize()?{shouldAnonymize:this.getShouldAnonymize()}:{}),void 0!==this.getNodeIpList()&&null!==this.getNodeIpList()?{nodeIpList:this.getNodeIpList().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getShouldCollectFromDisabledNode()&&null!==this.getShouldCollectFromDisabledNode()?{shouldCollectFromDisabledNode:this.getShouldCollectFromDisabledNode()}:{}),void 0!==this.getExcludeTags()&&null!==this.getExcludeTags()?{excludeTags:this.getExcludeTags()}:{}),void 0!==this.getArchiveOpts()&&null!==this.getArchiveOpts()?{archiveOpts:this.getArchiveOpts().toJson(!1)}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),{},{$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=["startTime","endTime","archiveOpts"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("startTime"===t&&(void 0===this.startTime||null===this.startTime))return new U("startTime","undefined or null");if("endTime"===t&&(void 0===this.endTime||null===this.endTime))return new U("endTime","undefined or null");if("includeTags"===t){if(void 0===this.includeTags||null===this.includeTags)return new U("includeTags","undefined or null");if(!A.validateMaxItems(this.includeTags,300))return new U("includeTags","does not satisfy required maxItems constraint: 300")}if("shouldAnonymize"===t&&(void 0===this.shouldAnonymize||null===this.shouldAnonymize))return new U("shouldAnonymize","undefined or null");if("nodeIpList"===t){if(void 0===this.nodeIpList||null===this.nodeIpList)return new U("nodeIpList","undefined or null");if(!A.validateMaxItems(this.nodeIpList,48))return new U("nodeIpList","does not satisfy required maxItems constraint: 48")}if("shouldCollectFromDisabledNode"===t&&(void 0===this.shouldCollectFromDisabledNode||null===this.shouldCollectFromDisabledNode))return new U("shouldCollectFromDisabledNode","undefined or null");if("excludeTags"===t){if(void 0===this.excludeTags||null===this.excludeTags)return new U("excludeTags","undefined or null");if(!A.validateMaxItems(this.excludeTags,50))return new U("excludeTags","does not satisfy required maxItems constraint: 50")}return"archiveOpts"!==t||void 0!==this.archiveOpts&&null!==this.archiveOpts?"description"!==t||void 0!==this.description&&null!==this.description?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("description","undefined or null"):new U("archiveOpts","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("startTime")&&null!==t.startTime&&void 0!==t.startTime&&s.setStartTime(t.startTime),t.hasOwnProperty("endTime")&&null!==t.endTime&&void 0!==t.endTime&&s.setEndTime(t.endTime),t.hasOwnProperty("includeTags")&&null!==t.includeTags&&void 0!==t.includeTags){for(o=[],n=t.includeTags,i=0;i<n.length;i++)o.push(n[i]);s.setIncludeTags(o)}if(t.hasOwnProperty("shouldAnonymize")&&null!==t.shouldAnonymize&&void 0!==t.shouldAnonymize&&s.setShouldAnonymize(t.shouldAnonymize),t.hasOwnProperty("nodeIpList")&&null!==t.nodeIpList&&void 0!==t.nodeIpList){for(o=[],n=t.nodeIpList,i=0;i<n.length;i++)r=hc.constructFromObject(n[i],void 0),o.push(r);s.setNodeIpList(o)}if(t.hasOwnProperty("shouldCollectFromDisabledNode")&&null!==t.shouldCollectFromDisabledNode&&void 0!==t.shouldCollectFromDisabledNode&&s.setShouldCollectFromDisabledNode(t.shouldCollectFromDisabledNode),t.hasOwnProperty("excludeTags")&&null!==t.excludeTags&&void 0!==t.excludeTags){for(o=[],n=t.excludeTags,i=0;i<n.length;i++)o.push(n[i]);s.setExcludeTags(o)}if(t.hasOwnProperty("archiveOpts")&&null!==t.archiveOpts&&void 0!==t.archiveOpts&&s.setArchiveOpts(yy.constructFromObject(t.archiveOpts)),t.hasOwnProperty("description")&&null!==t.description&&void 0!==t.description&&s.setDescription(t.description),t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=my({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&wy(t.prototype,n),r&&wy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ty(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Py(e){return Py="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},Py(e)}function Ey(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 Sy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ey(Object(n),!0).forEach(function(t){Fy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ey(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fy(e,t,n){return(t=Ay(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dy(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,Ay(r.key),r)}}function Ay(e){var t=function(e){if("object"!=Py(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Py(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Py(t)?t:t+""}function Cy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Cy=function(){return!!e})()}function Iy(e){return Iy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Iy(e)}function Ry(e,t){return Ry=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ry(e,t)}ky.prototype.startTime=void 0,ky.prototype.endTime=void 0,ky.prototype.includeTags=void 0,ky.prototype.shouldAnonymize=!1,ky.prototype.nodeIpList=void 0,ky.prototype.shouldCollectFromDisabledNode=!1,ky.prototype.excludeTags=void 0,ky.prototype.archiveOpts=void 0,ky.prototype.description="Log collection via V4 API",ky.prototype.$reserved=void 0,ky.prototype.$objectType=void 0,ky.prototype.$unknownFields=void 0;var Uy=new WeakSet,xy=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=Iy(t),function(e,t){if(t&&("object"==Py(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,Cy()?Reflect.construct(t,n||[],Iy(e).constructor):t.apply(e,n))}(this,t),Uy),e.$objectType="monitoring.v4.serviceability.Tag",e.$reserved={$fv:"v4.r1"},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&&Ry(e,t)}(t,e),n=t,r=[{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"toJson",value:function(e){return Sy(!1===e?Sy(Sy(Sy(Sy(Sy({},void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),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()}:{}):Sy(Sy({},void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("description"===t){if(void 0===this.description||null===this.description)return new U("description","undefined or null");if(!A.validateMaxLength(this.description,100))return new U("description","does not satisfy required maxLength constraint: 100")}if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,100))return new U("name","does not satisfy required maxLength constraint: 100")}return new U(t,"no such property exists")}}],i=[{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,An.constructFromObject(e,n,!0),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&n.setDescription(e.description),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&n.setName(e.name),!r))for(var i in n.$unknownFields=Sy({},e.$unknownFields),e)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Dy(n.prototype,r),i&&Dy(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(An);function Ny(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 _y(e){return _y="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},_y(e)}function My(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 Vy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?My(Object(n),!0).forEach(function(t){Ly(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):My(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ly(e,t,n){return(t=Wy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jy(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,Wy(r.key),r)}}function Wy(e){var t=function(e){if("object"!=_y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_y(t)?t:t+""}function By(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(By=function(){return!!e})()}function zy(e){return zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zy(e)}function Gy(e,t){return Gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gy(e,t)}function qy(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")}xy.prototype.description=void 0,xy.prototype.name=void 0,An.prototype.extId=void 0,An.prototype.links=void 0,wn.prototype.tenantId=void 0;var Ky=new WeakSet,Hy=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=zy(t),function(e,t){if(t&&("object"==_y(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,By()?Reflect.construct(t,n||[],zy(e).constructor):t.apply(e,n))}(this,t),Ky),e.$objectType="monitoring.v4.serviceability.ListTagsApiResponse",e.$reserved={$fv:"v4.r1"},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&&Gy(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 Vy(Vy(Vy({},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}):qy(Ky,this,Yy).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}):qy(Ky,this,Yy).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:_y(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.Tag"!==s)throw"Unknown list of type "+s+" in data";r=xy.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:_y(e.data)))throw"Unknown datatype "+s+" in data";a.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Vy({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Jy(n.prototype,r),i&&Jy(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Yy(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ny(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)?Ny(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===_y(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 Xy(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 Qy(e){return Qy="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},Qy(e)}function Zy(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 eh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zy(Object(n),!0).forEach(function(t){th(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function th(e,t,n){return(t=rh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nh(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,rh(r.key),r)}}function rh(e){var t=function(e){if("object"!=Qy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qy(t)?t:t+""}function ih(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ih=function(){return!!e})()}function oh(e){return oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oh(e)}function sh(e,t){return sh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sh(e,t)}function ah(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")}Hy.prototype.metadata=void 0,Hy.prototype.data=void 0,Hy.prototype.$reserved=void 0,Hy.prototype.$objectType=void 0,Hy.prototype.$unknownFields=void 0;var uh=new WeakSet,lh=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=oh(t),function(e,t){if(t&&("object"==Qy(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,ih()?Reflect.construct(t,n||[],oh(e).constructor):t.apply(e,n))}(this,t),uh),e.$objectType="monitoring.v4.serviceability.CollectLogsApiResponse",e.$reserved={$fv:"v4.r1"},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&&sh(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 eh(eh(eh({},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}):ah(uh,this,ch).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}):ah(uh,this,ch).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Qy(e.data)){case"prism.v4.config.TaskReference":r.setData(Tu.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=eh({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&nh(n.prototype,r),i&&nh(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function ch(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Xy(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)?Xy(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Qy(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 dh(e){return dh="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},dh(e)}function fh(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 ph(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fh(Object(n),!0).forEach(function(t){yh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yh(e,t,n){return(t=vh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hh(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,vh(r.key),r)}}function vh(e){var t=function(e){if("object"!=dh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dh(t)?t:t+""}function bh(e,t){return e.get(mh(e,t))}function mh(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")}lh.prototype.metadata=void 0,lh.prototype.data=void 0,lh.prototype.$reserved=void 0,lh.prototype.$objectType=void 0,lh.prototype.$unknownFields=void 0;var gh=new WeakMap,wh=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,gh,void 0),this.apiClient=t||lt.instance,n=gh,r=new Set,n.set(mh(n,this),r),bh(gh,this).add("authorization"),bh(gh,this).add("cookie"),bh(gh,this).add("host"),bh(gh,this).add("user-agent")},t=[{key:"collectLogs",value:function(e,t){var n,r=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof ky&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling collectLogs");if(null==n)throw new Error("Invalid body when calling collectLogs");var o={extId:e},s={};Object.keys(i).forEach(function(e){bh(gh,r).has(e.toLowerCase())||(s[e]=i[e])});var a=ph({},s);lt.addEtagReferenceToHeader(t,a);var u=lh;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/clusters/{extId}/$actions/collect-logs","POST",o,{},a,{},n,["basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"listTags",value:function(e,t){var n=this,r=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'clusterExtId' when calling listTags");var i={clusterExtId:e},o=ph(ph(ph(ph(ph({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}),t.hasOwnProperty("$orderby")?{$orderby:t.$orderby}:{}),t.hasOwnProperty("$select")?{$select:t.$select}:{}),s={};Object.keys(r).forEach(function(e){bh(gh,n).has(e.toLowerCase())||(s[e]=r[e])});var a=ph({},s),u=Hy;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/clusters/{clusterExtId}/tags","GET",i,o,a,{},null,["basicAuthScheme"],[],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&hh(e.prototype,t),n&&hh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Oh(e){return Oh="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},Oh(e)}function jh(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 $h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jh(Object(n),!0).forEach(function(t){kh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kh(e,t,n){return(t=Ph(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Th(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,Ph(r.key),r)}}function Ph(e){var t=function(e){if("object"!=Oh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Oh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Oh(t)?t:t+""}var Eh=new WeakSet,Sh=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,Eh),this.$objectType="monitoring.v4.serviceability.EventEntityReference",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{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 $h($h($h($h({},void 0!==this.getType()&&null!==this.getType()?{type:this.getType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("type"===t&&(void 0===this.type||null===this.type))return new U("type","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!A.validateMaxLength(this.name,1e3))return new U("name","does not satisfy required maxLength constraint: 1000")}if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("type")&&null!==t.type&&void 0!==t.type&&n.setType(t.type),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&n.setName(t.name),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 i in n.$unknownFields=$h({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Th(t.prototype,n),r&&Th(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Fh(e){return Fh="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},Fh(e)}function Dh(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 Ah(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dh(Object(n),!0).forEach(function(t){Ch(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ch(e,t,n){return(t=Rh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ih(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,Rh(r.key),r)}}function Rh(e){var t=function(e){if("object"!=Fh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fh(t)?t:t+""}function Uh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Uh=function(){return!!e})()}function xh(e){return xh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xh(e)}function Nh(e,t){return Nh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Nh(e,t)}function _h(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")}Sh.prototype.type=void 0,Sh.prototype.name=void 0,Sh.prototype.extId=void 0,Sh.prototype.$reserved=void 0,Sh.prototype.$objectType=void 0,Sh.prototype.$unknownFields=void 0;var Mh=new WeakSet,Vh=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=xh(t),function(e,t){if(t&&("object"==Fh(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,Uh()?Reflect.construct(t,n||[],xh(e).constructor):t.apply(e,n))}(this,t),Mh),e.$objectType="monitoring.v4.serviceability.Event",e.$reserved={$fv:"v4.r1"},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&&Nh(e,t)}(t,e),n=t,r=[{key:"getSourceEntity",value:function(){return this.sourceEntity}},{key:"setSourceEntity",value:function(e){this.sourceEntity=e}},{key:"getAffectedEntities",value:function(){return this.affectedEntities}},{key:"setAffectedEntities",value:function(e){this.affectedEntities=e}},{key:"getMetricDetails",value:function(){return this.metricDetails}},{key:"setMetricDetails",value:function(e){this.metricDetails=e}},{key:"getEventType",value:function(){return this.eventType}},{key:"setEventType",value:function(e){this.eventType=e}},{key:"getClassifications",value:function(){return this.classifications}},{key:"setClassifications",value:function(e){this.classifications=e}},{key:"getSourceClusterUUID",value:function(){return this.sourceClusterUUID}},{key:"setSourceClusterUUID",value:function(e){this.sourceClusterUUID=e}},{key:"getCreationTime",value:function(){return this.creationTime}},{key:"setCreationTime",value:function(e){this.creationTime=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getClusterUUID",value:function(){return this.clusterUUID}},{key:"setClusterUUID",value:function(e){this.clusterUUID=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"getServiceName",value:function(){return this.serviceName}},{key:"setServiceName",value:function(e){this.serviceName=e}},{key:"toJson",value:function(e){return Ah(!1===e?Ah(Ah(Ah(Ah(Ah(Ah(Ah(Ah(Ah(Ah(Ah(Ah(Ah(Ah({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getSourceClusterUUID()&&null!==this.getSourceClusterUUID()?{sourceClusterUUID:this.getSourceClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:_h(Mh,this,Lh).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),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()}:{}):Ah(Ah(Ah(Ah(Ah(Ah(Ah(Ah(Ah(Ah(Ah({},void 0!==this.getSourceEntity()&&null!==this.getSourceEntity()?{sourceEntity:this.getSourceEntity().toJson(!1)}:{}),void 0!==this.getAffectedEntities()&&null!==this.getAffectedEntities()?{affectedEntities:this.getAffectedEntities().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getMetricDetails()&&null!==this.getMetricDetails()?{metricDetails:this.getMetricDetails().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEventType()&&null!==this.getEventType()?{eventType:this.getEventType()}:{}),void 0!==this.getClassifications()&&null!==this.getClassifications()?{classifications:this.getClassifications()}:{}),void 0!==this.getSourceClusterUUID()&&null!==this.getSourceClusterUUID()?{sourceClusterUUID:this.getSourceClusterUUID()}:{}),void 0!==this.getCreationTime()&&null!==this.getCreationTime()?{creationTime:_h(Mh,this,Lh).call(this,this.getCreationTime(),!1)}:{}),void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{}),void 0!==this.getClusterUUID()&&null!==this.getClusterUUID()?{clusterUUID:this.getClusterUUID()}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getServiceName()&&null!==this.getServiceName()?{serviceName:this.getServiceName()}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("sourceEntity"===t&&(void 0===this.sourceEntity||null===this.sourceEntity))return new U("sourceEntity","undefined or null");if("affectedEntities"===t){if(void 0===this.affectedEntities||null===this.affectedEntities)return new U("affectedEntities","undefined or null");if(!A.validateMaxItems(this.affectedEntities,50))return new U("affectedEntities","does not satisfy required maxItems constraint: 50")}if("metricDetails"===t){if(void 0===this.metricDetails||null===this.metricDetails)return new U("metricDetails","undefined or null");if(!A.validateMaxItems(this.metricDetails,100))return new U("metricDetails","does not satisfy required maxItems constraint: 100")}if("eventType"===t&&(void 0===this.eventType||null===this.eventType))return new U("eventType","undefined or null");if("classifications"===t){if(void 0===this.classifications||null===this.classifications)return new U("classifications","undefined or null");if(!A.validateMaxItems(this.classifications,15))return new U("classifications","does not satisfy required maxItems constraint: 15")}if("sourceClusterUUID"===t){if(void 0===this.sourceClusterUUID||null===this.sourceClusterUUID)return new U("sourceClusterUUID","undefined or null");if(!A.validatePattern(this.sourceClusterUUID,/^[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 U("sourceClusterUUID","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("creationTime"===t&&(void 0===this.creationTime||null===this.creationTime))return new U("creationTime","undefined or null");if("message"===t){if(void 0===this.message||null===this.message)return new U("message","undefined or null");if(!A.validateMaxLength(this.message,1024))return new U("message","does not satisfy required maxLength constraint: 1024")}if("clusterUUID"===t){if(void 0===this.clusterUUID||null===this.clusterUUID)return new U("clusterUUID","undefined or null");if(!A.validatePattern(this.clusterUUID,/^[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 U("clusterUUID","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("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new U("parameters","undefined or null");if(!A.validateMaxItems(this.parameters,100))return new U("parameters","does not satisfy required maxItems constraint: 100")}if("serviceName"===t){if(void 0===this.serviceName||null===this.serviceName)return new U("serviceName","undefined or null");if(!A.validateMaxLength(this.serviceName,50))return new U("serviceName","does not satisfy required maxLength constraint: 50")}return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,An.constructFromObject(e,s,!0),e.hasOwnProperty("sourceEntity")&&null!==e.sourceEntity&&void 0!==e.sourceEntity&&s.setSourceEntity(Sh.constructFromObject(e.sourceEntity)),e.hasOwnProperty("affectedEntities")&&null!==e.affectedEntities&&void 0!==e.affectedEntities){for(o=[],n=e.affectedEntities,i=0;i<n.length;i++)r=qn.constructFromObject(n[i],void 0),o.push(r);s.setAffectedEntities(o)}if(e.hasOwnProperty("metricDetails")&&null!==e.metricDetails&&void 0!==e.metricDetails){for(o=[],n=e.metricDetails,i=0;i<n.length;i++)r=Wr.constructFromObject(n[i],void 0),o.push(r);s.setMetricDetails(o)}if(e.hasOwnProperty("eventType")&&null!==e.eventType&&void 0!==e.eventType&&s.setEventType(e.eventType),e.hasOwnProperty("classifications")&&null!==e.classifications&&void 0!==e.classifications){for(o=[],n=e.classifications,i=0;i<n.length;i++)o.push(n[i]);s.setClassifications(o)}if(e.hasOwnProperty("sourceClusterUUID")&&null!==e.sourceClusterUUID&&void 0!==e.sourceClusterUUID&&s.setSourceClusterUUID(e.sourceClusterUUID),e.hasOwnProperty("creationTime")&&null!==e.creationTime&&void 0!==e.creationTime&&s.setCreationTime(e.creationTime),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&s.setMessage(e.message),e.hasOwnProperty("clusterUUID")&&null!==e.clusterUUID&&void 0!==e.clusterUUID&&s.setClusterUUID(e.clusterUUID),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(o=[],n=e.parameters,i=0;i<n.length;i++)r=ti.constructFromObject(n[i],void 0),o.push(r);s.setParameters(o)}if(e.hasOwnProperty("serviceName")&&null!==e.serviceName&&void 0!==e.serviceName&&s.setServiceName(e.serviceName),!a)for(var u in s.$unknownFields=Ah({},e.$unknownFields),e)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=e[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Ih(n.prototype,r),i&&Ih(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(An);function Lh(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Jh(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 Wh(e){return Wh="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},Wh(e)}function Bh(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 zh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bh(Object(n),!0).forEach(function(t){Gh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gh(e,t,n){return(t=Kh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qh(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,Kh(r.key),r)}}function Kh(e){var t=function(e){if("object"!=Wh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wh(t)?t:t+""}function Hh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Hh=function(){return!!e})()}function Yh(e){return Yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yh(e)}function Xh(e,t){return Xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xh(e,t)}function Qh(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")}Vh.prototype.sourceEntity=void 0,Vh.prototype.affectedEntities=void 0,Vh.prototype.metricDetails=void 0,Vh.prototype.eventType=void 0,Vh.prototype.classifications=void 0,Vh.prototype.sourceClusterUUID=void 0,Vh.prototype.creationTime=void 0,Vh.prototype.message=void 0,Vh.prototype.clusterUUID=void 0,Vh.prototype.parameters=void 0,Vh.prototype.serviceName=void 0,An.prototype.extId=void 0,An.prototype.links=void 0,wn.prototype.tenantId=void 0;var Zh=new WeakSet,ev=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=Yh(t),function(e,t){if(t&&("object"==Wh(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,Hh()?Reflect.construct(t,n||[],Yh(e).constructor):t.apply(e,n))}(this,t),Zh),e.$objectType="monitoring.v4.serviceability.ListEventsApiResponse",e.$reserved={$fv:"v4.r1"},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&&Xh(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 zh(zh(zh({},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}):Qh(Zh,this,tv).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}):Qh(Zh,this,tv).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Wh(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.Event"!==s)throw"Unknown list of type "+s+" in data";r=Vh.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Wh(e.data)))throw"Unknown datatype "+s+" in data";a.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=zh({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&qh(n.prototype,r),i&&qh(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function tv(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Jh(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)?Jh(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Wh(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 nv(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 rv(e){return rv="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},rv(e)}function iv(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 ov(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iv(Object(n),!0).forEach(function(t){sv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sv(e,t,n){return(t=uv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function av(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,uv(r.key),r)}}function uv(e){var t=function(e){if("object"!=rv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rv(t)?t:t+""}function lv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(lv=function(){return!!e})()}function cv(e){return cv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cv(e)}function dv(e,t){return dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dv(e,t)}function fv(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")}ev.prototype.metadata=void 0,ev.prototype.data=void 0,ev.prototype.$reserved=void 0,ev.prototype.$objectType=void 0,ev.prototype.$unknownFields=void 0;var pv=new WeakSet,yv=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=cv(t),function(e,t){if(t&&("object"==rv(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,lv()?Reflect.construct(t,n||[],cv(e).constructor):t.apply(e,n))}(this,t),pv),e.$objectType="monitoring.v4.serviceability.GetEventApiResponse",e.$reserved={$fv:"v4.r1"},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&&dv(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 ov(ov(ov({},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}):fv(pv,this,hv).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}):fv(pv,this,hv).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:rv(e.data)){case"monitoring.v4.serviceability.Event":r.setData(Vh.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=ov({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&av(n.prototype,r),i&&av(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function hv(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return nv(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)?nv(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===rv(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 vv(e){return vv="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},vv(e)}function bv(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 mv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bv(Object(n),!0).forEach(function(t){gv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gv(e,t,n){return(t=Ov(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wv(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,Ov(r.key),r)}}function Ov(e){var t=function(e){if("object"!=vv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vv(t)?t:t+""}function jv(e,t){return e.get($v(e,t))}function $v(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")}yv.prototype.metadata=void 0,yv.prototype.data=void 0,yv.prototype.$reserved=void 0,yv.prototype.$objectType=void 0,yv.prototype.$unknownFields=void 0;var kv=new WeakMap,Tv=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,kv,void 0),this.apiClient=t||lt.instance,n=kv,r=new Set,n.set($v(n,this),r),jv(kv,this).add("authorization"),jv(kv,this).add("cookie"),jv(kv,this).add("host"),jv(kv,this).add("user-agent")},t=[{key:"getEventById",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 getEventById");var r={extId:e},i={};Object.keys(n).forEach(function(e){jv(kv,t).has(e.toLowerCase())||(i[e]=n[e])});var o=mv({},i),s=yv;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/events/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listEvents",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=mv(mv(mv(mv(mv({},(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}:{}),i={};Object.keys(n).forEach(function(e){jv(kv,t).has(e.toLowerCase())||(i[e]=n[e])});var o=mv({},i),s=ev;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/events","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&wv(e.prototype,t),n&&wv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Pv(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 Ev(e){return Ev="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},Ev(e)}function Sv(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 Fv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sv(Object(n),!0).forEach(function(t){Dv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dv(e,t,n){return(t=Cv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Av(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,Cv(r.key),r)}}function Cv(e){var t=function(e){if("object"!=Ev(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ev(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ev(t)?t:t+""}function Iv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Iv=function(){return!!e})()}function Rv(e){return Rv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rv(e)}function Uv(e,t){return Uv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Uv(e,t)}function xv(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 Nv=new WeakSet,_v=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=Rv(t),function(e,t){if(t&&("object"==Ev(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,Iv()?Reflect.construct(t,n||[],Rv(e).constructor):t.apply(e,n))}(this,t),Nv),e.$objectType="monitoring.v4.serviceability.ManageAlertApiResponse",e.$reserved={$fv:"v4.r1"},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&&Uv(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 Fv(Fv(Fv({},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}):xv(Nv,this,Mv).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}):xv(Nv,this,Mv).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ev(e.data)){case"prism.v4.config.TaskReference":r.setData(Tu.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=Fv({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Av(n.prototype,r),i&&Av(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Mv(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Pv(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)?Pv(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Ev(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}_v.prototype.metadata=void 0,_v.prototype.data=void 0,_v.prototype.$reserved=void 0,_v.prototype.$objectType=void 0,_v.prototype.$unknownFields=void 0;var Vv={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RESOLVE:"RESOLVE",ACKNOWLEDGE:"ACKNOWLEDGE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Vv).find(function(t){return Vv[t]===e});return null==t?Vv.$UNKNOWN:Vv[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Vv.$UNKNOWN:case Vv.$REDACTED:case Vv.RESOLVE:case Vv.ACKNOWLEDGE:return;default:throw new Error("Invalid : must be ActionType.{ $UNKNOWN|$REDACTED|RESOLVE|ACKNOWLEDGE }")}}};Object.freeze(Vv);const Lv=Vv;function Jv(e){return Jv="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},Jv(e)}function Wv(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 Bv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wv(Object(n),!0).forEach(function(t){zv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zv(e,t,n){return(t=qv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gv(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,qv(r.key),r)}}function qv(e){var t=function(e){if("object"!=Jv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jv(t)?t:t+""}var Kv=new WeakSet,Hv=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,Kv),this.actionType=t,this.$objectType="monitoring.v4.serviceability.AlertActionSpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getActionType",value:function(){return this.actionType}},{key:"setActionType",value:function(e){this.actionType=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 Bv(Bv({},void 0!==this.getActionType()&&null!==this.getActionType()?{actionType:this.getActionType()}:{}),{},{$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=["actionType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"actionType"!==t||void 0!==this.actionType&&null!==this.actionType?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("actionType","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("actionType")&&null!==t.actionType&&void 0!==t.actionType&&n.setActionType(Lv.constructFromObject(t.actionType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Bv({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Gv(t.prototype,n),r&&Gv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Yv(e){return Yv="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},Yv(e)}function Xv(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 Qv(e,t,n){return(t=eb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zv(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,eb(r.key),r)}}function eb(e){var t=function(e){if("object"!=Yv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yv(t)?t:t+""}function tb(e,t){return e.get(nb(e,t))}function nb(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")}Hv.prototype.actionType=void 0,Hv.prototype.$reserved=void 0,Hv.prototype.$objectType=void 0,Hv.prototype.$unknownFields=void 0;var rb=new WeakMap,ib=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,rb,void 0),this.apiClient=t||lt.instance,n=rb,r=new Set,n.set(nb(n,this),r),tb(rb,this).add("authorization"),tb(rb,this).add("cookie"),tb(rb,this).add("host"),tb(rb,this).add("user-agent")},t=[{key:"manageAlert",value:function(e,t){var n,r=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Hv&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling manageAlert");if(null==n)throw new Error("Invalid body when calling manageAlert");var o={extId:e},s={};Object.keys(i).forEach(function(e){tb(rb,r).has(e.toLowerCase())||(s[e]=i[e])});var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xv(Object(n),!0).forEach(function(t){Qv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},s);lt.addEtagReferenceToHeader(t,a);var u=_v;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/{extId}/$actions/manage-alert","POST",o,{},a,{},n,["basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Zv(e.prototype,t),n&&Zv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function ob(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 sb(e){return sb="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},sb(e)}function ab(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 ub(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ab(Object(n),!0).forEach(function(t){lb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ab(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lb(e,t,n){return(t=db(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cb(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,db(r.key),r)}}function db(e){var t=function(e){if("object"!=sb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sb(t)?t:t+""}function fb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(fb=function(){return!!e})()}function pb(e){return pb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pb(e)}function yb(e,t){return yb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yb(e,t)}function hb(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 vb=new WeakSet,bb=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=pb(t),function(e,t){if(t&&("object"==sb(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,fb()?Reflect.construct(t,n||[],pb(e).constructor):t.apply(e,n))}(this,t),vb),e.$objectType="monitoring.v4.serviceability.RunSystemDefinedChecksApiResponse",e.$reserved={$fv:"v4.r1"},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&&yb(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 ub(ub(ub({},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}):hb(vb,this,mb).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}):hb(vb,this,mb).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:sb(e.data)){case"prism.v4.config.TaskReference":r.setData(Tu.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=ub({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&cb(n.prototype,r),i&&cb(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function mb(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ob(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)?ob(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===sb(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 gb(e){return gb="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},gb(e)}function wb(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 Ob(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wb(Object(n),!0).forEach(function(t){jb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jb(e,t,n){return(t=kb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $b(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,kb(r.key),r)}}function kb(e){var t=function(e){if("object"!=gb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gb(t)?t:t+""}bb.prototype.metadata=void 0,bb.prototype.data=void 0,bb.prototype.$reserved=void 0,bb.prototype.$objectType=void 0,bb.prototype.$unknownFields=void 0;var Tb=new WeakSet,Pb=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,Tb),this.$objectType="monitoring.v4.serviceability.RunSystemDefinedChecksSpec",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getSdaExtIds",value:function(){return this.sdaExtIds}},{key:"setSdaExtIds",value:function(e){this.sdaExtIds=e}},{key:"getShouldAnonymize",value:function(){return this.shouldAnonymize}},{key:"setShouldAnonymize",value:function(e){this.shouldAnonymize=e}},{key:"getShouldSendReportToConfiguredRecipients",value:function(){return this.shouldSendReportToConfiguredRecipients}},{key:"setShouldSendReportToConfiguredRecipients",value:function(e){this.shouldSendReportToConfiguredRecipients=e}},{key:"getAdditionalRecipients",value:function(){return this.additionalRecipients}},{key:"setAdditionalRecipients",value:function(e){this.additionalRecipients=e}},{key:"getNodeIps",value:function(){return this.nodeIps}},{key:"setNodeIps",value:function(e){this.nodeIps=e}},{key:"getShouldRunAllChecks",value:function(){return this.shouldRunAllChecks}},{key:"setShouldRunAllChecks",value:function(e){this.shouldRunAllChecks=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 Ob(Ob(Ob(Ob(Ob(Ob(Ob({},void 0!==this.getSdaExtIds()&&null!==this.getSdaExtIds()?{sdaExtIds:this.getSdaExtIds()}:{}),void 0!==this.getShouldAnonymize()&&null!==this.getShouldAnonymize()?{shouldAnonymize:this.getShouldAnonymize()}:{}),void 0!==this.getShouldSendReportToConfiguredRecipients()&&null!==this.getShouldSendReportToConfiguredRecipients()?{shouldSendReportToConfiguredRecipients:this.getShouldSendReportToConfiguredRecipients()}:{}),void 0!==this.getAdditionalRecipients()&&null!==this.getAdditionalRecipients()?{additionalRecipients:this.getAdditionalRecipients()}:{}),void 0!==this.getNodeIps()&&null!==this.getNodeIps()?{nodeIps:this.getNodeIps().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getShouldRunAllChecks()&&null!==this.getShouldRunAllChecks()?{shouldRunAllChecks:this.getShouldRunAllChecks()}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("sdaExtIds"===t){if(void 0===this.sdaExtIds||null===this.sdaExtIds)return new U("sdaExtIds","undefined or null");if(!A.validateMaxItems(this.sdaExtIds,50))return new U("sdaExtIds","does not satisfy required maxItems constraint: 50");if(!A.validateMinItems(this.sdaExtIds,1))return new U("sdaExtIds","does not satisfy required minItems constraint: 1")}if("shouldAnonymize"===t&&(void 0===this.shouldAnonymize||null===this.shouldAnonymize))return new U("shouldAnonymize","undefined or null");if("shouldSendReportToConfiguredRecipients"===t&&(void 0===this.shouldSendReportToConfiguredRecipients||null===this.shouldSendReportToConfiguredRecipients))return new U("shouldSendReportToConfiguredRecipients","undefined or null");if("additionalRecipients"===t){if(void 0===this.additionalRecipients||null===this.additionalRecipients)return new U("additionalRecipients","undefined or null");if(!A.validateMaxItems(this.additionalRecipients,5))return new U("additionalRecipients","does not satisfy required maxItems constraint: 5");if(!A.validateMinItems(this.additionalRecipients,1))return new U("additionalRecipients","does not satisfy required minItems constraint: 1")}if("nodeIps"===t){if(void 0===this.nodeIps||null===this.nodeIps)return new U("nodeIps","undefined or null");if(!A.validateMaxItems(this.nodeIps,48))return new U("nodeIps","does not satisfy required maxItems constraint: 48");if(!A.validateMinItems(this.nodeIps,1))return new U("nodeIps","does not satisfy required minItems constraint: 1")}return"shouldRunAllChecks"!==t||void 0!==this.shouldRunAllChecks&&null!==this.shouldRunAllChecks?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("shouldRunAllChecks","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("sdaExtIds")&&null!==t.sdaExtIds&&void 0!==t.sdaExtIds){for(o=[],n=t.sdaExtIds,i=0;i<n.length;i++)o.push(n[i]);s.setSdaExtIds(o)}if(t.hasOwnProperty("shouldAnonymize")&&null!==t.shouldAnonymize&&void 0!==t.shouldAnonymize&&s.setShouldAnonymize(t.shouldAnonymize),t.hasOwnProperty("shouldSendReportToConfiguredRecipients")&&null!==t.shouldSendReportToConfiguredRecipients&&void 0!==t.shouldSendReportToConfiguredRecipients&&s.setShouldSendReportToConfiguredRecipients(t.shouldSendReportToConfiguredRecipients),t.hasOwnProperty("additionalRecipients")&&null!==t.additionalRecipients&&void 0!==t.additionalRecipients){for(o=[],n=t.additionalRecipients,i=0;i<n.length;i++)o.push(n[i]);s.setAdditionalRecipients(o)}if(t.hasOwnProperty("nodeIps")&&null!==t.nodeIps&&void 0!==t.nodeIps){for(o=[],n=t.nodeIps,i=0;i<n.length;i++)r=hc.constructFromObject(n[i],void 0),o.push(r);s.setNodeIps(o)}if(t.hasOwnProperty("shouldRunAllChecks")&&null!==t.shouldRunAllChecks&&void 0!==t.shouldRunAllChecks&&s.setShouldRunAllChecks(t.shouldRunAllChecks),t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!a)for(var u in s.$unknownFields=Ob({},t.$unknownFields),t)Object.keys(s).includes(u)||Object.keys(s).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(s.$unknownFields[u]=t[u])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&$b(t.prototype,n),r&&$b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Eb(e){return Eb="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},Eb(e)}function Sb(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 Fb(e,t,n){return(t=Ab(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Db(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,Ab(r.key),r)}}function Ab(e){var t=function(e){if("object"!=Eb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Eb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Eb(t)?t:t+""}function Cb(e,t){return e.get(Ib(e,t))}function Ib(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")}Pb.prototype.sdaExtIds=void 0,Pb.prototype.shouldAnonymize=!0,Pb.prototype.shouldSendReportToConfiguredRecipients=!0,Pb.prototype.additionalRecipients=void 0,Pb.prototype.nodeIps=void 0,Pb.prototype.shouldRunAllChecks=!1,Pb.prototype.$reserved=void 0,Pb.prototype.$objectType=void 0,Pb.prototype.$unknownFields=void 0;var Rb=new WeakMap,Ub=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,Rb,void 0),this.apiClient=t||lt.instance,n=Rb,r=new Set,n.set(Ib(n,this),r),Cb(Rb,this).add("authorization"),Cb(Rb,this).add("cookie"),Cb(Rb,this).add("host"),Cb(Rb,this).add("user-agent")},t=[{key:"runSystemDefinedChecks",value:function(e,t){var n,r=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Pb&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'clusterExtId' when calling runSystemDefinedChecks");if(null==n)throw new Error("Invalid body when calling runSystemDefinedChecks");var o={clusterExtId:e},s={};Object.keys(i).forEach(function(e){Cb(Rb,r).has(e.toLowerCase())||(s[e]=i[e])});var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sb(Object(n),!0).forEach(function(t){Fb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},s);lt.addEtagReferenceToHeader(t,a);var u=bb;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/clusters/{clusterExtId}/$actions/run-system-defined-checks","POST",o,{},a,{},n,["basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Db(e.prototype,t),n&&Db(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function xb(e){return xb="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},xb(e)}function Nb(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 _b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nb(Object(n),!0).forEach(function(t){Mb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mb(e,t,n){return(t=Lb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vb(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,Lb(r.key),r)}}function Lb(e){var t=function(e){if("object"!=xb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xb(t)?t:t+""}var Jb=new WeakSet,Wb=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,Jb),this.extId=t,this.$objectType="monitoring.v4.serviceability.EntityFilter",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 _b(_b({},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=["extId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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 i in n.$unknownFields=_b({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Vb(t.prototype,n),r&&Vb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Wb.prototype.extId=void 0,Wb.prototype.$reserved=void 0,Wb.prototype.$objectType=void 0,Wb.prototype.$unknownFields=void 0;var Bb={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CATEGORY:"CATEGORY",CLUSTER:"CLUSTER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Bb).find(function(t){return Bb[t]===e});return null==t?Bb.$UNKNOWN:Bb[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Bb.$UNKNOWN:case Bb.$REDACTED:case Bb.CATEGORY:case Bb.CLUSTER:return;default:throw new Error("Invalid : must be GroupEntityType.{ $UNKNOWN|$REDACTED|CATEGORY|CLUSTER }")}}};Object.freeze(Bb);const zb=Bb;function Gb(e){return Gb="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},Gb(e)}function qb(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 Kb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qb(Object(n),!0).forEach(function(t){Hb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hb(e,t,n){return(t=Xb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yb(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,Xb(r.key),r)}}function Xb(e){var t=function(e){if("object"!=Gb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gb(t)?t:t+""}var Qb=new WeakSet,Zb=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,Qb),this.extId=t,this.type=n,this.$objectType="monitoring.v4.serviceability.GroupFilter",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:"getType",value:function(){return this.type}},{key:"setType",value:function(e){this.type=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 Kb(Kb(Kb({},void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getType()&&null!==this.getType()?{type: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=["extId","type"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}return"type"!==t||void 0!==this.type&&null!==this.type?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("type","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("type")&&null!==t.type&&void 0!==t.type&&n.setType(zb.constructFromObject(t.type)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Kb({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Yb(t.prototype,n),r&&Yb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function em(e){return em="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},em(e)}function tm(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 nm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tm(Object(n),!0).forEach(function(t){rm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rm(e,t,n){return(t=om(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function im(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,om(r.key),r)}}function om(e){var t=function(e){if("object"!=em(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=em(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==em(t)?t:t+""}Zb.prototype.extId=void 0,Zb.prototype.type=void 0,Zb.prototype.$reserved=void 0,Zb.prototype.$objectType=void 0,Zb.prototype.$unknownFields=void 0;var sm=new WeakSet,am=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,sm),this.entityUuid=t,this.policyIds=n,this.$objectType="monitoring.v4.serviceability.RelatedPolicy",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getEntityUuid",value:function(){return this.entityUuid}},{key:"setEntityUuid",value:function(e){this.entityUuid=e}},{key:"getPolicyIds",value:function(){return this.policyIds}},{key:"setPolicyIds",value:function(e){this.policyIds=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 nm(nm(nm({},void 0!==this.getEntityUuid()&&null!==this.getEntityUuid()?{entityUuid:this.getEntityUuid()}:{}),void 0!==this.getPolicyIds()&&null!==this.getPolicyIds()?{policyIds:this.getPolicyIds()}:{}),{},{$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=["entityUuid","policyIds"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("entityUuid"===t){if(void 0===this.entityUuid||null===this.entityUuid)return new U("entityUuid","undefined or null");if(!A.validatePattern(this.entityUuid,/^[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 U("entityUuid","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("policyIds"===t){if(void 0===this.policyIds||null===this.policyIds)return new U("policyIds","undefined or null");if(!A.validateMaxItems(this.policyIds,100))return new U("policyIds","does not satisfy required maxItems constraint: 100")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(o=o||new e,t.hasOwnProperty("entityUuid")&&null!==t.entityUuid&&void 0!==t.entityUuid&&o.setEntityUuid(t.entityUuid),t.hasOwnProperty("policyIds")&&null!==t.policyIds&&void 0!==t.policyIds){for(i=[],n=t.policyIds,r=0;r<n.length;r++)i.push(n[r]);o.setPolicyIds(i)}if(t.hasOwnProperty("$reserved")&&(o.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(o.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(o.$unknownFields=t.$unknownFields),!s)for(var a in o.$unknownFields=nm({},t.$unknownFields),t)Object.keys(o).includes(a)||Object.keys(o).includes(this.snakeToCamel(a))||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(o.$unknownFields[a]=t[a])}return o}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&im(t.prototype,n),r&&im(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function um(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 lm(e){return lm="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},lm(e)}function cm(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 dm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cm(Object(n),!0).forEach(function(t){fm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fm(e,t,n){return(t=ym(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pm(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,ym(r.key),r)}}function ym(e){var t=function(e){if("object"!=lm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lm(t)?t:t+""}function hm(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")}am.prototype.entityUuid=void 0,am.prototype.policyIds=void 0,am.prototype.$reserved=void 0,am.prototype.$objectType=void 0,am.prototype.$unknownFields=void 0;var vm=new WeakSet,bm=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,vm),this.metricName=t,this.operator=n,this.thresholdValue=r,this.$objectType="monitoring.v4.serviceability.Condition",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getMetricName",value:function(){return this.metricName}},{key:"setMetricName",value:function(e){this.metricName=e}},{key:"getOperator",value:function(){return this.operator}},{key:"setOperator",value:function(e){this.operator=e}},{key:"getThresholdValue",value:function(){return this.thresholdValue}},{key:"setThresholdValue",value:function(e){this.thresholdValue=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 dm(dm(dm(dm({},void 0!==this.getMetricName()&&null!==this.getMetricName()?{metricName:this.getMetricName()}:{}),void 0!==this.getOperator()&&null!==this.getOperator()?{operator:this.getOperator()}:{}),!1===e?void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson(!1):Array.isArray(this.getThresholdValue())?this.getThresholdValue().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):hm(vm,this,mm).call(this,this.getThresholdValue(),!1)}:{}:void 0!==this.getThresholdValue()&&null!==this.getThresholdValue()?{thresholdValue:void 0!==this.getThresholdValue().toJson?this.getThresholdValue().toJson():Array.isArray(this.getThresholdValue())?this.getThresholdValue().map(function(e){return void 0!==e.toJson?e.toJson():e}):hm(vm,this,mm).call(this,this.getThresholdValue())}:{}),{},{$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=["metricName","operator","thresholdValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("metricName"===t){if(void 0===this.metricName||null===this.metricName)return new U("metricName","undefined or null");if(!A.validateMaxLength(this.metricName,150))return new U("metricName","does not satisfy required maxLength constraint: 150");if(!A.validateMinLength(this.metricName,1))return new U("metricName","does not satisfy required minLength constraint: 1")}return"operator"!==t||void 0!==this.operator&&null!==this.operator?"thresholdValue"!==t||void 0!==this.thresholdValue&&null!==this.thresholdValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("thresholdValue","undefined or null"):new U("operator","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("metricName")&&null!==t.metricName&&void 0!==t.metricName&&r.setMetricName(t.metricName),t.hasOwnProperty("operator")&&null!==t.operator&&void 0!==t.operator&&r.setOperator(or.constructFromObject(t.operator)),t.hasOwnProperty("thresholdValue")&&null!==t.thresholdValue&&void 0!==t.thresholdValue)switch(n=t.thresholdValue.hasOwnProperty("$objectType")?t.thresholdValue.$objectType:lm(t.thresholdValue)){case"monitoring.v4.common.DoubleValue":r.setThresholdValue(br.constructFromObject(t.thresholdValue,void 0));break;case"monitoring.v4.common.IntValue":r.setThresholdValue(Tr.constructFromObject(t.thresholdValue,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),!i)for(var o in r.$unknownFields=dm({},t.$unknownFields),t)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&pm(t.prototype,n),r&&pm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function mm(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return um(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)?um(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===lm(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}bm.prototype.metricName=void 0,bm.prototype.operator=void 0,bm.prototype.thresholdValue=void 0,bm.prototype.$reserved=void 0,bm.prototype.$objectType=void 0,bm.prototype.$unknownFields=void 0;var gm={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WARNING:"WARNING",CRITICAL:"CRITICAL",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(gm).find(function(t){return gm[t]===e});return null==t?gm.$UNKNOWN:gm[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case gm.$UNKNOWN:case gm.$REDACTED:case gm.WARNING:case gm.CRITICAL:return;default:throw new Error("Invalid : must be PolicySeverityLevel.{ $UNKNOWN|$REDACTED|WARNING|CRITICAL }")}}};Object.freeze(gm);const wm=gm;function Om(e){return Om="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},Om(e)}function jm(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 $m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jm(Object(n),!0).forEach(function(t){km(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function km(e,t,n){return(t=Pm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tm(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,Pm(r.key),r)}}function Pm(e){var t=function(e){if("object"!=Om(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Om(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Om(t)?t:t+""}var Em=new WeakSet,Sm=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,Em),this.conditionType=t,this.condition=n,this.severityLevel=r,this.$objectType="monitoring.v4.serviceability.TriggerCondition",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getConditionType",value:function(){return this.conditionType}},{key:"setConditionType",value:function(e){this.conditionType=e}},{key:"getCondition",value:function(){return this.condition}},{key:"setCondition",value:function(e){this.condition=e}},{key:"getSeverityLevel",value:function(){return this.severityLevel}},{key:"setSeverityLevel",value:function(e){this.severityLevel=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 $m($m($m($m({},void 0!==this.getConditionType()&&null!==this.getConditionType()?{conditionType:this.getConditionType()}:{}),void 0!==this.getCondition()&&null!==this.getCondition()?{condition:this.getCondition().toJson(!1)}:{}),void 0!==this.getSeverityLevel()&&null!==this.getSeverityLevel()?{severityLevel:this.getSeverityLevel()}:{}),{},{$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=["conditionType","condition","severityLevel"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"conditionType"!==t||void 0!==this.conditionType&&null!==this.conditionType?"condition"!==t||void 0!==this.condition&&null!==this.condition?"severityLevel"!==t||void 0!==this.severityLevel&&null!==this.severityLevel?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("severityLevel","undefined or null"):new U("condition","undefined or null"):new U("conditionType","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("conditionType")&&null!==t.conditionType&&void 0!==t.conditionType&&n.setConditionType(ar.constructFromObject(t.conditionType)),t.hasOwnProperty("condition")&&null!==t.condition&&void 0!==t.condition&&n.setCondition(bm.constructFromObject(t.condition)),t.hasOwnProperty("severityLevel")&&null!==t.severityLevel&&void 0!==t.severityLevel&&n.setSeverityLevel(wm.constructFromObject(t.severityLevel)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=$m({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Tm(t.prototype,n),r&&Tm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Fm(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 Dm(e){return Dm="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},Dm(e)}function Am(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 Cm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Am(Object(n),!0).forEach(function(t){Im(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Am(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Im(e,t,n){return(t=Um(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rm(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,Um(r.key),r)}}function Um(e){var t=function(e){if("object"!=Dm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dm(t)?t:t+""}function xm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xm=function(){return!!e})()}function Nm(e){return Nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nm(e)}function _m(e,t){return _m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_m(e,t)}function Mm(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")}Sm.prototype.conditionType=void 0,Sm.prototype.condition=void 0,Sm.prototype.severityLevel=void 0,Sm.prototype.$reserved=void 0,Sm.prototype.$objectType=void 0,Sm.prototype.$unknownFields=void 0;var Vm=new WeakSet,Lm=function(e){function t(e,n,r){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=Nm(t),function(e,t){if(t&&("object"==Dm(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,xm()?Reflect.construct(t,n||[],Nm(e).constructor):t.apply(e,n))}(this,t),Vm),i.title=e,i.triggerConditions=n,i.entityType=r,i.$objectType="monitoring.v4.serviceability.UserDefinedPolicy",i.$reserved={$fv:"v4.r1"},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&&_m(e,t)}(t,e),n=t,r=[{key:"getTitle",value:function(){return this.title}},{key:"setTitle",value:function(e){this.title=e}},{key:"getDescription",value:function(){return this.description}},{key:"setDescription",value:function(e){this.description=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getIsAutoResolved",value:function(){return this.isAutoResolved}},{key:"setIsAutoResolved",value:function(e){this.isAutoResolved=e}},{key:"getFilters",value:function(){return this.filters}},{key:"setFilters",value:function(e){this.filters=e}},{key:"getTriggerConditions",value:function(){return this.triggerConditions}},{key:"setTriggerConditions",value:function(e){this.triggerConditions=e}},{key:"getImpactTypes",value:function(){return this.impactTypes}},{key:"setImpactTypes",value:function(e){this.impactTypes=e}},{key:"getCreatedBy",value:function(){return this.createdBy}},{key:"setCreatedBy",value:function(e){this.createdBy=e}},{key:"getLastUpdatedTime",value:function(){return this.lastUpdatedTime}},{key:"setLastUpdatedTime",value:function(e){this.lastUpdatedTime=e}},{key:"getIsExpectedToErrorOnConflict",value:function(){return this.isExpectedToErrorOnConflict}},{key:"setIsExpectedToErrorOnConflict",value:function(e){this.isExpectedToErrorOnConflict=e}},{key:"getPoliciesToOverride",value:function(){return this.policiesToOverride}},{key:"setPoliciesToOverride",value:function(e){this.policiesToOverride=e}},{key:"getTriggerWaitPeriod",value:function(){return this.triggerWaitPeriod}},{key:"setTriggerWaitPeriod",value:function(e){this.triggerWaitPeriod=e}},{key:"getRelatedPolicies",value:function(){return this.relatedPolicies}},{key:"setRelatedPolicies",value:function(e){this.relatedPolicies=e}},{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"toJson",value:function(e){return Cm(!1===e?Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm({},void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getFilters()&&null!==this.getFilters()?{filters:void 0!==this.getFilters().toJson?this.getFilters().toJson(!1):Array.isArray(this.getFilters())?this.getFilters().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Mm(Vm,this,Jm).call(this,this.getFilters(),!1)}:{}),void 0!==this.getTriggerConditions()&&null!==this.getTriggerConditions()?{triggerConditions:this.getTriggerConditions().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getCreatedBy()&&null!==this.getCreatedBy()?{createdBy:this.getCreatedBy()}:{}),void 0!==this.getLastUpdatedTime()&&null!==this.getLastUpdatedTime()?{lastUpdatedTime:Mm(Vm,this,Wm).call(this,this.getLastUpdatedTime(),!1)}:{}),void 0!==this.getIsExpectedToErrorOnConflict()&&null!==this.getIsExpectedToErrorOnConflict()?{isExpectedToErrorOnConflict:this.getIsExpectedToErrorOnConflict()}:{}),void 0!==this.getPoliciesToOverride()&&null!==this.getPoliciesToOverride()?{policiesToOverride:this.getPoliciesToOverride()}:{}),void 0!==this.getTriggerWaitPeriod()&&null!==this.getTriggerWaitPeriod()?{triggerWaitPeriod:this.getTriggerWaitPeriod()}:{}),void 0!==this.getRelatedPolicies()&&null!==this.getRelatedPolicies()?{relatedPolicies:this.getRelatedPolicies().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),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()}:{}):Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm(Cm({},void 0!==this.getTitle()&&null!==this.getTitle()?{title:this.getTitle()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getIsAutoResolved()&&null!==this.getIsAutoResolved()?{isAutoResolved:this.getIsAutoResolved()}:{}),void 0!==this.getFilters()&&null!==this.getFilters()?{filters:void 0!==this.getFilters().toJson?this.getFilters().toJson():Array.isArray(this.getFilters())?this.getFilters().map(function(e){return void 0!==e.toJson?e.toJson():e}):Mm(Vm,this,Jm).call(this,this.getFilters())}:{}),void 0!==this.getTriggerConditions()&&null!==this.getTriggerConditions()?{triggerConditions:this.getTriggerConditions().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getImpactTypes()&&null!==this.getImpactTypes()?{impactTypes:this.getImpactTypes()}:{}),void 0!==this.getIsExpectedToErrorOnConflict()&&null!==this.getIsExpectedToErrorOnConflict()?{isExpectedToErrorOnConflict:this.getIsExpectedToErrorOnConflict()}:{}),void 0!==this.getPoliciesToOverride()&&null!==this.getPoliciesToOverride()?{policiesToOverride:this.getPoliciesToOverride()}:{}),void 0!==this.getTriggerWaitPeriod()&&null!==this.getTriggerWaitPeriod()?{triggerWaitPeriod:this.getTriggerWaitPeriod()}:{}),void 0!==this.getRelatedPolicies()&&null!==this.getRelatedPolicies()?{relatedPolicies:this.getRelatedPolicies().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),{},{$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=["title","triggerConditions","entityType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("title"===t){if(void 0===this.title||null===this.title)return new U("title","undefined or null");if(!A.validateMaxLength(this.title,150))return new U("title","does not satisfy required maxLength constraint: 150");if(!A.validateMinLength(this.title,1))return new U("title","does not satisfy required minLength constraint: 1")}if("description"===t){if(void 0===this.description||null===this.description)return new U("description","undefined or null");if(!A.validateMaxLength(this.description,500))return new U("description","does not satisfy required maxLength constraint: 500")}if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new U("isEnabled","undefined or null");if("isAutoResolved"===t&&(void 0===this.isAutoResolved||null===this.isAutoResolved))return new U("isAutoResolved","undefined or null");if("filters"===t&&(void 0===this.filters||null===this.filters))return new U("filters","undefined or null");if("triggerConditions"===t){if(void 0===this.triggerConditions||null===this.triggerConditions)return new U("triggerConditions","undefined or null");if(!A.validateMaxItems(this.triggerConditions,4))return new U("triggerConditions","does not satisfy required maxItems constraint: 4");if(!A.validateMinItems(this.triggerConditions,1))return new U("triggerConditions","does not satisfy required minItems constraint: 1")}if("impactTypes"===t){if(void 0===this.impactTypes||null===this.impactTypes)return new U("impactTypes","undefined or null");if(!A.validateMaxItems(this.impactTypes,8))return new U("impactTypes","does not satisfy required maxItems constraint: 8")}if("createdBy"===t&&(void 0===this.createdBy||null===this.createdBy))return new U("createdBy","undefined or null");if("lastUpdatedTime"===t&&(void 0===this.lastUpdatedTime||null===this.lastUpdatedTime))return new U("lastUpdatedTime","undefined or null");if("isExpectedToErrorOnConflict"===t&&(void 0===this.isExpectedToErrorOnConflict||null===this.isExpectedToErrorOnConflict))return new U("isExpectedToErrorOnConflict","undefined or null");if("policiesToOverride"===t){if(void 0===this.policiesToOverride||null===this.policiesToOverride)return new U("policiesToOverride","undefined or null");if(!A.validateMaxItems(this.policiesToOverride,100))return new U("policiesToOverride","does not satisfy required maxItems constraint: 100")}if("triggerWaitPeriod"===t&&(void 0===this.triggerWaitPeriod||null===this.triggerWaitPeriod))return new U("triggerWaitPeriod","undefined or null");if("relatedPolicies"===t){if(void 0===this.relatedPolicies||null===this.relatedPolicies)return new U("relatedPolicies","undefined or null");if(!A.validateMaxItems(this.relatedPolicies,100))return new U("relatedPolicies","does not satisfy required maxItems constraint: 100")}if("entityType"===t){if(void 0===this.entityType||null===this.entityType)return new U("entityType","undefined or null");if(!A.validateMaxLength(this.entityType,10))return new U("entityType","does not satisfy required maxLength constraint: 10");if(!A.validateMinLength(this.entityType,1))return new U("entityType","does not satisfy required minLength constraint: 1")}return new U(t,"no such property exists")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,An.constructFromObject(e,a,!0),e.hasOwnProperty("title")&&null!==e.title&&void 0!==e.title&&a.setTitle(e.title),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&a.setDescription(e.description),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&a.setIsEnabled(e.isEnabled),e.hasOwnProperty("isAutoResolved")&&null!==e.isAutoResolved&&void 0!==e.isAutoResolved&&a.setIsAutoResolved(e.isAutoResolved),e.hasOwnProperty("filters")&&null!==e.filters&&void 0!==e.filters){if(!Array.isArray(e.filters))throw"Unknown datatype "+(s=e.filters.hasOwnProperty("$objectType")?e.filters.$objectType:Dm(e.filters))+" in data";if(0===e.filters.length)a.setFilters([]);else{for(o=[],s=(n=e.filters)[0].hasOwnProperty("$objectType")?n[0].$objectType:Dm(n[0]),i=0;i<n.length;i++)switch(s){case"monitoring.v4.serviceability.EntityFilter":r=Wb.constructFromObject(n[i],void 0),o.push(r);break;case"monitoring.v4.serviceability.GroupFilter":r=Zb.constructFromObject(n[i],void 0),o.push(r);break;default:throw"Unknown list of type "+s+" in data"}a.setFilters(o)}}if(e.hasOwnProperty("triggerConditions")&&null!==e.triggerConditions&&void 0!==e.triggerConditions){for(o=[],n=e.triggerConditions,i=0;i<n.length;i++)r=Sm.constructFromObject(n[i],void 0),o.push(r);a.setTriggerConditions(o)}if(e.hasOwnProperty("impactTypes")&&null!==e.impactTypes&&void 0!==e.impactTypes){for(o=[],n=e.impactTypes,i=0;i<n.length;i++)r=Hn.constructFromObject(n[i],void 0),o.push(r);a.setImpactTypes(o)}if(e.hasOwnProperty("createdBy")&&null!==e.createdBy&&void 0!==e.createdBy&&a.setCreatedBy(e.createdBy),e.hasOwnProperty("lastUpdatedTime")&&null!==e.lastUpdatedTime&&void 0!==e.lastUpdatedTime&&a.setLastUpdatedTime(e.lastUpdatedTime),e.hasOwnProperty("isExpectedToErrorOnConflict")&&null!==e.isExpectedToErrorOnConflict&&void 0!==e.isExpectedToErrorOnConflict&&a.setIsExpectedToErrorOnConflict(e.isExpectedToErrorOnConflict),e.hasOwnProperty("policiesToOverride")&&null!==e.policiesToOverride&&void 0!==e.policiesToOverride){for(o=[],n=e.policiesToOverride,i=0;i<n.length;i++)o.push(n[i]);a.setPoliciesToOverride(o)}if(e.hasOwnProperty("triggerWaitPeriod")&&null!==e.triggerWaitPeriod&&void 0!==e.triggerWaitPeriod&&a.setTriggerWaitPeriod(e.triggerWaitPeriod),e.hasOwnProperty("relatedPolicies")&&null!==e.relatedPolicies&&void 0!==e.relatedPolicies){for(o=[],n=e.relatedPolicies,i=0;i<n.length;i++)r=am.constructFromObject(n[i],void 0),o.push(r);a.setRelatedPolicies(o)}if(e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&a.setEntityType(e.entityType),!u)for(var l in a.$unknownFields=Cm({},e.$unknownFields),e)Object.keys(a).includes(l)||Object.keys(a).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(a.$unknownFields[l]=e[l])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Rm(n.prototype,r),i&&Rm(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(An);function Jm(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Fm(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)?Fm(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Dm(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 Wm(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Bm(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 zm(e){return zm="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},zm(e)}function Gm(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 qm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gm(Object(n),!0).forEach(function(t){Km(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Km(e,t,n){return(t=Ym(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hm(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,Ym(r.key),r)}}function Ym(e){var t=function(e){if("object"!=zm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zm(t)?t:t+""}function Xm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Xm=function(){return!!e})()}function Qm(e){return Qm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qm(e)}function Zm(e,t){return Zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zm(e,t)}function eg(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")}Lm.prototype.title=void 0,Lm.prototype.description=void 0,Lm.prototype.isEnabled=!1,Lm.prototype.isAutoResolved=!0,Lm.prototype.filters=void 0,Lm.prototype.triggerConditions=void 0,Lm.prototype.impactTypes=void 0,Lm.prototype.createdBy=void 0,Lm.prototype.lastUpdatedTime=void 0,Lm.prototype.isExpectedToErrorOnConflict=!0,Lm.prototype.policiesToOverride=void 0,Lm.prototype.triggerWaitPeriod=void 0,Lm.prototype.relatedPolicies=void 0,Lm.prototype.entityType=void 0,An.prototype.extId=void 0,An.prototype.links=void 0,wn.prototype.tenantId=void 0;var tg=new WeakSet,ng=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=Qm(t),function(e,t){if(t&&("object"==zm(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,Xm()?Reflect.construct(t,n||[],Qm(e).constructor):t.apply(e,n))}(this,t),tg),e.$objectType="monitoring.v4.serviceability.CreateUdaPolicyApiResponse",e.$reserved={$fv:"v4.r1"},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&&Zm(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 qm(qm(qm({},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}):eg(tg,this,rg).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}):eg(tg,this,rg).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:zm(e.data)){case"monitoring.v4.serviceability.UserDefinedPolicy":r.setData(Lm.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=qm({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Hm(n.prototype,r),i&&Hm(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function rg(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Bm(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)?Bm(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===zm(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 ig(e){return ig="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},ig(e)}function og(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 sg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?og(Object(n),!0).forEach(function(t){ag(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ag(e,t,n){return(t=lg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ug(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,lg(r.key),r)}}function lg(e){var t=function(e){if("object"!=ig(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ig(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ig(t)?t:t+""}ng.prototype.metadata=void 0,ng.prototype.data=void 0,ng.prototype.$reserved=void 0,ng.prototype.$objectType=void 0,ng.prototype.$unknownFields=void 0;var cg=new WeakSet,dg=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,cg),this.extId=t,this.$objectType="monitoring.v4.serviceability.ConflictingPolicy",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 sg(sg({},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=["extId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!A.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 U("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}$/")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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 i in n.$unknownFields=sg({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&ug(t.prototype,n),r&&ug(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fg(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 pg(e){return pg="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},pg(e)}function yg(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 hg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yg(Object(n),!0).forEach(function(t){vg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vg(e,t,n){return(t=mg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bg(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,mg(r.key),r)}}function mg(e){var t=function(e){if("object"!=pg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pg(t)?t:t+""}function gg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(gg=function(){return!!e})()}function wg(e){return wg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wg(e)}function Og(e,t){return Og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Og(e,t)}function jg(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")}dg.prototype.extId=void 0,dg.prototype.$reserved=void 0,dg.prototype.$objectType=void 0,dg.prototype.$unknownFields=void 0;var $g=new WeakSet,kg=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=wg(t),function(e,t){if(t&&("object"==pg(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,gg()?Reflect.construct(t,n||[],wg(e).constructor):t.apply(e,n))}(this,t),$g),e.$objectType="monitoring.v4.serviceability.FindConflictingUdaPoliciesApiResponse",e.$reserved={$fv:"v4.r1"},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&&Og(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 hg(hg(hg({},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}):jg($g,this,Tg).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}):jg($g,this,Tg).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:pg(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.ConflictingPolicy"!==s)throw"Unknown list of type "+s+" in data";r=dg.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:pg(e.data)))throw"Unknown datatype "+s+" in data";a.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=hg({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&bg(n.prototype,r),i&&bg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Tg(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return fg(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)?fg(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===pg(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 Pg(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 Eg(e){return Eg="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},Eg(e)}function Sg(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 Fg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sg(Object(n),!0).forEach(function(t){Dg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dg(e,t,n){return(t=Cg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ag(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,Cg(r.key),r)}}function Cg(e){var t=function(e){if("object"!=Eg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Eg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Eg(t)?t:t+""}function Ig(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ig=function(){return!!e})()}function Rg(e){return Rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rg(e)}function Ug(e,t){return Ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ug(e,t)}function xg(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")}kg.prototype.metadata=void 0,kg.prototype.data=void 0,kg.prototype.$reserved=void 0,kg.prototype.$objectType=void 0,kg.prototype.$unknownFields=void 0;var Ng=new WeakSet,_g=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=Rg(t),function(e,t){if(t&&("object"==Eg(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,Ig()?Reflect.construct(t,n||[],Rg(e).constructor):t.apply(e,n))}(this,t),Ng),e.$objectType="monitoring.v4.serviceability.UpdateUdaPolicyApiResponse",e.$reserved={$fv:"v4.r1"},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&&Ug(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 Fg(Fg(Fg({},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}):xg(Ng,this,Mg).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}):xg(Ng,this,Mg).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Eg(n[0]),i=0;i<n.length;i++){if("monitoring.v4.error.AppMessage"!==s)throw"Unknown list of type "+s+" in data";r=Ut.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Eg(e.data)))throw"Unknown datatype "+s+" in data";a.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=Fg({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&Ag(n.prototype,r),i&&Ag(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Mg(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Pg(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)?Pg(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Eg(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 Vg(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 Lg(e){return Lg="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},Lg(e)}function Jg(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 Wg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jg(Object(n),!0).forEach(function(t){Bg(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bg(e,t,n){return(t=Gg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zg(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,Gg(r.key),r)}}function Gg(e){var t=function(e){if("object"!=Lg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lg(t)?t:t+""}function qg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qg=function(){return!!e})()}function Kg(e){return Kg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kg(e)}function Hg(e,t){return Hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Hg(e,t)}function Yg(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")}_g.prototype.metadata=void 0,_g.prototype.data=void 0,_g.prototype.$reserved=void 0,_g.prototype.$objectType=void 0,_g.prototype.$unknownFields=void 0;var Xg=new WeakSet,Qg=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=Kg(t),function(e,t){if(t&&("object"==Lg(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,qg()?Reflect.construct(t,n||[],Kg(e).constructor):t.apply(e,n))}(this,t),Xg),e.$objectType="monitoring.v4.serviceability.DeleteUdaPolicyApiResponse",e.$reserved={$fv:"v4.r1"},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&&Hg(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 Wg(Wg(Wg({},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}):Yg(Xg,this,Zg).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}):Yg(Xg,this,Zg).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.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:Lg(e.data)){case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=Wg({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&zg(n.prototype,r),i&&zg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Zg(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Vg(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)?Vg(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===Lg(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 ew(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 tw(e){return tw="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},tw(e)}function nw(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 rw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nw(Object(n),!0).forEach(function(t){iw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iw(e,t,n){return(t=sw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ow(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,sw(r.key),r)}}function sw(e){var t=function(e){if("object"!=tw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tw(t)?t:t+""}function aw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(aw=function(){return!!e})()}function uw(e){return uw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uw(e)}function lw(e,t){return lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lw(e,t)}function cw(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")}Qg.prototype.metadata=void 0,Qg.prototype.data=void 0,Qg.prototype.$reserved=void 0,Qg.prototype.$objectType=void 0,Qg.prototype.$unknownFields=void 0;var dw=new WeakSet,fw=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=uw(t),function(e,t){if(t&&("object"==tw(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,aw()?Reflect.construct(t,n||[],uw(e).constructor):t.apply(e,n))}(this,t),dw),e.$objectType="monitoring.v4.serviceability.ListUdaPoliciesApiResponse",e.$reserved={$fv:"v4.r1"},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&&lw(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 rw(rw(rw({},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}):cw(dw,this,pw).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}):cw(dw,this,pw).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r,i,o,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,a),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&a.setMetadata(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)a.setData([]);else{for(o=[],s=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:tw(n[0]),i=0;i<n.length;i++){if("monitoring.v4.serviceability.UserDefinedPolicy"!==s)throw"Unknown list of type "+s+" in data";r=Lm.constructFromObject(n[i],void 0),o.push(r)}a.setData(o)}else{if("monitoring.v4.error.ErrorResponse"!==(s=e.data.hasOwnProperty("$objectType")?e.data.$objectType:tw(e.data)))throw"Unknown datatype "+s+" in data";a.setData(dn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(a.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(a.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(a.$unknownFields=e.$unknownFields),!u)for(var c in a.$unknownFields=rw({},e.$unknownFields),e)Object.keys(a).includes(c)||Object.keys(a).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(a.$unknownFields[c]=e[c])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&ow(n.prototype,r),i&&ow(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function pw(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ew(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)?ew(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===tw(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 yw(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 hw(e){return hw="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},hw(e)}function vw(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 bw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vw(Object(n),!0).forEach(function(t){mw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mw(e,t,n){return(t=ww(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gw(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,ww(r.key),r)}}function ww(e){var t=function(e){if("object"!=hw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hw(t)?t:t+""}function Ow(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ow=function(){return!!e})()}function jw(e){return jw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jw(e)}function $w(e,t){return $w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$w(e,t)}function kw(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")}fw.prototype.metadata=void 0,fw.prototype.data=void 0,fw.prototype.$reserved=void 0,fw.prototype.$objectType=void 0,fw.prototype.$unknownFields=void 0;var Tw=new WeakSet,Pw=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=jw(t),function(e,t){if(t&&("object"==hw(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,Ow()?Reflect.construct(t,n||[],jw(e).constructor):t.apply(e,n))}(this,t),Tw),e.$objectType="monitoring.v4.serviceability.GetUdaPolicyApiResponse",e.$reserved={$fv:"v4.r1"},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&&$w(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 bw(bw(bw({},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}):kw(Tw,this,Ew).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}):kw(Tw,this,Ew).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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("data","undefined or null"):new U("metadata","undefined or null")}}],i=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=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(_e.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:hw(e.data)){case"monitoring.v4.serviceability.UserDefinedPolicy":r.setData(Lm.constructFromObject(e.data,void 0));break;case"monitoring.v4.error.ErrorResponse":r.setData(dn.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),!i)for(var o in r.$unknownFields=bw({},e.$unknownFields),e)Object.keys(r).includes(o)||Object.keys(r).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=e[o])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&gw(n.prototype,r),i&&gw(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(l);function Ew(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,i=(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,i,o,s,a=[],u=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(e){l=!0,i=e}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(n,r)||function(e,t){if(e){if("string"==typeof e)return yw(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)?yw(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.")}()),o=i[0],s=i[1];return[o,void 0!==s.toJson?s.toJson(t):s]})):"object"===hw(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 Sw(e){return Sw="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},Sw(e)}function Fw(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 Dw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fw(Object(n),!0).forEach(function(t){Aw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Aw(e,t,n){return(t=Iw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cw(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,Iw(r.key),r)}}function Iw(e){var t=function(e){if("object"!=Sw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sw(t)?t:t+""}function Rw(e,t){return e.get(Uw(e,t))}function Uw(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")}Pw.prototype.metadata=void 0,Pw.prototype.data=void 0,Pw.prototype.$reserved=void 0,Pw.prototype.$objectType=void 0,Pw.prototype.$unknownFields=void 0;var xw=new WeakMap,Nw=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,xw,void 0),this.apiClient=t||lt.instance,n=xw,r=new Set,n.set(Uw(n,this),r),Rw(xw,this).add("authorization"),Rw(xw,this).add("cookie"),Rw(xw,this).add("host"),Rw(xw,this).add("user-agent")},t=[{key:"createUdaPolicy",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 Lm&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createUdaPolicy");var i={};Object.keys(r).forEach(function(e){Rw(xw,n).has(e.toLowerCase())||(i[e]=r[e])});var o=Dw({},i);lt.addEtagReferenceToHeader(e,o);var s=ng;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/user-defined-policies","POST",{},{},o,{},t,["basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"deleteUdaPolicyById",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 deleteUdaPolicyById");var r={extId:e},i={};Object.keys(n).forEach(function(e){Rw(xw,t).has(e.toLowerCase())||(i[e]=n[e])});var o=Dw({},i),s=Qg;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/user-defined-policies/{extId}","DELETE",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"findConflictingUdaPolicies",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 Lm&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling findConflictingUdaPolicies");var i={};Object.keys(r).forEach(function(e){Rw(xw,n).has(e.toLowerCase())||(i[e]=r[e])});var o=Dw({},i);lt.addEtagReferenceToHeader(e,o);var s=kg;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/user-defined-policies/$actions/find-conflicts","POST",{},{},o,{},t,["basicAuthScheme"],["application/json"],["application/json"],s)}},{key:"getUdaPolicyById",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 getUdaPolicyById");var r={extId:e},i={};Object.keys(n).forEach(function(e){Rw(xw,t).has(e.toLowerCase())||(i[e]=n[e])});var o=Dw({},i),s=Pw;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/user-defined-policies/{extId}","GET",r,{},o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"listUdaPolicies",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Dw(Dw(Dw(Dw(Dw({},(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}:{}),i={};Object.keys(n).forEach(function(e){Rw(xw,t).has(e.toLowerCase())||(i[e]=n[e])});var o=Dw({},i),s=fw;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/user-defined-policies","GET",{},r,o,{},null,["basicAuthScheme"],[],["application/json"],s)}},{key:"updateUdaPolicyById",value:function(e,t){var n,r=this,i=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof Lm&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateUdaPolicyById");if(null==n)throw new Error("Invalid body when calling updateUdaPolicyById");var o={extId:e},s={};Object.keys(i).forEach(function(e){Rw(xw,r).has(e.toLowerCase())||(s[e]=i[e])});var a=Dw({},s);lt.addEtagReferenceToHeader(t,a);var u=_g;return this.apiClient.callApi("/api/monitoring/v4.1/serviceability/alerts/user-defined-policies/{extId}","PUT",o,{},a,{},n,["basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Cw(e.prototype,t),n&&Cw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function _w(e){return _w="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},_w(e)}function Mw(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 Vw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mw(Object(n),!0).forEach(function(t){Lw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Lw(e,t,n){return(t=Ww(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jw(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,Ww(r.key),r)}}function Ww(e){var t=function(e){if("object"!=_w(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_w(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_w(t)?t:t+""}var Bw=new WeakSet,zw=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,Bw),this.$objectType="monitoring.v4.common.CauseAndResolution",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getCause",value:function(){return this.cause}},{key:"setCause",value:function(e){this.cause=e}},{key:"getResolution",value:function(){return this.resolution}},{key:"setResolution",value:function(e){this.resolution=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 Vw(Vw(Vw({},void 0!==this.getCause()&&null!==this.getCause()?{cause:this.getCause()}:{}),void 0!==this.getResolution()&&null!==this.getResolution()?{resolution:this.getResolution()}:{}),{},{$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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){if("cause"===t){if(void 0===this.cause||null===this.cause)return new U("cause","undefined or null");if(!A.validateMaxLength(this.cause,500))return new U("cause","does not satisfy required maxLength constraint: 500")}if("resolution"===t){if(void 0===this.resolution||null===this.resolution)return new U("resolution","undefined or null");if(!A.validateMaxLength(this.resolution,500))return new U("resolution","does not satisfy required maxLength constraint: 500")}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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$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("cause")&&null!==t.cause&&void 0!==t.cause&&n.setCause(t.cause),t.hasOwnProperty("resolution")&&null!==t.resolution&&void 0!==t.resolution&&n.setResolution(t.resolution),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Vw({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Jw(t.prototype,n),r&&Jw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Gw(e){return Gw="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},Gw(e)}function qw(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 Kw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qw(Object(n),!0).forEach(function(t){Hw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hw(e,t,n){return(t=Xw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yw(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,Xw(r.key),r)}}function Xw(e){var t=function(e){if("object"!=Gw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gw(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gw(t)?t:t+""}zw.prototype.cause=void 0,zw.prototype.resolution=void 0,zw.prototype.$reserved=void 0,zw.prototype.$objectType=void 0,zw.prototype.$unknownFields=void 0;var Qw=new WeakSet,Zw=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,Qw),this.floatValue=t,this.$objectType="monitoring.v4.common.FloatValue",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getFloatValue",value:function(){return this.floatValue}},{key:"setFloatValue",value:function(e){this.floatValue=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 Kw(Kw({},void 0!==this.getFloatValue()&&null!==this.getFloatValue()?{floatValue:this.getFloatValue()}:{}),{},{$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=["floatValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return"floatValue"!==t||void 0!==this.floatValue&&null!==this.floatValue?"$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 U(t,"no such property exists"):new U("$unknownFields","undefined or null"):new U("$objectType","undefined or null"):new U("$reserved","undefined or null"):new U("floatValue","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("floatValue")&&null!==t.floatValue&&void 0!==t.floatValue&&n.setFloatValue(t.floatValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var i in n.$unknownFields=Kw({},t.$unknownFields),t)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=t[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Yw(t.prototype,n),r&&Yw(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function eO(e){return eO="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},eO(e)}function tO(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 nO(e,t,n){return(t=iO(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rO(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,iO(r.key),r)}}function iO(e){var t=function(e){if("object"!=eO(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=eO(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==eO(t)?t:t+""}function oO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(oO=function(){return!!e})()}function sO(e){return sO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sO(e)}function aO(e,t){return aO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aO(e,t)}Zw.prototype.floatValue=void 0,Zw.prototype.$reserved=void 0,Zw.prototype.$objectType=void 0,Zw.prototype.$unknownFields=void 0;var uO=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),(e=function(e,t,n){return t=sO(t),function(e,t){if(t&&("object"==eO(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,oO()?Reflect.construct(t,n||[],sO(e).constructor):t.apply(e,n))}(this,t)).$objectType="monitoring.v4.serviceability.RootCauseAnalysisProjection",e.$reserved={$fv:"v4.r1"},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&&aO(e,t)}(t,e),n=t,r=[{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 i=[],o=null;return r.forEach(function(t){(o=n.validateProperty(t,e))&&i.push(o)}),new Promise(function(e,t){0!==i.length?t(o):e()})}},{key:"validateProperty",value:function(e,t){return new U(t,"no such property exists")}}],i=[{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,fi.constructFromObject(e,n,!0),!r))for(var i in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tO(Object(n),!0).forEach(function(t){nO(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tO(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.$unknownFields),e)Object.keys(n).includes(i)||Object.keys(n).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(n.$unknownFields[i]=e[i]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],r&&rO(n.prototype,r),i&&rO(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(fi);const lO={ApiClient:lt,AlertsApi:wo,SystemDefinedPoliciesApi:ll,AlertEmailConfigurationApi:Qd,AuditsApi:vp,ClusterLogsApi:wh,EventsApi:Tv,ManageAlertsApi:ib,SystemDefinedChecksApi:Ub,UserDefinedPoliciesApi:Nw,FQDN:ac,Flag:W,IPAddressOrFQDN:Ac,IPv4Address:hc,IPv6Address:$c,KVPair:ce,KVStringPair:Ul,MapOfStringWrapper:Z,Message:Oe,MessageSeverity:pe,TenantAwareModel:wn,ApiLink:Fe,ApiResponseMetadata:_e,ExternalizableAbstractModel:An,AlertEntityReference:Mn,BoolValue:rr,CauseAndResolution:zw,ComparisonOperator:or,ConditionType:ar,DataType:lr,DoubleValue:br,EntityReference:qn,FloatValue:Zw,ImpactType:Hn,IntValue:Tr,MetricDetail:Wr,OperationType:ef,Parameter:ti,Severity:ii,StringValue:Ir,AppMessage:Ut,ErrorResponse:dn,SchemaValidationError:Zt,SchemaValidationErrorMessage:Bt,ActionType:Lv,Alert:Ri,AlertActionSpec:Hv,AlertConfig:Vs,AlertEmailConfiguration:yd,AlertPolicyConfigurableParameter:Os,ArchiveOpts:yy,Audit:Af,AuditEntityReference:lf,AutoResolveState:jo,BooleanConfigurableParamValue:Do,ClusterConfig:Qs,ClusterConfigProjection:Wa,ClusterType:ta,CollectLogsApiResponse:lh,CommunicationStatus:Ql,Condition:bm,ConfigurableParamValueRange:Vo,ConflictingPolicy:dg,ConnectionStatus:El,CreateUdaPolicyApiResponse:ng,Credential:kp,CustomServerUploadParams:Rp,DeleteUdaPolicyApiResponse:Qg,EmailConfigurationRule:bl,EmailTemplate:Tl,EntityFilter:Wb,EntityType:ra,Event:Vh,EventEntityReference:Sh,FindConflictingUdaPoliciesApiResponse:kg,FloatConfigurableParamValue:Ho,GetAlertApiResponse:uo,GetAlertEmailConfigurationApiResponse:Ed,GetAuditApiResponse:zf,GetClusterConfigApiResponse:vu,GetEventApiResponse:yv,GetSdaPolicyApiResponse:Ia,GetUdaPolicyApiResponse:Pw,GroupEntityType:zb,GroupFilter:Zb,HttpProxy:Lc,IntConfigurableParamValue:rs,ListAlertsApiResponse:Ki,ListAuditsApiResponse:op,ListClusterConfigsApiResponse:nu,ListEventsApiResponse:ev,ListSdaPoliciesApiResponse:Qu,ListTagsApiResponse:Hy,ListUdaPoliciesApiResponse:fw,LocalUploadParams:Jp,LogCollectionSpec:ky,ManageAlertApiResponse:_v,NtnxServerUploadParams:Yp,ParameterizedMessage:Wl,PolicySeverityLevel:wm,PropertyState:ks,ProxyType:Ic,RelatedPolicy:am,RemoteTunnelDetails:rd,RootCauseAnalysis:fi,RootCauseAnalysisProjection:uO,RunSystemDefinedChecksApiResponse:bb,RunSystemDefinedChecksSpec:Pb,Scope:oa,SdaSubType:aa,SdaType:la,ServerUploadProtocol:Pp,ServiceCenter:Hc,SeverityConfig:Cs,SeverityTrail:Oi,Status:df,StorageContainerUploadParams:iy,StringConfigurableParamValue:ds,SystemDefinedPolicy:wa,Tag:xy,TriggerCondition:Sm,UpdateAlertEmailConfigurationApiResponse:Ld,UpdateClusterConfigApiResponse:_u,UpdateUdaPolicyApiResponse:_g,UserDefinedPolicy:Lm,UserReference:gf,TaskReference:Tu}})(),r.default})());
|