@nutanix-scratch/aiops-js-client 4.0.1-alpha.1 → 4.0.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 +58 -40
- package/dist/Ntnx-Aiops-js-client-prod.js +1 -10
- package/dist/Ntnx-Aiops-js-client.js +1160 -709
- package/dist/es/ApiClient.d.ts +33 -43
- package/dist/es/ApiClient.js +764 -483
- package/dist/es/Paginable.d.ts +9 -9
- package/dist/es/Paginable.js +44 -64
- package/dist/es/apis/scenarios-endpoints.d.ts +217 -0
- package/dist/es/apis/scenarios-endpoints.js +675 -0
- package/dist/es/apis/stats-endpoints.d.ts +102 -0
- package/dist/es/apis/stats-endpoints.js +273 -0
- package/dist/es/index.d.ts +191 -7
- package/dist/es/index.js +754 -45
- package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +110 -0
- package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.js +459 -0
- package/dist/es/models/aiops/v4/capacityplanning/CapacityUnit.d.ts +19 -0
- package/dist/es/models/aiops/v4/capacityplanning/CapacityUnit.js +85 -0
- package/dist/es/models/aiops/v4/capacityplanning/Runway.d.ts +86 -0
- package/dist/es/models/aiops/v4/capacityplanning/Runway.js +340 -0
- package/dist/es/models/aiops/v4/capacityplanning/RunwayDuration.d.ts +19 -0
- package/dist/es/models/aiops/v4/capacityplanning/RunwayDuration.js +91 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +90 -87
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +151 -145
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +171 -152
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +241 -268
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +49 -29
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +186 -87
- package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +48 -45
- package/dist/es/models/aiops/v4/clusterMetrics/Node.js +116 -89
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +2 -1
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +61 -58
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +48 -45
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +116 -89
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +2 -1
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +61 -58
- package/dist/es/models/aiops/v4/common/ClusterType.d.ts +19 -0
- package/dist/es/models/aiops/v4/common/ClusterType.js +79 -0
- package/dist/es/models/aiops/v4/config/CalculateRunwayApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/CalculateRunwayApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +77 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +322 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +85 -0
- package/dist/es/models/aiops/v4/config/CategoryDetail.d.ts +60 -0
- package/dist/es/models/aiops/v4/config/CategoryDetail.js +315 -0
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +85 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +83 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +371 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +79 -0
- package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +107 -0
- package/dist/es/models/aiops/v4/config/ClusterConfig.js +329 -0
- package/dist/es/models/aiops/v4/config/CreateIgnoreWindowApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/CreateIgnoreWindowApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +102 -0
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +205 -0
- package/dist/es/models/aiops/v4/config/DataStoreConfig.js +673 -0
- package/dist/es/models/aiops/v4/config/DeleteIgnoreWindowApiResponse.d.ts +98 -0
- package/dist/es/models/aiops/v4/config/DeleteIgnoreWindowApiResponse.js +345 -0
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +98 -0
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +345 -0
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +98 -0
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +345 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +68 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptor.js +454 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +101 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +365 -0
- package/dist/es/models/aiops/v4/config/EntityType.d.ts +37 -0
- package/dist/es/models/aiops/v4/config/EntityType.js +275 -0
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +365 -0
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +98 -0
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +342 -0
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/IgnoreWindow.d.ts +111 -0
- package/dist/es/models/aiops/v4/config/IgnoreWindow.js +460 -0
- package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.d.ts +20 -0
- package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.js +173 -0
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +100 -0
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +370 -0
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +100 -0
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +370 -0
- package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +182 -0
- package/dist/es/models/aiops/v4/config/MetricDescriptor.js +667 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +79 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +83 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +371 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +79 -0
- package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +143 -0
- package/dist/es/models/aiops/v4/config/NodeConfig.js +490 -0
- package/dist/es/models/aiops/v4/config/NodeSource.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/NodeSource.js +91 -0
- package/dist/es/models/aiops/v4/config/PolicyType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/PolicyType.js +85 -0
- package/dist/es/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/ReplicationFactor.js +85 -0
- package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +126 -0
- package/dist/es/models/aiops/v4/config/ResourceCapacity.js +451 -0
- package/dist/es/models/aiops/v4/config/Runway.d.ts +130 -0
- package/dist/es/models/aiops/v4/config/Runway.js +479 -0
- package/dist/es/models/aiops/v4/config/RunwayParams.d.ts +77 -0
- package/dist/es/models/aiops/v4/config/RunwayParams.js +323 -0
- package/dist/es/models/aiops/v4/config/RunwayParamsProjection.d.ts +14 -0
- package/dist/es/models/aiops/v4/config/RunwayParamsProjection.js +159 -0
- package/dist/es/models/aiops/v4/config/Scenario.d.ts +178 -0
- package/dist/es/models/aiops/v4/config/Scenario.js +579 -0
- package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/config/ScenarioProjection.js +156 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +106 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +403 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +162 -0
- package/dist/es/models/aiops/v4/config/Simulation.d.ts +56 -0
- package/dist/es/models/aiops/v4/config/Simulation.js +317 -0
- package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/config/SimulationProjection.js +153 -0
- package/dist/es/models/aiops/v4/config/Source.d.ts +37 -0
- package/dist/es/models/aiops/v4/config/Source.js +275 -0
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +106 -0
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +365 -0
- package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +118 -0
- package/dist/es/models/aiops/v4/config/SplunkWorkload.js +446 -0
- package/dist/es/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/SqlProfileType.js +91 -0
- package/dist/es/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/SqlTransactionType.js +85 -0
- package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +110 -0
- package/dist/es/models/aiops/v4/config/SqlWorkload.js +415 -0
- package/dist/es/models/aiops/v4/config/UpdateIgnoreWindowApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/UpdateIgnoreWindowApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/UpdatePolicyTaskApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/UpdatePolicyTaskApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +343 -0
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +365 -0
- package/dist/es/models/aiops/v4/config/ValueRange.d.ts +64 -0
- package/dist/es/models/aiops/v4/config/ValueRange.js +312 -0
- package/dist/es/models/aiops/v4/config/ValueType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/ValueType.js +121 -0
- package/dist/es/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiProvisionType.js +103 -0
- package/dist/es/models/aiops/v4/config/VdiUserType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiUserType.js +97 -0
- package/dist/es/models/aiops/v4/config/VdiVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiVendor.js +85 -0
- package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +109 -0
- package/dist/es/models/aiops/v4/config/VdiWorkload.js +412 -0
- package/dist/es/models/aiops/v4/config/Vendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/Vendor.js +127 -0
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +94 -0
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +370 -0
- package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +80 -0
- package/dist/es/models/aiops/v4/config/VmWorkload.js +335 -0
- package/dist/es/models/aiops/v4/config/Workload.d.ts +122 -0
- package/dist/es/models/aiops/v4/config/Workload.js +447 -0
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +85 -0
- package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +151 -0
- package/dist/es/models/aiops/v4/config/XenWorkload.js +532 -0
- package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +161 -0
- package/dist/es/models/aiops/v4/config/XfitPolicy.js +589 -0
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +16 -0
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +167 -0
- package/dist/es/models/aiops/v4/error/AppMessage.d.ts +69 -51
- package/dist/es/models/aiops/v4/error/AppMessage.js +140 -103
- package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +25 -22
- package/dist/es/models/aiops/v4/error/ErrorResponse.js +159 -103
- package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +65 -44
- package/dist/es/models/aiops/v4/error/SchemaValidationError.js +138 -95
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +42 -33
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +115 -72
- package/dist/es/models/aiops/v4/stats/BoolList.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/BoolList.js +288 -0
- package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/BoolVal.js +280 -0
- package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/DoubleList.js +288 -0
- package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/DoubleVal.js +280 -0
- package/dist/es/models/aiops/v4/stats/Entity.d.ts +57 -0
- package/dist/es/models/aiops/v4/stats/Entity.js +413 -0
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +99 -0
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +365 -0
- package/dist/es/models/aiops/v4/stats/IntList.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/IntList.js +288 -0
- package/dist/es/models/aiops/v4/stats/IntVal.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/IntVal.js +280 -0
- package/dist/es/models/aiops/v4/stats/Metric.d.ts +75 -0
- package/dist/es/models/aiops/v4/stats/Metric.js +312 -0
- package/dist/es/models/aiops/v4/stats/Point.d.ts +72 -0
- package/dist/es/models/aiops/v4/stats/Point.js +356 -0
- package/dist/es/models/aiops/v4/stats/StrList.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/StrList.js +288 -0
- package/dist/es/models/aiops/v4/stats/StrVal.d.ts +61 -0
- package/dist/es/models/aiops/v4/stats/StrVal.js +280 -0
- package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +71 -0
- package/dist/es/models/aiops/v4/stats/TimeSeries.js +326 -0
- package/dist/es/models/common/v1/config/Flag.d.ts +34 -27
- package/dist/es/models/common/v1/config/Flag.js +114 -65
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +42 -27
- package/dist/es/models/common/v1/config/IPv4Address.js +112 -69
- package/dist/es/models/common/v1/config/KVPair.d.ts +37 -29
- package/dist/es/models/common/v1/config/KVPair.js +167 -98
- package/dist/es/models/common/v1/config/KVStringPair.d.ts +64 -0
- package/dist/es/models/common/v1/config/KVStringPair.js +318 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/es/models/common/v1/config/Message.d.ts +45 -39
- package/dist/es/models/common/v1/config/Message.js +114 -81
- package/dist/es/models/common/v1/config/MessageSeverity.js +22 -35
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +26 -23
- package/dist/es/models/common/v1/config/TenantAwareModel.js +99 -60
- package/dist/es/models/common/v1/response/ApiLink.d.ts +34 -31
- package/dist/es/models/common/v1/response/ApiLink.js +108 -71
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +91 -47
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +148 -108
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +27 -20
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +126 -95
- package/dist/es/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +109 -0
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +52 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +285 -0
- package/dist/es/models/validation/ValidationError.js +12 -19
- package/dist/es/models/validation/ValidationScopes.js +2 -7
- package/dist/es/utils/ValidationUtils.js +12 -18
- package/dist/lib/ApiClient.d.ts +33 -43
- package/dist/lib/ApiClient.js +764 -483
- package/dist/lib/Paginable.d.ts +9 -9
- package/dist/lib/Paginable.js +44 -64
- package/dist/lib/apis/scenarios-endpoints.d.ts +217 -0
- package/dist/lib/apis/scenarios-endpoints.js +675 -0
- package/dist/lib/apis/stats-endpoints.d.ts +102 -0
- package/dist/lib/apis/stats-endpoints.js +273 -0
- package/dist/lib/index.d.ts +191 -7
- package/dist/lib/index.js +754 -45
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +110 -0
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.js +459 -0
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityUnit.d.ts +19 -0
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityUnit.js +85 -0
- package/dist/lib/models/aiops/v4/capacityplanning/Runway.d.ts +86 -0
- package/dist/lib/models/aiops/v4/capacityplanning/Runway.js +340 -0
- package/dist/lib/models/aiops/v4/capacityplanning/RunwayDuration.d.ts +19 -0
- package/dist/lib/models/aiops/v4/capacityplanning/RunwayDuration.js +91 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +90 -87
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +151 -145
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +171 -152
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +241 -268
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +49 -29
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +186 -87
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +48 -45
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +116 -89
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +2 -1
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +61 -58
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +48 -45
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +116 -89
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +2 -1
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +61 -58
- package/dist/lib/models/aiops/v4/common/ClusterType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/common/ClusterType.js +79 -0
- package/dist/lib/models/aiops/v4/config/CalculateRunwayApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/CalculateRunwayApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +77 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +322 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +85 -0
- package/dist/lib/models/aiops/v4/config/CategoryDetail.d.ts +60 -0
- package/dist/lib/models/aiops/v4/config/CategoryDetail.js +315 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +85 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +83 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +371 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +79 -0
- package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +107 -0
- package/dist/lib/models/aiops/v4/config/ClusterConfig.js +329 -0
- package/dist/lib/models/aiops/v4/config/CreateIgnoreWindowApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/CreateIgnoreWindowApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +102 -0
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +205 -0
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +673 -0
- package/dist/lib/models/aiops/v4/config/DeleteIgnoreWindowApiResponse.d.ts +98 -0
- package/dist/lib/models/aiops/v4/config/DeleteIgnoreWindowApiResponse.js +345 -0
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +98 -0
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +345 -0
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +98 -0
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +345 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +68 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +454 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +101 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +365 -0
- package/dist/lib/models/aiops/v4/config/EntityType.d.ts +37 -0
- package/dist/lib/models/aiops/v4/config/EntityType.js +275 -0
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +365 -0
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +98 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +342 -0
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/IgnoreWindow.d.ts +111 -0
- package/dist/lib/models/aiops/v4/config/IgnoreWindow.js +460 -0
- package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.d.ts +20 -0
- package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.js +173 -0
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +100 -0
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +370 -0
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +100 -0
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +370 -0
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +182 -0
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +667 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +79 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +83 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +371 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +79 -0
- package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +143 -0
- package/dist/lib/models/aiops/v4/config/NodeConfig.js +490 -0
- package/dist/lib/models/aiops/v4/config/NodeSource.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/NodeSource.js +91 -0
- package/dist/lib/models/aiops/v4/config/PolicyType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/PolicyType.js +85 -0
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +85 -0
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +126 -0
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +451 -0
- package/dist/lib/models/aiops/v4/config/Runway.d.ts +130 -0
- package/dist/lib/models/aiops/v4/config/Runway.js +479 -0
- package/dist/lib/models/aiops/v4/config/RunwayParams.d.ts +77 -0
- package/dist/lib/models/aiops/v4/config/RunwayParams.js +323 -0
- package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.d.ts +14 -0
- package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.js +159 -0
- package/dist/lib/models/aiops/v4/config/Scenario.d.ts +178 -0
- package/dist/lib/models/aiops/v4/config/Scenario.js +579 -0
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +156 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +106 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +403 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +162 -0
- package/dist/lib/models/aiops/v4/config/Simulation.d.ts +56 -0
- package/dist/lib/models/aiops/v4/config/Simulation.js +317 -0
- package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/config/SimulationProjection.js +153 -0
- package/dist/lib/models/aiops/v4/config/Source.d.ts +37 -0
- package/dist/lib/models/aiops/v4/config/Source.js +275 -0
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +106 -0
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +365 -0
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +118 -0
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +446 -0
- package/dist/lib/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/SqlProfileType.js +91 -0
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +85 -0
- package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +110 -0
- package/dist/lib/models/aiops/v4/config/SqlWorkload.js +415 -0
- package/dist/lib/models/aiops/v4/config/UpdateIgnoreWindowApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/UpdateIgnoreWindowApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/UpdatePolicyTaskApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/UpdatePolicyTaskApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +343 -0
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +365 -0
- package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +64 -0
- package/dist/lib/models/aiops/v4/config/ValueRange.js +312 -0
- package/dist/lib/models/aiops/v4/config/ValueType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/ValueType.js +121 -0
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +103 -0
- package/dist/lib/models/aiops/v4/config/VdiUserType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiUserType.js +97 -0
- package/dist/lib/models/aiops/v4/config/VdiVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiVendor.js +85 -0
- package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +109 -0
- package/dist/lib/models/aiops/v4/config/VdiWorkload.js +412 -0
- package/dist/lib/models/aiops/v4/config/Vendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/Vendor.js +127 -0
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +94 -0
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +370 -0
- package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +80 -0
- package/dist/lib/models/aiops/v4/config/VmWorkload.js +335 -0
- package/dist/lib/models/aiops/v4/config/Workload.d.ts +122 -0
- package/dist/lib/models/aiops/v4/config/Workload.js +447 -0
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +85 -0
- package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +151 -0
- package/dist/lib/models/aiops/v4/config/XenWorkload.js +532 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +161 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicy.js +589 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +16 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +167 -0
- package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +69 -51
- package/dist/lib/models/aiops/v4/error/AppMessage.js +140 -103
- package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +25 -22
- package/dist/lib/models/aiops/v4/error/ErrorResponse.js +159 -103
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +65 -44
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +138 -95
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +42 -33
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +115 -72
- package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/BoolList.js +288 -0
- package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/BoolVal.js +280 -0
- package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/DoubleList.js +288 -0
- package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/DoubleVal.js +280 -0
- package/dist/lib/models/aiops/v4/stats/Entity.d.ts +57 -0
- package/dist/lib/models/aiops/v4/stats/Entity.js +413 -0
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +99 -0
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +365 -0
- package/dist/lib/models/aiops/v4/stats/IntList.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/IntList.js +288 -0
- package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/IntVal.js +280 -0
- package/dist/lib/models/aiops/v4/stats/Metric.d.ts +75 -0
- package/dist/lib/models/aiops/v4/stats/Metric.js +312 -0
- package/dist/lib/models/aiops/v4/stats/Point.d.ts +72 -0
- package/dist/lib/models/aiops/v4/stats/Point.js +356 -0
- package/dist/lib/models/aiops/v4/stats/StrList.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/StrList.js +288 -0
- package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +61 -0
- package/dist/lib/models/aiops/v4/stats/StrVal.js +280 -0
- package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +71 -0
- package/dist/lib/models/aiops/v4/stats/TimeSeries.js +326 -0
- package/dist/lib/models/common/v1/config/Flag.d.ts +34 -27
- package/dist/lib/models/common/v1/config/Flag.js +114 -65
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +42 -27
- package/dist/lib/models/common/v1/config/IPv4Address.js +112 -69
- package/dist/lib/models/common/v1/config/KVPair.d.ts +37 -29
- package/dist/lib/models/common/v1/config/KVPair.js +167 -98
- package/dist/lib/models/common/v1/config/KVStringPair.d.ts +64 -0
- package/dist/lib/models/common/v1/config/KVStringPair.js +318 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +58 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +275 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +45 -39
- package/dist/lib/models/common/v1/config/Message.js +114 -81
- package/dist/lib/models/common/v1/config/MessageSeverity.js +22 -35
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +26 -23
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +99 -60
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +34 -31
- package/dist/lib/models/common/v1/response/ApiLink.js +108 -71
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +91 -47
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +148 -108
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +27 -20
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +126 -95
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.d.ts +19 -0
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +109 -0
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +52 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +285 -0
- package/dist/lib/models/validation/ValidationError.js +12 -19
- package/dist/lib/models/validation/ValidationScopes.js +2 -7
- package/dist/lib/utils/ValidationUtils.js +12 -18
- package/package.json +7 -9
- package/dist/es/apis/cluster-endpoints.d.ts +0 -48
- package/dist/es/apis/cluster-endpoints.js +0 -145
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterApiResponse.d.ts +0 -60
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterApiResponse.js +0 -339
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterListApiResponse.d.ts +0 -60
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterListApiResponse.js +0 -351
- package/dist/lib/apis/cluster-endpoints.d.ts +0 -48
- package/dist/lib/apis/cluster-endpoints.js +0 -145
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterApiResponse.d.ts +0 -60
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterApiResponse.js +0 -339
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterListApiResponse.d.ts +0 -60
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterListApiResponse.js +0 -351
|
@@ -1,10 +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.Aiops=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.Aiops=t())}("undefined"==typeof self?this:self,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=54)}([function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return g}));var n=r(11),i=r.n(n),o=r(10),s=r.n(o),a=r(2),l=r(55),u=r(26),h=r.n(u),d=r(27),c=r(28),p=r.n(c),f=r(12),y=r.n(f);h()(i.a);class g{constructor(){this.protocol="undefined"==typeof self?"https:":self.protocol,this.host="undefined"==typeof self?"localhost":self.host,this.port="undefined"==typeof self?"9440":self.port,this.authentications={basicAuthScheme:{type:"basic"}},this.defaultHeaders={},this.timeout=3e4,this.cache=!0,this.cookie=null,this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new i.a.agent),this.requestAgent=null,this.debug=!1,this.logger=null,this.username=null,this.password=null,this.verifySsl=null,this.loggerFile=null}set verifySsl(e){this.requestAgent=e?null:new p.a.Agent({rejectUnauthorized:!1})}set loggerFile(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=y.a.createWriteStream(e,{flags:"a"})),this.logger=new d.a.constructor({stdout:e,stderr:e}))}addDefaultHeader(e,t){"Authorization"===e&&(this.cookie=null),this.defaultHeaders[e]=t}paramToString(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}buildUrl(e,t){e.match(/^\//)||(e="/"+e);let r="";""!==this.protocol&&""!==this.host&&""!==this.port?r=this.protocol+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var n=r+e;return n=n.replace(/\{([\w-]+)\}/g,(e,r)=>{var n;return n=t.hasOwnProperty(r)?this.paramToString(t[r]):e,encodeURIComponent(n)}),this.debugLog("Request URL :",n),n}isJsonMime(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}jsonPreferredMime(e){for(var t=0;t<e.length;t++)if(this.isJsonMime(e[t]))return e[t];return e[0]}isFileParam(t){{let e;try{e=r(12)}catch(e){}if(e&&e.ReadStream&&t instanceof e.ReadStream)return!0}return"function"==typeof e&&t instanceof e||("function"==typeof Blob&&t instanceof Blob||"function"==typeof File&&t instanceof File)}normalizeParams(e){var t={};for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r]&&null!=e[r]){var n=e[r];this.isFileParam(n)||Array.isArray(n)?t[r]=n:t[r]=this.paramToString(n)}return t}buildCollectionParam(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}applyAuthToRequest(e,t){t.forEach(t=>{var r=this.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(this.username||this.password)&&e.auth(this.username||"",this.password||""),this.debugLog("Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var n={};r.apiKeyPrefix?n[r.name]=r.apiKeyPrefix+" "+r.apiKey:n[r.name]=r.apiKey,"header"===r.in?e.set(n):e.query(n)}this.debugLog("apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),this.debugLog("apiKey applied to request");break;default:throw new Error("Unknown authentication type: "+r.type)}})}deserialize(e,t){if(null==e||null==t||204==e.status)return null;var r=e.body;return(null==r||"object"==typeof r&&void 0===r.length&&!Object.keys(r).length)&&(r=e.text),g.convertToType(r,t)}paginateIfNeeded(e,t,r){if(!(e instanceof a.a))return;const n=parseInt(this.constructor.parseQueryParam(t,r,"$page","0"),10),i=parseInt(this.constructor.parseQueryParam(t,r,"$limit","50"),10);e.populatePaginationMetadata(this,n,i)}addEtagToReservedMap(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){let n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0)for(var r of t.getData())r.hasOwnProperty("$reserved")&&void 0!==r.get$Reserved()&&(r.get$Reserved().ETag=n);else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}static getEtag(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}static getValueForCaseInsensitiveKeyMatch(e,t){if(e&&t){const r=t.toLowerCase(),n=Object.keys(e).find(e=>e.toLowerCase()===r);return n?e[n]:null}return null}updateCookies(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){let t="",r=e.headers["set-cookie"];if(r.length>0){for(let e of r)e=e.split(";")[0],e.includes("=")&&(e.trim(),t=t.concat(e).concat(";"));""!==t&&(t=t.substr(0,t.length-1))}this.cookie=t,this.debugLog("Retained cookie :",t)}else this.cookie=null}attachCookies(e){null!=this.cookie&&e.set(this.normalizeParams({Cookie:this.cookie}))}debugLog(...e){this.debug&&(e=e.map(e=>"string"==typeof e?e:JSON.stringify(e,null,2)),void 0!==this.logger&&null!==this.logger&&"function"==typeof this.logger.log?this.logger.log(e.join(" ")+"\n"):console.log(e.join(" ")))}callApi(e,t,r,n,o,a,u,h,d,c,p){var f=this.buildUrl(e,r),y=i()(t,f);if(y.oldCallback=y.callback,y.callback=function(e,t){if(t&&t.status){const e=t.status;e>=400&&401!==e&&408!==e&&503!==e&&504!==e&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1)}this.oldCallback(e,t)},this.applyAuthToRequest(y,h),"GET"===t.toUpperCase()&&!1===this.cache&&(n._=(new Date).getTime()),y.query(s.a.stringify(this.normalizeParams(n))),y.set(this.defaultHeaders).set(this.normalizeParams(o)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==o["NTNX-Request-Id"]&&void 0!==o["NTNX-Request-Id"])){let e=Object(l.a)();y.set(this.normalizeParams({"NTNX-Request-Id":e}))}this.requestAgent&&y.agent(this.requestAgent),!this.timeout<0&&y.timeout(this.timeout);var g=this.jsonPreferredMime(d);if(g?"multipart/form-data"!=g&&y.type(g):y.header["Content-Type"]||y.type("application/json"),"application/x-www-form-urlencoded"===g)y.send(s.a.stringify(this.normalizeParams(a)));else if("multipart/form-data"==g){var v=this.normalizeParams(a);for(var m in v)v.hasOwnProperty(m)&&(this.isFileParam(v[m])?y.attach(m,v[m]):y.field(m,v[m]))}else u&&y.send(u);var w=this.jsonPreferredMime(c);return w&&y.accept(w),"Blob"===p?y.responseType("blob"):"String"===p&&y.responseType("string"),this.attachCookies(y),this.debugLog("Request Headers :",void 0===y.headers?"undefined":y.headers),this.debugLog("Request Body :",void 0===y.body?"undefined":y.body),new Promise((t,r)=>{y.retry(this.maxRetryAttempts,this.retryInterval,[]).end((i,o)=>{if(this.updateCookies(o||{}),i)i.data=this.deserialize(o,p),null!=o&&this.debugLog("Response Status :",o.status),this.debugLog("Error :",i.data),r(i);else{this.debugLog("Response Status :",o.status);try{var s=this.deserialize(o,p);this.debugLog("Response Headers :",o.headers),this.debugLog("Response Body :",s),this.addEtagToReservedMap(o,s),this.paginateIfNeeded(s,e,n),t({data:s,response:o})}catch(e){this.debugLog("Error :",e),r(e)}}})})}static addEtagReferenceToHeader(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){let r=e.$reserved.ETag;null!=r&&""!==r&&(t["If-Match"]=r)}}static parseDate(e){return new Date(e)}static parseQueryParam(e,t,r,n){let i=null;if(void 0!==t&&t.hasOwnProperty(r)&&(i=t[r]),null===i&&("string"==typeof e||e instanceof String)){const t=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=e.match(new RegExp(t+"=([0-9]+)"));n&&(i=n[1])}return null===i&&(i=n),i}static convertToType(e,t){if(null==e)return e;switch(t){case"Boolean":return Boolean(e);case"Integer":return parseInt(e,10);case"Number":return parseFloat(e);case"String":return String(e);case"Date":return g.parseDate(String(e));case"Blob":return e;default:if(t===Object)return e;if("function"==typeof t)return t.constructFromObject(e);if(Array.isArray(t)){var r=t[0];return e.map(e=>g.convertToType(e,r))}if("object"==typeof t){var n,i;for(var o in t)if(t.hasOwnProperty(o)){n=o,i=t[o];break}var s={};for(var o in e)if(e.hasOwnProperty(o)){var a=g.convertToType(o,n),l=g.convertToType(e[o],i);s[a]=l}return s}return e}}static constructFromObject(e,t,r){if(Array.isArray(e))for(var n=0;n<e.length;n++)e.hasOwnProperty(n)&&(t[n]=g.convertToType(e[n],r));else for(var i in e)e.hasOwnProperty(i)&&(t[i]=g.convertToType(e[i],r))}}g.instance=new g}).call(this,r(4).Buffer)},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(1);class i{constructor(){}static constructFromObject(e,t){if(e){if(t=t||new i,e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links)for(const r of e.links)if(r.hasOwnProperty("rel")&&r.hasOwnProperty("href"))switch(r.rel){case"first":t.linkFirst=r.href;break;case"prev":t.linkPrev=r.href;break;case"next":t.linkNext=r.href;break;case"last":t.linkLast=r.href}e.hasOwnProperty("totalAvailableResults")&&(t.resultsTotal=e.totalAvailableResults)}return t}getFirstPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}getPrevPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}getNextPage(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}getLastPage(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}currentPage(){return null===this.page?0:this.page}countPages(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}isFirstPage(){return 0===this.currentPage()}isLastPage(){return this.currentPage()===this.countPages()-1}populatePaginationMetadata(e,t,r){this.apiClient=e,this.page=t,this.resultsPerPage=r}_getLink(e){null===this.apiClient&&(this.apiClient=n.a.instance);const t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}i.prototype.linkFirst=null,i.prototype.linkPrev=null,i.prototype.linkNext=null,i.prototype.linkLast=null,i.prototype.apiClient=null,i.prototype.page=null,i.prototype.resultsPerPage=null,i.prototype.resultsTotal=null},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";(function(e){
|
|
2
|
-
/*!
|
|
3
|
-
* The buffer module from node.js, for the browser.
|
|
4
|
-
*
|
|
5
|
-
* @author Feross Aboukhadijeh <http://feross.org>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/
|
|
8
|
-
var n=r(29),i=r(30),o=r(13);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,r){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,r)}function u(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=c(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|f(t,r),i=(e=a(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(l.isBuffer(t)){var r=0|p(t.length);return 0===(e=a(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):c(e,t);if("Buffer"===t.type&&o(t.data))return c(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(h(t),e=a(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function c(e,t){var r=t.length<0?0:0|p(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return N(e).length;default:if(n)return V(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,r);case"utf8":case"utf-8":return M(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=l.from(t,n)),l.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var h=-1;for(o=r;o<a;o++)if(u(e,o)===u(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===l)return h*s}else-1!==h&&(o-=o-h),h=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){for(var d=!0,c=0;c<l;c++)if(u(e,o+c)!==u(t,c)){d=!1;break}if(d)return o}return-1}function w(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function b(e,t,r,n){return z(V(t,e.length-r),e,r,n)}function $(e,t,r,n){return z(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function C(e,t,r,n){return $(e,t,r,n)}function T(e,t,r,n){return z(N(t),e,r,n)}function P(e,t,r,n){return z(function(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function M(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,l,u=e[i],h=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(h=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(h=l);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(h=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(h=l)}null===h?(h=65533,d=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,r){return u(null,e,t,r)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,r){return function(e,t,r,n){return h(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=l.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},l.byteLength=f,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?M(this,0,e):y.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,r,n,i){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(n,i),h=e.slice(t,r),d=0;d<a;++d)if(u[d]!==h[d]){o=u[d],s=h[d];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return v(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return v(this,e,t,r,!1)},l.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return $(this,e,t,r);case"latin1":case"binary":return C(this,e,t,r);case"base64":return T(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function O(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function j(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=L(e[o]);return i}function _(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function B(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,r,n,i,o){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function E(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function x(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function F(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function R(e,t,r,n,o){return o||F(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function U(e,t,r,n,o){return o||F(e,0,r,8),i.write(e,t,r,n,52,8),r+8}l.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=l.prototype;else{var i=t-e;r=new l(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},l.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},l.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},l.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},l.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||B(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),i.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),i.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||A(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||A(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):E(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):E(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);A(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},l.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);A(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):E(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):E(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,r){return R(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return R(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return U(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return U(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},l.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=l.isBuffer(e)?e:V(new l(e,n).toString()),a=s.length;for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var I=/[^+\/0-9A-Za-z-_]/g;function L(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function N(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(0))},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var l,u=[],h=!1,d=-1;function c(){h&&l&&(h=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!h){var e=a(c);h=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,h=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new f(e,t)),1!==u.length||h||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(8),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=d;var o=Object.create(r(7));o.inherits=r(3);var s=r(18),a=r(22);o.inherits(d,s);for(var l=i(a.prototype),u=0;u<l.length;u++){var h=l[u];d.prototype[h]||(d.prototype[h]=a.prototype[h])}function d(e){if(!(this instanceof d))return new d(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",c)}function c(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t,r){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(4).Buffer.isBuffer},function(e,t,r){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,i)}));default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,r(5))},function(e,t,r){var n=r(4),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";t.decode=t.parse=r(37),t.encode=t.stringify=r(38)},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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=r(31),s=r(32),a=r(33),l=r(14),u=r(34),h=r(36);function d(){}e.exports=function(e,r){return"function"==typeof r?new t.Request("GET",e).end(r):1===arguments.length?new t.Request("GET",e):new t.Request(e,r)};var c=t=e.exports;t.Request=w,c.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 f(e){if(!l(e))return e;var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&y(t,r,e[r]);return t.join("&")}function y(e,t,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))r.forEach((function(r){y(e,t,r)}));else if(l(r))for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&y(e,"".concat(t,"[").concat(n,"]"),r[n]);else e.push(encodeURI(t)+"="+encodeURIComponent(r));else e.push(encodeURI(t))}function g(e){for(var t,r,n={},i=e.split("&"),o=0,s=i.length;o<s;++o)-1===(r=(t=i[o]).indexOf("="))?n[decodeURIComponent(t)]="":n[decodeURIComponent(t.slice(0,r))]=decodeURIComponent(t.slice(r+1));return n}function v(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,r,n,i,o=e.split(/\r?\n/),s={},a=0,l=o.length;a<l;++a)-1!==(t=(r=o[a]).indexOf(":"))&&(n=r.slice(0,t).toLowerCase(),i=p(r.slice(t+1)),s[n]=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 w(e,t){var r=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,n=null;try{n=new m(r)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,r.xhr?(t.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,t.status=r.xhr.status?r.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),r.callback(t)}r.emit("response",n);try{r._isResponseOK(n)||(e=new Error(n.statusText||n.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=n,e.status=n.status,r.callback(e,n)):r.callback(null,n)}))}function b(e,t,r){var n=c("DELETE",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n}c.serializeObject=f,c.parseString=g,c.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},c.serialize={"application/x-www-form-urlencoded":f,"application/json":s},c.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},u(m.prototype),m.prototype._parseBody=function(e){var t=c.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&v(this.type)&&(t=c.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,r=e.url,n="cannot ".concat(t," ").concat(r," (").concat(this.status,")"),i=new Error(n);return i.status=this.status,i.method=t,i.url=r,i},c.Response=m,o(w.prototype),a(w.prototype),w.prototype.type=function(e){return this.set("Content-Type",c.types[e]||e),this},w.prototype.accept=function(e){return this.set("Accept",c.types[e]||e),this},w.prototype.auth=function(e,t,r){1===arguments.length&&(t=""),"object"===n(t)&&null!==t&&(r=t,t=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var i=function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(e,t,r,i)},w.prototype.query=function(e){return"string"!=typeof e&&(e=f(e)),e&&this._query.push(e),this},w.prototype.attach=function(e,t,r){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,r||t.name)}return this},w.prototype._getFormData=function(){return this._formData||(this._formData=new i.FormData),this._formData},w.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var r=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),r(e,t)},w.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},w.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},w.prototype.ca=w.prototype.agent,w.prototype.buffer=w.prototype.ca,w.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},w.prototype.pipe=w.prototype.write,w.prototype._isHost=function(e){return e&&"object"===n(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},w.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||d,this._finalizeQueryString(),this._end()},w.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},w.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=c.getXHR();var t=this.xhr,r=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var r=t.readyState;if(r>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===r){var n;try{n=t.status}catch(e){n=0}if(!n){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var n=function(t,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(e._uploadTimeoutTimer)),r.direction=t,e.emit("progress",r)};if(this.hasListeners("progress"))try{t.addEventListener("progress",n.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",n.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 r&&!this._isHost(r)){var i=this._header["content-type"],o=this._serializer||c.serialize[i?i.split(";")[0]:""];!o&&v(i)&&(o=c.serialize["application/json"]),o&&(r=o(r))}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===r?null:r)},c.agent=function(){return new h},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){h.prototype[e.toLowerCase()]=function(t,r){var n=new c.Request(e,t);return this._setDefaults(n),r&&n.end(r),n}})),h.prototype.del=h.prototype.delete,c.get=function(e,t,r){var n=c("GET",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},c.head=function(e,t,r){var n=c("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},c.options=function(e,t,r){var n=c("OPTIONS",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},c.del=b,c.delete=b,c.patch=function(e,t,r){var n=c("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},c.post=function(e,t,r){var n=c("POST",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},c.put=function(e,t,r){var n=c("PUT",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n}},function(e,t){},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){return null!==e&&"object"===n(e)}},function(e,t,r){(function(e){t.fetch=a(e.fetch)&&a(e.ReadableStream),t.writableStream=a(e.WritableStream),t.abortController=a(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var r;function n(){if(void 0!==r)return r;if(e.XMLHttpRequest){r=new e.XMLHttpRequest;try{r.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){r=null}}else r=null;return r}function i(e){var t=n();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var o=void 0!==e.ArrayBuffer,s=o&&a(e.ArrayBuffer.prototype.slice);function a(e){return"function"==typeof e}t.arraybuffer=t.fetch||o&&i("arraybuffer"),t.msstream=!t.fetch&&s&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!n()&&a(n().overrideMimeType),t.vbArray=a(e.VBArray),r=null}).call(this,r(0))},function(e,t,r){(function(e,n,i){var o=r(15),s=r(3),a=r(17),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},u=t.IncomingMessage=function(t,r,s,l){var u=this;if(a.Readable.call(u),u._mode=s,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",(function(){e.nextTick((function(){u.emit("close")}))})),"fetch"===s){if(u._fetchResponse=r,u.url=r.url,u.statusCode=r.status,u.statusMessage=r.statusText,r.headers.forEach((function(e,t){u.headers[t.toLowerCase()]=e,u.rawHeaders.push(t,e)})),o.writableStream){var h=new WritableStream({write:function(e){return new Promise((function(t,r){u._destroyed?r():u.push(new n(e))?t():u._resumeFetch=t}))},close:function(){i.clearTimeout(l),u._destroyed||u.push(null)},abort:function(e){u._destroyed||u.emit("error",e)}});try{return void r.body.pipeTo(h).catch((function(e){i.clearTimeout(l),u._destroyed||u.emit("error",e)}))}catch(e){}}var d=r.body.getReader();!function e(){d.read().then((function(t){if(!u._destroyed){if(t.done)return i.clearTimeout(l),void u.push(null);u.push(new n(t.value)),e()}})).catch((function(e){i.clearTimeout(l),u._destroyed||u.emit("error",e)}))}()}else{if(u._xhr=t,u._pos=0,u.url=t.responseURL,u.statusCode=t.status,u.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var r=t[1].toLowerCase();"set-cookie"===r?(void 0===u.headers[r]&&(u.headers[r]=[]),u.headers[r].push(t[2])):void 0!==u.headers[r]?u.headers[r]+=", "+t[2]:u.headers[r]=t[2],u.rawHeaders.push(t[1],t[2])}})),u._charset="x-user-defined",!o.overrideMimeType){var c=u.rawHeaders["mime-type"];if(c){var p=c.match(/;\s*charset=([^;])(;|$)/);p&&(u._charset=p[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};s(u,a.Readable),u.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},u.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==l.DONE)break;try{r=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==r){e.push(new n(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var o=r.substr(e._pos);if("x-user-defined"===e._charset){for(var s=new n(o.length),a=0;a<o.length;a++)s[a]=255&o.charCodeAt(a);e.push(s)}else e.push(o,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==l.DONE||!t.response)break;r=t.response,e.push(new n(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==l.LOADING||!r)break;e.push(new n(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==l.LOADING)break;var u=new i.MSStreamReader;u.onprogress=function(){u.result.byteLength>e._pos&&(e.push(new n(new Uint8Array(u.result.slice(e._pos)))),e._pos=u.result.byteLength)},u.onload=function(){e.push(null)},u.readAsArrayBuffer(r)}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,r(5),r(4).Buffer,r(0))},function(e,t,r){(t=e.exports=r(18)).Stream=t,t.Readable=t,t.Writable=r(22),t.Duplex=r(6),t.Transform=r(24),t.PassThrough=r(47)},function(e,t,r){"use strict";(function(t,n){var i=r(8);e.exports=w;var o,s=r(13);w.ReadableState=m;r(19).EventEmitter;var a=function(e,t){return e.listeners(t).length},l=r(20),u=r(9).Buffer,h=t.Uint8Array||function(){};var d=Object.create(r(7));d.inherits=r(3);var c=r(41),p=void 0;p=c&&c.debuglog?c.debuglog("stream"):function(){};var f,y=r(42),g=r(21);d.inherits(w,l);var v=["error","close","destroy","pause","resume"];function m(e,t){e=e||{};var n=t instanceof(o=o||r(6));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(23).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function w(e){if(o=o||r(6),!(this instanceof w))return new w(e);this._readableState=new m(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function b(e,t,r,n,i){var o,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,T(e)}(e,s)):(i||(o=function(e,t){var r;n=t,u.isBuffer(n)||n instanceof h||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=function(e){return u.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):$(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?$(e,s,t,!1):S(e,s)):$(e,s,t,!1))):n||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function $(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&T(e)),S(e,t)}Object.defineProperty(w.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),w.prototype.destroy=g.destroy,w.prototype._undestroy=g.undestroy,w.prototype._destroy=function(e,t){this.push(null),t(e)},w.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=u.from(e,t),t=""),r=!0),b(this,e,t,!1,r)},w.prototype.unshift=function(e){return b(this,e,null,!0,!1)},w.prototype.isPaused=function(){return!1===this._readableState.flowing},w.prototype.setEncoding=function(e){return f||(f=r(23).StringDecoder),this._readableState.decoder=new f(e),this._readableState.encoding=e,this};function C(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(P,e):P(e))}function P(e){p("emit readable"),e.emit("readable"),j(e)}function S(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(M,e,t))}function M(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function k(e){p("readable nexttick read 0"),e.read(0)}function O(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function _(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0===(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function B(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(A,t,e))}function A(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function E(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}w.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?B(this):T(this),null;if(0===(e=C(e,t))&&t.ended)return 0===t.length&&B(this),null;var n,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=C(r,t))),null===(n=e>0?_(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&B(this)),null!==n&&this.emit("data",n),n},w.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},w.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var l=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?h:w;function u(t,n){p("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p("cleanup"),e.removeListener("close",v),e.removeListener("finish",m),e.removeListener("drain",d),e.removeListener("error",g),e.removeListener("unpipe",u),r.removeListener("end",h),r.removeListener("end",w),r.removeListener("data",y),c=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function h(){p("onend"),e.end()}o.endEmitted?i.nextTick(l):r.once("end",l),e.on("unpipe",u);var d=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,j(e))}}(r);e.on("drain",d);var c=!1;var f=!1;function y(t){p("ondata"),f=!1,!1!==e.write(t)||f||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==E(o.pipes,e))&&!c&&(p("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,f=!0),r.pause())}function g(t){p("onerror",t),w(),e.removeListener("error",g),0===a(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",m),w()}function m(){p("onfinish"),e.removeListener("close",v),w()}function w(){p("unpipe"),r.unpipe(e)}return r.on("data",y),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",v),e.once("finish",m),e.emit("pipe",r),o.flowing||(p("pipe resume"),r.resume()),e},w.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var s=E(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},w.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&T(this):i.nextTick(k,this))}return r},w.prototype.addListener=w.prototype.on,w.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(O,e,t))}(this,e)),this},w.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},w.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(p("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<v.length;o++)e.on(v[o],this.emit.bind(this,v[o]));return this._read=function(t){p("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(w.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),w._fromList=_}).call(this,r(0),r(5))},function(e,t,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}v(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&v(e,"error",t,r)}(e,i,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function h(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function d(e,t,r,n){var i,o,s,a;if(u(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=h(e))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,a=l,console&&console.warn&&console.warn(a)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=c.bind(n);return i.listener=r,n.wrapFn=i,i}function f(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):g(i,i.length)}function y(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function v(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){n.once&&e.removeEventListener(t,i),r(o)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return h(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var u=l.length,h=g(l,u);for(r=0;r<u;++r)o(h[r],this,t)}return!0},a.prototype.addListener=function(e,t){return d(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return d(this,e,t,!0)},a.prototype.once=function(e,t){return u(t),this.on(e,p(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,p(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,o,s;if(u(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},a.prototype.listenerCount=y,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){e.exports=r(19).EventEmitter},function(e,t,r){"use strict";var n=r(8);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){"use strict";(function(t,n,i){var o=r(8);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=m;var a,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:o.nextTick;m.WritableState=v;var u=Object.create(r(7));u.inherits=r(3);var h={deprecate:r(46)},d=r(20),c=r(9).Buffer,p=i.Uint8Array||function(){};var f,y=r(21);function g(){}function v(e,t){a=a||r(6),e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,h=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(u||0===u)?u:h,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(P,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),P(e,t))}(e,r,n,t,i);else{var s=C(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||$(e,r),n?l(b,e,r,s,i):b(e,r,s,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function m(e){if(a=a||r(6),!(f.call(m,this)||this instanceof a))return new m(e);this._writableState=new v(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),d.call(this)}function w(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),P(e,t)}function $(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0,l=!0;r;)i[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;i.allBuffers=l,w(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,h=r.encoding,d=r.callback;if(w(e,t,!1,t.objectMode?1:u.length,u,h,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function T(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),P(e,t)}))}function P(e,t){var r=C(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(T,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}u.inherits(m,d),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:h.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!f.call(this,e)||this===m&&(e&&e._writableState instanceof v)}})):f=function(e){return e instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(e,t,r){var n,i=this._writableState,s=!1,a=!i.objectMode&&(n=e,c.isBuffer(n)||n instanceof p);return a&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var i=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),o.nextTick(n,s),i=!1),i}(this,i,e,r))&&(i.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else w(e,t,!1,a,n,i,o);return l}(this,i,a,e,t,r)),s},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||$(this,e))},m.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,P(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=y.destroy,m.prototype._undestroy=y.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(5),r(44).setImmediate,r(0))},function(e,t,r){"use strict";var n=r(9).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=h,this.end=d,t=3;break;default:return this.write=c,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function h(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function c(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=s(t[n]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=s(t[n]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict";e.exports=s;var n=r(6),i=Object.create(r(7));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){l(e,t,r)})):l(this,null,null)}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(3),i.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},function(e,t,r){"use strict";var n=r(51),i=r(53);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=w,t.resolve=function(e,t){return w(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?w(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=w(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),h=["'"].concat(u),d=["%","/","?",";","#"].concat(h),c=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=r(10);function w(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),a=-1!==o&&o<e.indexOf("#")?"?":"#",u=e.split(a);u[0]=u[0].replace(/\\/g,"/");var w=e=u.join(a);if(w=w.trim(),!r&&1===e.split("#").length){var b=l.exec(w);if(b)return this.path=w,this.href=w,this.pathname=b[1],b[2]?(this.search=b[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var $=s.exec(w);if($){var C=($=$[0]).toLowerCase();this.protocol=C,w=w.substr($.length)}if(r||$||w.match(/^\/\/[^@\/]+@[^@\/]+/)){var T="//"===w.substr(0,2);!T||$&&g[$]||(w=w.substr(2),this.slashes=!0)}if(!g[$]&&(T||$&&!v[$])){for(var P,S,M=-1,k=0;k<c.length;k++){-1!==(O=w.indexOf(c[k]))&&(-1===M||O<M)&&(M=O)}-1!==(S=-1===M?w.lastIndexOf("@"):w.lastIndexOf("@",M))&&(P=w.slice(0,S),w=w.slice(S+1),this.auth=decodeURIComponent(P)),M=-1;for(k=0;k<d.length;k++){var O;-1!==(O=w.indexOf(d[k]))&&(-1===M||O<M)&&(M=O)}-1===M&&(M=w.length),this.host=w.slice(0,M),w=w.slice(M),this.parseHost(),this.hostname=this.hostname||"";var j="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!j)for(var _=this.hostname.split(/\./),B=(k=0,_.length);k<B;k++){var A=_[k];if(A&&!A.match(p)){for(var E="",x=0,F=A.length;x<F;x++)A.charCodeAt(x)>127?E+="x":E+=A[x];if(!E.match(p)){var R=_.slice(0,k),U=_.slice(k+1),I=A.match(f);I&&(R.push(I[1]),U.unshift(I[2])),U.length&&(w="/"+U.join(".")+w),this.hostname=R.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=n.toASCII(this.hostname));var L=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+L,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!y[C])for(k=0,B=h.length;k<B;k++){var N=h[k];if(-1!==w.indexOf(N)){var z=encodeURIComponent(N);z===N&&(z=escape(N)),w=w.split(N).join(z)}}var D=w.indexOf("#");-1!==D&&(this.hash=w.substr(D),w=w.slice(0,D));var H=w.indexOf("?");if(-1!==H?(this.search=w.substr(H),this.query=w.substr(H+1),t&&(this.query=m.parse(this.query)),w=w.slice(0,H)):t&&(this.search="",this.query={}),w&&(this.pathname=w),v[C]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var q=this.search||"";this.path=L+q}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",o=!1,s="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(s=m.stringify(this.query));var a=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||v[t])&&!1!==o?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+o+(r=r.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(a=a.replace("#","%23"))+n},o.prototype.resolve=function(e){return this.resolveObject(w(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var r=new o,n=Object.keys(this),s=0;s<n.length;s++){var a=n[s];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),u=0;u<l.length;u++){var h=l[u];"protocol"!==h&&(r[h]=e[h])}return v[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!v[e.protocol]){for(var d=Object.keys(e),c=0;c<d.length;c++){var p=d[c];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var f=(e.pathname||"").split("/");f.length&&!(e.host=f.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),r.pathname=f.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var y=r.pathname||"",m=r.search||"";r.path=y+m}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var w=r.pathname&&"/"===r.pathname.charAt(0),b=e.host||e.pathname&&"/"===e.pathname.charAt(0),$=b||w||r.host&&e.pathname,C=$,T=r.pathname&&r.pathname.split("/")||[],P=(f=e.pathname&&e.pathname.split("/")||[],r.protocol&&!v[r.protocol]);if(P&&(r.hostname="",r.port=null,r.host&&(""===T[0]?T[0]=r.host:T.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===f[0]?f[0]=e.host:f.unshift(e.host)),e.host=null),$=$&&(""===f[0]||""===T[0])),b)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,T=f;else if(f.length)T||(T=[]),T.pop(),T=T.concat(f),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(P)r.hostname=r.host=T.shift(),(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.host=r.hostname=j.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!T.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=T.slice(-1)[0],M=(r.host||e.host||T.length>1)&&("."===S||".."===S)||""===S,k=0,O=T.length;O>=0;O--)"."===(S=T[O])?T.splice(O,1):".."===S?(T.splice(O,1),k++):k&&(T.splice(O,1),k--);if(!$&&!C)for(;k--;k)T.unshift("..");!$||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),M&&"/"!==T.join("/").substr(-1)&&T.push("");var j,_=""===T[0]||T[0]&&"/"===T[0].charAt(0);P&&(r.hostname=r.host=_?"":T.length?T.shift():"",(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.host=r.hostname=j.shift()));return($=$||r.host&&T.length)&&!_&&T.unshift(""),T.length?r.pathname=T.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){function r(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,r){if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){const e=t.status;if(e>=500)return!0;if((e>=400||e<200)&&-1===r.indexOf(e))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses)){let e;e=this._retries?this._retryDelays[this._retries-1]:0;const t=this;return setTimeout((function(){return t._retry()}),e)}const r=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),r(e,t)}function n(e,t,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);const n=t.length,i=e-n;if(0!==i){if(i<0)throw new Error("Cannot have more delays than retries");{const e=t[n-1];for(let r=0;r<i+1;r++)t.push(e)}}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=r||[],this}e.exports=function(e){const t=e.Request;return t.prototype.oldRetry=t.prototype.retry,t.prototype.retry=n,t.prototype.callback=r,e}},function(e,t,r){"use strict";for(var n=void 0,i=function(){},o=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],s=o.length;s--;)n=o[s],console[n]||(console[n]=i);t.a=console},function(e,t,r){var n=r(39),i=r(25),o=e.exports;for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);function a(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=a(e),n.request.call(this,e,t)},o.get=function(e,t){return e=a(e),n.get.call(this,e,t)}},function(e,t,r){"use strict";t.byteLength=function(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=u(e),s=n[0],a=n[1],l=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),h=0,d=a>0?s-4:s;for(r=0;r<d;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],l[h++]=t>>16&255,l[h++]=t>>8&255,l[h++]=255&t;2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[h++]=255&t);1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[h++]=t>>8&255,l[h++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=0,a=r-i;s<a;s+=16383)o.push(h(e,s,s+16383>a?a:s+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function h(e,t,r){for(var i,o,s=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
|
|
9
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
10
|
-
t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,u=l>>1,h=-7,d=r?i-1:0,c=r?-1:1,p=e[t+d];for(d+=c,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+e[t+d],d+=c,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+e[t+d],d+=c,h-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=u}return(p?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,l,u=8*o-i-1,h=(1<<u)-1,d=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,f=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=h):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?c/l:c*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=h?(a=0,s=h):s+d>=1?(a=(t*l-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=255&a,p+=f,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[r+p]=255&s,p+=f,s/=256,u-=8);e[r+p-f]|=128*y}},function(e,t,r){function n(e){if(e)return function(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}(e)}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){n=0;for(var i=(r=r.slice(0)).length;n<i;++n)r[n].apply(this,t)}return this},n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t){e.exports=o,o.default=o,o.stable=l,o.stableStringify=l;var r=[],n=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,t,o,a){var l;void 0===a&&(a=i()),function e(t,r,n,i,o,a,l){var u;if(a+=1,"object"==typeof t&&null!==t){for(u=0;u<i.length;u++)if(i[u]===t)return void s("[Circular]",t,r,o);if(void 0!==l.depthLimit&&a>l.depthLimit)return void s("[...]",t,r,o);if(void 0!==l.edgesLimit&&n+1>l.edgesLimit)return void s("[...]",t,r,o);if(i.push(t),Array.isArray(t))for(u=0;u<t.length;u++)e(t[u],u,u,i,t,a,l);else{var h=Object.keys(t);for(u=0;u<h.length;u++){var d=h[u];e(t[d],d,u,i,t,a,l)}}i.pop()}}(e,"",0,[],void 0,0,a);try{l=0===n.length?JSON.stringify(e,t,o):JSON.stringify(e,u(t),o)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var h=r.pop();4===h.length?Object.defineProperty(h[0],h[1],h[3]):h[0][h[1]]=h[2]}}return l}function s(e,t,i,o){var s=Object.getOwnPropertyDescriptor(o,i);void 0!==s.get?s.configurable?(Object.defineProperty(o,i,{value:e}),r.push([o,i,t,s])):n.push([t,i,e]):(o[i]=e,r.push([o,i,t]))}function a(e,t){return e<t?-1:e>t?1:0}function l(e,t,o,l){void 0===l&&(l=i());var h,d=function e(t,n,i,o,l,u,h){var d;if(u+=1,"object"==typeof t&&null!==t){for(d=0;d<o.length;d++)if(o[d]===t)return void s("[Circular]",t,n,l);try{if("function"==typeof t.toJSON)return}catch(e){return}if(void 0!==h.depthLimit&&u>h.depthLimit)return void s("[...]",t,n,l);if(void 0!==h.edgesLimit&&i+1>h.edgesLimit)return void s("[...]",t,n,l);if(o.push(t),Array.isArray(t))for(d=0;d<t.length;d++)e(t[d],d,d,o,t,u,h);else{var c={},p=Object.keys(t).sort(a);for(d=0;d<p.length;d++){var f=p[d];e(t[f],f,d,o,t,u,h),c[f]=t[f]}if(void 0===l)return c;r.push([l,n,t]),l[n]=c}o.pop()}}(e,"",0,[],void 0,0,l)||e;try{h=0===n.length?JSON.stringify(d,t,o):JSON.stringify(d,u(t),o)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}}return h}function u(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(n.length>0)for(var i=0;i<n.length;i++){var o=n[i];if(o[1]===t&&o[0]===r){r=o[2],n.splice(i,1);break}}return e.call(this,t,r)}}},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=r(14);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"!==n(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 r=this._retryCallback(e,t);if(!0===r)return!0;if(!1===r)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 r=this;if(!this._fullfilledPromise){var n=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){n.on("abort",(function(){if(!(r._maxRetries&&r._maxRetries>r._retries))if(r.timedout&&r.timedoutError)t(r.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=r.status,e.method=r.method,e.url=r.url,t(e)}})),n.end((function(r,n){r?t(r):e(n)}))}))}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 r in e)Object.prototype.hasOwnProperty.call(e,r)&&this.set(r,e[r]);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 r in e)Object.prototype.hasOwnProperty.call(e,r)&&this.field(r,e[r]);return this}if(Array.isArray(t)){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&this.field(e,t[n]);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,r,n){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(n("".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),r=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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(this._data[n]=e[n]);else"string"==typeof e?(r||this.type("form"),r=this._header["content-type"],this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||r||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 r=this.url.slice(t+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,t)+"?"+r.join("&")}}},o.prototype._appendQueryString=function(){console.warn("Unsupported")},o.prototype._timeoutError=function(e,t,r){if(!this._aborted){var n=new Error("".concat(e+t,"ms exceeded"));n.timeout=t,n.code="ECONNABORTED",n.errno=r,this.timedout=!0,this.timedoutError=n,this.abort(),this.callback(n)}},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))}},function(e,t,r){"use strict";var n=r(35);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=n.type(t);var r=n.params(t);for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(this[i]=r[i]);this.links={};try{e.link&&(this.links=n.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}},function(e,t,r){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var r=t.split(/ *= */),n=r.shift(),i=r.shift();return n&&i&&(e[n]=i),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var r=t.split(/ *; */),n=r[0].slice(1,-1);return e[r[1].split(/ *= */)[1].slice(1,-1)]=n,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}},function(e,t,r){"use strict";function n(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(e,t)}(e)||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.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o(){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){o.prototype[e]=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this._defaults.push({fn:e,args:r}),this}})),o.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,n(t.args))}))},e.exports=o},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var l=1e3;o&&"number"==typeof o.maxKeys&&(l=o.maxKeys);var u=e.length;l>0&&u>l&&(u=l);for(var h=0;h<u;++h){var d,c,p,f,y=e[h].replace(a,"%20"),g=y.indexOf(r);g>=0?(d=y.substr(0,g),c=y.substr(g+1)):(d=y,c=""),p=decodeURIComponent(d),f=decodeURIComponent(c),n(s,p)?i(s[p])?s[p].push(f):s[p]=[s[p],f]:s[p]=f}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(s(e),(function(s){var a=encodeURIComponent(n(s))+r;return i(e[s])?o(e[s],(function(e){return a+encodeURIComponent(n(e))})).join(t):a+encodeURIComponent(n(e[s]))})).join(t):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var s=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},function(e,t,r){(function(e){var n=r(40),i=r(16),o=r(49),s=r(50),a=r(25),l=t;l.request=function(t,r){t="string"==typeof t?a.parse(t):o(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",s=t.protocol||i,l=t.hostname||t.host,u=t.port,h=t.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),t.url=(l?s+"//"+l:"")+(u?":"+u:"")+h,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var d=new n(t);return r&&d.on("response",r),d},l.get=function(e,t){var r=l.request(e,t);return r.end(),r},l.ClientRequest=n,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=s,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,r(0))},function(e,t,r){(function(t,n,i){var o=r(15),s=r(3),a=r(16),l=r(17),u=r(48),h=a.IncomingMessage,d=a.readyStates;var c=e.exports=function(e){var r,n=this;l.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){n.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)i=!1,r=!0;else if("prefer-streaming"===e.mode)r=!1;else if("allow-wrong-content-type"===e.mode)r=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");r=!0}n._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":o.vbArray&&e?"text:vbarray":"text"}(r,i),n._fetchTimer=null,n.on("finish",(function(){n._onFinish()}))};s(c,l.Writable),c.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===p.indexOf(r)&&(this._headers[r]={name:e,value:t})},c.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},c.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},c.prototype._onFinish=function(){var e=this;if(!e._destroyed){var r=e._opts,s=e._headers,a=null;"GET"!==r.method&&"HEAD"!==r.method&&(a=o.arraybuffer?u(t.concat(e._body)):o.blobConstructor?new n.Blob(e._body.map((function(e){return u(e)})),{type:(s["content-type"]||{}).value||""}):t.concat(e._body).toString());var l=[];if(Object.keys(s).forEach((function(e){var t=s[e].name,r=s[e].value;Array.isArray(r)?r.forEach((function(e){l.push([t,e])})):l.push([t,r])})),"fetch"===e._mode){var h=null;if(o.abortController){var c=new AbortController;h=c.signal,e._fetchAbortController=c,"requestTimeout"in r&&0!==r.requestTimeout&&(e._fetchTimer=n.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),r.requestTimeout))}n.fetch(e._opts.url,{method:e._opts.method,headers:l,body:a||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:h}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){n.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var p=e._xhr=new n.XMLHttpRequest;try{p.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}"responseType"in p&&(p.responseType=e._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!r.withCredentials),"text"===e._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(p.timeout=r.requestTimeout,p.ontimeout=function(){e.emit("requestTimeout")}),l.forEach((function(e){p.setRequestHeader(e[0],e[1])})),e._response=null,p.onreadystatechange=function(){switch(p.readyState){case d.LOADING:case d.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(p.onprogress=function(){e._onXHRProgress()}),p.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{p.send(a)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}}}},c.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},c.prototype._connect=function(){var e=this;e._destroyed||(e._response=new h(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},c.prototype._write=function(e,t,r){this._body.push(e),r()},c.prototype.abort=c.prototype.destroy=function(){this._destroyed=!0,n.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},c.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),l.Writable.prototype.end.call(this,e,t,r)},c.prototype.flushHeaders=function(){},c.prototype.setTimeout=function(){},c.prototype.setNoDelay=function(){},c.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,r(4).Buffer,r(0),r(5))},function(e,t){},function(e,t,r){"use strict";var n=r(9).Buffer,i=r(43);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,o=n.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,r=o,i=a,t.copy(r,i),a+=s.data.length,s=s.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(45),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(0))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,o,s,a,l=1,u={},h=!1,d=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){f(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){f(e.data)},n=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,n=function(e){var t=d.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(f,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&f(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(s+t,"*")}),c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return u[l]=i,n(l),l++},c.clearImmediate=p}function p(e){delete u[e]}function f(e){if(h)setTimeout(f,0,e);else{var t=u[e];if(t){h=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{p(e),h=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(0),r(5))},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(0))},function(e,t,r){"use strict";e.exports=o;var n=r(24),i=Object.create(r(7));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(3),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){var n=r(4).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(var t=new Uint8Array(e.length),r=e.length,i=0;i<r;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var i in n)r.call(n,i)&&(e[i]=n[i])}return e};var r=Object.prototype.hasOwnProperty},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,r){(function(e,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var s="object"==typeof n&&n;s.global!==s&&s.window!==s&&s.self;var a,l=2147483647,u=/^xn--/,h=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,f=String.fromCharCode;function y(e){throw new RangeError(c[e])}function g(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function v(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+g((e=e.replace(d,".")).split("."),t).join(".")}function m(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function w(e){return g(e,(function(e){var t="";return e>65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=f(e)})).join("")}function b(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function $(e,t,r){var n=0;for(e=r?p(e/700):e>>1,e+=p(e/t);e>455;n+=36)e=p(e/35);return p(n+36*e/(e+38))}function C(e){var t,r,n,i,o,s,a,u,h,d,c,f=[],g=e.length,v=0,m=128,b=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&y("not-basic"),f.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<g;){for(o=v,s=1,a=36;i>=g&&y("invalid-input"),((u=(c=e.charCodeAt(i++))-48<10?c-22:c-65<26?c-65:c-97<26?c-97:36)>=36||u>p((l-v)/s))&&y("overflow"),v+=u*s,!(u<(h=a<=b?1:a>=b+26?26:a-b));a+=36)s>p(l/(d=36-h))&&y("overflow"),s*=d;b=$(v-o,t=f.length+1,0==o),p(v/t)>l-m&&y("overflow"),m+=p(v/t),v%=t,f.splice(v++,0,m)}return w(f)}function T(e){var t,r,n,i,o,s,a,u,h,d,c,g,v,w,C,T=[];for(g=(e=m(e)).length,t=128,r=0,o=72,s=0;s<g;++s)(c=e[s])<128&&T.push(f(c));for(n=i=T.length,i&&T.push("-");n<g;){for(a=l,s=0;s<g;++s)(c=e[s])>=t&&c<a&&(a=c);for(a-t>p((l-r)/(v=n+1))&&y("overflow"),r+=(a-t)*v,t=a,s=0;s<g;++s)if((c=e[s])<t&&++r>l&&y("overflow"),c==t){for(u=r,h=36;!(u<(d=h<=o?1:h>=o+26?26:h-o));h+=36)C=u-d,w=36-d,T.push(f(b(d+C%w,0))),u=p(C/w);T.push(f(b(u,0))),o=$(r,v,n==i),r=0,++n}++r,++t}return T.join("")}a={version:"1.4.1",ucs2:{decode:m,encode:w},decode:C,encode:T,toASCII:function(e){return v(e,(function(e){return h.test(e)?"xn--"+T(e):e}))},toUnicode:function(e){return v(e,(function(e){return u.test(e)?C(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return a}.call(t,r,t,e))||(e.exports=i)}()}).call(this,r(52)(e),r(0))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";r.r(t),r.d(t,"ApiClient",(function(){return n.a})),r.d(t,"ClusterApi",(function(){return M})),r.d(t,"Cluster",(function(){return k})),r.d(t,"ClusterApiResponse",(function(){return S})),r.d(t,"ClusterListApiResponse",(function(){return P})),r.d(t,"ClusterMetrics",(function(){return c})),r.d(t,"ClusterProjection",(function(){return A})),r.d(t,"Node",(function(){return O})),r.d(t,"NodeProjection",(function(){return j})),r.d(t,"Vm",(function(){return _})),r.d(t,"VmProjection",(function(){return B})),r.d(t,"AppMessage",(function(){return y})),r.d(t,"ErrorResponse",(function(){return m})),r.d(t,"SchemaValidationError",(function(){return v})),r.d(t,"SchemaValidationErrorMessage",(function(){return g})),r.d(t,"Flag",(function(){return w})),r.d(t,"IPv4Address",(function(){return l})),r.d(t,"KVPair",(function(){return b})),r.d(t,"Message",(function(){return $})),r.d(t,"MessageSeverity",(function(){return f})),r.d(t,"TenantAwareModel",(function(){return h})),r.d(t,"ApiLink",(function(){return u})),r.d(t,"ApiResponseMetadata",(function(){return C})),r.d(t,"ExternalizableAbstractModel",(function(){return d}));var n=r(1);const i={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return i[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e)switch(e){case i.DEFAULT:return;default:throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(i);var o=i;class s{static validateMaximum(e,t){return!(null===t||e>t)}static validateMinimum(e,t){return!(null===t||e<t)}static validateExclusiveMaximum(e,t){return!(null===t||e>t)}static validateExclusiveMinimum(e,t){return!(null===t||e>t)}static validateMultipleOf(e,t){return!(null===t||e%t==0)}static validateMaxLength(e,t){return!(null===t||e.length>t)}static validateMinLength(e,t){return!(null===t||e.length<t)}static validatePattern(e,t){return!(null===t||null===e.match(t))}static validateMaxItems(e,t){return!(null===t||e.length>t)}static validateMinItems(e,t){return!(null===t||e.length<t)}static validateUniqueItems(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}class a{constructor(e,t){this.name=e,this.message=t}getName(){return this.name}setName(e){this.name=e}getMessage(){return this.message}setMessage(e){this.message=e}toJson(){return{name:this.getName(),message:this.getMessage()}}}class l{constructor(){this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.IPv4Address"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new l,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&(t.setValue(e.value),delete e.value),e.hasOwnProperty("prefixLength")&&null!==e.prefixLength&&void 0!==e.prefixLength&&(t.setPrefixLength(e.prefixLength),delete e.prefixLength),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}getValue(){return this.value}setValue(e){this.value=e}getPrefixLength(){return this.prefixLength}setPrefixLength(e){this.prefixLength=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new a("value","undefined or null");if(!s.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 a("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 a("prefixLength","undefined or null");if(!s.validateMaximum(this.prefixLength,32))return new a("prefixLength","does not satisfy required maximum constraint: 32");if(!s.validateMinimum(this.prefixLength,0))return new a("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 a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null")}}l.prototype.value=void 0,l.prototype.prefixLength=32,l.prototype.$reserved=void 0,l.prototype.$objectType=void 0,l.prototype.$unknownFields=void 0;class u{constructor(){this.$objectType="common.v1.response.ApiLink",this.$reserved={$fqObjectType:"common.v1.r0.a3.response.ApiLink"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new u,e.hasOwnProperty("href")&&null!==e.href&&void 0!==e.href&&(t.setHref(e.href),delete e.href),e.hasOwnProperty("rel")&&null!==e.rel&&void 0!==e.rel&&(t.setRel(e.rel),delete e.rel),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}getHref(){return this.href}setHref(e){this.href=e}getRel(){return this.rel}setRel(e){this.rel=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{},...void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("rel","undefined or null"):new a("href","undefined or null")}}u.prototype.href=void 0,u.prototype.rel=void 0,u.prototype.$reserved=void 0,u.prototype.$objectType=void 0,u.prototype.$unknownFields=void 0;class h{constructor(){this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.TenantAwareModel"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new h,e.hasOwnProperty("tenantId")&&null!==e.tenantId&&void 0!==e.tenantId&&(t.setTenantId(e.tenantId),delete e.tenantId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}getTenantId(){return this.tenantId}setTenantId(e){this.tenantId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new a("tenantId","undefined or null");if(!s.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 a("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 a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null")}}h.prototype.tenantId=void 0,h.prototype.$reserved=void 0,h.prototype.$objectType=void 0,h.prototype.$unknownFields=void 0;class d extends h{constructor(){super(),this.$objectType="common.v1.response.ExternalizableAbstractModel",this.$reserved={$fqObjectType:"common.v1.r0.a3.response.ExternalizableAbstractModel"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){let n,i,o,s;if(e){if(t=t||new d,h.constructFromObject(e,t,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&(t.setExtId(e.extId),delete e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(s=[],n=e.links,o=0;o<n.length;o++)i=u.constructFromObject(n[o],void 0),s.push(i);t.setLinks(s),delete e.links}if(!r)for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r])}return t}getExtId(){return this.extId}setExtId(e){this.extId=e}getLinks(){return this.links}setLinks(e){this.links=e}toJson(e){return!1===e?{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}:{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new a("extId","undefined or null");if(null==e){if(!s.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 a("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===o.update&&!s.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 a("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 a(t,"no such property exists"):new a("links","undefined or null")}}d.prototype.extId=void 0,d.prototype.links=void 0;class c extends d{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.ClusterMetrics",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.ClusterMetrics"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){let n,i,o,s;if(e){if(t=t||new c,d.constructFromObject(e,t,!0),e.hasOwnProperty("clusterName")&&null!==e.clusterName&&void 0!==e.clusterName&&(t.setClusterName(e.clusterName),delete e.clusterName),e.hasOwnProperty("externalIP")&&null!==e.externalIP&&void 0!==e.externalIP&&(t.setExternalIP(l.constructFromObject(e.externalIP)),delete e.externalIP),e.hasOwnProperty("cvmIPs")&&null!==e.cvmIPs&&void 0!==e.cvmIPs){for(s=[],n=e.cvmIPs,o=0;o<n.length;o++)i=l.constructFromObject(n[o],void 0),s.push(i);t.setCvmIPs(s),delete e.cvmIPs}if(e.hasOwnProperty("totalMemorySizeBytes")&&null!==e.totalMemorySizeBytes&&void 0!==e.totalMemorySizeBytes&&(t.setTotalMemorySizeBytes(e.totalMemorySizeBytes),delete e.totalMemorySizeBytes),e.hasOwnProperty("currentMemoryUsageSizeBytes")&&null!==e.currentMemoryUsageSizeBytes&&void 0!==e.currentMemoryUsageSizeBytes&&(t.setCurrentMemoryUsageSizeBytes(e.currentMemoryUsageSizeBytes),delete e.currentMemoryUsageSizeBytes),e.hasOwnProperty("provisionedMemoryUsageBytes")&&null!==e.provisionedMemoryUsageBytes&&void 0!==e.provisionedMemoryUsageBytes&&(t.setProvisionedMemoryUsageBytes(e.provisionedMemoryUsageBytes),delete e.provisionedMemoryUsageBytes),e.hasOwnProperty("maxVmMemorySizeBytes")&&null!==e.maxVmMemorySizeBytes&&void 0!==e.maxVmMemorySizeBytes&&(t.setMaxVmMemorySizeBytes(e.maxVmMemorySizeBytes),delete e.maxVmMemorySizeBytes),e.hasOwnProperty("availableMemorySizeBytes")&&null!==e.availableMemorySizeBytes&&void 0!==e.availableMemorySizeBytes&&(t.setAvailableMemorySizeBytes(e.availableMemorySizeBytes),delete e.availableMemorySizeBytes),e.hasOwnProperty("largestPoweredOffVMMemory")&&null!==e.largestPoweredOffVMMemory&&void 0!==e.largestPoweredOffVMMemory&&(t.setLargestPoweredOffVMMemory(e.largestPoweredOffVMMemory),delete e.largestPoweredOffVMMemory),e.hasOwnProperty("totalVCpuCount")&&null!==e.totalVCpuCount&&void 0!==e.totalVCpuCount&&(t.setTotalVCpuCount(e.totalVCpuCount),delete e.totalVCpuCount),e.hasOwnProperty("currentUsedVCpuCount")&&null!==e.currentUsedVCpuCount&&void 0!==e.currentUsedVCpuCount&&(t.setCurrentUsedVCpuCount(e.currentUsedVCpuCount),delete e.currentUsedVCpuCount),e.hasOwnProperty("provisionedVCpuCount")&&null!==e.provisionedVCpuCount&&void 0!==e.provisionedVCpuCount&&(t.setProvisionedVCpuCount(e.provisionedVCpuCount),delete e.provisionedVCpuCount),e.hasOwnProperty("maxVmVCpuSize")&&null!==e.maxVmVCpuSize&&void 0!==e.maxVmVCpuSize&&(t.setMaxVmVCpuSize(e.maxVmVCpuSize),delete e.maxVmVCpuSize),e.hasOwnProperty("availableVCpuCount")&&null!==e.availableVCpuCount&&void 0!==e.availableVCpuCount&&(t.setAvailableVCpuCount(e.availableVCpuCount),delete e.availableVCpuCount),e.hasOwnProperty("largestPoweredOffVMVCpu")&&null!==e.largestPoweredOffVMVCpu&&void 0!==e.largestPoweredOffVMVCpu&&(t.setLargestPoweredOffVMVCpu(e.largestPoweredOffVMVCpu),delete e.largestPoweredOffVMVCpu),e.hasOwnProperty("totalCpuHz")&&null!==e.totalCpuHz&&void 0!==e.totalCpuHz&&(t.setTotalCpuHz(e.totalCpuHz),delete e.totalCpuHz),e.hasOwnProperty("currentUsedCpuHz")&&null!==e.currentUsedCpuHz&&void 0!==e.currentUsedCpuHz&&(t.setCurrentUsedCpuHz(e.currentUsedCpuHz),delete e.currentUsedCpuHz),e.hasOwnProperty("provisionedCpuHz")&&null!==e.provisionedCpuHz&&void 0!==e.provisionedCpuHz&&(t.setProvisionedCpuHz(e.provisionedCpuHz),delete e.provisionedCpuHz),e.hasOwnProperty("totalStorageCapacityRawBytes")&&null!==e.totalStorageCapacityRawBytes&&void 0!==e.totalStorageCapacityRawBytes&&(t.setTotalStorageCapacityRawBytes(e.totalStorageCapacityRawBytes),delete e.totalStorageCapacityRawBytes),e.hasOwnProperty("totalStorageCapacityLogicalBytes")&&null!==e.totalStorageCapacityLogicalBytes&&void 0!==e.totalStorageCapacityLogicalBytes&&(t.setTotalStorageCapacityLogicalBytes(e.totalStorageCapacityLogicalBytes),delete e.totalStorageCapacityLogicalBytes),e.hasOwnProperty("totalStorageCapacityLogicalWithSavingsBytes")&&null!==e.totalStorageCapacityLogicalWithSavingsBytes&&void 0!==e.totalStorageCapacityLogicalWithSavingsBytes&&(t.setTotalStorageCapacityLogicalWithSavingsBytes(e.totalStorageCapacityLogicalWithSavingsBytes),delete e.totalStorageCapacityLogicalWithSavingsBytes),e.hasOwnProperty("totalStorageUsageBytes")&&null!==e.totalStorageUsageBytes&&void 0!==e.totalStorageUsageBytes&&(t.setTotalStorageUsageBytes(e.totalStorageUsageBytes),delete e.totalStorageUsageBytes),e.hasOwnProperty("totalStorageAvailableBytes")&&null!==e.totalStorageAvailableBytes&&void 0!==e.totalStorageAvailableBytes&&(t.setTotalStorageAvailableBytes(e.totalStorageAvailableBytes),delete e.totalStorageAvailableBytes),e.hasOwnProperty("totalStorageAvailableLogicalBytes")&&null!==e.totalStorageAvailableLogicalBytes&&void 0!==e.totalStorageAvailableLogicalBytes&&(t.setTotalStorageAvailableLogicalBytes(e.totalStorageAvailableLogicalBytes),delete e.totalStorageAvailableLogicalBytes),!r)for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r])}return t}getClusterName(){return this.clusterName}setClusterName(e){this.clusterName=e}getExternalIP(){return this.externalIP}setExternalIP(e){this.externalIP=e}getCvmIPs(){return this.cvmIPs}setCvmIPs(e){this.cvmIPs=e}getTotalMemorySizeBytes(){return this.totalMemorySizeBytes}setTotalMemorySizeBytes(e){this.totalMemorySizeBytes=e}getCurrentMemoryUsageSizeBytes(){return this.currentMemoryUsageSizeBytes}setCurrentMemoryUsageSizeBytes(e){this.currentMemoryUsageSizeBytes=e}getProvisionedMemoryUsageBytes(){return this.provisionedMemoryUsageBytes}setProvisionedMemoryUsageBytes(e){this.provisionedMemoryUsageBytes=e}getMaxVmMemorySizeBytes(){return this.maxVmMemorySizeBytes}setMaxVmMemorySizeBytes(e){this.maxVmMemorySizeBytes=e}getAvailableMemorySizeBytes(){return this.availableMemorySizeBytes}setAvailableMemorySizeBytes(e){this.availableMemorySizeBytes=e}getLargestPoweredOffVMMemory(){return this.largestPoweredOffVMMemory}setLargestPoweredOffVMMemory(e){this.largestPoweredOffVMMemory=e}getTotalVCpuCount(){return this.totalVCpuCount}setTotalVCpuCount(e){this.totalVCpuCount=e}getCurrentUsedVCpuCount(){return this.currentUsedVCpuCount}setCurrentUsedVCpuCount(e){this.currentUsedVCpuCount=e}getProvisionedVCpuCount(){return this.provisionedVCpuCount}setProvisionedVCpuCount(e){this.provisionedVCpuCount=e}getMaxVmVCpuSize(){return this.maxVmVCpuSize}setMaxVmVCpuSize(e){this.maxVmVCpuSize=e}getAvailableVCpuCount(){return this.availableVCpuCount}setAvailableVCpuCount(e){this.availableVCpuCount=e}getLargestPoweredOffVMVCpu(){return this.largestPoweredOffVMVCpu}setLargestPoweredOffVMVCpu(e){this.largestPoweredOffVMVCpu=e}getTotalCpuHz(){return this.totalCpuHz}setTotalCpuHz(e){this.totalCpuHz=e}getCurrentUsedCpuHz(){return this.currentUsedCpuHz}setCurrentUsedCpuHz(e){this.currentUsedCpuHz=e}getProvisionedCpuHz(){return this.provisionedCpuHz}setProvisionedCpuHz(e){this.provisionedCpuHz=e}getTotalStorageCapacityRawBytes(){return this.totalStorageCapacityRawBytes}setTotalStorageCapacityRawBytes(e){this.totalStorageCapacityRawBytes=e}getTotalStorageCapacityLogicalBytes(){return this.totalStorageCapacityLogicalBytes}setTotalStorageCapacityLogicalBytes(e){this.totalStorageCapacityLogicalBytes=e}getTotalStorageCapacityLogicalWithSavingsBytes(){return this.totalStorageCapacityLogicalWithSavingsBytes}setTotalStorageCapacityLogicalWithSavingsBytes(e){this.totalStorageCapacityLogicalWithSavingsBytes=e}getTotalStorageUsageBytes(){return this.totalStorageUsageBytes}setTotalStorageUsageBytes(e){this.totalStorageUsageBytes=e}getTotalStorageAvailableBytes(){return this.totalStorageAvailableBytes}setTotalStorageAvailableBytes(e){this.totalStorageAvailableBytes=e}getTotalStorageAvailableLogicalBytes(){return this.totalStorageAvailableLogicalBytes}setTotalStorageAvailableLogicalBytes(e){this.totalStorageAvailableLogicalBytes=e}toJson(e){return!1===e?{...void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{},...void 0!==this.getExternalIP()&&null!==this.getExternalIP()?{externalIP:this.getExternalIP().toJson(!1)}:{},...void 0!==this.getCvmIPs()&&null!==this.getCvmIPs()?{cvmIPs:this.getCvmIPs().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalMemorySizeBytes()&&null!==this.getTotalMemorySizeBytes()?{totalMemorySizeBytes:this.getTotalMemorySizeBytes()}:{},...void 0!==this.getCurrentMemoryUsageSizeBytes()&&null!==this.getCurrentMemoryUsageSizeBytes()?{currentMemoryUsageSizeBytes:this.getCurrentMemoryUsageSizeBytes()}:{},...void 0!==this.getProvisionedMemoryUsageBytes()&&null!==this.getProvisionedMemoryUsageBytes()?{provisionedMemoryUsageBytes:this.getProvisionedMemoryUsageBytes()}:{},...void 0!==this.getMaxVmMemorySizeBytes()&&null!==this.getMaxVmMemorySizeBytes()?{maxVmMemorySizeBytes:this.getMaxVmMemorySizeBytes()}:{},...void 0!==this.getAvailableMemorySizeBytes()&&null!==this.getAvailableMemorySizeBytes()?{availableMemorySizeBytes:this.getAvailableMemorySizeBytes()}:{},...void 0!==this.getLargestPoweredOffVMMemory()&&null!==this.getLargestPoweredOffVMMemory()?{largestPoweredOffVMMemory:this.getLargestPoweredOffVMMemory()}:{},...void 0!==this.getTotalVCpuCount()&&null!==this.getTotalVCpuCount()?{totalVCpuCount:this.getTotalVCpuCount()}:{},...void 0!==this.getCurrentUsedVCpuCount()&&null!==this.getCurrentUsedVCpuCount()?{currentUsedVCpuCount:this.getCurrentUsedVCpuCount()}:{},...void 0!==this.getProvisionedVCpuCount()&&null!==this.getProvisionedVCpuCount()?{provisionedVCpuCount:this.getProvisionedVCpuCount()}:{},...void 0!==this.getMaxVmVCpuSize()&&null!==this.getMaxVmVCpuSize()?{maxVmVCpuSize:this.getMaxVmVCpuSize()}:{},...void 0!==this.getAvailableVCpuCount()&&null!==this.getAvailableVCpuCount()?{availableVCpuCount:this.getAvailableVCpuCount()}:{},...void 0!==this.getLargestPoweredOffVMVCpu()&&null!==this.getLargestPoweredOffVMVCpu()?{largestPoweredOffVMVCpu:this.getLargestPoweredOffVMVCpu()}:{},...void 0!==this.getTotalCpuHz()&&null!==this.getTotalCpuHz()?{totalCpuHz:this.getTotalCpuHz()}:{},...void 0!==this.getCurrentUsedCpuHz()&&null!==this.getCurrentUsedCpuHz()?{currentUsedCpuHz:this.getCurrentUsedCpuHz()}:{},...void 0!==this.getProvisionedCpuHz()&&null!==this.getProvisionedCpuHz()?{provisionedCpuHz:this.getProvisionedCpuHz()}:{},...void 0!==this.getTotalStorageCapacityRawBytes()&&null!==this.getTotalStorageCapacityRawBytes()?{totalStorageCapacityRawBytes:this.getTotalStorageCapacityRawBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalBytes()&&null!==this.getTotalStorageCapacityLogicalBytes()?{totalStorageCapacityLogicalBytes:this.getTotalStorageCapacityLogicalBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalWithSavingsBytes()&&null!==this.getTotalStorageCapacityLogicalWithSavingsBytes()?{totalStorageCapacityLogicalWithSavingsBytes:this.getTotalStorageCapacityLogicalWithSavingsBytes()}:{},...void 0!==this.getTotalStorageUsageBytes()&&null!==this.getTotalStorageUsageBytes()?{totalStorageUsageBytes:this.getTotalStorageUsageBytes()}:{},...void 0!==this.getTotalStorageAvailableBytes()&&null!==this.getTotalStorageAvailableBytes()?{totalStorageAvailableBytes:this.getTotalStorageAvailableBytes()}:{},...void 0!==this.getTotalStorageAvailableLogicalBytes()&&null!==this.getTotalStorageAvailableLogicalBytes()?{totalStorageAvailableLogicalBytes:this.getTotalStorageAvailableLogicalBytes()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}:{...void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{},...void 0!==this.getExternalIP()&&null!==this.getExternalIP()?{externalIP:this.getExternalIP().toJson()}:{},...void 0!==this.getCvmIPs()&&null!==this.getCvmIPs()?{cvmIPs:this.getCvmIPs().map(e=>e.toJson())}:{},...void 0!==this.getTotalMemorySizeBytes()&&null!==this.getTotalMemorySizeBytes()?{totalMemorySizeBytes:this.getTotalMemorySizeBytes()}:{},...void 0!==this.getCurrentMemoryUsageSizeBytes()&&null!==this.getCurrentMemoryUsageSizeBytes()?{currentMemoryUsageSizeBytes:this.getCurrentMemoryUsageSizeBytes()}:{},...void 0!==this.getProvisionedMemoryUsageBytes()&&null!==this.getProvisionedMemoryUsageBytes()?{provisionedMemoryUsageBytes:this.getProvisionedMemoryUsageBytes()}:{},...void 0!==this.getMaxVmMemorySizeBytes()&&null!==this.getMaxVmMemorySizeBytes()?{maxVmMemorySizeBytes:this.getMaxVmMemorySizeBytes()}:{},...void 0!==this.getAvailableMemorySizeBytes()&&null!==this.getAvailableMemorySizeBytes()?{availableMemorySizeBytes:this.getAvailableMemorySizeBytes()}:{},...void 0!==this.getLargestPoweredOffVMMemory()&&null!==this.getLargestPoweredOffVMMemory()?{largestPoweredOffVMMemory:this.getLargestPoweredOffVMMemory()}:{},...void 0!==this.getTotalVCpuCount()&&null!==this.getTotalVCpuCount()?{totalVCpuCount:this.getTotalVCpuCount()}:{},...void 0!==this.getCurrentUsedVCpuCount()&&null!==this.getCurrentUsedVCpuCount()?{currentUsedVCpuCount:this.getCurrentUsedVCpuCount()}:{},...void 0!==this.getProvisionedVCpuCount()&&null!==this.getProvisionedVCpuCount()?{provisionedVCpuCount:this.getProvisionedVCpuCount()}:{},...void 0!==this.getMaxVmVCpuSize()&&null!==this.getMaxVmVCpuSize()?{maxVmVCpuSize:this.getMaxVmVCpuSize()}:{},...void 0!==this.getAvailableVCpuCount()&&null!==this.getAvailableVCpuCount()?{availableVCpuCount:this.getAvailableVCpuCount()}:{},...void 0!==this.getLargestPoweredOffVMVCpu()&&null!==this.getLargestPoweredOffVMVCpu()?{largestPoweredOffVMVCpu:this.getLargestPoweredOffVMVCpu()}:{},...void 0!==this.getTotalCpuHz()&&null!==this.getTotalCpuHz()?{totalCpuHz:this.getTotalCpuHz()}:{},...void 0!==this.getCurrentUsedCpuHz()&&null!==this.getCurrentUsedCpuHz()?{currentUsedCpuHz:this.getCurrentUsedCpuHz()}:{},...void 0!==this.getProvisionedCpuHz()&&null!==this.getProvisionedCpuHz()?{provisionedCpuHz:this.getProvisionedCpuHz()}:{},...void 0!==this.getTotalStorageCapacityRawBytes()&&null!==this.getTotalStorageCapacityRawBytes()?{totalStorageCapacityRawBytes:this.getTotalStorageCapacityRawBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalBytes()&&null!==this.getTotalStorageCapacityLogicalBytes()?{totalStorageCapacityLogicalBytes:this.getTotalStorageCapacityLogicalBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalWithSavingsBytes()&&null!==this.getTotalStorageCapacityLogicalWithSavingsBytes()?{totalStorageCapacityLogicalWithSavingsBytes:this.getTotalStorageCapacityLogicalWithSavingsBytes()}:{},...void 0!==this.getTotalStorageUsageBytes()&&null!==this.getTotalStorageUsageBytes()?{totalStorageUsageBytes:this.getTotalStorageUsageBytes()}:{},...void 0!==this.getTotalStorageAvailableBytes()&&null!==this.getTotalStorageAvailableBytes()?{totalStorageAvailableBytes:this.getTotalStorageAvailableBytes()}:{},...void 0!==this.getTotalStorageAvailableLogicalBytes()&&null!==this.getTotalStorageAvailableLogicalBytes()?{totalStorageAvailableLogicalBytes:this.getTotalStorageAvailableLogicalBytes()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){return"clusterName"!==t||void 0!==this.clusterName&&null!==this.clusterName?"externalIP"!==t||void 0!==this.externalIP&&null!==this.externalIP?"cvmIPs"!==t||void 0!==this.cvmIPs&&null!==this.cvmIPs?"totalMemorySizeBytes"!==t||void 0!==this.totalMemorySizeBytes&&null!==this.totalMemorySizeBytes?"currentMemoryUsageSizeBytes"!==t||void 0!==this.currentMemoryUsageSizeBytes&&null!==this.currentMemoryUsageSizeBytes?"provisionedMemoryUsageBytes"!==t||void 0!==this.provisionedMemoryUsageBytes&&null!==this.provisionedMemoryUsageBytes?"maxVmMemorySizeBytes"!==t||void 0!==this.maxVmMemorySizeBytes&&null!==this.maxVmMemorySizeBytes?"availableMemorySizeBytes"!==t||void 0!==this.availableMemorySizeBytes&&null!==this.availableMemorySizeBytes?"largestPoweredOffVMMemory"!==t||void 0!==this.largestPoweredOffVMMemory&&null!==this.largestPoweredOffVMMemory?"totalVCpuCount"!==t||void 0!==this.totalVCpuCount&&null!==this.totalVCpuCount?"currentUsedVCpuCount"!==t||void 0!==this.currentUsedVCpuCount&&null!==this.currentUsedVCpuCount?"provisionedVCpuCount"!==t||void 0!==this.provisionedVCpuCount&&null!==this.provisionedVCpuCount?"maxVmVCpuSize"!==t||void 0!==this.maxVmVCpuSize&&null!==this.maxVmVCpuSize?"availableVCpuCount"!==t||void 0!==this.availableVCpuCount&&null!==this.availableVCpuCount?"largestPoweredOffVMVCpu"!==t||void 0!==this.largestPoweredOffVMVCpu&&null!==this.largestPoweredOffVMVCpu?"totalCpuHz"!==t||void 0!==this.totalCpuHz&&null!==this.totalCpuHz?"currentUsedCpuHz"!==t||void 0!==this.currentUsedCpuHz&&null!==this.currentUsedCpuHz?"provisionedCpuHz"!==t||void 0!==this.provisionedCpuHz&&null!==this.provisionedCpuHz?"totalStorageCapacityRawBytes"!==t||void 0!==this.totalStorageCapacityRawBytes&&null!==this.totalStorageCapacityRawBytes?"totalStorageCapacityLogicalBytes"!==t||void 0!==this.totalStorageCapacityLogicalBytes&&null!==this.totalStorageCapacityLogicalBytes?"totalStorageCapacityLogicalWithSavingsBytes"!==t||void 0!==this.totalStorageCapacityLogicalWithSavingsBytes&&null!==this.totalStorageCapacityLogicalWithSavingsBytes?"totalStorageUsageBytes"!==t||void 0!==this.totalStorageUsageBytes&&null!==this.totalStorageUsageBytes?"totalStorageAvailableBytes"!==t||void 0!==this.totalStorageAvailableBytes&&null!==this.totalStorageAvailableBytes?"totalStorageAvailableLogicalBytes"!==t||void 0!==this.totalStorageAvailableLogicalBytes&&null!==this.totalStorageAvailableLogicalBytes?new a(t,"no such property exists"):new a("totalStorageAvailableLogicalBytes","undefined or null"):new a("totalStorageAvailableBytes","undefined or null"):new a("totalStorageUsageBytes","undefined or null"):new a("totalStorageCapacityLogicalWithSavingsBytes","undefined or null"):new a("totalStorageCapacityLogicalBytes","undefined or null"):new a("totalStorageCapacityRawBytes","undefined or null"):new a("provisionedCpuHz","undefined or null"):new a("currentUsedCpuHz","undefined or null"):new a("totalCpuHz","undefined or null"):new a("largestPoweredOffVMVCpu","undefined or null"):new a("availableVCpuCount","undefined or null"):new a("maxVmVCpuSize","undefined or null"):new a("provisionedVCpuCount","undefined or null"):new a("currentUsedVCpuCount","undefined or null"):new a("totalVCpuCount","undefined or null"):new a("largestPoweredOffVMMemory","undefined or null"):new a("availableMemorySizeBytes","undefined or null"):new a("maxVmMemorySizeBytes","undefined or null"):new a("provisionedMemoryUsageBytes","undefined or null"):new a("currentMemoryUsageSizeBytes","undefined or null"):new a("totalMemorySizeBytes","undefined or null"):new a("cvmIPs","undefined or null"):new a("externalIP","undefined or null"):new a("clusterName","undefined or null")}}c.prototype.clusterName=void 0,c.prototype.externalIP=void 0,c.prototype.cvmIPs=void 0,c.prototype.totalMemorySizeBytes=void 0,c.prototype.currentMemoryUsageSizeBytes=void 0,c.prototype.provisionedMemoryUsageBytes=void 0,c.prototype.maxVmMemorySizeBytes=void 0,c.prototype.availableMemorySizeBytes=void 0,c.prototype.largestPoweredOffVMMemory=void 0,c.prototype.totalVCpuCount=void 0,c.prototype.currentUsedVCpuCount=void 0,c.prototype.provisionedVCpuCount=void 0,c.prototype.maxVmVCpuSize=void 0,c.prototype.availableVCpuCount=void 0,c.prototype.largestPoweredOffVMVCpu=void 0,c.prototype.totalCpuHz=void 0,c.prototype.currentUsedCpuHz=void 0,c.prototype.provisionedCpuHz=void 0,c.prototype.totalStorageCapacityRawBytes=void 0,c.prototype.totalStorageCapacityLogicalBytes=void 0,c.prototype.totalStorageCapacityLogicalWithSavingsBytes=void 0,c.prototype.totalStorageUsageBytes=void 0,c.prototype.totalStorageAvailableBytes=void 0,c.prototype.totalStorageAvailableLogicalBytes=void 0;const p={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(p).find(t=>p[t]===e);return null==t?p.$UNKNOWN:p[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case p.$UNKNOWN:case p.$REDACTED:case p.INFO:case p.WARNING:case p.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(p);var f=p;class y{constructor(){this.$objectType="aiops.v4.error.AppMessage",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.error.AppMessage"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new y,e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&(t.setMessage(e.message),delete e.message),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&(t.setSeverity(f.constructFromObject(e.severity)),delete e.severity),e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&(t.setCode(e.code),delete e.code),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&(t.setLocale(e.locale),delete e.locale),e.hasOwnProperty("errorGroup")&&null!==e.errorGroup&&void 0!==e.errorGroup&&(t.setErrorGroup(e.errorGroup),delete e.errorGroup),e.hasOwnProperty("argumentsMap")&&null!==e.argumentsMap&&void 0!==e.argumentsMap&&(t.setArgumentsMap(e.argumentsMap),delete e.argumentsMap),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}getMessage(){return this.message}setMessage(e){this.message=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}getCode(){return this.code}setCode(e){this.code=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getErrorGroup(){return this.errorGroup}setErrorGroup(e){this.errorGroup=e}getArgumentsMap(){return this.argumentsMap}setArgumentsMap(e){this.argumentsMap=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:this.getArgumentsMap()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("argumentsMap","undefined or null"):new a("errorGroup","undefined or null"):new a("locale","undefined or null"):new a("code","undefined or null"):new a("severity","undefined or null"):new a("message","undefined or null")}}y.prototype.message=void 0,y.prototype.severity=void 0,y.prototype.code=void 0,y.prototype.locale="en_US",y.prototype.errorGroup=void 0,y.prototype.argumentsMap=void 0,y.prototype.$reserved=void 0,y.prototype.$objectType=void 0,y.prototype.$unknownFields=void 0;class g{constructor(){this.$objectType="aiops.v4.error.SchemaValidationErrorMessage",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.error.SchemaValidationErrorMessage"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new g,e.hasOwnProperty("location")&&null!==e.location&&void 0!==e.location&&(t.setLocation(e.location),delete e.location),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&(t.setMessage(e.message),delete e.message),e.hasOwnProperty("attributePath")&&null!==e.attributePath&&void 0!==e.attributePath&&(t.setAttributePath(e.attributePath),delete e.attributePath),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}getLocation(){return this.location}setLocation(e){this.location=e}getMessage(){return this.message}setMessage(e){this.message=e}getAttributePath(){return this.attributePath}setAttributePath(e){this.attributePath=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("attributePath","undefined or null"):new a("message","undefined or null"):new a("location","undefined or null")}}g.prototype.location=void 0,g.prototype.message=void 0,g.prototype.attributePath=void 0,g.prototype.$reserved=void 0,g.prototype.$objectType=void 0,g.prototype.$unknownFields=void 0;class v{constructor(){this.$objectType="aiops.v4.error.SchemaValidationError",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.error.SchemaValidationError"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){let n,i,o,s;if(e){if(t=t||new v,e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&(t.setTimestamp(e.timestamp),delete e.timestamp),e.hasOwnProperty("statusCode")&&null!==e.statusCode&&void 0!==e.statusCode&&(t.setStatusCode(e.statusCode),delete e.statusCode),e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error&&(t.setError(e.error),delete e.error),e.hasOwnProperty("path")&&null!==e.path&&void 0!==e.path&&(t.setPath(e.path),delete e.path),e.hasOwnProperty("validationErrorMessages")&&null!==e.validationErrorMessages&&void 0!==e.validationErrorMessages){for(s=[],n=e.validationErrorMessages,o=0;o<n.length;o++)i=g.constructFromObject(n[o],void 0),s.push(i);t.setValidationErrorMessages(s),delete e.validationErrorMessages}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r)for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r])}return t}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}getStatusCode(){return this.statusCode}setStatusCode(e){this.statusCode=e}getError(){return this.error}setError(e){this.error=e}getPath(){return this.path}setPath(e){this.path=e}getValidationErrorMessages(){return this.validationErrorMessages}setValidationErrorMessages(e){this.validationErrorMessages=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...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(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}:{...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(e=>e.toJson())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("validationErrorMessages","undefined or null"):new a("path","undefined or null"):new a("error","undefined or null"):new a("statusCode","undefined or null"):new a("timestamp","undefined or null")}}v.prototype.timestamp=void 0,v.prototype.statusCode=void 0,v.prototype.error=void 0,v.prototype.path=void 0,v.prototype.validationErrorMessages=void 0,v.prototype.$reserved=void 0,v.prototype.$objectType=void 0,v.prototype.$unknownFields=void 0;class m{constructor(){this.$objectType="aiops.v4.error.ErrorResponse",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.error.ErrorResponse"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){let n,i,o,s,a;if(e){if(t=t||new m,e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error){if(a=e.$errorItemDiscriminator,delete e.$errorItemDiscriminator,"EMPTY_LIST"===a)t.setError([]);else if("List<aiops.v4.error.AppMessage>"===a){for(s=[],n=e.error,o=0;o<n.length;o++)i=y.constructFromObject(n[o],void 0),s.push(i);t.setError(s)}else{if("aiops.v4.error.SchemaValidationError"!==a)throw"Unknown data type "+a+" in data";t.setError(v.constructFromObject(e.error,void 0))}delete e.error}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r)for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r])}return t}getError(){return this.error}setError(e){this.error=e}get$errorItemDiscriminator(){return this.getError()===[]?"EMPTY_LIST":Array.isArray(this.getError())&&this.getError()[0]instanceof y?"List<aiops.v4.error.AppMessage>":this.getError()instanceof v?"aiops.v4.error.SchemaValidationError":void 0}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getError()&&null!==this.getError()?{$errorItemDiscriminator:this.get$errorItemDiscriminator(),error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson(!1):e):this.getError()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}:{...void 0!==this.getError()&&null!==this.getError()?{$errorItemDiscriminator:this.get$errorItemDiscriminator(),error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson():e):this.getError()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("error","undefined or null")}}m.prototype.error=void 0,m.prototype.$reserved=void 0,m.prototype.$objectType=void 0,m.prototype.$unknownFields=void 0;class w{constructor(){this.$objectType="common.v1.config.Flag",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.Flag"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new w,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&(t.setName(e.name),delete e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&(t.setValue(e.value),delete e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(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 a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("value","undefined or null"):new a("name","undefined or null")}}w.prototype.name=void 0,w.prototype.value=!1,w.prototype.$reserved=void 0,w.prototype.$objectType=void 0,w.prototype.$unknownFields=void 0;class b{constructor(){this.$objectType="common.v1.config.KVPair",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.KVPair"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){let n;if(e){if(t=t||new b,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&(t.setName(e.name),delete e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value){if(n=e.$valueItemDiscriminator,delete e.$valueItemDiscriminator,"EMPTY_LIST"===n)t.setValue([]);else if("String"===n)t.setValue(e.value);else{if("Integer"!==n)throw"Unknown data type "+n+" in data";t.setValue(e.value)}delete e.value}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r)for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r])}return t}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$valueItemDiscriminator(){return"string"==typeof this.getValue()?"String":"number"==typeof this.getValue()?"Integer":void 0}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{$valueItemDiscriminator:this.get$valueItemDiscriminator(),value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson(!1):e):this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{$valueItemDiscriminator:this.get$valueItemDiscriminator(),value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson():e):this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(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 a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("value","undefined or null"):new a("name","undefined or null")}}b.prototype.name=void 0,b.prototype.value=void 0,b.prototype.$reserved=void 0,b.prototype.$objectType=void 0,b.prototype.$unknownFields=void 0;class ${constructor(){this.$objectType="common.v1.config.Message",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.Message"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new $,e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&(t.setCode(e.code),delete e.code),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&(t.setMessage(e.message),delete e.message),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&(t.setLocale(e.locale),delete e.locale),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&(t.setSeverity(f.constructFromObject(e.severity)),delete e.severity),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}getCode(){return this.code}setCode(e){this.code=e}getMessage(){return this.message}setMessage(e){this.message=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("severity","undefined or null"):new a("locale","undefined or null"):new a("message","undefined or null"):new a("code","undefined or null")}}$.prototype.code=void 0,$.prototype.message=void 0,$.prototype.locale="en_US",$.prototype.severity=void 0,$.prototype.$reserved=void 0,$.prototype.$objectType=void 0,$.prototype.$unknownFields=void 0;class C{constructor(){this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fqObjectType:"common.v1.r0.a3.response.ApiResponseMetadata"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){let n,i,o,s;if(e){if(t=t||new C,e.hasOwnProperty("flags")&&null!==e.flags&&void 0!==e.flags){for(s=[],n=e.flags,o=0;o<n.length;o++)i=w.constructFromObject(n[o],void 0),s.push(i);t.setFlags(s),delete e.flags}if(e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(s=[],n=e.links,o=0;o<n.length;o++)i=u.constructFromObject(n[o],void 0),s.push(i);t.setLinks(s),delete e.links}if(e.hasOwnProperty("totalAvailableResults")&&null!==e.totalAvailableResults&&void 0!==e.totalAvailableResults&&(t.setTotalAvailableResults(e.totalAvailableResults),delete e.totalAvailableResults),e.hasOwnProperty("messages")&&null!==e.messages&&void 0!==e.messages){for(s=[],n=e.messages,o=0;o<n.length;o++)i=$.constructFromObject(n[o],void 0),s.push(i);t.setMessages(s),delete e.messages}if(e.hasOwnProperty("extraInfo")&&null!==e.extraInfo&&void 0!==e.extraInfo){for(s=[],n=e.extraInfo,o=0;o<n.length;o++)i=b.constructFromObject(n[o],void 0),s.push(i);t.setExtraInfo(s),delete e.extraInfo}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r)for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r])}return t}getFlags(){return this.flags}setFlags(e){this.flags=e}getLinks(){return this.links}setLinks(e){this.links=e}getTotalAvailableResults(){return this.totalAvailableResults}setTotalAvailableResults(e){this.totalAvailableResults=e}getMessages(){return this.messages}setMessages(e){this.messages=e}getExtraInfo(){return this.extraInfo}setExtraInfo(e){this.extraInfo=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map(e=>e.toJson(!1))}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{},...void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}:{...void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map(e=>e.toJson())}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson())}:{},...void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{},...void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map(e=>e.toJson())}:{},...void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map(e=>e.toJson())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(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 a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("extraInfo","undefined or null"):new a("messages","undefined or null"):new a("totalAvailableResults","undefined or null"):new a("links","undefined or null"):new a("flags","undefined or null")}}C.prototype.flags=void 0,C.prototype.links=void 0,C.prototype.totalAvailableResults=void 0,C.prototype.messages=void 0,C.prototype.extraInfo=void 0,C.prototype.$reserved=void 0,C.prototype.$objectType=void 0,C.prototype.$unknownFields=void 0;var T=r(2);class P extends T.a{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.ClusterListApiResponse",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.ClusterListApiResponse"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){let n,i,o,s,a;if(e){if(t=t||new P,e.hasOwnProperty("metadata")&&T.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&(t.setMetadata(C.constructFromObject(e.metadata)),delete e.metadata),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data){if(a=e.$dataItemDiscriminator,delete e.$dataItemDiscriminator,"EMPTY_LIST"===a)t.setData([]);else if("List<aiops.v4.clusterMetrics.ClusterMetrics>"===a){for(s=[],n=e.data,o=0;o<n.length;o++)i=c.constructFromObject(n[o],void 0),s.push(i);t.setData(s)}else{if("aiops.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData(m.constructFromObject(e.data,void 0))}delete e.data}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r)for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r])}return t}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$dataItemDiscriminator(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof c?"List<aiops.v4.clusterMetrics.ClusterMetrics>":this.getData()instanceof m?"aiops.v4.error.ErrorResponse":void 0}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):this.getData()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{},...void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):this.getData()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("data","undefined or null"):new a("metadata","undefined or null")}}P.prototype.metadata=void 0,P.prototype.data=void 0,P.prototype.$reserved=void 0,P.prototype.$objectType=void 0,P.prototype.$unknownFields=void 0;class S extends T.a{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.ClusterApiResponse",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.ClusterApiResponse"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){let n;if(e){if(t=t||new S,e.hasOwnProperty("metadata")&&T.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&(t.setMetadata(C.constructFromObject(e.metadata)),delete e.metadata),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data){if(n=e.$dataItemDiscriminator,delete e.$dataItemDiscriminator,"EMPTY_LIST"===n)t.setData([]);else if("aiops.v4.clusterMetrics.ClusterMetrics"===n)t.setData(c.constructFromObject(e.data,void 0));else{if("aiops.v4.error.ErrorResponse"!==n)throw"Unknown data type "+n+" in data";t.setData(m.constructFromObject(e.data,void 0))}delete e.data}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r)for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r])}return t}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$dataItemDiscriminator(){return this.getData()instanceof c?"aiops.v4.clusterMetrics.ClusterMetrics":this.getData()instanceof m?"aiops.v4.error.ErrorResponse":void 0}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):this.getData()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson()}:{},...void 0!==this.getData()&&null!==this.getData()?{$dataItemDiscriminator:this.get$dataItemDiscriminator(),data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):this.getData()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("data","undefined or null"):new a("metadata","undefined or null")}}S.prototype.metadata=void 0,S.prototype.data=void 0,S.prototype.$reserved=void 0,S.prototype.$objectType=void 0,S.prototype.$unknownFields=void 0;class M{static get ApiClient(){return n.a}constructor(e){this.apiClient=e||n.a.instance}getClusterResourceById(e,...t){let r=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getClusterResourceById");const n={extId:e},i={...r.hasOwnProperty("If-Match")&&null!==r["If-Match"]?{"If-Match":r["If-Match"].toString()}:{},...r.hasOwnProperty("If-None-Match")&&null!==r["If-None-Match"]?{"If-None-Match":r["If-None-Match"].toString()}:{}},o=S;return this.apiClient.callApi("/api/aiops/v4.0.a1/cluster-metrics/{extId}","GET",n,{},i,{},null,["basicAuthScheme"],[],["application/json"],o)}listResourcesForAllClusters(e,...t){let r=t.length>0?t[0]:{};const n={...(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}:{}},i={...r.hasOwnProperty("If-Match")&&null!==r["If-Match"]?{"If-Match":r["If-Match"].toString()}:{},...r.hasOwnProperty("If-None-Match")&&null!==r["If-None-Match"]?{"If-None-Match":r["If-None-Match"].toString()}:{}},o=P;return this.apiClient.callApi("/api/aiops/v4.0.a1/cluster-metrics","GET",{},n,i,{},null,["basicAuthScheme"],[],["application/json"],o)}}class k{constructor(){this.$objectType="aiops.v4.clusterMetrics.Cluster",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.Cluster"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new k,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&(t.setName(e.name),delete e.name),e.hasOwnProperty("uuid")&&null!==e.uuid&&void 0!==e.uuid&&(t.setUuid(e.uuid),delete e.uuid),e.hasOwnProperty("externalIpAddress")&&null!==e.externalIpAddress&&void 0!==e.externalIpAddress&&(t.setExternalIpAddress(e.externalIpAddress),delete e.externalIpAddress),e.hasOwnProperty("memoryCapacityBytes")&&null!==e.memoryCapacityBytes&&void 0!==e.memoryCapacityBytes&&(t.setMemoryCapacityBytes(e.memoryCapacityBytes),delete e.memoryCapacityBytes),e.hasOwnProperty("numCpus")&&null!==e.numCpus&&void 0!==e.numCpus&&(t.setNumCpus(e.numCpus),delete e.numCpus),e.hasOwnProperty("hypervisorMemoryUsagePpm")&&null!==e.hypervisorMemoryUsagePpm&&void 0!==e.hypervisorMemoryUsagePpm&&(t.setHypervisorMemoryUsagePpm(e.hypervisorMemoryUsagePpm),delete e.hypervisorMemoryUsagePpm),e.hasOwnProperty("hypervisorCpuUsagePpm")&&null!==e.hypervisorCpuUsagePpm&&void 0!==e.hypervisorCpuUsagePpm&&(t.setHypervisorCpuUsagePpm(e.hypervisorCpuUsagePpm),delete e.hypervisorCpuUsagePpm),e.hasOwnProperty("rf")&&null!==e.rf&&void 0!==e.rf&&(t.setRf(e.rf),delete e.rf),e.hasOwnProperty("capacityBytes")&&null!==e.capacityBytes&&void 0!==e.capacityBytes&&(t.setCapacityBytes(e.capacityBytes),delete e.capacityBytes),e.hasOwnProperty("freeBytes")&&null!==e.freeBytes&&void 0!==e.freeBytes&&(t.setFreeBytes(e.freeBytes),delete e.freeBytes),e.hasOwnProperty("usageBytes")&&null!==e.usageBytes&&void 0!==e.usageBytes&&(t.setUsageBytes(e.usageBytes),delete e.usageBytes),e.hasOwnProperty("savedBytes")&&null!==e.savedBytes&&void 0!==e.savedBytes&&(t.setSavedBytes(e.savedBytes),delete e.savedBytes),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}getName(){return this.name}setName(e){this.name=e}getUuid(){return this.uuid}setUuid(e){this.uuid=e}getExternalIpAddress(){return this.externalIpAddress}setExternalIpAddress(e){this.externalIpAddress=e}getMemoryCapacityBytes(){return this.memoryCapacityBytes}setMemoryCapacityBytes(e){this.memoryCapacityBytes=e}getNumCpus(){return this.numCpus}setNumCpus(e){this.numCpus=e}getHypervisorMemoryUsagePpm(){return this.hypervisorMemoryUsagePpm}setHypervisorMemoryUsagePpm(e){this.hypervisorMemoryUsagePpm=e}getHypervisorCpuUsagePpm(){return this.hypervisorCpuUsagePpm}setHypervisorCpuUsagePpm(e){this.hypervisorCpuUsagePpm=e}getRf(){return this.rf}setRf(e){this.rf=e}getCapacityBytes(){return this.capacityBytes}setCapacityBytes(e){this.capacityBytes=e}getFreeBytes(){return this.freeBytes}setFreeBytes(e){this.freeBytes=e}getUsageBytes(){return this.usageBytes}setUsageBytes(e){this.usageBytes=e}getSavedBytes(){return this.savedBytes}setSavedBytes(e){this.savedBytes=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{},...void 0!==this.getExternalIpAddress()&&null!==this.getExternalIpAddress()?{externalIpAddress:this.getExternalIpAddress()}:{},...void 0!==this.getMemoryCapacityBytes()&&null!==this.getMemoryCapacityBytes()?{memoryCapacityBytes:this.getMemoryCapacityBytes()}:{},...void 0!==this.getNumCpus()&&null!==this.getNumCpus()?{numCpus:this.getNumCpus()}:{},...void 0!==this.getHypervisorMemoryUsagePpm()&&null!==this.getHypervisorMemoryUsagePpm()?{hypervisorMemoryUsagePpm:this.getHypervisorMemoryUsagePpm()}:{},...void 0!==this.getHypervisorCpuUsagePpm()&&null!==this.getHypervisorCpuUsagePpm()?{hypervisorCpuUsagePpm:this.getHypervisorCpuUsagePpm()}:{},...void 0!==this.getRf()&&null!==this.getRf()?{rf:this.getRf()}:{},...void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{},...void 0!==this.getFreeBytes()&&null!==this.getFreeBytes()?{freeBytes:this.getFreeBytes()}:{},...void 0!==this.getUsageBytes()&&null!==this.getUsageBytes()?{usageBytes:this.getUsageBytes()}:{},...void 0!==this.getSavedBytes()&&null!==this.getSavedBytes()?{savedBytes:this.getSavedBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new a("name","undefined or null");if("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new a("uuid","undefined or null");if(!s.validatePattern(this.uuid,/^[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 a("uuid","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"externalIpAddress"!==t||void 0!==this.externalIpAddress&&null!==this.externalIpAddress?"memoryCapacityBytes"!==t||void 0!==this.memoryCapacityBytes&&null!==this.memoryCapacityBytes?"numCpus"!==t||void 0!==this.numCpus&&null!==this.numCpus?"hypervisorMemoryUsagePpm"!==t||void 0!==this.hypervisorMemoryUsagePpm&&null!==this.hypervisorMemoryUsagePpm?"hypervisorCpuUsagePpm"!==t||void 0!==this.hypervisorCpuUsagePpm&&null!==this.hypervisorCpuUsagePpm?"rf"!==t||void 0!==this.rf&&null!==this.rf?"capacityBytes"!==t||void 0!==this.capacityBytes&&null!==this.capacityBytes?"freeBytes"!==t||void 0!==this.freeBytes&&null!==this.freeBytes?"usageBytes"!==t||void 0!==this.usageBytes&&null!==this.usageBytes?"savedBytes"!==t||void 0!==this.savedBytes&&null!==this.savedBytes?"$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 a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("savedBytes","undefined or null"):new a("usageBytes","undefined or null"):new a("freeBytes","undefined or null"):new a("capacityBytes","undefined or null"):new a("rf","undefined or null"):new a("hypervisorCpuUsagePpm","undefined or null"):new a("hypervisorMemoryUsagePpm","undefined or null"):new a("numCpus","undefined or null"):new a("memoryCapacityBytes","undefined or null"):new a("externalIpAddress","undefined or null")}}k.prototype.name=void 0,k.prototype.uuid=void 0,k.prototype.externalIpAddress=void 0,k.prototype.memoryCapacityBytes=void 0,k.prototype.numCpus=void 0,k.prototype.hypervisorMemoryUsagePpm=void 0,k.prototype.hypervisorCpuUsagePpm=void 0,k.prototype.rf=void 0,k.prototype.capacityBytes=void 0,k.prototype.freeBytes=void 0,k.prototype.usageBytes=void 0,k.prototype.savedBytes=void 0,k.prototype.$reserved=void 0,k.prototype.$objectType=void 0,k.prototype.$unknownFields=void 0;class O{constructor(){this.$objectType="aiops.v4.clusterMetrics.Node",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.Node"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new O,e.hasOwnProperty("nodeUuid")&&null!==e.nodeUuid&&void 0!==e.nodeUuid&&(t.setNodeUuid(e.nodeUuid),delete e.nodeUuid),e.hasOwnProperty("haMemoryReservedBytes")&&null!==e.haMemoryReservedBytes&&void 0!==e.haMemoryReservedBytes&&(t.setHaMemoryReservedBytes(e.haMemoryReservedBytes),delete e.haMemoryReservedBytes),e.hasOwnProperty("numCpuThreads")&&null!==e.numCpuThreads&&void 0!==e.numCpuThreads&&(t.setNumCpuThreads(e.numCpuThreads),delete e.numCpuThreads),e.hasOwnProperty("capacityHz")&&null!==e.capacityHz&&void 0!==e.capacityHz&&(t.setCapacityHz(e.capacityHz),delete e.capacityHz),e.hasOwnProperty("memorySizeBytes")&&null!==e.memorySizeBytes&&void 0!==e.memorySizeBytes&&(t.setMemorySizeBytes(e.memorySizeBytes),delete e.memorySizeBytes),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}getNodeUuid(){return this.nodeUuid}setNodeUuid(e){this.nodeUuid=e}getHaMemoryReservedBytes(){return this.haMemoryReservedBytes}setHaMemoryReservedBytes(e){this.haMemoryReservedBytes=e}getNumCpuThreads(){return this.numCpuThreads}setNumCpuThreads(e){this.numCpuThreads=e}getCapacityHz(){return this.capacityHz}setCapacityHz(e){this.capacityHz=e}getMemorySizeBytes(){return this.memorySizeBytes}setMemorySizeBytes(e){this.memorySizeBytes=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getNodeUuid()&&null!==this.getNodeUuid()?{nodeUuid:this.getNodeUuid()}:{},...void 0!==this.getHaMemoryReservedBytes()&&null!==this.getHaMemoryReservedBytes()?{haMemoryReservedBytes:this.getHaMemoryReservedBytes()}:{},...void 0!==this.getNumCpuThreads()&&null!==this.getNumCpuThreads()?{numCpuThreads:this.getNumCpuThreads()}:{},...void 0!==this.getCapacityHz()&&null!==this.getCapacityHz()?{capacityHz:this.getCapacityHz()}:{},...void 0!==this.getMemorySizeBytes()&&null!==this.getMemorySizeBytes()?{memorySizeBytes:this.getMemorySizeBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){if("nodeUuid"===t){if(void 0===this.nodeUuid||null===this.nodeUuid)return new a("nodeUuid","undefined or null");if(!s.validatePattern(this.nodeUuid,/^[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 a("nodeUuid","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"haMemoryReservedBytes"!==t||void 0!==this.haMemoryReservedBytes&&null!==this.haMemoryReservedBytes?"numCpuThreads"!==t||void 0!==this.numCpuThreads&&null!==this.numCpuThreads?"capacityHz"!==t||void 0!==this.capacityHz&&null!==this.capacityHz?"memorySizeBytes"!==t||void 0!==this.memorySizeBytes&&null!==this.memorySizeBytes?"$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 a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("memorySizeBytes","undefined or null"):new a("capacityHz","undefined or null"):new a("numCpuThreads","undefined or null"):new a("haMemoryReservedBytes","undefined or null")}}O.prototype.nodeUuid=void 0,O.prototype.haMemoryReservedBytes=void 0,O.prototype.numCpuThreads=void 0,O.prototype.capacityHz=void 0,O.prototype.memorySizeBytes=void 0,O.prototype.$reserved=void 0,O.prototype.$objectType=void 0,O.prototype.$unknownFields=void 0;class j extends O{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.NodeProjection",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.NodeProjection"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new j,O.constructFromObject(e,t,!0),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){return new a(t,"no such property exists")}}class _{constructor(){this.$objectType="aiops.v4.clusterMetrics.Vm",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.Vm"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new _,e.hasOwnProperty("vmUuid")&&null!==e.vmUuid&&void 0!==e.vmUuid&&(t.setVmUuid(e.vmUuid),delete e.vmUuid),e.hasOwnProperty("vmMemory")&&null!==e.vmMemory&&void 0!==e.vmMemory&&(t.setVmMemory(e.vmMemory),delete e.vmMemory),e.hasOwnProperty("numVcpus")&&null!==e.numVcpus&&void 0!==e.numVcpus&&(t.setNumVcpus(e.numVcpus),delete e.numVcpus),e.hasOwnProperty("powerState")&&null!==e.powerState&&void 0!==e.powerState&&(t.setPowerState(e.powerState),delete e.powerState),e.hasOwnProperty("node")&&null!==e.node&&void 0!==e.node&&(t.setNode(e.node),delete e.node),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved,delete e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType,delete e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields,delete e.$unknownFields),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}getVmUuid(){return this.vmUuid}setVmUuid(e){this.vmUuid=e}getVmMemory(){return this.vmMemory}setVmMemory(e){this.vmMemory=e}getNumVcpus(){return this.numVcpus}setNumVcpus(e){this.numVcpus=e}getPowerState(){return this.powerState}setPowerState(e){this.powerState=e}getNode(){return this.node}setNode(e){this.node=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVmUuid()&&null!==this.getVmUuid()?{vmUuid:this.getVmUuid()}:{},...void 0!==this.getVmMemory()&&null!==this.getVmMemory()?{vmMemory:this.getVmMemory()}:{},...void 0!==this.getNumVcpus()&&null!==this.getNumVcpus()?{numVcpus:this.getNumVcpus()}:{},...void 0!==this.getPowerState()&&null!==this.getPowerState()?{powerState:this.getPowerState()}:{},...void 0!==this.getNode()&&null!==this.getNode()?{node:this.getNode()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){if("vmUuid"===t){if(void 0===this.vmUuid||null===this.vmUuid)return new a("vmUuid","undefined or null");if(!s.validatePattern(this.vmUuid,/^[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 a("vmUuid","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"vmMemory"!==t||void 0!==this.vmMemory&&null!==this.vmMemory?"numVcpus"!==t||void 0!==this.numVcpus&&null!==this.numVcpus?"powerState"!==t||void 0!==this.powerState&&null!==this.powerState?"node"!==t||void 0!==this.node&&null!==this.node?"$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 a(t,"no such property exists"):new a("$unknownFields","undefined or null"):new a("$objectType","undefined or null"):new a("$reserved","undefined or null"):new a("node","undefined or null"):new a("powerState","undefined or null"):new a("numVcpus","undefined or null"):new a("vmMemory","undefined or null")}}_.prototype.vmUuid=void 0,_.prototype.vmMemory=void 0,_.prototype.numVcpus=void 0,_.prototype.powerState=void 0,_.prototype.node=void 0,_.prototype.$reserved=void 0,_.prototype.$objectType=void 0,_.prototype.$unknownFields=void 0;class B extends _{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.VmProjection",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.VmProjection"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new B,_.constructFromObject(e,t,!0),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){return new a(t,"no such property exists")}}class A extends k{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.ClusterProjection",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.ClusterProjection"},this.$unknownFields={}}static constructFromObject(e,t,r=!1){if(e&&(t=t||new A,k.constructFromObject(e,t,!0),e.hasOwnProperty("vmProjection")&&null!==e.vmProjection&&void 0!==e.vmProjection&&(t.setVmProjection(B.constructFromObject(e.vmProjection)),delete e.vmProjection),e.hasOwnProperty("nodeProjection")&&null!==e.nodeProjection&&void 0!==e.nodeProjection&&(t.setNodeProjection(j.constructFromObject(e.nodeProjection)),delete e.nodeProjection),!r))for(const r in e)null!=e[r]&&(t.$unknownFields[r]=e[r]);return t}getVmProjection(){return this.vmProjection}setVmProjection(e){this.vmProjection=e}getNodeProjection(){return this.nodeProjection}setNodeProjection(e){this.nodeProjection=e}toJson(e){return!1===e?{...void 0!==this.getVmProjection()&&null!==this.getVmProjection()?{vmProjection:this.getVmProjection().toJson(!1)}:{},...void 0!==this.getNodeProjection()&&null!==this.getNodeProjection()?{nodeProjection:this.getNodeProjection().toJson(!1)}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{},...void 0!==this.getExternalIpAddress()&&null!==this.getExternalIpAddress()?{externalIpAddress:this.getExternalIpAddress()}:{},...void 0!==this.getMemoryCapacityBytes()&&null!==this.getMemoryCapacityBytes()?{memoryCapacityBytes:this.getMemoryCapacityBytes()}:{},...void 0!==this.getNumCpus()&&null!==this.getNumCpus()?{numCpus:this.getNumCpus()}:{},...void 0!==this.getHypervisorMemoryUsagePpm()&&null!==this.getHypervisorMemoryUsagePpm()?{hypervisorMemoryUsagePpm:this.getHypervisorMemoryUsagePpm()}:{},...void 0!==this.getHypervisorCpuUsagePpm()&&null!==this.getHypervisorCpuUsagePpm()?{hypervisorCpuUsagePpm:this.getHypervisorCpuUsagePpm()}:{},...void 0!==this.getRf()&&null!==this.getRf()?{rf:this.getRf()}:{},...void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{},...void 0!==this.getFreeBytes()&&null!==this.getFreeBytes()?{freeBytes:this.getFreeBytes()}:{},...void 0!==this.getUsageBytes()&&null!==this.getUsageBytes()?{usageBytes:this.getUsageBytes()}:{},...void 0!==this.getSavedBytes()&&null!==this.getSavedBytes()?{savedBytes:this.getSavedBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}:{...void 0!==this.getVmProjection()&&null!==this.getVmProjection()?{vmProjection:this.getVmProjection().toJson()}:{},...void 0!==this.getNodeProjection()&&null!==this.getNodeProjection()?{nodeProjection:this.getNodeProjection().toJson()}:{},...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{},...void 0!==this.getExternalIpAddress()&&null!==this.getExternalIpAddress()?{externalIpAddress:this.getExternalIpAddress()}:{},...void 0!==this.getMemoryCapacityBytes()&&null!==this.getMemoryCapacityBytes()?{memoryCapacityBytes:this.getMemoryCapacityBytes()}:{},...void 0!==this.getNumCpus()&&null!==this.getNumCpus()?{numCpus:this.getNumCpus()}:{},...void 0!==this.getHypervisorMemoryUsagePpm()&&null!==this.getHypervisorMemoryUsagePpm()?{hypervisorMemoryUsagePpm:this.getHypervisorMemoryUsagePpm()}:{},...void 0!==this.getHypervisorCpuUsagePpm()&&null!==this.getHypervisorCpuUsagePpm()?{hypervisorCpuUsagePpm:this.getHypervisorCpuUsagePpm()}:{},...void 0!==this.getRf()&&null!==this.getRf()?{rf:this.getRf()}:{},...void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{},...void 0!==this.getFreeBytes()&&null!==this.getFreeBytes()?{freeBytes:this.getFreeBytes()}:{},...void 0!==this.getUsageBytes()&&null!==this.getUsageBytes()?{usageBytes:this.getUsageBytes()}:{},...void 0!==this.getSavedBytes()&&null!==this.getSavedBytes()?{savedBytes:this.getSavedBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()}}validate(e,t){let r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof o?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];let n=[],i=null;return r.forEach(t=>{i=this.validateProperty(t,e),i&&n.push(i)}),new Promise((function(e,t){0!==n.length?t(i):e()}))}validateProperty(e,t){return"vmProjection"!==t||void 0!==this.vmProjection&&null!==this.vmProjection?"nodeProjection"!==t||void 0!==this.nodeProjection&&null!==this.nodeProjection?new a(t,"no such property exists"):new a("nodeProjection","undefined or null"):new a("vmProjection","undefined or null")}}A.prototype.vmProjection=void 0,A.prototype.nodeProjection=void 0;t.default={ApiClient:n.a,ClusterApi:M,Cluster:k,ClusterApiResponse:S,ClusterListApiResponse:P,ClusterMetrics:c,ClusterProjection:A,Node:O,NodeProjection:j,Vm:_,VmProjection:B,AppMessage:y,ErrorResponse:m,SchemaValidationError:v,SchemaValidationErrorMessage:g,Flag:w,IPv4Address:l,KVPair:b,Message:$,MessageSeverity:f,TenantAwareModel:h,ApiLink:u,ApiResponseMetadata:C,ExternalizableAbstractModel:d}},function(e,t,r){"use strict";var n,i=new Uint8Array(16);function o(){if(!n&&!(n="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 n(i)}var s=/^(?:[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 a=function(e){return"string"==typeof e&&s.test(e)},l=[],u=0;u<256;++u)l.push((u+256).toString(16).substr(1));var h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!a(r))throw TypeError("Stringified UUID is invalid");return r};t.a=function(e,t,r){var n=(e=e||{}).random||(e.rng||o)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var i=0;i<16;++i)t[r+i]=n[i];return t}return h(n)}}]).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.Aiops=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 o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},340:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=s,s.default=s,s.stable=f,s.stableStringify=f;var n="[...]",r="[Circular]",o=[],i=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,n,r){var s;void 0===r&&(r=a()),l(e,"",0,[],void 0,0,r);try{s=0===i.length?JSON.stringify(e,t,n):JSON.stringify(e,y(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var u=o.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return s}function u(e,t,n,r){var a=Object.getOwnPropertyDescriptor(r,n);void 0!==a.get?a.configurable?(Object.defineProperty(r,n,{value:e}),o.push([r,n,t,a])):i.push([t,n,e]):(r[n]=e,o.push([r,n,t]))}function l(e,o,i,a,s,c,f){var p;if(c+=1,"object"===t(e)&&null!==e){for(p=0;p<a.length;p++)if(a[p]===e)return void u(r,e,o,s);if(void 0!==f.depthLimit&&c>f.depthLimit)return void u(n,e,o,s);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void u(n,e,o,s);if(a.push(e),Array.isArray(e))for(p=0;p<e.length;p++)l(e[p],p,p,a,e,c,f);else{var y=Object.keys(e);for(p=0;p<y.length;p++){var d=y[p];l(e[d],d,p,a,e,c,f)}}a.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function f(e,t,n,r){void 0===r&&(r=a());var s,u=p(e,"",0,[],void 0,0,r)||e;try{s=0===i.length?JSON.stringify(u,t,n):JSON.stringify(u,y(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var l=o.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return s}function p(e,i,a,s,l,f,y){var d;if(f+=1,"object"===t(e)&&null!==e){for(d=0;d<s.length;d++)if(s[d]===e)return void u(r,e,i,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==y.depthLimit&&f>y.depthLimit)return void u(n,e,i,l);if(void 0!==y.edgesLimit&&a+1>y.edgesLimit)return void u(n,e,i,l);if(s.push(e),Array.isArray(e))for(d=0;d<e.length;d++)p(e[d],d,d,s,e,f,y);else{var v={},h=Object.keys(e).sort(c);for(d=0;d<h.length;d++){var b=h[d];p(e[b],b,d,s,e,f,y),v[b]=e[b]}if(void 0===l)return v;o.push([l,i,e]),l[i]=v}s.pop()}}function y(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var o=i[r];if(o[1]===t&&o[0]===n){n=o[2],i.splice(r,1);break}}return e.call(this,t,n)}}},784:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="win32"===process.platform,i=n(818);function a(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(o))}return n}function s(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,c={};function f(e){var t=u.exec(e),n=(t[1]||"")+(t[2]||""),r=t[3]||"",o=l.exec(r);return[n,o[1],o[2],o[3]]}function p(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function y(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}c.resolve=function(){for(var e="",t="",n=!1,r=arguments.length-1;r>=-1;r--){var o;if(r>=0?o=arguments[r]:e?(o=process.env["="+e])&&o.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(o=e+"\\"):o=process.cwd(),!i.isString(o))throw new TypeError("Arguments to path.resolve must be strings");if(o){var s=p(o),u=s.device,l=s.isUnc,c=s.isAbsolute,f=s.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=f+"\\"+t,n=c),e&&n))break}}return l&&(e=y(e)),e+(n?"\\":"")+(t=a(t.split(/[\\\/]+/),!n).join("\\"))||"."},c.normalize=function(e){var t=p(e),n=t.device,r=t.isUnc,o=t.isAbsolute,i=t.tail,s=/[\\\/]$/.test(i);return(i=a(i.split(/[\\\/]+/),!o).join("\\"))||o||(i="."),i&&s&&(i+="\\"),r&&(n=y(n)),n+(o?"\\":"")+i},c.isAbsolute=function(e){return p(e).isAbsolute},c.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var r=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(r=r.replace(/^[\\\/]{2,}/,"\\")),c.normalize(r)},c.relative=function(e,t){e=c.resolve(e),t=c.resolve(t);for(var n=e.toLowerCase(),r=t.toLowerCase(),o=s(t.split("\\")),i=s(n.split("\\")),a=s(r.split("\\")),u=Math.min(i.length,a.length),l=u,f=0;f<u;f++)if(i[f]!==a[f]){l=f;break}if(0==l)return t;var p=[];for(f=l;f<i.length;f++)p.push("..");return(p=p.concat(o.slice(l))).join("\\")},c._makeLong=function(e){if(!i.isString(e))return e;if(!e)return"";var t=c.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},c.dirname=function(e){var t=f(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},c.basename=function(e,t){var n=f(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return f(e)[3]},c.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));var n=e.dir,o=e.base||"";return n?n[n.length-1]===c.sep?n+o:n+c.sep+o:o},c.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=f(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},c.sep="\\",c.delimiter=";";var d=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,v={};function h(e){return d.exec(e).slice(1)}v.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:process.cwd();if(!i.isString(r))throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r[0])}return(t?"/":"")+(e=a(e.split("/"),!t).join("/"))||"."},v.normalize=function(e){var t=v.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=a(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},v.isAbsolute=function(e){return"/"===e.charAt(0)},v.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!i.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return v.normalize(e)},v.relative=function(e,t){e=v.resolve(e).substr(1),t=v.resolve(t).substr(1);for(var n=s(e.split("/")),r=s(t.split("/")),o=Math.min(n.length,r.length),i=o,a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}var u=[];for(a=i;a<n.length;a++)u.push("..");return(u=u.concat(r.slice(i))).join("/")},v._makeLong=function(e){return e},v.dirname=function(e){var t=h(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},v.basename=function(e,t){var n=h(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},v.extname=function(e){return h(e)[3]},v.format=function(e){if(!i.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+r(e));var t=e.root||"";if(!i.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+r(e.root));return(e.dir?e.dir+v.sep:"")+(e.base||"")},v.parse=function(e){if(!i.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+r(e));var t=h(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)}},v.sep="/",v.delimiter=":",e.exports=o?c:v,e.exports.posix=v,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 o=t.status;if(o>=500)return!0;if((o>=400||o<200)&&-1===n.indexOf(o))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout((function(){return r._retry()}),n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function n(e,t,n,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var o=t.length,i=e-o;if(0!==i){if(i<0)throw new Error("Cannot have more delays than retries");for(var a=t[o-1],s=0;s<i+1;s++)t.push(a)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=r,this}e.exports=function(e){var r=e.Request;return r.prototype.oldRetry=r.prototype.retry,r.prototype.retry=n,r.prototype.callback=t,e}},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},585:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(960),a=n(340),s=n(695),u=n(388),l=n(19),c=n(619);function f(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var p=t=e.exports;t.Request=g,p.getXHR=function(){if(o.XMLHttpRequest&&(!o.location||"file:"!==o.location.protocol||!o.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var y="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function d(e){if(!u(e))return e;var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&v(t,n,e[n]);return t.join("&")}function v(e,t,n){if(void 0!==n)if(null!==n)if(Array.isArray(n))n.forEach((function(n){v(e,t,n)}));else if(u(n))for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&v(e,"".concat(t,"[").concat(r,"]"),n[r]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function h(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i<a;++i)-1===(n=(t=o[i]).indexOf("="))?r[decodeURIComponent(t)]="":r[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return r}function b(e){return/[/+]json($|[^-\w])/.test(e)}function m(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,r,o,i=e.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)-1!==(t=(n=i[s]).indexOf(":"))&&(r=n.slice(0,t).toLowerCase(),o=y(n.slice(t+1)),a[r]=o);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&e._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function g(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",(function(){var e,t=null,r=null;try{r=new m(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",r);try{n._isResponseOK(r)||(e=new Error(r.statusText||r.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=r,e.status=r.status,n.callback(e,r)):n.callback(null,r)}))}function w(e,t,n){var r=p("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}p.serializeObject=d,p.parseString=h,p.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},p.serialize={"application/x-www-form-urlencoded":d,"application/json":a},p.parse={"application/x-www-form-urlencoded":h,"application/json":JSON.parse},l(m.prototype),m.prototype._parseBody=function(e){var t=p.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=p.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},p.Response=m,i(g.prototype),s(g.prototype),g.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},g.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},g.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,(function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")}))},g.prototype.query=function(e){return"string"!=typeof e&&(e=d(e)),e&&this._query.push(e),this},g.prototype.attach=function(e,t,n){if(t){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(e,t,n||t.name)}return this},g.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},g.prototype.callback=function(e,t){if(this._shouldRetry(e,t))return this._retry();var n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)},g.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.ca=g.prototype.agent,g.prototype.buffer=g.prototype.ca,g.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},g.prototype.pipe=g.prototype.write,g.prototype._isHost=function(e){return e&&"object"===r(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},g.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||f,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},g.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=p.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||p.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=p.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&t.setRequestHeader(a,this.header[a]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},p.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new p.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}})),c.prototype.del=c.prototype.delete,p.get=function(e,t,n){var r=p("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.head=function(e,t,n){var r=p("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},p.options=function(e,t,n){var r=p("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.del=w,p.delete=w,p.patch=function(e,t,n){var r=p("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.post=function(e,t,n){var r=p("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},p.put=function(e,t,n){var r=p("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},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 o=n(388);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var a=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&a.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(e,t){r.on("abort",(function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}})),r.end((function(n,r){n?t(n):e(r)}))}))}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},19:(e,t,n)=>{"use strict";var r=n(897);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},897:(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce((function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e}),{})},t.parseLinks=function(e){return e.split(/ *, */).reduce((function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e}),{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},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 o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),u=r[n];n<i;u=r[++n])v(u)||!w(u)?a+=" "+u:a+=" "+s(u);return a},t.deprecate=function(e,r){if(m(n.g.process))return function(){return t.deprecate(e,r).apply(this,arguments)};if(!0===process.noDeprecation)return e;var o=!1;return function(){if(!o){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),o=!0}return e.apply(this,arguments)}};var i,a={};function s(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(n)?r.showHidden=n:n&&t._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),c(r,e,r.depth)}function u(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,r){if(e.customInspect&&n&&$(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return b(o)||(o=c(e,o,r)),o}var i=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return h(t)?e.stylize(""+t,"number"):d(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),j(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if($(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(g(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(j(n))return f(n)}var l,w="",k=!1,P=["{","}"];return y(n)&&(k=!0,P=["[","]"]),$(n)&&(w=" [Function"+(n.name?": "+n.name:"")+"]"),g(n)&&(w=" "+RegExp.prototype.toString.call(n)),O(n)&&(w=" "+Date.prototype.toUTCString.call(n)),j(n)&&(w=" "+f(n)),0!==a.length||k&&0!=n.length?r<0?g(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=k?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)S(t,String(a))?i.push(p(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(p(e,t,n,r,o,!0))})),i}(e,n,r,s,a):a.map((function(t){return p(e,n,r,s,t,k)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,w,P)):P[0]+w+P[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,o,i){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),S(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(n)?c(e,u.value,null):c(e,u.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),m(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function y(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function v(e){return null===e}function h(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 P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(i)&&(i=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(i)){var n=process.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=y,t.isBoolean=d,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=h,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 T=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[P((e=new Date).getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":"),[e.getDate(),T[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 o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";n.d(r,{default:()=>$g});var e=n(585),t=n.n(e);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var u,l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return t=e,n=[{key:"getFirstPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}},{key:"getPrevPage",value:function(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}},{key:"getNextPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}},{key:"getLastPage",value:function(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}},{key:"currentPage",value:function(){return null===this.page?0:this.page}},{key:"countPages",value:function(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}},{key:"isFirstPage",value:function(){return 0===this.currentPage()}},{key:"isLastPage",value:function(){return this.currentPage()===this.countPages()-1}},{key:"populatePaginationMetadata",value:function(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=lt.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}],r=[{key:"constructFromObject",value:function(t,n){if(t){if(n=n||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}(t.links);try{for(o.s();!(r=o.n()).done;){var a=r.value;if(a.hasOwnProperty("rel")&&a.hasOwnProperty("href"))switch(a.rel){case"first":n.linkFirst=a.href;break;case"prev":n.linkPrev=a.href;break;case"next":n.linkNext=a.href;break;case"last":n.linkLast=a.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(n.resultsTotal=t.totalAvailableResults)}return n}}],n&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();l.prototype.linkFirst=null,l.prototype.linkPrev=null,l.prototype.linkNext=null,l.prototype.linkLast=null,l.prototype.apiClient=null,l.prototype.page=null,l.prototype.resultsPerPage=null,l.prototype.resultsTotal=null;var c=new Uint8Array(16);function f(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(c)}const p=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var y=[],d=0;d<256;++d)y.push((d+256).toString(16).substr(1));const v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(y[e[t+0]]+y[e[t+1]]+y[e[t+2]]+y[e[t+3]]+"-"+y[e[t+4]]+y[e[t+5]]+"-"+y[e[t+6]]+y[e[t+7]]+"-"+y[e[t+8]]+y[e[t+9]]+"-"+y[e[t+10]]+y[e[t+11]]+y[e[t+12]]+y[e[t+13]]+y[e[t+14]]+y[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&p.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},h=function(e,t,n){var r=(e=e||{}).random||(e.rng||f)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return v(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($),P=n(548),T={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return T[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e){if(e===T.DEFAULT)return;throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(T);const S=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 E(e,t){for(var n=0;n<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"!=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 F=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&&E(e.prototype,null),t&&E(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();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)}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,I(r.key),r)}}function I(e){var t=function(e){if("object"!=R(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==R(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()}}}])&&A(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function x(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?x(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return(t=B(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,B(r.key),r)}}function B(e){var t=function(e){if("object"!=M(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==M(t)?t:t+""}var L=new WeakSet,J=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,L),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 N(N(N({},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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!F.validateMaxLength(this.name,128))return new U("name","does not satisfy required maxLength constraint: 128");if(!F.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 o in n.$unknownFields=N({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&V(t.prototype,n),r&&V(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 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 H(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){q(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 q(e,t,n){return(t=X(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X(r.key),r)}}function X(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+""}function Y(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}J.prototype.name=void 0,J.prototype.value=!1,J.prototype.$reserved=void 0,J.prototype.$objectType=void 0,J.prototype.$unknownFields=void 0;var Z=new WeakSet,Q=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Z),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMap",value:function(){return this.map}},{key:"setMap",value:function(e){this.map=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return H(H({},!1===e?void 0!==this.getMap()&&null!==this.getMap()?{map:Y(Z,this,ee).call(this,this.getMap(),!1)}:{}:void 0!==this.getMap()&&null!==this.getMap()?{map:Y(Z,this,ee).call(this,this.getMap())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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 o in n.$unknownFields=H({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&K(t.prototype,n),r&&K(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ee(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return 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.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===W(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ie(e,t,n){return(t=se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,se(r.key),r)}}function se(e){var t=function(e){if("object"!=ne(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ne(t)?t:t+""}function ue(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Q.prototype.map=void 0,Q.prototype.$reserved=void 0,Q.prototype.$objectType=void 0,Q.prototype.$unknownFields=void 0;var le=new WeakSet,ce=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,le),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return oe(oe(oe({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):ue(le,this,fe).call(this,this.getValue(),!1)}:{}:void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map((function(e){return void 0!==e.toJson?e.toJson():e})):ue(le,this,fe).call(this,this.getValue())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!F.validateMaxLength(this.name,128))return new U("name","does not satisfy required maxLength constraint: 128");if(!F.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,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&s.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if(Array.isArray(t.value))if(0===t.value.length)s.setValue([]);else{for(i=[],a=(n=t.value)[0].hasOwnProperty("$objectType")?n[0].$objectType:ne(n[0]),o=0;o<n.length;o++)switch(a){case"string":case"integer":case"number":i.push(n[o]);break;case"common.v1.config.MapOfStringWrapper":r=Q.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setValue(i)}else switch(a=t.value.hasOwnProperty("$objectType")?t.value.$objectType:ne(t.value)){case"string":case"boolean":case"number":s.setValue(t.value);break;case"object":s.setValue(new Map(Object.entries(t.value)));break;default:throw"Unknown datatype "+a+" in data"}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!u)for(var l in s.$unknownFields=oe({},t.$unknownFields),t)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=t[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ae(t.prototype,n),r&&ae(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fe(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===ne(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}ce.prototype.name=void 0,ce.prototype.value=void 0,ce.prototype.$reserved=void 0,ce.prototype.$objectType=void 0,ce.prototype.$unknownFields=void 0;var pe={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(pe).find((function(t){return pe[t]===e}));return null==t?pe.$UNKNOWN:pe[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case pe.$UNKNOWN:case pe.$REDACTED:case pe.INFO:case pe.WARNING:case pe.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(pe);const ye=pe;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 ve(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 he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(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"!=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+""}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 he(he(he(he(he({},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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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(ye.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=he({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&me(t.prototype,n),r&&me(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function $e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){Pe(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 Pe(e,t,n){return(t=Se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Se(r.key),r)}}function Se(e){var t=function(e){if("object"!=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 Ce=new WeakSet,Ee=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,Ce),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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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 o in n.$unknownFields=ke({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Te(t.prototype,n),r&&Te(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 Fe(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 Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ae(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 Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,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+""}Ee.prototype.href=void 0,Ee.prototype.rel=void 0,Ee.prototype.$reserved=void 0,Ee.prototype.$objectType=void 0,Ee.prototype.$unknownFields=void 0;var Me,xe=new WeakSet,Ne=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,xe),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 Re(Re(Re(Re(Re(Re({},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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new U("flags","undefined or null");if(!F.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(!F.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(!F.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(!F.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,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(i=[],n=t.flags,o=0;o<n.length;o++)r=J.constructFromObject(n[o],void 0),i.push(r);a.setFlags(i)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(i=[],n=t.links,o=0;o<n.length;o++)r=Ee.constructFromObject(n[o],void 0),i.push(r);a.setLinks(i)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&a.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(i=[],n=t.messages,o=0;o<n.length;o++)r=Oe.constructFromObject(n[o],void 0),i.push(r);a.setMessages(i)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(i=[],n=t.extraInfo,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);a.setExtraInfo(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Re({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ie(t.prototype,n),r&&Ie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function _e(){_e=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,o){var i=RegExp(e,r);return t.set(i,o||t.get(e)),Ve(i,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){var o=r[n];if("number"==typeof o)t[n]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;t[n]=e[o[i]]}return t}),Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 o=n.indices;o&&(o.groups=r(o,this))}return n},n.prototype[Symbol.replace]=function(n,o){if("string"==typeof o){var i=t.get(this);return e[Symbol.replace].call(this,n,o.replace(/\$<([^>]+)>/g,(function(e,t){var n=i[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=We(e[e.length-1])&&(e=[].slice.call(e)).push(r(e,a)),o.apply(this,e)}))}return e[Symbol.replace].call(this,n,o)},_e.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 Be(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?Be(Object(n),!0).forEach((function(t){Je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t,n){return(t=qe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(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,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function 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 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,qe(r.key),r)}}function qe(e){var t=function(e){if("object"!=We(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==We(t)?t:t+""}function Ke(e,t,n){Xe(e,t),t.set(e,n)}function Xe(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Ye(e,t){return e.get(Qe(e,t))}function Ze(e,t,n){return e.set(Qe(e,t),n),n}function Qe(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ne.prototype.flags=void 0,Ne.prototype.links=void 0,Ne.prototype.totalAvailableResults=void 0,Ne.prototype.messages=void 0,Ne.prototype.extraInfo=void 0,Ne.prototype.$reserved=void 0,Ne.prototype.$objectType=void 0,Ne.prototype.$unknownFields=void 0,m()(t());var et=new WeakMap,tt=new WeakMap,nt=new WeakMap,rt=new WeakMap,ot=new WeakMap,it=new WeakMap,at=new WeakMap,st=new WeakMap,ut=new WeakSet,lt=function(){function e(){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Xe(this,n=ut),n.add(this),Ke(this,et,void 0),Ke(this,tt,void 0),Ke(this,nt,void 0),Ke(this,rt,void 0),Ke(this,ot,void 0),Ke(this,it,void 0),Ke(this,at,void 0),Ke(this,st,void 0),Ze(st,this,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},Ze(ot,this,3e4),Ze(it,this,3e4),Ze(at,this,108e5),this.readTimeout=Ye(it,this),this.connectTimeout=Ye(ot,this),this.cache=!0,Ze(tt,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,Ze(nt,this,null),this.username=null,this.password=null,Ze(rt,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,o=[{key:"verifySsl",get:function(){return Ye(rt,this)},set:function(e){this.requestAgent=e?null:new(w().Agent)({rejectUnauthorized:!1}),Ze(rt,this,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=j().createWriteStream(e,{flags:"a"})),Ze(nt,this,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&Ze(tt,this,null),this.defaultHeaders[e]=t}},{key:"paramToString",value:function(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}},{key:"buildUrl",value:function(e,t){var n=this;e.match(/^\//)||(e="/"+e),Ze(et,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);var r="";""!==Ye(et,this)&&""!==this.host&&""!==this.port?r=Ye(et,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(r=self.origin);var o=r+e;return o.replace(/\{([\w-]+)\}/g,(function(e,r){var o;return o=t.hasOwnProperty(r)?n.paramToString(t[r]):e,encodeURIComponent(o)}))}},{key:"buildCollectionParam",value:function(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}},{key:"setApiKey",value:function(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}},{key:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var n=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var r,o=ze(t.getData());try{for(o.s();!(r=o.n()).done;){var i=r.value;i.hasOwnProperty("$reserved")&&void 0!==i.get$Reserved()&&(i.get$Reserved().ETag=n)}}catch(e){o.e(e)}finally{o.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=n)}return t}},{key:"callApi",value:function(e,r,o,i,a,s,u,l,c,f,p){var y=this,d=this.buildUrl(e,o),v=t()(r,d);if(v.oldCallback=v.callback,v.callback=function(e,t){if(t&&t.status){var n=t.status;if(n>=400&&401!==n&&408!==n&&429!==n&&503!==n&&504!==n&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1),429===n){var r=t.headers["retry-after"];if(r){var o=1e3*parseInt(r,10);this._retryDelays[this._retries]=o}}}this.oldCallback(e,t)},Qe(ut,this,dt).call(this,v,l),"GET"===r.toUpperCase()&&!1===this.cache&&(i._=(new Date).getTime()),v.query(Qe(ut,this,yt).call(this,i)),v.set(this.defaultHeaders).set(Qe(ut,this,yt).call(this,a)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==a["NTNX-Request-Id"]&&void 0!==a["NTNX-Request-Id"])){var b=h();v.set(Qe(ut,this,yt).call(this,{"NTNX-Request-Id":b}))}var m="undefined"!=typeof window&&void 0!==window.document;m||(this.downloadDestination=".",v.set(Qe(ut,this,yt).call(this,{"User-Agent":"Nutanix-aiops-js-client/4.0.1"}))),this.requestAgent&&v.agent(this.requestAgent);var g={};g.response=Qe(ut,this,mt).call(this,this.connectTimeout,Ye(ot,this)),g.deadline=Qe(ut,this,mt).call(this,this.readTimeout,Ye(it,this)),v.timeout(g);var w=a.hasOwnProperty("Content-Type")?a["Content-Type"]:Qe(ut,this,ft).call(this,c);if(w?"multipart/form-data"!=w&&v.type(w):v.header["Content-Type"]||v.type("application/json"),Qe(ut,this,Ot).call(this,Ye(st,this).INFO,null,"Request URL :",r,d),Qe(ut,this,Ot).call(this,Ye(st,this).DEBUG,Qe(ut,this,kt),"Request Headers :",void 0===v.header?"":v.header),"application/x-www-form-urlencoded"===w)v.send(Qe(ut,this,yt).call(this,s));else if("multipart/form-data"==w){var O=Qe(ut,this,yt).call(this,s);for(var $ in O)O.hasOwnProperty($)&&(Qe(ut,this,pt).call(this,O[$])?v.attach($,O[$]):v.field($,O[$]))}else{if("application/octet-stream"===w&&null!=u&&"function"==typeof u.pipe){if(Qe(ut,this,Ot).call(this,Ye(st,this).INFO,null,"Piping octet-stream request"),"function"==typeof u.pipe)u.pipe(v);else{var k;try{k=n(965)}catch(e){Qe(ut,this,Ot).call(this,Ye(st,this).ERROR,null,"Error fetching steam/web")}u instanceof k.ReadableStream?u.pipeTo(new k.WritableStream({write:function(e){v.write(e)},close:function(){Qe(ut,this,Ot).call(this,Ye(st,this).INFO,null,"READABLE STREAM CLOSED")},abort:function(e){Qe(ut,this,Ot).call(this,Ye(st,this).ERROR,null,"READABLE STREAM ABORTED")}})):v.send(u)}return new Promise((function(t,n){v.on("error",(function(e){Qe(ut,y,Ot).call(y,Ye(st,y).DEBUG,null,"Caught the following error :",e),n(e)})).on("response",(function(r){Qe(ut,y,Pt).call(y,r,e,i,p,t,n)}))}))}u&&v.send(u)}"Blob"==typeof p?v.responseType("blob"):"String"===p&&v.responseType("string"),Qe(ut,this,wt).call(this,v),Qe(ut,this,Ot).call(this,Ye(st,this).DEBUG,null,"Request Body :",void 0===v._data?"":v._data);var P=a.hasOwnProperty("Accept")&&null!=a.Accept?a.Accept:f.join(", "),T=["application/octet-stream","application/pdf","application/zip"];return P&&v.accept(P),new Promise((function(o,a){v.buffer(!1).redirects(0).retry(y.maxRetryAttempts,y.retryInterval,[]).on("error",(function(e){Qe(ut,y,Ot).call(y,Ye(st,y).DEBUG,null,"Caught the following error :",e)})).end((function(s,u){if(s)Qe(ut,y,Ot).call(y,Ye(st,y).DEBUG,null,"Caught error during the request!"),Qe(ut,y,Ot).call(y,Ye(st,y).ERROR,null,s),null!==s.response&&void 0!==s.response?s.data=Qe(ut,y,ht).call(y,s.response,p):s.data=Qe(ut,y,vt).call(y,s),a(s);else{Qe(ut,y,Ot).call(y,Ye(st,y).INFO,null,"Response Status :",u.status),Qe(ut,y,Ot).call(y,Ye(st,y).DEBUG,Qe(ut,y,kt),"Response Headers :",u.headers);var l="";if(u.headers.hasOwnProperty("content-type")&&(l=u.headers["content-type"]),T.some((function(e){return l.includes(e)})))if(m){var c;try{c=n(965)}catch(e){Qe(ut,y,Ot).call(y,Ye(st,y).ERROR,null,"Error fetching steam/web")}if(y.downloadDestination instanceof c.WritableStream){var f=y.downloadDestination.getWriter();try{u.on("data",(function(e){f.write(e)}))}catch(e){Qe(ut,y,Ot).call(y,Ye(st,y).ERROR,null,"Issue while downloading file",e)}u.on("end",(function(){Qe(ut,y,Ot).call(y,Ye(st,y).INFO,null,"Finished streaming response"),f.close();var e=Qe(ut,y,ht).call(y,u,p);o({data:e,response:u})})).on("error",(function(e){Qe(ut,y,Ot).call(y,Ye(st,y).ERROR,null,"Caught the following error :",e),e.data=Qe(ut,y,vt).call(y,e),a(e)}))}else{var d="Incompatible downloadDestination for Browser Environment, must be WritableStream";Qe(ut,y,Ot).call(y,Ye(st,y).ERROR,null,d),a(d)}}else{var h=y.downloadDestination+"/downloaded_file_"+Date.now()+".txt",b=j().createWriteStream(h);Qe(ut,y,Tt).call(y,u,b,h,o,a,p)}else if(302==u.status){var g=y.downloadDestination+"/downloaded_file_"+Date.now()+".txt",w=y;Qe(ut,y,Ot).call(y,Ye(st,y).INFO,null,"Redirecting to :",u.headers.location);var O=t()(r,u.headers.location);O.set(v.header),u.headers.hasOwnProperty("x-redirect-token")&&(Qe(ut,y,Ot).call(y,Ye(st,y).INFO,null,"Writing X-Redirect-Token into Cookie"),O.set("Cookie",u.headers["x-redirect-token"])),O.redirects(0),O.buffer(!1);var $=j().createWriteStream(g);O.pipe($),O.on("response",(function(e){Qe(ut,w,Ot).call(w,Ye(st,w).INFO,null,"Received response after redirection :",e.status),Qe(ut,w,Tt).call(w,e,$,g,o,a,p)}))}else Qe(ut,y,Pt).call(y,u,e,i,p,o,a)}}))}))}}],i=[{key:"getEtag",value:function(e){var t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}},{key:"getValueForCaseInsensitiveKeyMatch",value:function(e,t){if(e&&t){var n=t.toLowerCase(),r=Object.keys(e).find((function(e){return e.toLowerCase()===n}));return r?e[r]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,n,r){var o=null;if(void 0!==t&&t.hasOwnProperty(n)&&(o=t[n]),null===o&&("string"==typeof e||e instanceof String)){var i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=e.match(new RegExp("".concat(i,"=([0-9]+)")));a&&(o=a[1])}return null===o&&(o=r),o}},{key:"convertToType",value:function(t,n){if(null==t)return t;switch(n){case"Boolean":return Boolean(t);case"Integer":return parseInt(t,10);case"Number":return parseFloat(t);case"String":return String(t);case"Date":return e.parseDate(String(t));case"Blob":return t;default:if(n===Object)return t;if("function"==typeof n)return n.constructFromObject(t);if(Array.isArray(n)){var r=n[0];return t.map((function(t){return e.convertToType(t,r)}))}if("object"===We(n)){var o,i;for(var a in n)if(n.hasOwnProperty(a)){o=a,i=n[a];break}var s={};for(var a in t)if(t.hasOwnProperty(a)){var u=e.convertToType(a,o),l=e.convertToType(t[a],i);s[u]=l}return s}return t}}},{key:"constructFromObject",value:function(t,n,r){if(Array.isArray(t))for(var o=0;o<t.length;o++)t.hasOwnProperty(o)&&(n[o]=e.convertToType(t[o],r));else for(var i in t)t.hasOwnProperty(i)&&(n[i]=e.convertToType(t[i],r))}}],o&&He(r.prototype,o),i&&He(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}();function ct(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ft(e){for(var t=0;t<e.length;t++)if(Qe(ut,this,ct).call(this,e[t]))return e[t];return e[0]}function pt(e){var t;try{t=n(799)}catch(e){}return!!(t&&t.ReadStream&&e instanceof t.ReadStream)||"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof P.Blob&&e instanceof P.Blob||"function"==typeof File&&e instanceof File}function yt(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var r=e[n];Qe(ut,this,pt).call(this,r)||Array.isArray(r)?t[n]=r:t[n]=this.paramToString(r)}return t}function dt(e,t){var n=this;t.forEach((function(t){var r=n.authentications[t];switch(r.type){case"basic":r.username||r.password?e.auth(r.username||"",r.password||""):(n.username||n.password)&&e.auth(n.username||"",n.password||""),Qe(ut,n,Ot).call(n,Ye(st,n).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(r.apiKey){var o={};r.apiKeyPrefix?o[r.name]=r.apiKeyPrefix+" "+r.apiKey:o[r.name]=r.apiKey,"header"===r.in?e.set(o):e.query(o)}Qe(ut,n,Ot).call(n,Ye(st,n).DEBUG,null,"apiKey applied to request");break;case"oauth2":r.accessToken&&e.set({Authorization:"Bearer "+r.accessToken}),Qe(ut,n,Ot).call(n,Ye(st,n).DEBUG,null,"oauth2 applied to request");break;default:throw Qe(ut,n,Ot).call(n,Ye(st,n).ERROR,null,"Unknown authentication type:",r.type),new Error("Unknown authentication type: "+r.type)}}))}function vt(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function ht(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(i=new t).data=new P.Blob([e.text],{type:e.headers["content-type"]});var n=new J;n.name="hasError",n.value=!1;var r=[n],o=new Ne;return o.flags=r,i.metadata=o,i}var i;return(null==(i=e.body)||"object"===We(i)&&void 0===i.length&&!Object.keys(i).length)&&(i=e.text),Me.convertToType(i,t)}function bt(e,t,n){if(e instanceof l){var r=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),o=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,r,o)}}function mt(e,t){return e<=0?e=t:e>Ye(at,this)&&(e=Ye(at,this)),e}function gt(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",n=e.headers["set-cookie"];if(n.length>0){var r,o=ze(n);try{for(o.s();!(r=o.n()).done;){var i=r.value;(i=i.split(";")[0]).includes("=")&&(i.trim(),t=t.concat(i).concat(";"))}}catch(e){o.e(e)}finally{o.f()}""!==t&&(t=t.substr(0,t.length-1))}Ze(tt,this,t),Qe(ut,this,Ot).call(this,Ye(st,this).DEBUG,null,"Retained cookie :",t)}else Ze(tt,this,null)}function wt(e){null!=Ye(tt,this)&&e.set(Qe(ut,this,yt).call(this,{Cookie:Ye(tt,this)}))}function Ot(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if("object"===We(e)&&"key"in e&&"value"in e&&"symbol"===We(e.value)||(e=Ye(st,this).INFO),!Qe(ut,this,jt).call(this,e)){r=r.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}));var i=r.join(" ");i=Qe(ut,this,$t).call(this)+" "+e.key+" - "+i,void 0!==Ye(nt,this)&&null!==Ye(nt,this)&&"function"==typeof Ye(nt,this).log?Ye(nt,this).log(i):console.log(i)}}function jt(e){return!this.debug&&e===Ye(st,this).DEBUG}function $t(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function kt(e){if("object"!==We(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(n){t+=n+"=["+e[n]+"]\n"})),"\n"===t?e:t}function Pt(e,t,n,r,o,i){try{var a=Qe(ut,this,ht).call(this,e,r);Qe(ut,this,Ot).call(this,Ye(st,this).INFO,null,"Response Status :",e.status),Qe(ut,this,Ot).call(this,Ye(st,this).DEBUG,Qe(ut,this,kt),"Response Headers :",e.headers),Qe(ut,this,gt).call(this,e||{}),Qe(ut,this,Ot).call(this,Ye(st,this).DEBUG,null,"Response Body :",a),204==e.status&&null==a?o({data:a,response:e}):e.ok&&null!=a?(this.addEtagToReservedMap(e,a),Qe(ut,this,bt).call(this,a,t,n),o({data:a,response:e})):(Qe(ut,this,Ot).call(this,Ye(st,this).ERROR,null,a),i(Le(Le({},e.error),{},{data:a})))}catch(e){Qe(ut,this,Ot).call(this,Ye(st,this).DEBUG,null,"Caught error while processing response!"),Qe(ut,this,Ot).call(this,Ye(st,this).ERROR,null,e),e.data=Qe(ut,this,vt).call(this,e),i(e)}}function Tt(e,t,n,r,o,i){var a=this;Qe(ut,this,Ot).call(this,Ye(st,this).INFO,null,"Streaming response to : ",n);try{e.on("data",(function(e){t.write(e)}))}catch(e){Qe(ut,this,Ot).call(this,Ye(st,this).ERROR,null,"Issue while downloading file",e)}var s=new i,u="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){var l=e.headers["content-disposition"].match(_e(/.*filename="(.*)".*/,{filename:1})),c=k().parse(l.groups.filename);u=this.downloadDestination+"/"+c.name+"_"+Date.now()+c.ext,s.data={path:k().parse(u),$objectType:"Path"};var f=new J;f.name="hasError",f.value=!1;var p=[f],y=new Ne;y.flags=p,s.metadata=y}e.on("end",(function(){Qe(ut,a,Ot).call(a,Ye(st,a).INFO,null,"Finished streaming response"),0!==u.length?(Qe(ut,a,Ot).call(a,Ye(st,a).INFO,null,"Content-Disposition header found [",u,"] is final filename"),t.close(),j().renameSync(n,u),r({data:s,response:e})):(Qe(ut,a,Ot).call(a,Ye(st,a).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),r({data:s,response:e}))})),e.on("error",(function(e){Qe(ut,a,Ot).call(a,Ye(st,a).ERROR,null,"Caught the following error :",e),error.data=Qe(ut,a,vt).call(a,error),o(e)}))}function St(e){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},St(e)}function Ct(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 Et(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 Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){Ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ft(e,t,n){return(t=At(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,At(r.key),r)}}function At(e){var t=function(e){if("object"!=St(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==St(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")}Me=lt,lt.instance=new lt;var Ut=new WeakSet,Mt=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,Ut),this.$objectType="aiops.v4.error.AppMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getSeverity",value:function(){return this.severity}},{key:"setSeverity",value:function(e){this.severity=e}},{key:"getCode",value:function(){return this.code}},{key:"setCode",value:function(e){this.code=e}},{key:"getLocale",value:function(){return this.locale}},{key:"setLocale",value:function(e){this.locale=e}},{key:"getErrorGroup",value:function(){return this.errorGroup}},{key:"setErrorGroup",value:function(e){this.errorGroup=e}},{key:"getArgumentsMap",value:function(){return this.argumentsMap}},{key:"setArgumentsMap",value:function(e){this.argumentsMap=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Dt(Dt(Dt(Dt(Dt(Dt(Dt({},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(Ut,this,xt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:It(Ut,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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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(ye.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&n.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&n.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&n.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&n.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Dt({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Rt(t.prototype,n),r&&Rt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ct(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)?Ct(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===St(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 Vt(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){Bt(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 Bt(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+""}Mt.prototype.message=void 0,Mt.prototype.severity=void 0,Mt.prototype.code=void 0,Mt.prototype.locale="en_US",Mt.prototype.errorGroup=void 0,Mt.prototype.argumentsMap=void 0,Mt.prototype.$reserved=void 0,Mt.prototype.$objectType=void 0,Mt.prototype.$unknownFields=void 0;var Wt=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,Wt),this.$objectType="aiops.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getLocation",value:function(){return this.location}},{key:"setLocation",value:function(e){this.location=e}},{key:"getMessage",value:function(){return this.message}},{key:"setMessage",value:function(e){this.message=e}},{key:"getAttributePath",value:function(){return this.attributePath}},{key:"setAttributePath",value:function(e){this.attributePath=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Vt(Vt(Vt(Vt({},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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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 o in n.$unknownFields=Vt({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Lt(t.prototype,n),r&&Lt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){Kt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kt(e,t,n){return(t=Yt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xt(e,t){for(var n=0;n<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"!=Gt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gt(t)?t:t+""}function Zt(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.location=void 0,zt.prototype.message=void 0,zt.prototype.attributePath=void 0,zt.prototype.$reserved=void 0,zt.prototype.$objectType=void 0,zt.prototype.$unknownFields=void 0;var Qt=new WeakSet,en=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="aiops.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=e}},{key:"getStatusCode",value:function(){return this.statusCode}},{key:"setStatusCode",value:function(e){this.statusCode=e}},{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"getPath",value:function(){return this.path}},{key:"setPath",value:function(e){this.path=e}},{key:"getValidationErrorMessages",value:function(){return this.validationErrorMessages}},{key:"setValidationErrorMessages",value:function(e){this.validationErrorMessages=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qt(qt(qt(qt(qt(qt({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Zt(Qt,this,tn).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&a.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&a.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&a.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&a.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(i=[],n=t.validationErrorMessages,o=0;o<n.length;o++)r=zt.constructFromObject(n[o],void 0),i.push(r);a.setValidationErrorMessages(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=qt({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Xt(t.prototype,n),r&&Xt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function tn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function nn(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 rn(e){return rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn(e)}function on(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 an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sn(e,t,n){return(t=ln(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ln(r.key),r)}}function ln(e){var t=function(e){if("object"!=rn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rn(t)?t:t+""}function cn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}en.prototype.timestamp=void 0,en.prototype.statusCode=void 0,en.prototype.error=void 0,en.prototype.path=void 0,en.prototype.validationErrorMessages=void 0,en.prototype.$reserved=void 0,en.prototype.$objectType=void 0,en.prototype.$unknownFields=void 0;var fn=new WeakSet,pn=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,fn),this.$objectType="aiops.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return an(an({},!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})):cn(fn,this,yn).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})):cn(fn,this,yn).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(s=s||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if(Array.isArray(t.error))if(0===t.error.length)s.setError([]);else{for(i=[],a=(n=t.error)[0].hasOwnProperty("$objectType")?n[0].$objectType:rn(n[0]),o=0;o<n.length;o++){if("aiops.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";r=Mt.constructFromObject(n[o],void 0),i.push(r)}s.setError(i)}else{if("aiops.v4.error.SchemaValidationError"!==(a=t.error.hasOwnProperty("$objectType")?t.error.$objectType:rn(t.error)))throw"Unknown datatype "+a+" in data";s.setError(en.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!u)for(var l in s.$unknownFields=an({},t.$unknownFields),t)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=t[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&un(t.prototype,n),r&&un(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function yn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return nn(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)?nn(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===rn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),(function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]}))):e}function dn(e){return dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dn(e)}function 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 hn(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){bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bn(e,t,n){return(t=gn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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){if("object"!=dn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dn(t)?t:t+""}pn.prototype.error=void 0,pn.prototype.$reserved=void 0,pn.prototype.$objectType=void 0,pn.prototype.$unknownFields=void 0;var wn=new WeakSet,On=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,wn),this.boolList=t,this.$objectType="aiops.v4.stats.BoolList",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getBoolList",value:function(){return this.boolList}},{key:"setBoolList",value:function(e){this.boolList=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return hn(hn({},void 0!==this.getBoolList()&&null!==this.getBoolList()?{boolList:this.getBoolList()}:{}),{},{$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 S?r=["boolList"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("boolList"===t){if(void 0===this.boolList||null===this.boolList)return new U("boolList","undefined or null");if(!F.validateMaxItems(this.boolList,100))return new U("boolList","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,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(i=i||new e,t.hasOwnProperty("boolList")&&null!==t.boolList&&void 0!==t.boolList){for(o=[],n=t.boolList,r=0;r<n.length;r++)o.push(n[r]);i.setBoolList(o)}if(t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!a)for(var s in i.$unknownFields=hn({},t.$unknownFields),t)Object.keys(i).includes(s)||Object.keys(i).includes(this.snakeToCamel(s))||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(i.$unknownFields[s]=t[s])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&mn(t.prototype,n),r&&mn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function jn(e){return jn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jn(e)}function $n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){Pn(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 Pn(e,t,n){return(t=Sn(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,Sn(r.key),r)}}function Sn(e){var t=function(e){if("object"!=jn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jn(t)?t:t+""}On.prototype.boolList=void 0,On.prototype.$reserved=void 0,On.prototype.$objectType=void 0,On.prototype.$unknownFields=void 0;var Cn=new WeakSet,En=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,Cn),this.boolValue=t,this.$objectType="aiops.v4.stats.BoolVal",this.$reserved={$fv:"v4.r0"},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 kn(kn({},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 S?r=["boolValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"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 o in n.$unknownFields=kn({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Tn(t.prototype,n),r&&Tn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Dn(e){return Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dn(e)}function Fn(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?Fn(Object(n),!0).forEach((function(t){An(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function An(e,t,n){return(t=Un(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function In(e,t){for(var n=0;n<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"!=Dn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Dn(t)?t:t+""}En.prototype.boolValue=void 0,En.prototype.$reserved=void 0,En.prototype.$objectType=void 0,En.prototype.$unknownFields=void 0;var Mn=new WeakSet,xn=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,Mn),this.doubleList=t,this.$objectType="aiops.v4.stats.DoubleList",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getDoubleList",value:function(){return this.doubleList}},{key:"setDoubleList",value:function(e){this.doubleList=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({},void 0!==this.getDoubleList()&&null!==this.getDoubleList()?{doubleList:this.getDoubleList()}:{}),{},{$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 S?r=["doubleList"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("doubleList"===t){if(void 0===this.doubleList||null===this.doubleList)return new U("doubleList","undefined or null");if(!F.validateMaxItems(this.doubleList,100))return new U("doubleList","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,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(i=i||new e,t.hasOwnProperty("doubleList")&&null!==t.doubleList&&void 0!==t.doubleList){for(o=[],n=t.doubleList,r=0;r<n.length;r++)o.push(n[r]);i.setDoubleList(o)}if(t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!a)for(var s in i.$unknownFields=Rn({},t.$unknownFields),t)Object.keys(i).includes(s)||Object.keys(i).includes(this.snakeToCamel(s))||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(i.$unknownFields[s]=t[s])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&In(t.prototype,n),r&&In(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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 _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 Vn(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){Bn(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 Bn(e,t,n){return(t=Jn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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){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+""}xn.prototype.doubleList=void 0,xn.prototype.$reserved=void 0,xn.prototype.$objectType=void 0,xn.prototype.$unknownFields=void 0;var Wn=new WeakSet,zn=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,Wn),this.doubleValue=t,this.$objectType="aiops.v4.stats.DoubleVal",this.$reserved={$fv:"v4.r0"},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 Vn(Vn({},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 S?r=["doubleValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"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 o in n.$unknownFields=Vn({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ln(t.prototype,n),r&&Ln(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Gn(e){return Gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gn(e)}function Hn(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?Hn(Object(n),!0).forEach((function(t){Kn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kn(e,t,n){return(t=Yn(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,Yn(r.key),r)}}function Yn(e){var t=function(e){if("object"!=Gn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gn(t)?t:t+""}zn.prototype.doubleValue=void 0,zn.prototype.$reserved=void 0,zn.prototype.$objectType=void 0,zn.prototype.$unknownFields=void 0;var Zn=new WeakSet,Qn=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,Zn),this.intList=t,this.$objectType="aiops.v4.stats.IntList",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIntList",value:function(){return this.intList}},{key:"setIntList",value:function(e){this.intList=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.getIntList()&&null!==this.getIntList()?{intList:this.getIntList()}:{}),{},{$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 S?r=["intList"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("intList"===t){if(void 0===this.intList||null===this.intList)return new U("intList","undefined or null");if(!F.validateMaxItems(this.intList,100))return new U("intList","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,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(i=i||new e,t.hasOwnProperty("intList")&&null!==t.intList&&void 0!==t.intList){for(o=[],n=t.intList,r=0;r<n.length;r++)o.push(n[r]);i.setIntList(o)}if(t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!a)for(var s in i.$unknownFields=qn({},t.$unknownFields),t)Object.keys(i).includes(s)||Object.keys(i).includes(this.snakeToCamel(s))||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(i.$unknownFields[s]=t[s])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Xn(t.prototype,n),r&&Xn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function er(e){return er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},er(e)}function tr(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?tr(Object(n),!0).forEach((function(t){rr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rr(e,t,n){return(t=ir(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ir(r.key),r)}}function ir(e){var t=function(e){if("object"!=er(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=er(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==er(t)?t:t+""}Qn.prototype.intList=void 0,Qn.prototype.$reserved=void 0,Qn.prototype.$objectType=void 0,Qn.prototype.$unknownFields=void 0;var ar=new WeakSet,sr=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,ar),this.intValue=t,this.$objectType="aiops.v4.stats.IntVal",this.$reserved={$fv:"v4.r0"},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 nr(nr({},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 S?r=["intValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"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 o in n.$unknownFields=nr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&or(t.prototype,n),r&&or(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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 lr(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 cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){fr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fr(e,t,n){return(t=yr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yr(r.key),r)}}function yr(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+""}sr.prototype.intValue=void 0,sr.prototype.$reserved=void 0,sr.prototype.$objectType=void 0,sr.prototype.$unknownFields=void 0;var dr=new WeakSet,vr=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,dr),this.strList=t,this.$objectType="aiops.v4.stats.StrList",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getStrList",value:function(){return this.strList}},{key:"setStrList",value:function(e){this.strList=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 cr(cr({},void 0!==this.getStrList()&&null!==this.getStrList()?{strList:this.getStrList()}:{}),{},{$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 S?r=["strList"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("strList"===t){if(void 0===this.strList||null===this.strList)return new U("strList","undefined or null");if(!F.validateMaxItems(this.strList,100))return new U("strList","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,o,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(i=i||new e,t.hasOwnProperty("strList")&&null!==t.strList&&void 0!==t.strList){for(o=[],n=t.strList,r=0;r<n.length;r++)o.push(n[r]);i.setStrList(o)}if(t.hasOwnProperty("$reserved")&&(i.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(i.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(i.$unknownFields=t.$unknownFields),!a)for(var s in i.$unknownFields=cr({},t.$unknownFields),t)Object.keys(i).includes(s)||Object.keys(i).includes(this.snakeToCamel(s))||"$"===s[0]&&s.endsWith("ItemDiscriminator")||(i.$unknownFields[s]=t[s])}return i}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&pr(t.prototype,n),r&&pr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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 br(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 mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach((function(t){gr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gr(e,t,n){return(t=Or(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Or(r.key),r)}}function Or(e){var t=function(e){if("object"!=hr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hr(t)?t:t+""}vr.prototype.strList=void 0,vr.prototype.$reserved=void 0,vr.prototype.$objectType=void 0,vr.prototype.$unknownFields=void 0;var jr=new WeakSet,$r=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,jr),this.strValue=t,this.$objectType="aiops.v4.stats.StrVal",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getStrValue",value:function(){return this.strValue}},{key:"setStrValue",value:function(e){this.strValue=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 mr(mr({},void 0!==this.getStrValue()&&null!==this.getStrValue()?{strValue:this.getStrValue()}:{}),{},{$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 S?r=["strValue"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"strValue"!==t||void 0!==this.strValue&&null!==this.strValue?"$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("strValue","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("strValue")&&null!==t.strValue&&void 0!==t.strValue&&n.setStrValue(t.strValue),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=mr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&wr(t.prototype,n),r&&wr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function kr(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 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 Tr(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?Tr(Object(n),!0).forEach((function(t){Cr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cr(e,t,n){return(t=Dr(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,Dr(r.key),r)}}function Dr(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+""}function Fr(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")}$r.prototype.strValue=void 0,$r.prototype.$reserved=void 0,$r.prototype.$objectType=void 0,$r.prototype.$unknownFields=void 0;var Rr=new WeakSet,Ar=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,Rr),this.$objectType="aiops.v4.stats.Point",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getValue",value:function(){return this.value}},{key:"setValue",value:function(e){this.value=e}},{key:"getTimestamp",value:function(){return this.timestamp}},{key:"setTimestamp",value:function(e){this.timestamp=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(Sr({},!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})):Fr(Rr,this,Ir).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})):Fr(Rr,this,Ir).call(this,this.getValue())}:{}),void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Fr(Rr,this,Ur).call(this,this.getTimestamp(),!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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"value"!==t||void 0!==this.value&&null!==this.value?"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"$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("timestamp","undefined or null"):new U("value","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)switch(n=t.value.hasOwnProperty("$objectType")?t.value.$objectType:Pr(t.value)){case"aiops.v4.stats.StrVal":r.setValue($r.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.BoolVal":r.setValue(En.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.IntVal":r.setValue(sr.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.DoubleVal":r.setValue(zn.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.StrList":r.setValue(vr.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.BoolList":r.setValue(On.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.IntList":r.setValue(Qn.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.DoubleList":r.setValue(xn.constructFromObject(t.value,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&r.setTimestamp(t.timestamp),t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!o)for(var i in r.$unknownFields=Sr({},t.$unknownFields),t)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=t[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Er(t.prototype,n),r&&Er(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ir(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return kr(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)?kr(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Pr(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 Ur(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}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 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=Br(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Br(r.key),r)}}function Br(e){var t=function(e){if("object"!=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+""}Ar.prototype.value=void 0,Ar.prototype.timestamp=void 0,Ar.prototype.$reserved=void 0,Ar.prototype.$objectType=void 0,Ar.prototype.$unknownFields=void 0;var Lr=new WeakSet,Jr=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,Lr),this.$objectType="aiops.v4.stats.TimeSeries",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getSamplingIntervalSecs",value:function(){return this.samplingIntervalSecs}},{key:"setSamplingIntervalSecs",value:function(e){this.samplingIntervalSecs=e}},{key:"getValues",value:function(){return this.values}},{key:"setValues",value:function(e){this.values=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(Nr(Nr({},void 0!==this.getSamplingIntervalSecs()&&null!==this.getSamplingIntervalSecs()?{samplingIntervalSecs:this.getSamplingIntervalSecs()}:{}),void 0!==this.getValues()&&null!==this.getValues()?{values:this.getValues().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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("samplingIntervalSecs"===t&&(void 0===this.samplingIntervalSecs||null===this.samplingIntervalSecs))return new U("samplingIntervalSecs","undefined or null");if("values"===t){if(void 0===this.values||null===this.values)return new U("values","undefined or null");if(!F.validateMaxItems(this.values,2880))return new U("values","does not satisfy required maxItems constraint: 2880")}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,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("samplingIntervalSecs")&&null!==t.samplingIntervalSecs&&void 0!==t.samplingIntervalSecs&&a.setSamplingIntervalSecs(t.samplingIntervalSecs),t.hasOwnProperty("values")&&null!==t.values&&void 0!==t.values){for(i=[],n=t.values,o=0;o<n.length;o++)r=Ar.constructFromObject(n[o],void 0),i.push(r);a.setValues(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Nr({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Vr(t.prototype,n),r&&Vr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wr(e){return Wr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(e)}function 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){Hr(e,t,n[t])})):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 Hr(e,t,n){return(t=Kr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,Kr(r.key),r)}}function Kr(e){var t=function(e){if("object"!=Wr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wr(t)?t:t+""}Jr.prototype.samplingIntervalSecs=void 0,Jr.prototype.values=void 0,Jr.prototype.$reserved=void 0,Jr.prototype.$objectType=void 0,Jr.prototype.$unknownFields=void 0;var Xr=new WeakSet,Yr=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,Xr),this.$objectType="aiops.v4.stats.Metric",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getTimeSeries",value:function(){return this.timeSeries}},{key:"setTimeSeries",value:function(e){this.timeSeries=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 Gr(Gr(Gr({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getTimeSeries()&&null!==this.getTimeSeries()?{timeSeries:this.getTimeSeries().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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!F.validateMaxLength(this.name,50))return new U("name","does not satisfy required maxLength constraint: 50")}return"timeSeries"!==t||void 0!==this.timeSeries&&null!==this.timeSeries?"$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("timeSeries","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("timeSeries")&&null!==t.timeSeries&&void 0!==t.timeSeries&&n.setTimeSeries(Jr.constructFromObject(t.timeSeries)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Gr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&qr(t.prototype,n),r&&qr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Zr(e){return Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zr(e)}function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach((function(t){to(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function to(e,t,n){return(t=ro(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function no(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ro(r.key),r)}}function ro(e){var t=function(e){if("object"!=Zr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zr(t)?t:t+""}Yr.prototype.name=void 0,Yr.prototype.timeSeries=void 0,Yr.prototype.$reserved=void 0,Yr.prototype.$objectType=void 0,Yr.prototype.$unknownFields=void 0;var oo=new WeakSet,io=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,oo),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?eo(eo({},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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new U("tenantId","undefined or null");if(!F.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 o in n.$unknownFields=eo({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&no(t.prototype,n),r&&no(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 so(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?so(Object(n),!0).forEach((function(t){lo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lo(e,t,n){return(t=fo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function co(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fo(r.key),r)}}function fo(e){var t=function(e){if("object"!=ao(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ao(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ao(t)?t:t+""}function po(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(po=function(){return!!e})()}function yo(e){return yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yo(e)}function vo(e,t){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vo(e,t)}io.prototype.tenantId=void 0,io.prototype.$reserved=void 0,io.prototype.$objectType=void 0,io.prototype.$unknownFields=void 0;var ho=new WeakSet,bo=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=yo(t),function(e,t){if(t&&("object"==ao(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,po()?Reflect.construct(t,n||[],yo(e).constructor):t.apply(e,n))}(this,t),ho),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&&vo(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?uo(uo(uo(uo({},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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(null==e){if(!F.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===S.update&&!F.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(!F.validateMaxItems(this.links,20))return new U("links","does not satisfy required maxItems constraint: 20")}return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,io.constructFromObject(e,a,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&a.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(i=[],n=e.links,o=0;o<n.length;o++)r=Ee.constructFromObject(n[o],void 0),i.push(r);a.setLinks(i)}if(!s)for(var u in a.$unknownFields=uo({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&co(n.prototype,r),o&&co(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(io);function mo(e){return mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mo(e)}function go(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 wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach((function(t){Oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oo(e,t,n){return(t=$o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$o(r.key),r)}}function $o(e){var t=function(e){if("object"!=mo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mo(t)?t:t+""}function ko(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ko=function(){return!!e})()}function Po(e){return Po=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Po(e)}function To(e,t){return To=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},To(e,t)}bo.prototype.extId=void 0,bo.prototype.links=void 0,io.prototype.tenantId=void 0;var So=new WeakSet,Co=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=Po(t),function(e,t){if(t&&("object"==mo(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,ko()?Reflect.construct(t,n||[],Po(e).constructor):t.apply(e,n))}(this,t),So),e.$objectType="aiops.v4.stats.Entity",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&To(e,t)}(t,e),n=t,r=[{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getSource",value:function(){return this.source}},{key:"setSource",value:function(e){this.source=e}},{key:"getParents",value:function(){return this.parents}},{key:"setParents",value:function(e){this.parents=e}},{key:"getMetrics",value:function(){return this.metrics}},{key:"setMetrics",value:function(e){this.metrics=e}},{key:"toJson",value:function(e){return wo(!1===e?wo(wo(wo(wo(wo(wo(wo({},void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{}),void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().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()}:{}):wo(wo(wo(wo({},void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{}),void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new U("entityType","undefined or null");if("source"===t&&(void 0===this.source||null===this.source))return new U("source","undefined or null");if("parents"===t){if(void 0===this.parents||null===this.parents)return new U("parents","undefined or null");if(!F.validateMaxItems(this.parents,5))return new U("parents","does not satisfy required maxItems constraint: 5")}if("metrics"===t){if(void 0===this.metrics||null===this.metrics)return new U("metrics","undefined or null");if(!F.validateMaxItems(this.metrics,100))return new U("metrics","does not satisfy required maxItems constraint: 100")}return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,bo.constructFromObject(e,a,!0),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&a.setEntityType(e.entityType),e.hasOwnProperty("source")&&null!==e.source&&void 0!==e.source&&a.setSource(e.source),e.hasOwnProperty("parents")&&null!==e.parents&&void 0!==e.parents){for(i=[],n=e.parents,o=0;o<n.length;o++)r=t.constructFromObject(n[o],void 0),i.push(r);a.setParents(i)}if(e.hasOwnProperty("metrics")&&null!==e.metrics&&void 0!==e.metrics){for(i=[],n=e.metrics,o=0;o<n.length;o++)r=Yr.constructFromObject(n[o],void 0),i.push(r);a.setMetrics(i)}if(!s)for(var u in a.$unknownFields=wo({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&jo(n.prototype,r),o&&jo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(bo);function Eo(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 Do(e){return Do="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Do(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 Ro(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){Ao(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 Ao(e,t,n){return(t=Uo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,Uo(r.key),r)}}function Uo(e){var t=function(e){if("object"!=Do(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Do(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Do(t)?t:t+""}function Mo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mo=function(){return!!e})()}function xo(e){return xo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xo(e)}function No(e,t){return No=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},No(e,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")}Co.prototype.entityType=void 0,Co.prototype.source=void 0,Co.prototype.parents=void 0,Co.prototype.metrics=void 0,bo.prototype.extId=void 0,bo.prototype.links=void 0,io.prototype.tenantId=void 0;var Vo=new WeakSet,Bo=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=xo(t),function(e,t){if(t&&("object"==Do(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,Mo()?Reflect.construct(t,n||[],xo(e).constructor):t.apply(e,n))}(this,t),Vo),e.$objectType="aiops.v4.stats.EntityListApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&No(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 Ro(Ro(Ro({},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})):_o(Vo,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})):_o(Vo,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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Do(n[0]),o=0;o<n.length;o++){if("aiops.v4.stats.Entity"!==a)throw"Unknown list of type "+a+" in data";r=Co.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("aiops.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Do(e.data)))throw"Unknown datatype "+a+" in data";s.setData(pn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Ro({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Io(n.prototype,r),o&&Io(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Lo(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Eo(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)?Eo(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Do(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 zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach((function(t){Go(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 Go(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 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,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+""}Bo.prototype.metadata=void 0,Bo.prototype.data=void 0,Bo.prototype.$reserved=void 0,Bo.prototype.$objectType=void 0,Bo.prototype.$unknownFields=void 0;var Ko=new WeakSet,Xo=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,Ko),this.$objectType="aiops.v4.config.ValueRange",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMin",value:function(){return this.min}},{key:"setMin",value:function(e){this.min=e}},{key:"getMax",value:function(){return this.max}},{key:"setMax",value:function(e){this.max=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return zo(zo(zo({},void 0!==this.getMin()&&null!==this.getMin()?{min:this.getMin()}:{}),void 0!==this.getMax()&&null!==this.getMax()?{max:this.getMax()}:{}),{},{$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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"min"!==t||void 0!==this.min&&null!==this.min?"max"!==t||void 0!==this.max&&null!==this.max?"$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("max","undefined or null"):new U("min","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("min")&&null!==t.min&&void 0!==t.min&&n.setMin(t.min),t.hasOwnProperty("max")&&null!==t.max&&void 0!==t.max&&n.setMax(t.max),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=zo({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ho(t.prototype,n),r&&Ho(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Xo.prototype.min=void 0,Xo.prototype.max=void 0,Xo.prototype.$reserved=void 0,Xo.prototype.$objectType=void 0,Xo.prototype.$unknownFields=void 0;var Yo={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",BOOL:"BOOL",INT:"INT",DOUBLE:"DOUBLE",STRING:"STRING",BOOL_LIST:"BOOL_LIST",INT_LIST:"INT_LIST",DOUBLE_LIST:"DOUBLE_LIST",STRING_LIST:"STRING_LIST",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.BOOL:case Yo.INT:case Yo.DOUBLE:case Yo.STRING:case Yo.BOOL_LIST:case Yo.INT_LIST:case Yo.DOUBLE_LIST:case Yo.STRING_LIST:return;default:throw new Error("Invalid : must be ValueType.{ $UNKNOWN|$REDACTED|BOOL|INT|DOUBLE|STRING|BOOL_LIST|INT_LIST|DOUBLE_LIST|STRING_LIST }")}}};Object.freeze(Yo);const Zo=Yo;var Qo={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SUM:"SUM",MIN:"MIN",MAX:"MAX",AVG:"AVG",COUNT:"COUNT",LAST:"LAST",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Qo).find((function(t){return Qo[t]===e}));return null==t?Qo.$UNKNOWN:Qo[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Qo.$UNKNOWN:case Qo.$REDACTED:case Qo.SUM:case Qo.MIN:case Qo.MAX:case Qo.AVG:case Qo.COUNT:case Qo.LAST:return;default:throw new Error("Invalid : must be DownSamplingOperator.{ $UNKNOWN|$REDACTED|SUM|MIN|MAX|AVG|COUNT|LAST }")}}};Object.freeze(Qo);const ei=Qo;function ti(e){return ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ti(e)}function ni(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 ri(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(n),!0).forEach((function(t){oi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oi(e,t,n){return(t=ai(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,ai(r.key),r)}}function ai(e){var t=function(e){if("object"!=ti(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ti(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ti(t)?t:t+""}var si=new WeakSet,ui=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,si),this.$objectType="aiops.v4.config.MetricDescriptor",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getIsAttribute",value:function(){return this.isAttribute}},{key:"setIsAttribute",value:function(e){this.isAttribute=e}},{key:"getIsAttributePersistedAsTimeSeries",value:function(){return this.isAttributePersistedAsTimeSeries}},{key:"setIsAttributePersistedAsTimeSeries",value:function(e){this.isAttributePersistedAsTimeSeries=e}},{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:"getValueType",value:function(){return this.valueType}},{key:"setValueType",value:function(e){this.valueType=e}},{key:"getValueRange",value:function(){return this.valueRange}},{key:"setValueRange",value:function(e){this.valueRange=e}},{key:"getDefaultValue",value:function(){return this.defaultValue}},{key:"setDefaultValue",value:function(e){this.defaultValue=e}},{key:"getUnit",value:function(){return this.unit}},{key:"setUnit",value:function(e){this.unit=e}},{key:"getSamplingIntervalSecs",value:function(){return this.samplingIntervalSecs}},{key:"setSamplingIntervalSecs",value:function(e){this.samplingIntervalSecs=e}},{key:"getDownsamplingOperator",value:function(){return this.downsamplingOperator}},{key:"setDownsamplingOperator",value:function(e){this.downsamplingOperator=e}},{key:"getAdditionalProperties",value:function(){return this.additionalProperties}},{key:"setAdditionalProperties",value:function(e){this.additionalProperties=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 ri(ri(ri(ri(ri(ri(ri(ri(ri(ri(ri(ri({},void 0!==this.getIsAttribute()&&null!==this.getIsAttribute()?{isAttribute:this.getIsAttribute()}:{}),void 0!==this.getIsAttributePersistedAsTimeSeries()&&null!==this.getIsAttributePersistedAsTimeSeries()?{isAttributePersistedAsTimeSeries:this.getIsAttributePersistedAsTimeSeries()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{}),void 0!==this.getValueType()&&null!==this.getValueType()?{valueType:this.getValueType()}:{}),void 0!==this.getValueRange()&&null!==this.getValueRange()?{valueRange:this.getValueRange().toJson(!1)}:{}),void 0!==this.getDefaultValue()&&null!==this.getDefaultValue()?{defaultValue:this.getDefaultValue()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),void 0!==this.getSamplingIntervalSecs()&&null!==this.getSamplingIntervalSecs()?{samplingIntervalSecs:this.getSamplingIntervalSecs()}:{}),void 0!==this.getDownsamplingOperator()&&null!==this.getDownsamplingOperator()?{downsamplingOperator:this.getDownsamplingOperator()}:{}),void 0!==this.getAdditionalProperties()&&null!==this.getAdditionalProperties()?{additionalProperties:this.getAdditionalProperties().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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("isAttribute"===t&&(void 0===this.isAttribute||null===this.isAttribute))return new U("isAttribute","undefined or null");if("isAttributePersistedAsTimeSeries"===t&&(void 0===this.isAttributePersistedAsTimeSeries||null===this.isAttributePersistedAsTimeSeries))return new U("isAttributePersistedAsTimeSeries","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!F.validateMaxLength(this.name,50))return new U("name","does not satisfy required maxLength constraint: 50")}if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new U("displayName","undefined or null");if(!F.validateMaxLength(this.displayName,50))return new U("displayName","does not satisfy required maxLength constraint: 50")}if("valueType"===t&&(void 0===this.valueType||null===this.valueType))return new U("valueType","undefined or null");if("valueRange"===t&&(void 0===this.valueRange||null===this.valueRange))return new U("valueRange","undefined or null");if("defaultValue"===t&&(void 0===this.defaultValue||null===this.defaultValue))return new U("defaultValue","undefined or null");if("unit"===t&&(void 0===this.unit||null===this.unit))return new U("unit","undefined or null");if("samplingIntervalSecs"===t&&(void 0===this.samplingIntervalSecs||null===this.samplingIntervalSecs))return new U("samplingIntervalSecs","undefined or null");if("downsamplingOperator"===t&&(void 0===this.downsamplingOperator||null===this.downsamplingOperator))return new U("downsamplingOperator","undefined or null");if("additionalProperties"===t){if(void 0===this.additionalProperties||null===this.additionalProperties)return new U("additionalProperties","undefined or null");if(!F.validateMaxItems(this.additionalProperties,100))return new U("additionalProperties","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,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("isAttribute")&&null!==t.isAttribute&&void 0!==t.isAttribute&&a.setIsAttribute(t.isAttribute),t.hasOwnProperty("isAttributePersistedAsTimeSeries")&&null!==t.isAttributePersistedAsTimeSeries&&void 0!==t.isAttributePersistedAsTimeSeries&&a.setIsAttributePersistedAsTimeSeries(t.isAttributePersistedAsTimeSeries),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&a.setName(t.name),t.hasOwnProperty("displayName")&&null!==t.displayName&&void 0!==t.displayName&&a.setDisplayName(t.displayName),t.hasOwnProperty("valueType")&&null!==t.valueType&&void 0!==t.valueType&&a.setValueType(Zo.constructFromObject(t.valueType)),t.hasOwnProperty("valueRange")&&null!==t.valueRange&&void 0!==t.valueRange&&a.setValueRange(Xo.constructFromObject(t.valueRange)),t.hasOwnProperty("defaultValue")&&null!==t.defaultValue&&void 0!==t.defaultValue&&a.setDefaultValue(t.defaultValue),t.hasOwnProperty("unit")&&null!==t.unit&&void 0!==t.unit&&a.setUnit(t.unit),t.hasOwnProperty("samplingIntervalSecs")&&null!==t.samplingIntervalSecs&&void 0!==t.samplingIntervalSecs&&a.setSamplingIntervalSecs(t.samplingIntervalSecs),t.hasOwnProperty("downsamplingOperator")&&null!==t.downsamplingOperator&&void 0!==t.downsamplingOperator&&a.setDownsamplingOperator(ei.constructFromObject(t.downsamplingOperator)),t.hasOwnProperty("additionalProperties")&&null!==t.additionalProperties&&void 0!==t.additionalProperties){for(i=[],n=t.additionalProperties,o=0;o<n.length;o++)r=ce.constructFromObject(n[o],void 0),i.push(r);a.setAdditionalProperties(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=ri({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ii(t.prototype,n),r&&ii(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function li(e){return li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},li(e)}function ci(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 fi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ci(Object(n),!0).forEach((function(t){pi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ci(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pi(e,t,n){return(t=di(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,di(r.key),r)}}function di(e){var t=function(e){if("object"!=li(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=li(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==li(t)?t:t+""}function vi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vi=function(){return!!e})()}function hi(e){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hi(e)}function bi(e,t){return bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bi(e,t)}ui.prototype.isAttribute=void 0,ui.prototype.isAttributePersistedAsTimeSeries=void 0,ui.prototype.name=void 0,ui.prototype.displayName=void 0,ui.prototype.valueType=void 0,ui.prototype.valueRange=void 0,ui.prototype.defaultValue=void 0,ui.prototype.unit=void 0,ui.prototype.samplingIntervalSecs=void 0,ui.prototype.downsamplingOperator=void 0,ui.prototype.additionalProperties=void 0,ui.prototype.$reserved=void 0,ui.prototype.$objectType=void 0,ui.prototype.$unknownFields=void 0;var mi=new WeakSet,gi=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=hi(t),function(e,t){if(t&&("object"==li(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,vi()?Reflect.construct(t,n||[],hi(e).constructor):t.apply(e,n))}(this,t),mi),e.$objectType="aiops.v4.config.EntityDescriptor",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bi(e,t)}(t,e),n=t,r=[{key:"getEntityType",value:function(){return this.entityType}},{key:"setEntityType",value:function(e){this.entityType=e}},{key:"getSource",value:function(){return this.source}},{key:"setSource",value:function(e){this.source=e}},{key:"getDisplayName",value:function(){return this.displayName}},{key:"setDisplayName",value:function(e){this.displayName=e}},{key:"getParents",value:function(){return this.parents}},{key:"setParents",value:function(e){this.parents=e}},{key:"getMetrics",value:function(){return this.metrics}},{key:"setMetrics",value:function(e){this.metrics=e}},{key:"toJson",value:function(e){return fi(!1===e?fi(fi(fi(fi(fi(fi(fi(fi({},void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{}),void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{}),void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().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()}:{}):fi(fi(fi(fi(fi({},void 0!==this.getEntityType()&&null!==this.getEntityType()?{entityType:this.getEntityType()}:{}),void 0!==this.getSource()&&null!==this.getSource()?{source:this.getSource()}:{}),void 0!==this.getDisplayName()&&null!==this.getDisplayName()?{displayName:this.getDisplayName()}:{}),void 0!==this.getParents()&&null!==this.getParents()?{parents:this.getParents().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new U("entityType","undefined or null");if("source"===t&&(void 0===this.source||null===this.source))return new U("source","undefined or null");if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new U("displayName","undefined or null");if(!F.validateMaxLength(this.displayName,50))return new U("displayName","does not satisfy required maxLength constraint: 50")}if("parents"===t){if(void 0===this.parents||null===this.parents)return new U("parents","undefined or null");if(!F.validateMaxItems(this.parents,5))return new U("parents","does not satisfy required maxItems constraint: 5")}if("metrics"===t){if(void 0===this.metrics||null===this.metrics)return new U("metrics","undefined or null");if(!F.validateMaxItems(this.metrics,100))return new U("metrics","does not satisfy required maxItems constraint: 100")}return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,bo.constructFromObject(e,a,!0),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&a.setEntityType(e.entityType),e.hasOwnProperty("source")&&null!==e.source&&void 0!==e.source&&a.setSource(e.source),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&a.setDisplayName(e.displayName),e.hasOwnProperty("parents")&&null!==e.parents&&void 0!==e.parents){for(i=[],n=e.parents,o=0;o<n.length;o++)r=t.constructFromObject(n[o],void 0),i.push(r);a.setParents(i)}if(e.hasOwnProperty("metrics")&&null!==e.metrics&&void 0!==e.metrics){for(i=[],n=e.metrics,o=0;o<n.length;o++)r=ui.constructFromObject(n[o],void 0),i.push(r);a.setMetrics(i)}if(!s)for(var u in a.$unknownFields=fi({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&yi(n.prototype,r),o&&yi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(bo);function wi(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 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 ji(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 $i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ji(Object(n),!0).forEach((function(t){ki(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ji(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ki(e,t,n){return(t=Ti(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ti(r.key),r)}}function Ti(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+""}function Si(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Si=function(){return!!e})()}function Ci(e){return Ci=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ci(e)}function Ei(e,t){return Ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ei(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")}gi.prototype.entityType=void 0,gi.prototype.source=void 0,gi.prototype.displayName=void 0,gi.prototype.parents=void 0,gi.prototype.metrics=void 0,bo.prototype.extId=void 0,bo.prototype.links=void 0,io.prototype.tenantId=void 0;var Fi=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=Ci(t),function(e,t){if(t&&("object"==Oi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Si()?Reflect.construct(t,n||[],Ci(e).constructor):t.apply(e,n))}(this,t),Fi),e.$objectType="aiops.v4.config.EntityDescriptorListApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ei(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 $i($i($i({},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,Ai).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,Ai).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Oi(n[0]),o=0;o<n.length;o++){if("aiops.v4.config.EntityDescriptor"!==a)throw"Unknown list of type "+a+" in data";r=gi.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("aiops.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Oi(e.data)))throw"Unknown datatype "+a+" in data";s.setData(pn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=$i({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Pi(n.prototype,r),o&&Pi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ai(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return wi(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)?wi(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Oi(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 Ii(e){return Ii="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ii(e)}function Ui(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?Ui(Object(n),!0).forEach((function(t){xi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xi(e,t,n){return(t=_i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ni(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_i(r.key),r)}}function _i(e){var t=function(e){if("object"!=Ii(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ii(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ii(t)?t:t+""}function Vi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vi=function(){return!!e})()}function Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bi(e)}function Li(e,t){return Li=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Li(e,t)}Ri.prototype.metadata=void 0,Ri.prototype.data=void 0,Ri.prototype.$reserved=void 0,Ri.prototype.$objectType=void 0,Ri.prototype.$unknownFields=void 0;var Ji=new WeakSet,Wi=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"==Ii(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,Vi()?Reflect.construct(t,n||[],Bi(e).constructor):t.apply(e,n))}(this,t),Ji),e.$objectType="aiops.v4.config.Source",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Li(e,t)}(t,e),n=t,r=[{key:"getSourceName",value:function(){return this.sourceName}},{key:"setSourceName",value:function(e){this.sourceName=e}},{key:"toJson",value:function(e){return Mi(!1===e?Mi(Mi(Mi(Mi({},void 0!==this.getSourceName()&&null!==this.getSourceName()?{sourceName:this.getSourceName()}:{}),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()}:{}):Mi({},void 0!==this.getSourceName()&&null!==this.getSourceName()?{sourceName:this.getSourceName()}:{}),{},{$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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("sourceName"===t){if(void 0===this.sourceName||null===this.sourceName)return new U("sourceName","undefined or null");if(!F.validateMaxLength(this.sourceName,50))return new U("sourceName","does not satisfy required maxLength constraint: 50")}return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,bo.constructFromObject(e,n,!0),e.hasOwnProperty("sourceName")&&null!==e.sourceName&&void 0!==e.sourceName&&n.setSourceName(e.sourceName),!r))for(var o in n.$unknownFields=Mi({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ni(n.prototype,r),o&&Ni(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(bo);function zi(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 Gi(e){return Gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gi(e)}function Hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hi(Object(n),!0).forEach((function(t){Ki(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ki(e,t,n){return(t=Yi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yi(r.key),r)}}function Yi(e){var t=function(e){if("object"!=Gi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gi(t)?t:t+""}function Zi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zi=function(){return!!e})()}function Qi(e){return Qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qi(e)}function ea(e,t){return ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ea(e,t)}function ta(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")}Wi.prototype.sourceName=void 0,bo.prototype.extId=void 0,bo.prototype.links=void 0,io.prototype.tenantId=void 0;var na=new WeakSet,ra=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=Qi(t),function(e,t){if(t&&("object"==Gi(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,Zi()?Reflect.construct(t,n||[],Qi(e).constructor):t.apply(e,n))}(this,t),na),e.$objectType="aiops.v4.config.SourceListApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ea(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 qi(qi(qi({},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})):ta(na,this,oa).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})):ta(na,this,oa).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Gi(n[0]),o=0;o<n.length;o++){if("aiops.v4.config.Source"!==a)throw"Unknown list of type "+a+" in data";r=Wi.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("aiops.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Gi(e.data)))throw"Unknown datatype "+a+" in data";s.setData(pn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=qi({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Xi(n.prototype,r),o&&Xi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function oa(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return zi(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)?zi(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Gi(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 aa(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?aa(Object(n),!0).forEach((function(t){ua(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ua(e,t,n){return(t=ca(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function la(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ca(r.key),r)}}function ca(e){var t=function(e){if("object"!=ia(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ia(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ia(t)?t:t+""}function fa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fa=function(){return!!e})()}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pa(e)}function ya(e,t){return ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ya(e,t)}ra.prototype.metadata=void 0,ra.prototype.data=void 0,ra.prototype.$reserved=void 0,ra.prototype.$objectType=void 0,ra.prototype.$unknownFields=void 0;var da=new WeakSet,va=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=pa(t),function(e,t){if(t&&("object"==ia(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,fa()?Reflect.construct(t,n||[],pa(e).constructor):t.apply(e,n))}(this,t),da),e.$objectType="aiops.v4.config.EntityType",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ya(e,t)}(t,e),n=t,r=[{key:"getEntityTypeName",value:function(){return this.entityTypeName}},{key:"setEntityTypeName",value:function(e){this.entityTypeName=e}},{key:"toJson",value:function(e){return sa(!1===e?sa(sa(sa(sa({},void 0!==this.getEntityTypeName()&&null!==this.getEntityTypeName()?{entityTypeName:this.getEntityTypeName()}:{}),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()}:{}):sa({},void 0!==this.getEntityTypeName()&&null!==this.getEntityTypeName()?{entityTypeName:this.getEntityTypeName()}:{}),{},{$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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("entityTypeName"===t){if(void 0===this.entityTypeName||null===this.entityTypeName)return new U("entityTypeName","undefined or null");if(!F.validateMaxLength(this.entityTypeName,50))return new U("entityTypeName","does not satisfy required maxLength constraint: 50")}return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,bo.constructFromObject(e,n,!0),e.hasOwnProperty("entityTypeName")&&null!==e.entityTypeName&&void 0!==e.entityTypeName&&n.setEntityTypeName(e.entityTypeName),!r))for(var o in n.$unknownFields=sa({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&la(n.prototype,r),o&&la(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(bo);function ha(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 ba(e){return ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ba(e)}function ma(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 ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ma(Object(n),!0).forEach((function(t){wa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ma(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wa(e,t,n){return(t=ja(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ja(r.key),r)}}function ja(e){var t=function(e){if("object"!=ba(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ba(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ba(t)?t:t+""}function $a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($a=function(){return!!e})()}function ka(e){return ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ka(e)}function Pa(e,t){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pa(e,t)}function Ta(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")}va.prototype.entityTypeName=void 0,bo.prototype.extId=void 0,bo.prototype.links=void 0,io.prototype.tenantId=void 0;var Sa=new WeakSet,Ca=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=ka(t),function(e,t){if(t&&("object"==ba(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,$a()?Reflect.construct(t,n||[],ka(e).constructor):t.apply(e,n))}(this,t),Sa),e.$objectType="aiops.v4.config.EntityTypeListApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pa(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 ga(ga(ga({},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})):Ta(Sa,this,Ea).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})):Ta(Sa,this,Ea).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:ba(n[0]),o=0;o<n.length;o++){if("aiops.v4.config.EntityType"!==a)throw"Unknown list of type "+a+" in data";r=va.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("aiops.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ba(e.data)))throw"Unknown datatype "+a+" in data";s.setData(pn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=ga({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Oa(n.prototype,r),o&&Oa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ea(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ha(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)?ha(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===ba(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 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 Fa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ra(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fa(Object(n),!0).forEach((function(t){Aa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Aa(e,t,n){return(t=Ua(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ia(e,t){for(var n=0;n<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){if("object"!=Da(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Da(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Da(t)?t:t+""}function Ma(e,t){return e.get(xa(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")}Ca.prototype.metadata=void 0,Ca.prototype.data=void 0,Ca.prototype.$reserved=void 0,Ca.prototype.$objectType=void 0,Ca.prototype.$unknownFields=void 0;var Na=new WeakMap,_a=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,Na,void 0),this.apiClient=t||lt.instance,n=Na,r=new Set,n.set(xa(n,this),r),Ma(Na,this).add("authorization"),Ma(Na,this).add("cookie"),Ma(Na,this).add("host"),Ma(Na,this).add("user-agent")},t=[{key:"getEntityDescriptorsV4",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 'sourceExtId' when calling getEntityDescriptorsV4");var o={sourceExtId:e},i=Ra(Ra(Ra({},t.hasOwnProperty("$page")?{$page:t.$page}:{}),t.hasOwnProperty("$limit")?{$limit:t.$limit}:{}),t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}),a={};Object.keys(r).forEach((function(e){Ma(Na,n).has(e.toLowerCase())||(a[e]=r[e])}));var s=Ra({},a),u=Ri;return this.apiClient.callApi("/api/aiops/v4.0/config/sources/{sourceExtId}/entity-descriptors","GET",o,i,s,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],u)}},{key:"getEntityMetricsV4",value:function(e,t,n,r,o){var i=this,a=(arguments.length<=5?0:arguments.length-5)>0?arguments.length<=5?void 0:arguments[5]:{};if(o=o||{},null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityMetricsV4");if(null==t)throw new Error("Missing the required parameter 'extId' when calling getEntityMetricsV4");if(null==n)throw new Error("Missing the required parameter '$startTime' when calling getEntityMetricsV4");if(null==r)throw new Error("Missing the required parameter '$endTime' when calling getEntityMetricsV4");var s={sourceExtId:e,extId:t},u=Ra(Ra(Ra(Ra(Ra(Ra(Ra(Ra({},o.hasOwnProperty("$page")?{$page:o.$page}:{}),o.hasOwnProperty("$limit")?{$limit:o.$limit}:{}),{$startTime:n}),{$endTime:r}),o.hasOwnProperty("$samplingInterval")?{$samplingInterval:o.$samplingInterval}:{}),o.hasOwnProperty("$statType")?{$statType:o.$statType}:{}),o.hasOwnProperty("$filter")?{$filter:o.$filter}:{}),o.hasOwnProperty("$orderby")?{$orderby:o.$orderby}:{}),l={};Object.keys(a).forEach((function(e){Ma(Na,i).has(e.toLowerCase())||(l[e]=a[e])}));var c=Ra({},l),f=Bo;return this.apiClient.callApi("/api/aiops/v4.0/stats/sources/{sourceExtId}/entities/{extId}","GET",s,u,c,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],f)}},{key:"getEntityTypesV4",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 'sourceExtId' when calling getEntityTypesV4");var r={sourceExtId:e},o={};Object.keys(n).forEach((function(e){Ma(Na,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Ra({},o),a=Ca;return this.apiClient.callApi("/api/aiops/v4.0/config/sources/{sourceExtId}/entity-types","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"getSourcesV4",value:function(){var e=this,t=arguments.length>0?arguments.length<=0?void 0:arguments[0]:{},n={};Object.keys(t).forEach((function(r){Ma(Na,e).has(r.toLowerCase())||(n[r]=t[r])}));var r=Ra({},n),o=ra;return this.apiClient.callApi("/api/aiops/v4.0/config/sources","GET",{},{},r,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],o)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Ia(e.prototype,t),n&&Ia(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Va(e){return Va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Va(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 La(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){Ja(e,t,n[t])})):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 Ja(e,t,n){return(t=za(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,za(r.key),r)}}function za(e){var t=function(e){if("object"!=Va(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Va(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Va(t)?t:t+""}var Ga=new WeakSet,Ha=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,Ga),this.vcpuCount=t,this.ramGb=n,this.hddGb=r,this.$objectType="aiops.v4.config.SimulatedVmResourceSpec",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getVcpuCount",value:function(){return this.vcpuCount}},{key:"setVcpuCount",value:function(e){this.vcpuCount=e}},{key:"getRamGb",value:function(){return this.ramGb}},{key:"setRamGb",value:function(e){this.ramGb=e}},{key:"getHddGb",value:function(){return this.hddGb}},{key:"setHddGb",value:function(e){this.hddGb=e}},{key:"getSsdGb",value:function(){return this.ssdGb}},{key:"setSsdGb",value:function(e){this.ssdGb=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 La(La(La(La(La({},void 0!==this.getVcpuCount()&&null!==this.getVcpuCount()?{vcpuCount:this.getVcpuCount()}:{}),void 0!==this.getRamGb()&&null!==this.getRamGb()?{ramGb:this.getRamGb()}:{}),void 0!==this.getHddGb()&&null!==this.getHddGb()?{hddGb:this.getHddGb()}:{}),void 0!==this.getSsdGb()&&null!==this.getSsdGb()?{ssdGb:this.getSsdGb()}:{}),{},{$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 S?r=["vcpuCount","ramGb","hddGb"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"vcpuCount"!==t||void 0!==this.vcpuCount&&null!==this.vcpuCount?"ramGb"!==t||void 0!==this.ramGb&&null!==this.ramGb?"hddGb"!==t||void 0!==this.hddGb&&null!==this.hddGb?"ssdGb"!==t||void 0!==this.ssdGb&&null!==this.ssdGb?"$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("ssdGb","undefined or null"):new U("hddGb","undefined or null"):new U("ramGb","undefined or null"):new U("vcpuCount","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("vcpuCount")&&null!==t.vcpuCount&&void 0!==t.vcpuCount&&n.setVcpuCount(t.vcpuCount),t.hasOwnProperty("ramGb")&&null!==t.ramGb&&void 0!==t.ramGb&&n.setRamGb(t.ramGb),t.hasOwnProperty("hddGb")&&null!==t.hddGb&&void 0!==t.hddGb&&n.setHddGb(t.hddGb),t.hasOwnProperty("ssdGb")&&null!==t.ssdGb&&void 0!==t.ssdGb&&n.setSsdGb(t.ssdGb),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=La({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Wa(t.prototype,n),r&&Wa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function qa(e){return qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qa(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 Xa(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){Ya(e,t,n[t])})):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 Ya(e,t,n){return(t=Qa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qa(r.key),r)}}function Qa(e){var t=function(e){if("object"!=qa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qa(t)?t:t+""}function es(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(es=function(){return!!e})()}function ts(e){return ts=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ts(e)}function ns(e,t){return ns=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ns(e,t)}Ha.prototype.vcpuCount=void 0,Ha.prototype.ramGb=void 0,Ha.prototype.hddGb=void 0,Ha.prototype.ssdGb=void 0,Ha.prototype.$reserved=void 0,Ha.prototype.$objectType=void 0,Ha.prototype.$unknownFields=void 0;var rs=new WeakSet,os=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=ts(t),function(e,t){if(t&&("object"==qa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,es()?Reflect.construct(t,n||[],ts(e).constructor):t.apply(e,n))}(this,t),rs),e.$objectType="aiops.v4.config.Simulation",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ns(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getSimulationSpec",value:function(){return this.simulationSpec}},{key:"setSimulationSpec",value:function(e){this.simulationSpec=e}},{key:"toJson",value:function(e){return Xa(!1===e?Xa(Xa(Xa(Xa(Xa({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getSimulationSpec()&&null!==this.getSimulationSpec()?{simulationSpec:this.getSimulationSpec().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()}:{}):Xa(Xa({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getSimulationSpec()&&null!==this.getSimulationSpec()?{simulationSpec:this.getSimulationSpec().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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!F.validateMaxLength(this.name,256))return new U("name","does not satisfy required maxLength constraint: 256");if(!F.validateMinLength(this.name,1))return new U("name","does not satisfy required minLength constraint: 1")}return"simulationSpec"!==t||void 0!==this.simulationSpec&&null!==this.simulationSpec?new U(t,"no such property exists"):new U("simulationSpec","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,bo.constructFromObject(e,n,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&n.setName(e.name),e.hasOwnProperty("simulationSpec")&&null!==e.simulationSpec&&void 0!==e.simulationSpec&&n.setSimulationSpec(Ha.constructFromObject(e.simulationSpec)),!r))for(var o in n.$unknownFields=Xa({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Za(n.prototype,r),o&&Za(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(bo);function is(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 as(e){return as="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},as(e)}function 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 us(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){ls(e,t,n[t])})):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 ls(e,t,n){return(t=fs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fs(r.key),r)}}function fs(e){var t=function(e){if("object"!=as(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=as(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==as(t)?t:t+""}function ps(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ps=function(){return!!e})()}function ys(e){return ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ys(e)}function ds(e,t){return ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ds(e,t)}function vs(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")}os.prototype.name=void 0,os.prototype.simulationSpec=void 0,bo.prototype.extId=void 0,bo.prototype.links=void 0,io.prototype.tenantId=void 0;var hs=new WeakSet,bs=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=ys(t),function(e,t){if(t&&("object"==as(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,ps()?Reflect.construct(t,n||[],ys(e).constructor):t.apply(e,n))}(this,t),hs),e.$objectType="aiops.v4.config.CreateSimulationApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ds(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 us(us(us({},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})):vs(hs,this,ms).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})):vs(hs,this,ms).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:as(e.data)){case"aiops.v4.config.Simulation":r.setData(os.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=us({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&cs(n.prototype,r),o&&cs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ms(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return is(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)?is(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===as(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 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,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 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){if("object"!=gs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gs(t)?t:t+""}function 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 Ts(e,t){return Ts=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ts(e,t)}bs.prototype.metadata=void 0,bs.prototype.data=void 0,bs.prototype.$reserved=void 0,bs.prototype.$objectType=void 0,bs.prototype.$unknownFields=void 0;var Ss=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=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))}(this,t)).$objectType="aiops.v4.config.SimulationProjection",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ts(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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,os.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(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){Os(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ws(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&js(n.prototype,r),o&&js(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(os);function Cs(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 Es(e){return Es="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Es(e)}function Ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ds(Object(n),!0).forEach((function(t){Rs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ds(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rs(e,t,n){return(t=Is(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function As(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Is(r.key),r)}}function Is(e){var t=function(e){if("object"!=Es(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Es(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Es(t)?t:t+""}function Us(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Us=function(){return!!e})()}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ms(e)}function xs(e,t){return xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xs(e,t)}function Ns(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 _s=new WeakSet,Vs=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=Ms(t),function(e,t){if(t&&("object"==Es(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,Us()?Reflect.construct(t,n||[],Ms(e).constructor):t.apply(e,n))}(this,t),_s),e.$objectType="aiops.v4.config.ListSimulationsApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xs(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 Fs(Fs(Fs({},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})):Ns(_s,this,Bs).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})):Ns(_s,this,Bs).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Es(n[0]),o=0;o<n.length;o++)switch(a){case"aiops.v4.config.Simulation":r=os.constructFromObject(n[o],void 0),i.push(r);break;case"aiops.v4.config.SimulationProjection":r=Ss.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setData(i)}else{if("aiops.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Es(e.data)))throw"Unknown datatype "+a+" in data";s.setData(pn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Fs({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&As(n.prototype,r),o&&As(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Bs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Cs(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)?Cs(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Es(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 Ls(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 Js(e){return Js="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Js(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 zs(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){Gs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ws(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gs(e,t,n){return(t=qs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,qs(r.key),r)}}function qs(e){var t=function(e){if("object"!=Js(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Js(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Js(t)?t:t+""}function Ks(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ks=function(){return!!e})()}function Xs(e){return Xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xs(e)}function Ys(e,t){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ys(e,t)}function Zs(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 Qs=new WeakSet,eu=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=Xs(t),function(e,t){if(t&&("object"==Js(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||[],Xs(e).constructor):t.apply(e,n))}(this,t),Qs),e.$objectType="aiops.v4.config.UpdateSimulationApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ys(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 zs(zs(zs({},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})):Zs(Qs,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})):Zs(Qs,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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Js(n[0]),o=0;o<n.length;o++){if("aiops.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";r=Mt.constructFromObject(n[o],void 0),i.push(r)}s.setData(i)}else{if("aiops.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Js(e.data)))throw"Unknown datatype "+a+" in data";s.setData(pn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=zs({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Hs(n.prototype,r),o&&Hs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function tu(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Ls(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)?Ls(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Js(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}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 nu={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RF_2:"RF_2",RF_3:"RF_3",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(nu).find((function(t){return nu[t]===e}));return null==t?nu.$UNKNOWN:nu[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case nu.$UNKNOWN:case nu.$REDACTED:case nu.RF_2:case nu.RF_3:return;default:throw new Error("Invalid : must be ReplicationFactor.{ $UNKNOWN|$REDACTED|RF_2|RF_3 }")}}};Object.freeze(nu);const ru=nu;function ou(e){return ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ou(e)}function iu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function au(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iu(Object(n),!0).forEach((function(t){su(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function su(e,t,n){return(t=lu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lu(r.key),r)}}function lu(e){var t=function(e){if("object"!=ou(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ou(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ou(t)?t:t+""}var cu=new WeakSet,fu=function(){function e(t,n,r,o,i,a,s,u,l,c){!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,cu),this.replicationFactor=t,this.compressionSavingPercent=n,this.dedupSavingPercent=r,this.erasureCodingSavingPercent=o,this.overallSavingPercent=i,this.cpuOverCommitRatio=a,this.ramOverCommitRatio=s,this.cpuReservationPercentage=u,this.ramReservationPercentage=l,this.storageReservationPercentage=c,this.$objectType="aiops.v4.config.DataStoreConfig",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getReplicationFactor",value:function(){return this.replicationFactor}},{key:"setReplicationFactor",value:function(e){this.replicationFactor=e}},{key:"getCompressionSavingPercent",value:function(){return this.compressionSavingPercent}},{key:"setCompressionSavingPercent",value:function(e){this.compressionSavingPercent=e}},{key:"getDedupSavingPercent",value:function(){return this.dedupSavingPercent}},{key:"setDedupSavingPercent",value:function(e){this.dedupSavingPercent=e}},{key:"getErasureCodingSavingPercent",value:function(){return this.erasureCodingSavingPercent}},{key:"setErasureCodingSavingPercent",value:function(e){this.erasureCodingSavingPercent=e}},{key:"getOverallSavingPercent",value:function(){return this.overallSavingPercent}},{key:"setOverallSavingPercent",value:function(e){this.overallSavingPercent=e}},{key:"getCpuOverCommitRatio",value:function(){return this.cpuOverCommitRatio}},{key:"setCpuOverCommitRatio",value:function(e){this.cpuOverCommitRatio=e}},{key:"getRamOverCommitRatio",value:function(){return this.ramOverCommitRatio}},{key:"setRamOverCommitRatio",value:function(e){this.ramOverCommitRatio=e}},{key:"getCpuReservationPercentage",value:function(){return this.cpuReservationPercentage}},{key:"setCpuReservationPercentage",value:function(e){this.cpuReservationPercentage=e}},{key:"getRamReservationPercentage",value:function(){return this.ramReservationPercentage}},{key:"setRamReservationPercentage",value:function(e){this.ramReservationPercentage=e}},{key:"getStorageReservationPercentage",value:function(){return this.storageReservationPercentage}},{key:"setStorageReservationPercentage",value:function(e){this.storageReservationPercentage=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(au(au(au(au(au(au(au(au({},void 0!==this.getReplicationFactor()&&null!==this.getReplicationFactor()?{replicationFactor:this.getReplicationFactor()}:{}),void 0!==this.getCompressionSavingPercent()&&null!==this.getCompressionSavingPercent()?{compressionSavingPercent:this.getCompressionSavingPercent()}:{}),void 0!==this.getDedupSavingPercent()&&null!==this.getDedupSavingPercent()?{dedupSavingPercent:this.getDedupSavingPercent()}:{}),void 0!==this.getErasureCodingSavingPercent()&&null!==this.getErasureCodingSavingPercent()?{erasureCodingSavingPercent:this.getErasureCodingSavingPercent()}:{}),void 0!==this.getOverallSavingPercent()&&null!==this.getOverallSavingPercent()?{overallSavingPercent:this.getOverallSavingPercent()}:{}),void 0!==this.getCpuOverCommitRatio()&&null!==this.getCpuOverCommitRatio()?{cpuOverCommitRatio:this.getCpuOverCommitRatio()}:{}),void 0!==this.getRamOverCommitRatio()&&null!==this.getRamOverCommitRatio()?{ramOverCommitRatio:this.getRamOverCommitRatio()}:{}),void 0!==this.getCpuReservationPercentage()&&null!==this.getCpuReservationPercentage()?{cpuReservationPercentage:this.getCpuReservationPercentage()}:{}),void 0!==this.getRamReservationPercentage()&&null!==this.getRamReservationPercentage()?{ramReservationPercentage:this.getRamReservationPercentage()}:{}),void 0!==this.getStorageReservationPercentage()&&null!==this.getStorageReservationPercentage()?{storageReservationPercentage:this.getStorageReservationPercentage()}:{}),{},{$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 S?r=["replicationFactor","compressionSavingPercent","dedupSavingPercent","erasureCodingSavingPercent","overallSavingPercent","cpuOverCommitRatio","ramOverCommitRatio","cpuReservationPercentage","ramReservationPercentage","storageReservationPercentage"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"replicationFactor"!==t||void 0!==this.replicationFactor&&null!==this.replicationFactor?"compressionSavingPercent"!==t||void 0!==this.compressionSavingPercent&&null!==this.compressionSavingPercent?"dedupSavingPercent"!==t||void 0!==this.dedupSavingPercent&&null!==this.dedupSavingPercent?"erasureCodingSavingPercent"!==t||void 0!==this.erasureCodingSavingPercent&&null!==this.erasureCodingSavingPercent?"overallSavingPercent"!==t||void 0!==this.overallSavingPercent&&null!==this.overallSavingPercent?"cpuOverCommitRatio"!==t||void 0!==this.cpuOverCommitRatio&&null!==this.cpuOverCommitRatio?"ramOverCommitRatio"!==t||void 0!==this.ramOverCommitRatio&&null!==this.ramOverCommitRatio?"cpuReservationPercentage"!==t||void 0!==this.cpuReservationPercentage&&null!==this.cpuReservationPercentage?"ramReservationPercentage"!==t||void 0!==this.ramReservationPercentage&&null!==this.ramReservationPercentage?"storageReservationPercentage"!==t||void 0!==this.storageReservationPercentage&&null!==this.storageReservationPercentage?"$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("storageReservationPercentage","undefined or null"):new U("ramReservationPercentage","undefined or null"):new U("cpuReservationPercentage","undefined or null"):new U("ramOverCommitRatio","undefined or null"):new U("cpuOverCommitRatio","undefined or null"):new U("overallSavingPercent","undefined or null"):new U("erasureCodingSavingPercent","undefined or null"):new U("dedupSavingPercent","undefined or null"):new U("compressionSavingPercent","undefined or null"):new U("replicationFactor","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("replicationFactor")&&null!==t.replicationFactor&&void 0!==t.replicationFactor&&n.setReplicationFactor(ru.constructFromObject(t.replicationFactor)),t.hasOwnProperty("compressionSavingPercent")&&null!==t.compressionSavingPercent&&void 0!==t.compressionSavingPercent&&n.setCompressionSavingPercent(t.compressionSavingPercent),t.hasOwnProperty("dedupSavingPercent")&&null!==t.dedupSavingPercent&&void 0!==t.dedupSavingPercent&&n.setDedupSavingPercent(t.dedupSavingPercent),t.hasOwnProperty("erasureCodingSavingPercent")&&null!==t.erasureCodingSavingPercent&&void 0!==t.erasureCodingSavingPercent&&n.setErasureCodingSavingPercent(t.erasureCodingSavingPercent),t.hasOwnProperty("overallSavingPercent")&&null!==t.overallSavingPercent&&void 0!==t.overallSavingPercent&&n.setOverallSavingPercent(t.overallSavingPercent),t.hasOwnProperty("cpuOverCommitRatio")&&null!==t.cpuOverCommitRatio&&void 0!==t.cpuOverCommitRatio&&n.setCpuOverCommitRatio(t.cpuOverCommitRatio),t.hasOwnProperty("ramOverCommitRatio")&&null!==t.ramOverCommitRatio&&void 0!==t.ramOverCommitRatio&&n.setRamOverCommitRatio(t.ramOverCommitRatio),t.hasOwnProperty("cpuReservationPercentage")&&null!==t.cpuReservationPercentage&&void 0!==t.cpuReservationPercentage&&n.setCpuReservationPercentage(t.cpuReservationPercentage),t.hasOwnProperty("ramReservationPercentage")&&null!==t.ramReservationPercentage&&void 0!==t.ramReservationPercentage&&n.setRamReservationPercentage(t.ramReservationPercentage),t.hasOwnProperty("storageReservationPercentage")&&null!==t.storageReservationPercentage&&void 0!==t.storageReservationPercentage&&n.setStorageReservationPercentage(t.storageReservationPercentage),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=au({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&uu(t.prototype,n),r&&uu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();fu.prototype.replicationFactor=void 0,fu.prototype.compressionSavingPercent=25.81037,fu.prototype.dedupSavingPercent=35.864,fu.prototype.erasureCodingSavingPercent=15.16939,fu.prototype.overallSavingPercent=59.64,fu.prototype.cpuOverCommitRatio=1,fu.prototype.ramOverCommitRatio=1,fu.prototype.cpuReservationPercentage=0,fu.prototype.ramReservationPercentage=0,fu.prototype.storageReservationPercentage=0,fu.prototype.$reserved=void 0,fu.prototype.$objectType=void 0,fu.prototype.$unknownFields=void 0;var pu={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",EXISTING:"EXISTING",USER_ADDED:"USER_ADDED",RECOMMENDED:"RECOMMENDED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(pu).find((function(t){return pu[t]===e}));return null==t?pu.$UNKNOWN:pu[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case pu.$UNKNOWN:case pu.$REDACTED:case pu.EXISTING:case pu.USER_ADDED:case pu.RECOMMENDED:return;default:throw new Error("Invalid : must be NodeSource.{ $UNKNOWN|$REDACTED|EXISTING|USER_ADDED|RECOMMENDED }")}}};Object.freeze(pu);const yu=pu;function du(e){return du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},du(e)}function vu(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 hu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vu(Object(n),!0).forEach((function(t){bu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vu(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 mu(e,t){for(var n=0;n<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"!=du(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=du(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==du(t)?t:t+""}var wu=new WeakSet,Ou=function(){function e(t,n,r,o,i){!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,wu),this.cpuGhz=t,this.ramGb=n,this.hddGb=r,this.ssdGb=o,this.nvmeGb=i,this.$objectType="aiops.v4.config.ResourceCapacity",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCpuGhz",value:function(){return this.cpuGhz}},{key:"setCpuGhz",value:function(e){this.cpuGhz=e}},{key:"getRamGb",value:function(){return this.ramGb}},{key:"setRamGb",value:function(e){this.ramGb=e}},{key:"getHddGb",value:function(){return this.hddGb}},{key:"setHddGb",value:function(e){this.hddGb=e}},{key:"getSsdGb",value:function(){return this.ssdGb}},{key:"setSsdGb",value:function(e){this.ssdGb=e}},{key:"getNvmeGb",value:function(){return this.nvmeGb}},{key:"setNvmeGb",value:function(e){this.nvmeGb=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 hu(hu(hu(hu(hu(hu({},void 0!==this.getCpuGhz()&&null!==this.getCpuGhz()?{cpuGhz:this.getCpuGhz()}:{}),void 0!==this.getRamGb()&&null!==this.getRamGb()?{ramGb:this.getRamGb()}:{}),void 0!==this.getHddGb()&&null!==this.getHddGb()?{hddGb:this.getHddGb()}:{}),void 0!==this.getSsdGb()&&null!==this.getSsdGb()?{ssdGb:this.getSsdGb()}:{}),void 0!==this.getNvmeGb()&&null!==this.getNvmeGb()?{nvmeGb:this.getNvmeGb()}:{}),{},{$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 S?r=["cpuGhz","ramGb","hddGb","ssdGb","nvmeGb"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"cpuGhz"!==t||void 0!==this.cpuGhz&&null!==this.cpuGhz?"ramGb"!==t||void 0!==this.ramGb&&null!==this.ramGb?"hddGb"!==t||void 0!==this.hddGb&&null!==this.hddGb?"ssdGb"!==t||void 0!==this.ssdGb&&null!==this.ssdGb?"nvmeGb"!==t||void 0!==this.nvmeGb&&null!==this.nvmeGb?"$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("nvmeGb","undefined or null"):new U("ssdGb","undefined or null"):new U("hddGb","undefined or null"):new U("ramGb","undefined or null"):new U("cpuGhz","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("cpuGhz")&&null!==t.cpuGhz&&void 0!==t.cpuGhz&&n.setCpuGhz(t.cpuGhz),t.hasOwnProperty("ramGb")&&null!==t.ramGb&&void 0!==t.ramGb&&n.setRamGb(t.ramGb),t.hasOwnProperty("hddGb")&&null!==t.hddGb&&void 0!==t.hddGb&&n.setHddGb(t.hddGb),t.hasOwnProperty("ssdGb")&&null!==t.ssdGb&&void 0!==t.ssdGb&&n.setSsdGb(t.ssdGb),t.hasOwnProperty("nvmeGb")&&null!==t.nvmeGb&&void 0!==t.nvmeGb&&n.setNvmeGb(t.nvmeGb),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=hu({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&mu(t.prototype,n),r&&mu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ju(e){return ju="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ju(e)}function $u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ku(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$u(Object(n),!0).forEach((function(t){Pu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pu(e,t,n){return(t=Su(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Su(r.key),r)}}function Su(e){var t=function(e){if("object"!=ju(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ju(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ju(t)?t:t+""}function Cu(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")}Ou.prototype.cpuGhz=void 0,Ou.prototype.ramGb=void 0,Ou.prototype.hddGb=void 0,Ou.prototype.ssdGb=void 0,Ou.prototype.nvmeGb=void 0,Ou.prototype.$reserved=void 0,Ou.prototype.$objectType=void 0,Ou.prototype.$unknownFields=void 0;var Eu=new WeakSet,Du=function(){function e(t,n,r,o){!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,Eu),this.model=t,this.nodeCount=n,this.isEnabled=r,this.nodeSource=o,this.$objectType="aiops.v4.config.NodeConfig",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getModel",value:function(){return this.model}},{key:"setModel",value:function(e){this.model=e}},{key:"getNodeCount",value:function(){return this.nodeCount}},{key:"setNodeCount",value:function(e){this.nodeCount=e}},{key:"getTargetOnlineTime",value:function(){return this.targetOnlineTime}},{key:"setTargetOnlineTime",value:function(e){this.targetOnlineTime=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getNodeSource",value:function(){return this.nodeSource}},{key:"setNodeSource",value:function(e){this.nodeSource=e}},{key:"getNodeResourceCapacity",value:function(){return this.nodeResourceCapacity}},{key:"setNodeResourceCapacity",value:function(e){this.nodeResourceCapacity=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ku(ku(ku(ku(ku(ku(ku({},void 0!==this.getModel()&&null!==this.getModel()?{model:this.getModel()}:{}),void 0!==this.getNodeCount()&&null!==this.getNodeCount()?{nodeCount:this.getNodeCount()}:{}),void 0!==this.getTargetOnlineTime()&&null!==this.getTargetOnlineTime()?{targetOnlineTime:Cu(Eu,this,Fu).call(this,this.getTargetOnlineTime(),!1)}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getNodeSource()&&null!==this.getNodeSource()?{nodeSource:this.getNodeSource()}:{}),void 0!==this.getNodeResourceCapacity()&&null!==this.getNodeResourceCapacity()?{nodeResourceCapacity:this.getNodeResourceCapacity().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 S?r=["model","nodeCount","isEnabled","nodeSource"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("model"===t&&(void 0===this.model||null===this.model))return new U("model","undefined or null");if("nodeCount"===t){if(void 0===this.nodeCount||null===this.nodeCount)return new U("nodeCount","undefined or null");if(!F.validateMaximum(this.nodeCount,500))return new U("nodeCount","does not satisfy required maximum constraint: 500");if(!F.validateMinimum(this.nodeCount,1))return new U("nodeCount","does not satisfy required minimum constraint: 1")}return"targetOnlineTime"!==t||void 0!==this.targetOnlineTime&&null!==this.targetOnlineTime?"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"nodeSource"!==t||void 0!==this.nodeSource&&null!==this.nodeSource?"nodeResourceCapacity"!==t||void 0!==this.nodeResourceCapacity&&null!==this.nodeResourceCapacity?"$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("nodeResourceCapacity","undefined or null"):new U("nodeSource","undefined or null"):new U("isEnabled","undefined or null"):new U("targetOnlineTime","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("model")&&null!==t.model&&void 0!==t.model&&n.setModel(t.model),t.hasOwnProperty("nodeCount")&&null!==t.nodeCount&&void 0!==t.nodeCount&&n.setNodeCount(t.nodeCount),t.hasOwnProperty("targetOnlineTime")&&null!==t.targetOnlineTime&&void 0!==t.targetOnlineTime&&n.setTargetOnlineTime(t.targetOnlineTime),t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&n.setIsEnabled(t.isEnabled),t.hasOwnProperty("nodeSource")&&null!==t.nodeSource&&void 0!==t.nodeSource&&n.setNodeSource(yu.constructFromObject(t.nodeSource)),t.hasOwnProperty("nodeResourceCapacity")&&null!==t.nodeResourceCapacity&&void 0!==t.nodeResourceCapacity&&n.setNodeResourceCapacity(Ou.constructFromObject(t.nodeResourceCapacity)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=ku({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Tu(t.prototype,n),r&&Tu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Fu(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}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 Au(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Au(Object(n),!0).forEach((function(t){Uu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uu(e,t,n){return(t=xu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xu(r.key),r)}}function xu(e){var t=function(e){if("object"!=Ru(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ru(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ru(t)?t:t+""}Du.prototype.model=void 0,Du.prototype.nodeCount=void 0,Du.prototype.targetOnlineTime=void 0,Du.prototype.isEnabled=!1,Du.prototype.nodeSource=void 0,Du.prototype.nodeResourceCapacity=void 0,Du.prototype.$reserved=void 0,Du.prototype.$objectType=void 0,Du.prototype.$unknownFields=void 0;var Nu=new WeakSet,_u=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,Nu),this.dataStoreConfig=t,this.$objectType="aiops.v4.config.ClusterConfig",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getDataStoreConfig",value:function(){return this.dataStoreConfig}},{key:"setDataStoreConfig",value:function(e){this.dataStoreConfig=e}},{key:"getNodeConfigs",value:function(){return this.nodeConfigs}},{key:"setNodeConfigs",value:function(e){this.nodeConfigs=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Iu(Iu(Iu({},void 0!==this.getDataStoreConfig()&&null!==this.getDataStoreConfig()?{dataStoreConfig:this.getDataStoreConfig().toJson(!1)}:{}),void 0!==this.getNodeConfigs()&&null!==this.getNodeConfigs()?{nodeConfigs:this.getNodeConfigs().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 S?r=["dataStoreConfig"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("dataStoreConfig"===t&&(void 0===this.dataStoreConfig||null===this.dataStoreConfig))return new U("dataStoreConfig","undefined or null");if("nodeConfigs"===t){if(void 0===this.nodeConfigs||null===this.nodeConfigs)return new U("nodeConfigs","undefined or null");if(!F.validateMaxItems(this.nodeConfigs,50))return new U("nodeConfigs","does not satisfy required maxItems constraint: 50")}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,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(a=a||new e,t.hasOwnProperty("dataStoreConfig")&&null!==t.dataStoreConfig&&void 0!==t.dataStoreConfig&&a.setDataStoreConfig(fu.constructFromObject(t.dataStoreConfig)),t.hasOwnProperty("nodeConfigs")&&null!==t.nodeConfigs&&void 0!==t.nodeConfigs){for(i=[],n=t.nodeConfigs,o=0;o<n.length;o++)r=Du.constructFromObject(n[o],void 0),i.push(r);a.setNodeConfigs(i)}if(t.hasOwnProperty("$reserved")&&(a.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(a.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(a.$unknownFields=t.$unknownFields),!s)for(var u in a.$unknownFields=Iu({},t.$unknownFields),t)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=t[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Mu(t.prototype,n),r&&Mu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 Lu(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){Ju(e,t,n[t])})):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 Ju(e,t,n){return(t=zu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zu(r.key),r)}}function zu(e){var t=function(e){if("object"!=Vu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vu(t)?t:t+""}function Gu(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.dataStoreConfig=void 0,_u.prototype.nodeConfigs=void 0,_u.prototype.$reserved=void 0,_u.prototype.$objectType=void 0,_u.prototype.$unknownFields=void 0;var Hu=new WeakSet,qu=function(){function e(t,n,r,o){!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,Hu),this.minimumRunwayDays=t,this.cpuRunwayDays=n,this.memoryRunwayDays=r,this.storageRunwayDays=o,this.$objectType="aiops.v4.config.Runway",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getMinimumRunwayDays",value:function(){return this.minimumRunwayDays}},{key:"setMinimumRunwayDays",value:function(e){this.minimumRunwayDays=e}},{key:"getCpuRunwayDays",value:function(){return this.cpuRunwayDays}},{key:"setCpuRunwayDays",value:function(e){this.cpuRunwayDays=e}},{key:"getMemoryRunwayDays",value:function(){return this.memoryRunwayDays}},{key:"setMemoryRunwayDays",value:function(e){this.memoryRunwayDays=e}},{key:"getStorageRunwayDays",value:function(){return this.storageRunwayDays}},{key:"setStorageRunwayDays",value:function(e){this.storageRunwayDays=e}},{key:"getRunwayStartDate",value:function(){return this.runwayStartDate}},{key:"setRunwayStartDate",value:function(e){this.runwayStartDate=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 Lu(Lu(Lu(Lu(Lu(Lu({},void 0!==this.getMinimumRunwayDays()&&null!==this.getMinimumRunwayDays()?{minimumRunwayDays:this.getMinimumRunwayDays()}:{}),void 0!==this.getCpuRunwayDays()&&null!==this.getCpuRunwayDays()?{cpuRunwayDays:this.getCpuRunwayDays()}:{}),void 0!==this.getMemoryRunwayDays()&&null!==this.getMemoryRunwayDays()?{memoryRunwayDays:this.getMemoryRunwayDays()}:{}),void 0!==this.getStorageRunwayDays()&&null!==this.getStorageRunwayDays()?{storageRunwayDays:this.getStorageRunwayDays()}:{}),void 0!==this.getRunwayStartDate()&&null!==this.getRunwayStartDate()?{runwayStartDate:Gu(Hu,this,Ku).call(this,this.getRunwayStartDate(),!0)}:{}),{},{$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 S?r=["minimumRunwayDays","cpuRunwayDays","memoryRunwayDays","storageRunwayDays"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("minimumRunwayDays"===t){if(void 0===this.minimumRunwayDays||null===this.minimumRunwayDays)return new U("minimumRunwayDays","undefined or null");if(!F.validateMaximum(this.minimumRunwayDays,366))return new U("minimumRunwayDays","does not satisfy required maximum constraint: 366");if(!F.validateMinimum(this.minimumRunwayDays,0))return new U("minimumRunwayDays","does not satisfy required minimum constraint: 0")}if("cpuRunwayDays"===t){if(void 0===this.cpuRunwayDays||null===this.cpuRunwayDays)return new U("cpuRunwayDays","undefined or null");if(!F.validateMaximum(this.cpuRunwayDays,366))return new U("cpuRunwayDays","does not satisfy required maximum constraint: 366");if(!F.validateMinimum(this.cpuRunwayDays,0))return new U("cpuRunwayDays","does not satisfy required minimum constraint: 0")}if("memoryRunwayDays"===t){if(void 0===this.memoryRunwayDays||null===this.memoryRunwayDays)return new U("memoryRunwayDays","undefined or null");if(!F.validateMaximum(this.memoryRunwayDays,366))return new U("memoryRunwayDays","does not satisfy required maximum constraint: 366");if(!F.validateMinimum(this.memoryRunwayDays,0))return new U("memoryRunwayDays","does not satisfy required minimum constraint: 0")}if("storageRunwayDays"===t){if(void 0===this.storageRunwayDays||null===this.storageRunwayDays)return new U("storageRunwayDays","undefined or null");if(!F.validateMaximum(this.storageRunwayDays,366))return new U("storageRunwayDays","does not satisfy required maximum constraint: 366");if(!F.validateMinimum(this.storageRunwayDays,0))return new U("storageRunwayDays","does not satisfy required minimum constraint: 0")}return"runwayStartDate"!==t||void 0!==this.runwayStartDate&&null!==this.runwayStartDate?"$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("runwayStartDate","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("minimumRunwayDays")&&null!==t.minimumRunwayDays&&void 0!==t.minimumRunwayDays&&n.setMinimumRunwayDays(t.minimumRunwayDays),t.hasOwnProperty("cpuRunwayDays")&&null!==t.cpuRunwayDays&&void 0!==t.cpuRunwayDays&&n.setCpuRunwayDays(t.cpuRunwayDays),t.hasOwnProperty("memoryRunwayDays")&&null!==t.memoryRunwayDays&&void 0!==t.memoryRunwayDays&&n.setMemoryRunwayDays(t.memoryRunwayDays),t.hasOwnProperty("storageRunwayDays")&&null!==t.storageRunwayDays&&void 0!==t.storageRunwayDays&&n.setStorageRunwayDays(t.storageRunwayDays),t.hasOwnProperty("runwayStartDate")&&null!==t.runwayStartDate&&void 0!==t.runwayStartDate&&n.setRunwayStartDate(t.runwayStartDate),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Lu({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Wu(t.prototype,n),r&&Wu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ku(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}qu.prototype.minimumRunwayDays=void 0,qu.prototype.cpuRunwayDays=void 0,qu.prototype.memoryRunwayDays=void 0,qu.prototype.storageRunwayDays=void 0,qu.prototype.runwayStartDate=void 0,qu.prototype.$reserved=void 0,qu.prototype.$objectType=void 0,qu.prototype.$unknownFields=void 0;var Xu={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NUTANIX:"NUTANIX",DELL:"DELL",LENOVO:"LENOVO",CISCO:"CISCO",IBM:"IBM",HPE_DX:"HPE_DX",AWS:"AWS",FUJITSU:"FUJITSU",AZURE:"AZURE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Xu).find((function(t){return Xu[t]===e}));return null==t?Xu.$UNKNOWN:Xu[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Xu.$UNKNOWN:case Xu.$REDACTED:case Xu.NUTANIX:case Xu.DELL:case Xu.LENOVO:case Xu.CISCO:case Xu.IBM:case Xu.HPE_DX:case Xu.AWS:case Xu.FUJITSU:case Xu.AZURE:return;default:throw new Error("Invalid : must be Vendor.{ $UNKNOWN|$REDACTED|NUTANIX|DELL|LENOVO|CISCO|IBM|HPE_DX|AWS|FUJITSU|AZURE }")}}};Object.freeze(Xu);const Yu=Xu;var Zu={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INCREASE:"INCREASE",DECREASE:"DECREASE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Zu).find((function(t){return Zu[t]===e}));return null==t?Zu.$UNKNOWN:Zu[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Zu.$UNKNOWN:case Zu.$REDACTED:case Zu.INCREASE:case Zu.DECREASE:return;default:throw new Error("Invalid : must be CapacityUpdateType.{ $UNKNOWN|$REDACTED|INCREASE|DECREASE }")}}};Object.freeze(Zu);const Qu=Zu;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=il(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ol(e,t){for(var n=0;n<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"!=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+""}var al=new WeakSet,sl=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,al),this.percentageChange=t,this.changeType=n,this.$objectType="aiops.v4.config.CapacityUpdateConfig",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getPercentageChange",value:function(){return this.percentageChange}},{key:"setPercentageChange",value:function(e){this.percentageChange=e}},{key:"getChangeType",value:function(){return this.changeType}},{key:"setChangeType",value:function(e){this.changeType=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 nl(nl(nl({},void 0!==this.getPercentageChange()&&null!==this.getPercentageChange()?{percentageChange:this.getPercentageChange()}:{}),void 0!==this.getChangeType()&&null!==this.getChangeType()?{changeType:this.getChangeType()}:{}),{},{$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 S?r=["percentageChange","changeType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"percentageChange"!==t||void 0!==this.percentageChange&&null!==this.percentageChange?"changeType"!==t||void 0!==this.changeType&&null!==this.changeType?"$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("changeType","undefined or null"):new U("percentageChange","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("percentageChange")&&null!==t.percentageChange&&void 0!==t.percentageChange&&n.setPercentageChange(t.percentageChange),t.hasOwnProperty("changeType")&&null!==t.changeType&&void 0!==t.changeType&&n.setChangeType(Qu.constructFromObject(t.changeType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=nl({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ol(t.prototype,n),r&&ol(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();sl.prototype.percentageChange=void 0,sl.prototype.changeType=void 0,sl.prototype.$reserved=void 0,sl.prototype.$objectType=void 0,sl.prototype.$unknownFields=void 0;var ul={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PVS:"PVS",MCS:"MCS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ul).find((function(t){return ul[t]===e}));return null==t?ul.$UNKNOWN:ul[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ul.$UNKNOWN:case ul.$REDACTED:case ul.PVS:case ul.MCS:return;default:throw new Error("Invalid : must be CitrixXenProvisionType.{ $UNKNOWN|$REDACTED|PVS|MCS }")}}};Object.freeze(ul);const ll=ul;var cl={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",XEN_APP:"XEN_APP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(cl).find((function(t){return cl[t]===e}));return null==t?cl.$UNKNOWN:cl[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case cl.$UNKNOWN:case cl.$REDACTED:case cl.XEN_APP:return;default:throw new Error("Invalid : must be CitrixXenWorkloadVendor.{ $UNKNOWN|$REDACTED|XEN_APP }")}}};Object.freeze(cl);const fl=cl;var pl={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WINDOWS_2012R2:"WINDOWS_2012R2",WINDOWS_2008R2:"WINDOWS_2008R2",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.WINDOWS_2012R2:case pl.WINDOWS_2008R2:return;default:throw new Error("Invalid : must be XenOperatingSystem.{ $UNKNOWN|$REDACTED|WINDOWS_2012R2|WINDOWS_2008R2 }")}}};Object.freeze(pl);const yl=pl;function dl(e){return dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dl(e)}function vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vl(Object(n),!0).forEach((function(t){bl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bl(e,t,n){return(t=gl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ml(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gl(r.key),r)}}function gl(e){var t=function(e){if("object"!=dl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dl(t)?t:t+""}var wl=new WeakSet,Ol=function(){function e(t,n,r,o,i,a){!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,wl),this.operatingSystem=t,this.systemDataGb=n,this.userCount=r,this.mcsDiffSizeGb=o,this.userProfileDataMb=i,this.pvsWriteCacheSizeGb=a,this.$objectType="aiops.v4.config.XenWorkload",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getOperatingSystem",value:function(){return this.operatingSystem}},{key:"setOperatingSystem",value:function(e){this.operatingSystem=e}},{key:"getSystemDataGb",value:function(){return this.systemDataGb}},{key:"setSystemDataGb",value:function(e){this.systemDataGb=e}},{key:"getUserCount",value:function(){return this.userCount}},{key:"setUserCount",value:function(e){this.userCount=e}},{key:"getMcsDiffSizeGb",value:function(){return this.mcsDiffSizeGb}},{key:"setMcsDiffSizeGb",value:function(e){this.mcsDiffSizeGb=e}},{key:"getUserProfileDataMb",value:function(){return this.userProfileDataMb}},{key:"setUserProfileDataMb",value:function(e){this.userProfileDataMb=e}},{key:"getPvsWriteCacheSizeGb",value:function(){return this.pvsWriteCacheSizeGb}},{key:"setPvsWriteCacheSizeGb",value:function(e){this.pvsWriteCacheSizeGb=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 hl(hl(hl(hl(hl(hl(hl({},void 0!==this.getOperatingSystem()&&null!==this.getOperatingSystem()?{operatingSystem:this.getOperatingSystem()}:{}),void 0!==this.getSystemDataGb()&&null!==this.getSystemDataGb()?{systemDataGb:this.getSystemDataGb()}:{}),void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{}),void 0!==this.getMcsDiffSizeGb()&&null!==this.getMcsDiffSizeGb()?{mcsDiffSizeGb:this.getMcsDiffSizeGb()}:{}),void 0!==this.getUserProfileDataMb()&&null!==this.getUserProfileDataMb()?{userProfileDataMb:this.getUserProfileDataMb()}:{}),void 0!==this.getPvsWriteCacheSizeGb()&&null!==this.getPvsWriteCacheSizeGb()?{pvsWriteCacheSizeGb:this.getPvsWriteCacheSizeGb()}:{}),{},{$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 S?r=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("operatingSystem"===t&&(void 0===this.operatingSystem||null===this.operatingSystem))return new U("operatingSystem","undefined or null");if("systemDataGb"===t){if(void 0===this.systemDataGb||null===this.systemDataGb)return new U("systemDataGb","undefined or null");if(!F.validateMaximum(this.systemDataGb,62e3))return new U("systemDataGb","does not satisfy required maximum constraint: 62000");if(!F.validateMinimum(this.systemDataGb,20))return new U("systemDataGb","does not satisfy required minimum constraint: 20")}if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new U("userCount","undefined or null");if(!F.validateMaximum(this.userCount,1e5))return new U("userCount","does not satisfy required maximum constraint: 100000");if(!F.validateMinimum(this.userCount,1))return new U("userCount","does not satisfy required minimum constraint: 1")}if("mcsDiffSizeGb"===t){if(void 0===this.mcsDiffSizeGb||null===this.mcsDiffSizeGb)return new U("mcsDiffSizeGb","undefined or null");if(!F.validateMaximum(this.mcsDiffSizeGb,50))return new U("mcsDiffSizeGb","does not satisfy required maximum constraint: 50");if(!F.validateMinimum(this.mcsDiffSizeGb,10))return new U("mcsDiffSizeGb","does not satisfy required minimum constraint: 10")}if("userProfileDataMb"===t){if(void 0===this.userProfileDataMb||null===this.userProfileDataMb)return new U("userProfileDataMb","undefined or null");if(!F.validateMaximum(this.userProfileDataMb,100))return new U("userProfileDataMb","does not satisfy required maximum constraint: 100");if(!F.validateMinimum(this.userProfileDataMb,20))return new U("userProfileDataMb","does not satisfy required minimum constraint: 20")}if("pvsWriteCacheSizeGb"===t){if(void 0===this.pvsWriteCacheSizeGb||null===this.pvsWriteCacheSizeGb)return new U("pvsWriteCacheSizeGb","undefined or null");if(!F.validateMaximum(this.pvsWriteCacheSizeGb,50))return new U("pvsWriteCacheSizeGb","does not satisfy required maximum constraint: 50");if(!F.validateMinimum(this.pvsWriteCacheSizeGb,10))return new U("pvsWriteCacheSizeGb","does not satisfy required minimum constraint: 10")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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("operatingSystem")&&null!==t.operatingSystem&&void 0!==t.operatingSystem&&n.setOperatingSystem(yl.constructFromObject(t.operatingSystem)),t.hasOwnProperty("systemDataGb")&&null!==t.systemDataGb&&void 0!==t.systemDataGb&&n.setSystemDataGb(t.systemDataGb),t.hasOwnProperty("userCount")&&null!==t.userCount&&void 0!==t.userCount&&n.setUserCount(t.userCount),t.hasOwnProperty("mcsDiffSizeGb")&&null!==t.mcsDiffSizeGb&&void 0!==t.mcsDiffSizeGb&&n.setMcsDiffSizeGb(t.mcsDiffSizeGb),t.hasOwnProperty("userProfileDataMb")&&null!==t.userProfileDataMb&&void 0!==t.userProfileDataMb&&n.setUserProfileDataMb(t.userProfileDataMb),t.hasOwnProperty("pvsWriteCacheSizeGb")&&null!==t.pvsWriteCacheSizeGb&&void 0!==t.pvsWriteCacheSizeGb&&n.setPvsWriteCacheSizeGb(t.pvsWriteCacheSizeGb),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=hl({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&ml(t.prototype,n),r&&ml(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function jl(e){return jl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jl(e)}function $l(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 kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$l(Object(n),!0).forEach((function(t){Pl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pl(e,t,n){return(t=Sl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Sl(r.key),r)}}function Sl(e){var t=function(e){if("object"!=jl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jl(t)?t:t+""}function Cl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cl=function(){return!!e})()}function El(e){return El=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},El(e)}function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dl(e,t)}Ol.prototype.operatingSystem=void 0,Ol.prototype.systemDataGb=void 0,Ol.prototype.userCount=void 0,Ol.prototype.mcsDiffSizeGb=void 0,Ol.prototype.userProfileDataMb=void 0,Ol.prototype.pvsWriteCacheSizeGb=void 0,Ol.prototype.$reserved=void 0,Ol.prototype.$objectType=void 0,Ol.prototype.$unknownFields=void 0;var Fl=new WeakSet,Rl=function(e){function t(e,n,r,o,i,a,s,u){var l;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)}(l=function(e,t,n){return t=El(t),function(e,t){if(t&&("object"==jl(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||[],El(e).constructor):t.apply(e,n))}(this,t,[r,o,i,a,s,u]),Fl),l.vendor=e,l.provisionType=n,l.$objectType="aiops.v4.config.CitrixXenWorkload",l.$reserved={$fv:"v4.r0"},l.$unknownFields={},l}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&&Dl(e,t)}(t,e),n=t,r=[{key:"getVendor",value:function(){return this.vendor}},{key:"setVendor",value:function(e){this.vendor=e}},{key:"getProvisionType",value:function(){return this.provisionType}},{key:"setProvisionType",value:function(e){this.provisionType=e}},{key:"toJson",value:function(e){return kl(kl(kl(kl(kl(kl(kl(kl(kl({},void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{}),void 0!==this.getProvisionType()&&null!==this.getProvisionType()?{provisionType:this.getProvisionType()}:{}),void 0!==this.getOperatingSystem()&&null!==this.getOperatingSystem()?{operatingSystem:this.getOperatingSystem()}:{}),void 0!==this.getSystemDataGb()&&null!==this.getSystemDataGb()?{systemDataGb:this.getSystemDataGb()}:{}),void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{}),void 0!==this.getMcsDiffSizeGb()&&null!==this.getMcsDiffSizeGb()?{mcsDiffSizeGb:this.getMcsDiffSizeGb()}:{}),void 0!==this.getUserProfileDataMb()&&null!==this.getUserProfileDataMb()?{userProfileDataMb:this.getUserProfileDataMb()}:{}),void 0!==this.getPvsWriteCacheSizeGb()&&null!==this.getPvsWriteCacheSizeGb()?{pvsWriteCacheSizeGb:this.getPvsWriteCacheSizeGb()}:{}),{},{$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 S?r=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb","vendor","provisionType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"vendor"!==t||void 0!==this.vendor&&null!==this.vendor?"provisionType"!==t||void 0!==this.provisionType&&null!==this.provisionType?new U(t,"no such property exists"):new U("provisionType","undefined or null"):new U("vendor","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Ol.constructFromObject(e,n,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&n.setVendor(fl.constructFromObject(e.vendor)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&n.setProvisionType(ll.constructFromObject(e.provisionType)),!r))for(var o in n.$unknownFields=kl({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Tl(n.prototype,r),o&&Tl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ol);Rl.prototype.vendor=void 0,Rl.prototype.provisionType=void 0,Ol.prototype.operatingSystem=void 0,Ol.prototype.systemDataGb=void 0,Ol.prototype.userCount=void 0,Ol.prototype.mcsDiffSizeGb=void 0,Ol.prototype.userProfileDataMb=void 0,Ol.prototype.pvsWriteCacheSizeGb=void 0;var Al={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM_CLONE:"VM_CLONE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Al).find((function(t){return Al[t]===e}));return null==t?Al.$UNKNOWN:Al[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Al.$UNKNOWN:case Al.$REDACTED:case Al.VM_CLONE:return;default:throw new Error("Invalid : must be MicrosoftXenProvisionType.{ $UNKNOWN|$REDACTED|VM_CLONE }")}}};Object.freeze(Al);const Il=Al;var Ul={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",MICROSOFT_RDSH:"MICROSOFT_RDSH",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ul).find((function(t){return Ul[t]===e}));return null==t?Ul.$UNKNOWN:Ul[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ul.$UNKNOWN:case Ul.$REDACTED:case Ul.MICROSOFT_RDSH:return;default:throw new Error("Invalid : must be MicrosoftXenWorkloadVendor.{ $UNKNOWN|$REDACTED|MICROSOFT_RDSH }")}}};Object.freeze(Ul);const Ml=Ul;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){Vl(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 Vl(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 Bl(e,t){for(var n=0;n<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+""}function Jl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jl=function(){return!!e})()}function Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wl(e)}function zl(e,t){return zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zl(e,t)}var Gl=new WeakSet,Hl=function(e){function t(e,n,r,o,i,a,s,u){var l;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)}(l=function(e,t,n){return t=Wl(t),function(e,t){if(t&&("object"==xl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Jl()?Reflect.construct(t,n||[],Wl(e).constructor):t.apply(e,n))}(this,t,[r,o,i,a,s,u]),Gl),l.vendor=e,l.provisionType=n,l.$objectType="aiops.v4.config.MicrosoftXenWorkload",l.$reserved={$fv:"v4.r0"},l.$unknownFields={},l}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&&zl(e,t)}(t,e),n=t,r=[{key:"getVendor",value:function(){return this.vendor}},{key:"setVendor",value:function(e){this.vendor=e}},{key:"getProvisionType",value:function(){return this.provisionType}},{key:"setProvisionType",value:function(e){this.provisionType=e}},{key:"toJson",value:function(e){return _l(_l(_l(_l(_l(_l(_l(_l(_l({},void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{}),void 0!==this.getProvisionType()&&null!==this.getProvisionType()?{provisionType:this.getProvisionType()}:{}),void 0!==this.getOperatingSystem()&&null!==this.getOperatingSystem()?{operatingSystem:this.getOperatingSystem()}:{}),void 0!==this.getSystemDataGb()&&null!==this.getSystemDataGb()?{systemDataGb:this.getSystemDataGb()}:{}),void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{}),void 0!==this.getMcsDiffSizeGb()&&null!==this.getMcsDiffSizeGb()?{mcsDiffSizeGb:this.getMcsDiffSizeGb()}:{}),void 0!==this.getUserProfileDataMb()&&null!==this.getUserProfileDataMb()?{userProfileDataMb:this.getUserProfileDataMb()}:{}),void 0!==this.getPvsWriteCacheSizeGb()&&null!==this.getPvsWriteCacheSizeGb()?{pvsWriteCacheSizeGb:this.getPvsWriteCacheSizeGb()}:{}),{},{$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 S?r=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb","vendor","provisionType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"vendor"!==t||void 0!==this.vendor&&null!==this.vendor?"provisionType"!==t||void 0!==this.provisionType&&null!==this.provisionType?new U(t,"no such property exists"):new U("provisionType","undefined or null"):new U("vendor","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Ol.constructFromObject(e,n,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&n.setVendor(Ml.constructFromObject(e.vendor)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&n.setProvisionType(Il.constructFromObject(e.provisionType)),!r))for(var o in n.$unknownFields=_l({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Bl(n.prototype,r),o&&Bl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ol);function ql(e){return ql="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ql(e)}function Kl(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?Kl(Object(n),!0).forEach((function(t){Yl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yl(e,t,n){return(t=Ql(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ql(r.key),r)}}function Ql(e){var t=function(e){if("object"!=ql(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ql(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ql(t)?t:t+""}Hl.prototype.vendor=void 0,Hl.prototype.provisionType=void 0,Ol.prototype.operatingSystem=void 0,Ol.prototype.systemDataGb=void 0,Ol.prototype.userCount=void 0,Ol.prototype.mcsDiffSizeGb=void 0,Ol.prototype.userProfileDataMb=void 0,Ol.prototype.pvsWriteCacheSizeGb=void 0;var ec=new WeakSet,tc=function(){function e(t,n,r,o){!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,ec),this.dailyAverageIndexingRateGb=t,this.hotRetentionDays=n,this.coldRetentionDays=r,this.userCount=o,this.$objectType="aiops.v4.config.SplunkWorkload",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getDailyAverageIndexingRateGb",value:function(){return this.dailyAverageIndexingRateGb}},{key:"setDailyAverageIndexingRateGb",value:function(e){this.dailyAverageIndexingRateGb=e}},{key:"getHotRetentionDays",value:function(){return this.hotRetentionDays}},{key:"setHotRetentionDays",value:function(e){this.hotRetentionDays=e}},{key:"getColdRetentionDays",value:function(){return this.coldRetentionDays}},{key:"setColdRetentionDays",value:function(e){this.coldRetentionDays=e}},{key:"getUserCount",value:function(){return this.userCount}},{key:"setUserCount",value:function(e){this.userCount=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(Xl(Xl({},void 0!==this.getDailyAverageIndexingRateGb()&&null!==this.getDailyAverageIndexingRateGb()?{dailyAverageIndexingRateGb:this.getDailyAverageIndexingRateGb()}:{}),void 0!==this.getHotRetentionDays()&&null!==this.getHotRetentionDays()?{hotRetentionDays:this.getHotRetentionDays()}:{}),void 0!==this.getColdRetentionDays()&&null!==this.getColdRetentionDays()?{coldRetentionDays:this.getColdRetentionDays()}:{}),void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{}),{},{$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 S?r=["dailyAverageIndexingRateGb","hotRetentionDays","coldRetentionDays","userCount"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("dailyAverageIndexingRateGb"===t){if(void 0===this.dailyAverageIndexingRateGb||null===this.dailyAverageIndexingRateGb)return new U("dailyAverageIndexingRateGb","undefined or null");if(!F.validateMaximum(this.dailyAverageIndexingRateGb,2e4))return new U("dailyAverageIndexingRateGb","does not satisfy required maximum constraint: 20000");if(!F.validateMinimum(this.dailyAverageIndexingRateGb,1))return new U("dailyAverageIndexingRateGb","does not satisfy required minimum constraint: 1")}if("hotRetentionDays"===t){if(void 0===this.hotRetentionDays||null===this.hotRetentionDays)return new U("hotRetentionDays","undefined or null");if(!F.validateMaximum(this.hotRetentionDays,2e4))return new U("hotRetentionDays","does not satisfy required maximum constraint: 20000");if(!F.validateMinimum(this.hotRetentionDays,1))return new U("hotRetentionDays","does not satisfy required minimum constraint: 1")}if("coldRetentionDays"===t){if(void 0===this.coldRetentionDays||null===this.coldRetentionDays)return new U("coldRetentionDays","undefined or null");if(!F.validateMaximum(this.coldRetentionDays,2e4))return new U("coldRetentionDays","does not satisfy required maximum constraint: 20000");if(!F.validateMinimum(this.coldRetentionDays,0))return new U("coldRetentionDays","does not satisfy required minimum constraint: 0")}if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new U("userCount","undefined or null");if(!F.validateMaximum(this.userCount,500))return new U("userCount","does not satisfy required maximum constraint: 500");if(!F.validateMinimum(this.userCount,0))return new U("userCount","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("dailyAverageIndexingRateGb")&&null!==t.dailyAverageIndexingRateGb&&void 0!==t.dailyAverageIndexingRateGb&&n.setDailyAverageIndexingRateGb(t.dailyAverageIndexingRateGb),t.hasOwnProperty("hotRetentionDays")&&null!==t.hotRetentionDays&&void 0!==t.hotRetentionDays&&n.setHotRetentionDays(t.hotRetentionDays),t.hasOwnProperty("coldRetentionDays")&&null!==t.coldRetentionDays&&void 0!==t.coldRetentionDays&&n.setColdRetentionDays(t.coldRetentionDays),t.hasOwnProperty("userCount")&&null!==t.userCount&&void 0!==t.userCount&&n.setUserCount(t.userCount),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Xl({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Zl(t.prototype,n),r&&Zl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();tc.prototype.dailyAverageIndexingRateGb=500,tc.prototype.hotRetentionDays=7,tc.prototype.coldRetentionDays=60,tc.prototype.userCount=5,tc.prototype.$reserved=void 0,tc.prototype.$objectType=void 0,tc.prototype.$unknownFields=void 0;var nc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(nc).find((function(t){return nc[t]===e}));return null==t?nc.$UNKNOWN:nc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case nc.$UNKNOWN:case nc.$REDACTED:case nc.SMALL:case nc.MEDIUM:case nc.LARGE:return;default:throw new Error("Invalid : must be SqlProfileType.{ $UNKNOWN|$REDACTED|SMALL|MEDIUM|LARGE }")}}};Object.freeze(nc);const rc=nc;var oc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",OLAP:"OLAP",OLTP:"OLTP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(oc).find((function(t){return oc[t]===e}));return null==t?oc.$UNKNOWN:oc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case oc.$UNKNOWN:case oc.$REDACTED:case oc.OLAP:case oc.OLTP:return;default:throw new Error("Invalid : must be SqlTransactionType.{ $UNKNOWN|$REDACTED|OLAP|OLTP }")}}};Object.freeze(oc);const ic=oc;function ac(e){return ac="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ac(e)}function sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sc(Object(n),!0).forEach((function(t){lc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lc(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 cc(e,t){for(var n=0;n<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"!=ac(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ac(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ac(t)?t:t+""}var pc=new WeakSet,yc=function(){function e(t,n,r,o){!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,pc),this.dbCount=t,this.profileType=n,this.transactionType=r,this.isBusinessCritical=o,this.$objectType="aiops.v4.config.SqlWorkload",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getDbCount",value:function(){return this.dbCount}},{key:"setDbCount",value:function(e){this.dbCount=e}},{key:"getProfileType",value:function(){return this.profileType}},{key:"setProfileType",value:function(e){this.profileType=e}},{key:"getTransactionType",value:function(){return this.transactionType}},{key:"setTransactionType",value:function(e){this.transactionType=e}},{key:"getIsBusinessCritical",value:function(){return this.isBusinessCritical}},{key:"setIsBusinessCritical",value:function(e){this.isBusinessCritical=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return uc(uc(uc(uc(uc({},void 0!==this.getDbCount()&&null!==this.getDbCount()?{dbCount:this.getDbCount()}:{}),void 0!==this.getProfileType()&&null!==this.getProfileType()?{profileType:this.getProfileType()}:{}),void 0!==this.getTransactionType()&&null!==this.getTransactionType()?{transactionType:this.getTransactionType()}:{}),void 0!==this.getIsBusinessCritical()&&null!==this.getIsBusinessCritical()?{isBusinessCritical:this.getIsBusinessCritical()}:{}),{},{$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 S?r=["dbCount","profileType","transactionType","isBusinessCritical"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("dbCount"===t){if(void 0===this.dbCount||null===this.dbCount)return new U("dbCount","undefined or null");if(!F.validateMaximum(this.dbCount,1e5))return new U("dbCount","does not satisfy required maximum constraint: 100000");if(!F.validateMinimum(this.dbCount,1))return new U("dbCount","does not satisfy required minimum constraint: 1")}return"profileType"!==t||void 0!==this.profileType&&null!==this.profileType?"transactionType"!==t||void 0!==this.transactionType&&null!==this.transactionType?"isBusinessCritical"!==t||void 0!==this.isBusinessCritical&&null!==this.isBusinessCritical?"$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("isBusinessCritical","undefined or null"):new U("transactionType","undefined or null"):new U("profileType","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("dbCount")&&null!==t.dbCount&&void 0!==t.dbCount&&n.setDbCount(t.dbCount),t.hasOwnProperty("profileType")&&null!==t.profileType&&void 0!==t.profileType&&n.setProfileType(rc.constructFromObject(t.profileType)),t.hasOwnProperty("transactionType")&&null!==t.transactionType&&void 0!==t.transactionType&&n.setTransactionType(ic.constructFromObject(t.transactionType)),t.hasOwnProperty("isBusinessCritical")&&null!==t.isBusinessCritical&&void 0!==t.isBusinessCritical&&n.setIsBusinessCritical(t.isBusinessCritical),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=uc({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&cc(t.prototype,n),r&&cc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();yc.prototype.dbCount=void 0,yc.prototype.profileType=void 0,yc.prototype.transactionType=void 0,yc.prototype.isBusinessCritical=!1,yc.prototype.$reserved=void 0,yc.prototype.$objectType=void 0,yc.prototype.$unknownFields=void 0;var dc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",FULL_CLONES:"FULL_CLONES",V2V_P2V:"V2V_P2V",PROVISIONING_SERVICES:"PROVISIONING_SERVICES",MACHINE_CREATION_SERVICES:"MACHINE_CREATION_SERVICES",LINKED_CLONES:"LINKED_CLONES",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(dc).find((function(t){return dc[t]===e}));return null==t?dc.$UNKNOWN:dc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case dc.$UNKNOWN:case dc.$REDACTED:case dc.FULL_CLONES:case dc.V2V_P2V:case dc.PROVISIONING_SERVICES:case dc.MACHINE_CREATION_SERVICES:case dc.LINKED_CLONES:return;default:throw new Error("Invalid : must be VdiProvisionType.{ $UNKNOWN|$REDACTED|FULL_CLONES|V2V_P2V|PROVISIONING_SERVICES|MACHINE_CREATION_SERVICES|LINKED_CLONES }")}}};Object.freeze(dc);const vc=dc;var hc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",TASK_WORKER:"TASK_WORKER",KNOWLEDGE_WORKER:"KNOWLEDGE_WORKER",POWER_USER:"POWER_USER",DEVELOPER:"DEVELOPER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(hc).find((function(t){return hc[t]===e}));return null==t?hc.$UNKNOWN:hc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case hc.$UNKNOWN:case hc.$REDACTED:case hc.TASK_WORKER:case hc.KNOWLEDGE_WORKER:case hc.POWER_USER:case hc.DEVELOPER:return;default:throw new Error("Invalid : must be VdiUserType.{ $UNKNOWN|$REDACTED|TASK_WORKER|KNOWLEDGE_WORKER|POWER_USER|DEVELOPER }")}}};Object.freeze(hc);const bc=hc;var mc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VIEW:"VIEW",XEN_DESKTOP:"XEN_DESKTOP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(mc).find((function(t){return mc[t]===e}));return null==t?mc.$UNKNOWN:mc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case mc.$UNKNOWN:case mc.$REDACTED:case mc.VIEW:case mc.XEN_DESKTOP:return;default:throw new Error("Invalid : must be VdiVendor.{ $UNKNOWN|$REDACTED|VIEW|XEN_DESKTOP }")}}};Object.freeze(mc);const gc=mc;function wc(e){return wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wc(e)}function Oc(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 jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oc(Object(n),!0).forEach((function(t){$c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $c(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 kc(e,t){for(var n=0;n<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"!=wc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wc(t)?t:t+""}var Tc=new WeakSet,Sc=function(){function e(t,n,r,o){!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,Tc),this.vendor=t,this.userType=n,this.provisionType=r,this.userCount=o,this.$objectType="aiops.v4.config.VdiWorkload",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getVendor",value:function(){return this.vendor}},{key:"setVendor",value:function(e){this.vendor=e}},{key:"getUserType",value:function(){return this.userType}},{key:"setUserType",value:function(e){this.userType=e}},{key:"getProvisionType",value:function(){return this.provisionType}},{key:"setProvisionType",value:function(e){this.provisionType=e}},{key:"getUserCount",value:function(){return this.userCount}},{key:"setUserCount",value:function(e){this.userCount=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 jc(jc(jc(jc(jc({},void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{}),void 0!==this.getUserType()&&null!==this.getUserType()?{userType:this.getUserType()}:{}),void 0!==this.getProvisionType()&&null!==this.getProvisionType()?{provisionType:this.getProvisionType()}:{}),void 0!==this.getUserCount()&&null!==this.getUserCount()?{userCount:this.getUserCount()}:{}),{},{$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 S?r=["vendor","userType","provisionType","userCount"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("vendor"===t&&(void 0===this.vendor||null===this.vendor))return new U("vendor","undefined or null");if("userType"===t&&(void 0===this.userType||null===this.userType))return new U("userType","undefined or null");if("provisionType"===t&&(void 0===this.provisionType||null===this.provisionType))return new U("provisionType","undefined or null");if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new U("userCount","undefined or null");if(!F.validateMaximum(this.userCount,1e3))return new U("userCount","does not satisfy required maximum constraint: 1000");if(!F.validateMinimum(this.userCount,1))return new U("userCount","does not satisfy required minimum constraint: 1")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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("vendor")&&null!==t.vendor&&void 0!==t.vendor&&n.setVendor(gc.constructFromObject(t.vendor)),t.hasOwnProperty("userType")&&null!==t.userType&&void 0!==t.userType&&n.setUserType(bc.constructFromObject(t.userType)),t.hasOwnProperty("provisionType")&&null!==t.provisionType&&void 0!==t.provisionType&&n.setProvisionType(vc.constructFromObject(t.provisionType)),t.hasOwnProperty("userCount")&&null!==t.userCount&&void 0!==t.userCount&&n.setUserCount(t.userCount),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=jc({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&kc(t.prototype,n),r&&kc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();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 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 Dc(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){Fc(e,t,n[t])})):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,n){return(t=Ac(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rc(e,t){for(var n=0;n<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){if("object"!=Cc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cc(t)?t:t+""}Sc.prototype.vendor=void 0,Sc.prototype.userType=void 0,Sc.prototype.provisionType=void 0,Sc.prototype.userCount=void 0,Sc.prototype.$reserved=void 0,Sc.prototype.$objectType=void 0,Sc.prototype.$unknownFields=void 0;var Ic=new WeakSet,Uc=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,Ic),this.categoryExtId=t,this.currentVmCount=n,this.targetVmCount=r,this.$objectType="aiops.v4.config.VmCategoryWorkload",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getCategoryExtId",value:function(){return this.categoryExtId}},{key:"setCategoryExtId",value:function(e){this.categoryExtId=e}},{key:"getCurrentVmCount",value:function(){return this.currentVmCount}},{key:"setCurrentVmCount",value:function(e){this.currentVmCount=e}},{key:"getTargetVmCount",value:function(){return this.targetVmCount}},{key:"setTargetVmCount",value:function(e){this.targetVmCount=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 Dc(Dc(Dc(Dc({},void 0!==this.getCategoryExtId()&&null!==this.getCategoryExtId()?{categoryExtId:this.getCategoryExtId()}:{}),void 0!==this.getCurrentVmCount()&&null!==this.getCurrentVmCount()?{currentVmCount:this.getCurrentVmCount()}:{}),void 0!==this.getTargetVmCount()&&null!==this.getTargetVmCount()?{targetVmCount:this.getTargetVmCount()}:{}),{},{$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 S?r=["categoryExtId","currentVmCount","targetVmCount"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("categoryExtId"===t){if(void 0===this.categoryExtId||null===this.categoryExtId)return new U("categoryExtId","undefined or null");if(!F.validatePattern(this.categoryExtId,/^[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("categoryExtId","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"currentVmCount"!==t||void 0!==this.currentVmCount&&null!==this.currentVmCount?"targetVmCount"!==t||void 0!==this.targetVmCount&&null!==this.targetVmCount?"$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("targetVmCount","undefined or null"):new U("currentVmCount","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("categoryExtId")&&null!==t.categoryExtId&&void 0!==t.categoryExtId&&n.setCategoryExtId(t.categoryExtId),t.hasOwnProperty("currentVmCount")&&null!==t.currentVmCount&&void 0!==t.currentVmCount&&n.setCurrentVmCount(t.currentVmCount),t.hasOwnProperty("targetVmCount")&&null!==t.targetVmCount&&void 0!==t.targetVmCount&&n.setTargetVmCount(t.targetVmCount),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Dc({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Rc(t.prototype,n),r&&Rc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Mc(e){return Mc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mc(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 Nc(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){_c(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 _c(e,t,n){return(t=Bc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bc(r.key),r)}}function Bc(e){var t=function(e){if("object"!=Mc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mc(t)?t:t+""}Uc.prototype.categoryExtId=void 0,Uc.prototype.currentVmCount=void 0,Uc.prototype.targetVmCount=void 0,Uc.prototype.$reserved=void 0,Uc.prototype.$objectType=void 0,Uc.prototype.$unknownFields=void 0;var Lc=new WeakSet,Jc=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,Lc),this.vmCount=t,this.simulationExtId=n,this.$objectType="aiops.v4.config.VmWorkload",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getVmCount",value:function(){return this.vmCount}},{key:"setVmCount",value:function(e){this.vmCount=e}},{key:"getSimulationExtId",value:function(){return this.simulationExtId}},{key:"setSimulationExtId",value:function(e){this.simulationExtId=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(Nc({},void 0!==this.getVmCount()&&null!==this.getVmCount()?{vmCount:this.getVmCount()}:{}),void 0!==this.getSimulationExtId()&&null!==this.getSimulationExtId()?{simulationExtId:this.getSimulationExtId()}:{}),{},{$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 S?r=["vmCount","simulationExtId"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("vmCount"===t){if(void 0===this.vmCount||null===this.vmCount)return new U("vmCount","undefined or null");if(!F.validateMaximum(this.vmCount,2e4))return new U("vmCount","does not satisfy required maximum constraint: 20000");if(!F.validateMinimum(this.vmCount,1))return new U("vmCount","does not satisfy required minimum constraint: 1")}if("simulationExtId"===t){if(void 0===this.simulationExtId||null===this.simulationExtId)return new U("simulationExtId","undefined or null");if(!F.validatePattern(this.simulationExtId,/^[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("simulationExtId","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("vmCount")&&null!==t.vmCount&&void 0!==t.vmCount&&n.setVmCount(t.vmCount),t.hasOwnProperty("simulationExtId")&&null!==t.simulationExtId&&void 0!==t.simulationExtId&&n.setSimulationExtId(t.simulationExtId),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Nc({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Vc(t.prototype,n),r&&Vc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wc(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 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 Hc(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){qc(e,t,n[t])})):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 qc(e,t,n){return(t=Xc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xc(r.key),r)}}function Xc(e){var t=function(e){if("object"!=zc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zc(t)?t:t+""}function Yc(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")}Jc.prototype.vmCount=void 0,Jc.prototype.simulationExtId=void 0,Jc.prototype.$reserved=void 0,Jc.prototype.$objectType=void 0,Jc.prototype.$unknownFields=void 0;var Zc=new WeakSet,Qc=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,Zc),this.scheduleDate=t,this.isEnabled=n,this.workloadProperties=r,this.$objectType="aiops.v4.config.Workload",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getScheduleDate",value:function(){return this.scheduleDate}},{key:"setScheduleDate",value:function(e){this.scheduleDate=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getProjectedResourceRequirement",value:function(){return this.projectedResourceRequirement}},{key:"setProjectedResourceRequirement",value:function(e){this.projectedResourceRequirement=e}},{key:"getWorkloadProperties",value:function(){return this.workloadProperties}},{key:"setWorkloadProperties",value:function(e){this.workloadProperties=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 Hc(Hc(Hc(Hc(Hc({},void 0!==this.getScheduleDate()&&null!==this.getScheduleDate()?{scheduleDate:Yc(Zc,this,tf).call(this,this.getScheduleDate(),!0)}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getProjectedResourceRequirement()&&null!==this.getProjectedResourceRequirement()?{projectedResourceRequirement:this.getProjectedResourceRequirement().toJson(!1)}:{}),!1===e?void 0!==this.getWorkloadProperties()&&null!==this.getWorkloadProperties()?{workloadProperties:void 0!==this.getWorkloadProperties().toJson?this.getWorkloadProperties().toJson(!1):Array.isArray(this.getWorkloadProperties())?this.getWorkloadProperties().map((function(e){return void 0!==e.toJson?e.toJson(!1):e})):Yc(Zc,this,ef).call(this,this.getWorkloadProperties(),!1)}:{}:void 0!==this.getWorkloadProperties()&&null!==this.getWorkloadProperties()?{workloadProperties:void 0!==this.getWorkloadProperties().toJson?this.getWorkloadProperties().toJson():Array.isArray(this.getWorkloadProperties())?this.getWorkloadProperties().map((function(e){return void 0!==e.toJson?e.toJson():e})):Yc(Zc,this,ef).call(this,this.getWorkloadProperties())}:{}),{},{$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 S?r=["scheduleDate","isEnabled","workloadProperties"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"scheduleDate"!==t||void 0!==this.scheduleDate&&null!==this.scheduleDate?"isEnabled"!==t||void 0!==this.isEnabled&&null!==this.isEnabled?"projectedResourceRequirement"!==t||void 0!==this.projectedResourceRequirement&&null!==this.projectedResourceRequirement?"workloadProperties"!==t||void 0!==this.workloadProperties&&null!==this.workloadProperties?"$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("workloadProperties","undefined or null"):new U("projectedResourceRequirement","undefined or null"):new U("isEnabled","undefined or null"):new U("scheduleDate","undefined or null")}}],r=[{key:"constructFromObject",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("scheduleDate")&&null!==t.scheduleDate&&void 0!==t.scheduleDate&&r.setScheduleDate(t.scheduleDate),t.hasOwnProperty("isEnabled")&&null!==t.isEnabled&&void 0!==t.isEnabled&&r.setIsEnabled(t.isEnabled),t.hasOwnProperty("projectedResourceRequirement")&&null!==t.projectedResourceRequirement&&void 0!==t.projectedResourceRequirement&&r.setProjectedResourceRequirement(Ou.constructFromObject(t.projectedResourceRequirement)),t.hasOwnProperty("workloadProperties")&&null!==t.workloadProperties&&void 0!==t.workloadProperties)switch(n=t.workloadProperties.hasOwnProperty("$objectType")?t.workloadProperties.$objectType:zc(t.workloadProperties)){case"aiops.v4.config.SqlWorkload":r.setWorkloadProperties(yc.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.VmWorkload":r.setWorkloadProperties(Jc.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.VdiWorkload":r.setWorkloadProperties(Sc.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.SplunkWorkload":r.setWorkloadProperties(tc.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.CitrixXenWorkload":r.setWorkloadProperties(Rl.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.MicrosoftXenWorkload":r.setWorkloadProperties(Hl.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.CapacityUpdateConfig":r.setWorkloadProperties(sl.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.VmCategoryWorkload":r.setWorkloadProperties(Uc.constructFromObject(t.workloadProperties,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!o)for(var i in r.$unknownFields=Hc({},t.$unknownFields),t)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=t[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Kc(t.prototype,n),r&&Kc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ef(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Wc(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)?Wc(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===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 tf(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}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 rf(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 of(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(n),!0).forEach((function(t){af(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function af(e,t,n){return(t=uf(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,uf(r.key),r)}}function uf(e){var t=function(e){if("object"!=nf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nf(t)?t:t+""}function lf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(lf=function(){return!!e})()}function cf(e){return cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cf(e)}function ff(e,t){return ff=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ff(e,t)}function pf(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.scheduleDate=void 0,Qc.prototype.isEnabled=!1,Qc.prototype.projectedResourceRequirement=void 0,Qc.prototype.workloadProperties=void 0,Qc.prototype.$reserved=void 0,Qc.prototype.$objectType=void 0,Qc.prototype.$unknownFields=void 0;var yf=new WeakSet,df=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=cf(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,lf()?Reflect.construct(t,n||[],cf(e).constructor):t.apply(e,n))}(this,t),yf),e.$objectType="aiops.v4.config.Scenario",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ff(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getClusterExtId",value:function(){return this.clusterExtId}},{key:"setClusterExtId",value:function(e){this.clusterExtId=e}},{key:"getVendors",value:function(){return this.vendors}},{key:"setVendors",value:function(e){this.vendors=e}},{key:"getUpdatedTime",value:function(){return this.updatedTime}},{key:"setUpdatedTime",value:function(e){this.updatedTime=e}},{key:"getTargetRunwayDays",value:function(){return this.targetRunwayDays}},{key:"setTargetRunwayDays",value:function(e){this.targetRunwayDays=e}},{key:"getRunway",value:function(){return this.runway}},{key:"setRunway",value:function(e){this.runway=e}},{key:"getWorkloads",value:function(){return this.workloads}},{key:"setWorkloads",value:function(e){this.workloads=e}},{key:"getClusterConfig",value:function(){return this.clusterConfig}},{key:"setClusterConfig",value:function(e){this.clusterConfig=e}},{key:"toJson",value:function(e){return of(!1===e?of(of(of(of(of(of(of(of(of(of(of({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getVendors()&&null!==this.getVendors()?{vendors:this.getVendors()}:{}),void 0!==this.getUpdatedTime()&&null!==this.getUpdatedTime()?{updatedTime:pf(yf,this,vf).call(this,this.getUpdatedTime(),!1)}:{}),void 0!==this.getTargetRunwayDays()&&null!==this.getTargetRunwayDays()?{targetRunwayDays:this.getTargetRunwayDays()}:{}),void 0!==this.getRunway()&&null!==this.getRunway()?{runway:this.getRunway().toJson(!1)}:{}),void 0!==this.getWorkloads()&&null!==this.getWorkloads()?{workloads:this.getWorkloads().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterConfig()&&null!==this.getClusterConfig()?{clusterConfig:this.getClusterConfig().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()}:{}):of(of(of(of(of(of(of({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getClusterExtId()&&null!==this.getClusterExtId()?{clusterExtId:this.getClusterExtId()}:{}),void 0!==this.getVendors()&&null!==this.getVendors()?{vendors:this.getVendors()}:{}),void 0!==this.getTargetRunwayDays()&&null!==this.getTargetRunwayDays()?{targetRunwayDays:this.getTargetRunwayDays()}:{}),void 0!==this.getRunway()&&null!==this.getRunway()?{runway:this.getRunway().toJson(!1)}:{}),void 0!==this.getWorkloads()&&null!==this.getWorkloads()?{workloads:this.getWorkloads().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getClusterConfig()&&null!==this.getClusterConfig()?{clusterConfig:this.getClusterConfig().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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!F.validateMaxLength(this.name,256))return new U("name","does not satisfy required maxLength constraint: 256");if(!F.validateMinLength(this.name,1))return new U("name","does not satisfy required minLength constraint: 1")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new U("clusterExtId","undefined or null");if(!F.validatePattern(this.clusterExtId,/^[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("clusterExtId","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("vendors"===t){if(void 0===this.vendors||null===this.vendors)return new U("vendors","undefined or null");if(!F.validateMaxItems(this.vendors,10))return new U("vendors","does not satisfy required maxItems constraint: 10");if(!F.validateMinItems(this.vendors,1))return new U("vendors","does not satisfy required minItems constraint: 1")}if("updatedTime"===t&&(void 0===this.updatedTime||null===this.updatedTime))return new U("updatedTime","undefined or null");if("targetRunwayDays"===t){if(void 0===this.targetRunwayDays||null===this.targetRunwayDays)return new U("targetRunwayDays","undefined or null");if(!F.validateMaximum(this.targetRunwayDays,360))return new U("targetRunwayDays","does not satisfy required maximum constraint: 360");if(!F.validateMinimum(this.targetRunwayDays,30))return new U("targetRunwayDays","does not satisfy required minimum constraint: 30")}if("runway"===t&&(void 0===this.runway||null===this.runway))return new U("runway","undefined or null");if("workloads"===t){if(void 0===this.workloads||null===this.workloads)return new U("workloads","undefined or null");if(!F.validateMaxItems(this.workloads,250))return new U("workloads","does not satisfy required maxItems constraint: 250")}return"clusterConfig"!==t||void 0!==this.clusterConfig&&null!==this.clusterConfig?new U(t,"no such property exists"):new U("clusterConfig","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,bo.constructFromObject(e,a,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&a.setName(e.name),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&a.setClusterExtId(e.clusterExtId),e.hasOwnProperty("vendors")&&null!==e.vendors&&void 0!==e.vendors){for(i=[],n=e.vendors,o=0;o<n.length;o++)r=Yu.constructFromObject(n[o],void 0),i.push(r);a.setVendors(i)}if(e.hasOwnProperty("updatedTime")&&null!==e.updatedTime&&void 0!==e.updatedTime&&a.setUpdatedTime(e.updatedTime),e.hasOwnProperty("targetRunwayDays")&&null!==e.targetRunwayDays&&void 0!==e.targetRunwayDays&&a.setTargetRunwayDays(e.targetRunwayDays),e.hasOwnProperty("runway")&&null!==e.runway&&void 0!==e.runway&&a.setRunway(qu.constructFromObject(e.runway)),e.hasOwnProperty("workloads")&&null!==e.workloads&&void 0!==e.workloads){for(i=[],n=e.workloads,o=0;o<n.length;o++)r=Qc.constructFromObject(n[o],void 0),i.push(r);a.setWorkloads(i)}if(e.hasOwnProperty("clusterConfig")&&null!==e.clusterConfig&&void 0!==e.clusterConfig&&a.setClusterConfig(_u.constructFromObject(e.clusterConfig)),!s)for(var u in a.$unknownFields=of({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&sf(n.prototype,r),o&&sf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(bo);function vf(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function hf(e){return hf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hf(e)}function bf(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 mf(e,t,n){return(t=wf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wf(r.key),r)}}function wf(e){var t=function(e){if("object"!=hf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=hf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==hf(t)?t:t+""}function Of(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Of=function(){return!!e})()}function jf(e){return jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jf(e)}function $f(e,t){return $f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$f(e,t)}df.prototype.name=void 0,df.prototype.clusterExtId=void 0,df.prototype.vendors=void 0,df.prototype.updatedTime=void 0,df.prototype.targetRunwayDays=void 0,df.prototype.runway=void 0,df.prototype.workloads=void 0,df.prototype.clusterConfig=void 0,bo.prototype.extId=void 0,bo.prototype.links=void 0,io.prototype.tenantId=void 0;var kf=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=jf(t),function(e,t){if(t&&("object"==hf(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,Of()?Reflect.construct(t,n||[],jf(e).constructor):t.apply(e,n))}(this,t)).$objectType="aiops.v4.config.ScenarioProjection",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$f(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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,df.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bf(Object(n),!0).forEach((function(t){mf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&gf(n.prototype,r),o&&gf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(df);function Pf(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 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 Sf(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 Cf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sf(Object(n),!0).forEach((function(t){Ef(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ef(e,t,n){return(t=Ff(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Df(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ff(r.key),r)}}function Ff(e){var t=function(e){if("object"!=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+""}function Rf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rf=function(){return!!e})()}function Af(e){return Af=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Af(e)}function If(e,t){return If=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},If(e,t)}function Uf(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 Mf=new WeakSet,xf=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=Af(t),function(e,t){if(t&&("object"==Tf(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,Rf()?Reflect.construct(t,n||[],Af(e).constructor):t.apply(e,n))}(this,t),Mf),e.$objectType="aiops.v4.config.ListScenariosApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&If(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 Cf(Cf(Cf({},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})):Uf(Mf,this,Nf).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})):Uf(Mf,this,Nf).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(s=s||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,s),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&s.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)s.setData([]);else{for(i=[],a=(n=e.data)[0].hasOwnProperty("$objectType")?n[0].$objectType:Tf(n[0]),o=0;o<n.length;o++)switch(a){case"aiops.v4.config.Scenario":r=df.constructFromObject(n[o],void 0),i.push(r);break;case"aiops.v4.config.ScenarioProjection":r=kf.constructFromObject(n[o],void 0),i.push(r);break;default:throw"Unknown list of type "+a+" in data"}s.setData(i)}else{if("aiops.v4.error.ErrorResponse"!==(a=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Tf(e.data)))throw"Unknown datatype "+a+" in data";s.setData(pn.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(s.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(s.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(s.$unknownFields=e.$unknownFields),!u)for(var c in s.$unknownFields=Cf({},e.$unknownFields),e)Object.keys(s).includes(c)||Object.keys(s).includes(this.snakeToCamel(c))||"$"===c[0]&&c.endsWith("ItemDiscriminator")||(s.$unknownFields[c]=e[c])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Df(n.prototype,r),o&&Df(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Nf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Pf(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)?Pf(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Tf(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 _f(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 Vf(e){return Vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vf(e)}function Bf(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 Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(n),!0).forEach((function(t){Jf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jf(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 Wf(e,t){for(var n=0;n<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"!=Vf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Vf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Vf(t)?t:t+""}function Gf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Gf=function(){return!!e})()}function Hf(e){return Hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Hf(e)}function qf(e,t){return qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qf(e,t)}function Kf(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")}xf.prototype.metadata=void 0,xf.prototype.data=void 0,xf.prototype.$reserved=void 0,xf.prototype.$objectType=void 0,xf.prototype.$unknownFields=void 0;var Xf=new WeakSet,Yf=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=Hf(t),function(e,t){if(t&&("object"==Vf(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,Gf()?Reflect.construct(t,n||[],Hf(e).constructor):t.apply(e,n))}(this,t),Xf),e.$objectType="aiops.v4.config.GetScenarioReportApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qf(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 Lf(Lf(Lf({},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})):Kf(Xf,this,Zf).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})):Kf(Xf,this,Zf).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Vf(e.data)){case"Map":r.setData(e.data);break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Lf({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Wf(n.prototype,r),o&&Wf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Zf(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return _f(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)?_f(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Vf(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){return Qf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qf(e)}function ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ep(Object(n),!0).forEach((function(t){np(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ep(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function np(e,t,n){return(t=op(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,op(r.key),r)}}function op(e){var t=function(e){if("object"!=Qf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qf(t)?t:t+""}Yf.prototype.metadata=void 0,Yf.prototype.data=void 0,Yf.prototype.$reserved=void 0,Yf.prototype.$objectType=void 0,Yf.prototype.$unknownFields=void 0;var ip=new WeakSet,ap=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,ip),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r0"},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 tp(tp({},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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new U("extId","undefined or null");if(!F.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 o in n.$unknownFields=tp({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&rp(t.prototype,n),r&&rp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function sp(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 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 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 cp(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){fp(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}function fp(e,t,n){return(t=yp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yp(r.key),r)}}function yp(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+""}function dp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dp=function(){return!!e})()}function vp(e){return vp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vp(e)}function hp(e,t){return hp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hp(e,t)}function bp(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")}ap.prototype.extId=void 0,ap.prototype.$reserved=void 0,ap.prototype.$objectType=void 0,ap.prototype.$unknownFields=void 0;var mp=new WeakSet,gp=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=vp(t),function(e,t){if(t&&("object"==up(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,dp()?Reflect.construct(t,n||[],vp(e).constructor):t.apply(e,n))}(this,t),mp),e.$objectType="aiops.v4.config.CreateScenarioApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hp(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 cp(cp(cp({},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})):bp(mp,this,wp).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})):bp(mp,this,wp).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:up(e.data)){case"prism.v4.config.TaskReference":r.setData(ap.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=cp({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&pp(n.prototype,r),o&&pp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function wp(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return sp(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)?sp(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===up(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 Op(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 jp(e){return jp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jp(e)}function $p(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 kp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$p(Object(n),!0).forEach((function(t){Pp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pp(e,t,n){return(t=Sp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function 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,Sp(r.key),r)}}function Sp(e){var t=function(e){if("object"!=jp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=jp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jp(t)?t:t+""}function Cp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Cp=function(){return!!e})()}function Ep(e){return Ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ep(e)}function Dp(e,t){return Dp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dp(e,t)}function Fp(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")}gp.prototype.metadata=void 0,gp.prototype.data=void 0,gp.prototype.$reserved=void 0,gp.prototype.$objectType=void 0,gp.prototype.$unknownFields=void 0;var Rp=new WeakSet,Ap=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=Ep(t),function(e,t){if(t&&("object"==jp(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,Cp()?Reflect.construct(t,n||[],Ep(e).constructor):t.apply(e,n))}(this,t),Rp),e.$objectType="aiops.v4.config.DeleteSimulationApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dp(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 kp(kp(kp({},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})):Fp(Rp,this,Ip).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})):Fp(Rp,this,Ip).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.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:jp(e.data)){case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;case"":r.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=kp({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Tp(n.prototype,r),o&&Tp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ip(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Op(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)?Op(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===jp(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 Up(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 Mp(e){return Mp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mp(e)}function 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=Bp(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,Bp(r.key),r)}}function Bp(e){var t=function(e){if("object"!=Mp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mp(t)?t:t+""}function Lp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Lp=function(){return!!e})()}function Jp(e){return Jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Jp(e)}function Wp(e,t){return Wp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wp(e,t)}function zp(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")}Ap.prototype.metadata=void 0,Ap.prototype.data=void 0,Ap.prototype.$reserved=void 0,Ap.prototype.$objectType=void 0,Ap.prototype.$unknownFields=void 0;var Gp=new WeakSet,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),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=Jp(t),function(e,t){if(t&&("object"==Mp(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,Lp()?Reflect.construct(t,n||[],Jp(e).constructor):t.apply(e,n))}(this,t),Gp),e.$objectType="aiops.v4.config.DeleteScenarioApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wp(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 Np(Np(Np({},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})):zp(Gp,this,qp).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})):zp(Gp,this,qp).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.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:Mp(e.data)){case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;case"":r.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Np({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Vp(n.prototype,r),o&&Vp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function qp(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Up(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)?Up(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Mp(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 Kp(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 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 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 Zp(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){Qp(e,t,n[t])})):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 Qp(e,t,n){return(t=ty(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ey(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ty(r.key),r)}}function ty(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+""}function ny(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ny=function(){return!!e})()}function ry(e){return ry=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ry(e)}function oy(e,t){return oy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oy(e,t)}function iy(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")}Hp.prototype.metadata=void 0,Hp.prototype.data=void 0,Hp.prototype.$reserved=void 0,Hp.prototype.$objectType=void 0,Hp.prototype.$unknownFields=void 0;var ay=new WeakSet,sy=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=ry(t),function(e,t){if(t&&("object"==Xp(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,ny()?Reflect.construct(t,n||[],ry(e).constructor):t.apply(e,n))}(this,t),ay),e.$objectType="aiops.v4.config.GenerateRecommendationApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oy(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 Zp(Zp(Zp({},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})):iy(ay,this,uy).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})):iy(ay,this,uy).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Xp(e.data)){case"prism.v4.config.TaskReference":r.setData(ap.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Zp({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&ey(n.prototype,r),o&&ey(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function uy(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Kp(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)?Kp(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Xp(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 ly(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 cy(e){return cy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cy(e)}function fy(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 py(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fy(Object(n),!0).forEach((function(t){yy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yy(e,t,n){return(t=vy(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,vy(r.key),r)}}function vy(e){var t=function(e){if("object"!=cy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cy(t)?t:t+""}function hy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hy=function(){return!!e})()}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},by(e)}function my(e,t){return my=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},my(e,t)}function gy(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")}sy.prototype.metadata=void 0,sy.prototype.data=void 0,sy.prototype.$reserved=void 0,sy.prototype.$objectType=void 0,sy.prototype.$unknownFields=void 0;var wy=new WeakSet,Oy=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=by(t),function(e,t){if(t&&("object"==cy(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,hy()?Reflect.construct(t,n||[],by(e).constructor):t.apply(e,n))}(this,t),wy),e.$objectType="aiops.v4.config.GenerateReportApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&my(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 py(py(py({},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})):gy(wy,this,jy).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})):gy(wy,this,jy).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:cy(e.data)){case"prism.v4.config.TaskReference":r.setData(ap.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=py({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&dy(n.prototype,r),o&&dy(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function jy(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ly(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)?ly(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===cy(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 $y(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 ky(e){return ky="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ky(e)}function Py(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 Ty(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Py(Object(n),!0).forEach((function(t){Sy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Py(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sy(e,t,n){return(t=Ey(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,Ey(r.key),r)}}function Ey(e){var t=function(e){if("object"!=ky(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ky(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ky(t)?t:t+""}function Dy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dy=function(){return!!e})()}function Fy(e){return Fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fy(e)}function Ry(e,t){return Ry=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ry(e,t)}function Ay(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")}Oy.prototype.metadata=void 0,Oy.prototype.data=void 0,Oy.prototype.$reserved=void 0,Oy.prototype.$objectType=void 0,Oy.prototype.$unknownFields=void 0;var Iy=new WeakSet,Uy=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=Fy(t),function(e,t){if(t&&("object"==ky(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,Dy()?Reflect.construct(t,n||[],Fy(e).constructor):t.apply(e,n))}(this,t),Iy),e.$objectType="aiops.v4.config.GetSimulationApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ry(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 Ty(Ty(Ty({},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})):Ay(Iy,this,My).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})):Ay(Iy,this,My).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ky(e.data)){case"aiops.v4.config.Simulation":r.setData(os.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Ty({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Cy(n.prototype,r),o&&Cy(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function My(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return $y(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)?$y(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===ky(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 Ny(e){return Ny="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ny(e)}function _y(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?_y(Object(n),!0).forEach((function(t){By(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function By(e,t,n){return(t=Jy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,Jy(r.key),r)}}function Jy(e){var t=function(e){if("object"!=Ny(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ny(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ny(t)?t:t+""}function Wy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wy=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 Hy(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")}Uy.prototype.metadata=void 0,Uy.prototype.data=void 0,Uy.prototype.$reserved=void 0,Uy.prototype.$objectType=void 0,Uy.prototype.$unknownFields=void 0;var qy=new WeakSet,Ky=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"==Ny(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,Wy()?Reflect.construct(t,n||[],zy(e).constructor):t.apply(e,n))}(this,t),qy),e.$objectType="aiops.v4.config.GetScenarioApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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})):Hy(qy,this,Xy).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})):Hy(qy,this,Xy).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ny(e.data)){case"aiops.v4.config.Scenario":r.setData(df.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Vy({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Ly(n.prototype,r),o&&Ly(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Xy(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return 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.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Ny(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 Yy(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 Zy(e){return Zy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zy(e)}function Qy(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 ed(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qy(Object(n),!0).forEach((function(t){td(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function td(e,t,n){return(t=rd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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){if("object"!=Zy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Zy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Zy(t)?t:t+""}function od(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(od=function(){return!!e})()}function id(e){return id=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},id(e)}function ad(e,t){return ad=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ad(e,t)}function sd(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")}Ky.prototype.metadata=void 0,Ky.prototype.data=void 0,Ky.prototype.$reserved=void 0,Ky.prototype.$objectType=void 0,Ky.prototype.$unknownFields=void 0;var ud=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=id(t),function(e,t){if(t&&("object"==Zy(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||[],id(e).constructor):t.apply(e,n))}(this,t),ud),e.$objectType="aiops.v4.config.UpdateScenarioApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ad(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 ed(ed(ed({},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})):sd(ud,this,cd).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})):sd(ud,this,cd).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Zy(e.data)){case"prism.v4.config.TaskReference":r.setData(ap.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=ed({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&nd(n.prototype,r),o&&nd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function cd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Yy(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)?Yy(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Zy(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 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 dd(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){vd(e,t,n[t])})):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,n){return(t=bd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hd(e,t){for(var n=0;n<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){if("object"!=pd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pd(t)?t:t+""}function md(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(md=function(){return!!e})()}function gd(e){return gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gd(e)}function wd(e,t){return wd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wd(e,t)}function Od(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 jd=new WeakSet,$d=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=gd(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,md()?Reflect.construct(t,n||[],gd(e).constructor):t.apply(e,n))}(this,t),jd),e.$objectType="aiops.v4.config.GenerateRunwayApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wd(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 dd(dd(dd({},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})):Od(jd,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})):Od(jd,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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:pd(e.data)){case"prism.v4.config.TaskReference":r.setData(ap.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=dd({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&hd(n.prototype,r),o&&hd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function kd(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return 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.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"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 Td(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?Td(Object(n),!0).forEach((function(t){Cd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cd(e,t,n){return(t=Dd(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,Dd(r.key),r)}}function Dd(e){var t=function(e){if("object"!=Pd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pd(t)?t:t+""}function Fd(e,t){return e.get(Rd(e,t))}function Rd(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")}$d.prototype.metadata=void 0,$d.prototype.data=void 0,$d.prototype.$reserved=void 0,$d.prototype.$objectType=void 0,$d.prototype.$unknownFields=void 0;var Ad=new WeakMap,Id=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,Ad,void 0),this.apiClient=t||lt.instance,n=Ad,r=new Set,n.set(Rd(n,this),r),Fd(Ad,this).add("authorization"),Fd(Ad,this).add("cookie"),Fd(Ad,this).add("host"),Fd(Ad,this).add("user-agent")},t=[{key:"createScenario",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 df&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createScenario");var o={};Object.keys(r).forEach((function(e){Fd(Ad,n).has(e.toLowerCase())||(o[e]=r[e])}));var i=Sd({},o);lt.addEtagReferenceToHeader(e,i);var a=gp;return this.apiClient.callApi("/api/aiops/v4.0/config/scenarios","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"createSimulation",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 os&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createSimulation");var o={};Object.keys(r).forEach((function(e){Fd(Ad,n).has(e.toLowerCase())||(o[e]=r[e])}));var i=Sd({},o);lt.addEtagReferenceToHeader(e,i);var a=bs;return this.apiClient.callApi("/api/aiops/v4.0/config/simulations","POST",{},{},i,{},t,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],a)}},{key:"deleteScenarioById",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 deleteScenarioById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Fd(Ad,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Sd({},o),a=Hp;return this.apiClient.callApi("/api/aiops/v4.0/config/scenarios/{extId}","DELETE",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"deleteSimulationById",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 deleteSimulationById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Fd(Ad,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Sd({},o),a=Ap;return this.apiClient.callApi("/api/aiops/v4.0/config/simulations/{extId}","DELETE",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"generateRecommendation",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 generateRecommendation");var r={extId:e},o={};Object.keys(n).forEach((function(e){Fd(Ad,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Sd({},o),a=sy;return this.apiClient.callApi("/api/aiops/v4.0/config/scenarios/{extId}/$actions/generate-recommendation","POST",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"generateReport",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 generateReport");var r={extId:e},o={};Object.keys(n).forEach((function(e){Fd(Ad,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Sd({},o),a=Oy;return this.apiClient.callApi("/api/aiops/v4.0/config/scenarios/{extId}/$actions/generate-report","POST",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"generateRunway",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 generateRunway");var r={extId:e},o={};Object.keys(n).forEach((function(e){Fd(Ad,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Sd({},o),a=$d;return this.apiClient.callApi("/api/aiops/v4.0/config/scenarios/{extId}/$actions/generate-runway","POST",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"getScenarioById",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 getScenarioById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Fd(Ad,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Sd({},o),a=Ky;return this.apiClient.callApi("/api/aiops/v4.0/config/scenarios/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"getScenarioReport",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 'scenarioExtId' when calling getScenarioReport");var r={scenarioExtId:e},o={};Object.keys(n).forEach((function(e){Fd(Ad,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Sd({},o),a=Yf;return this.apiClient.callApi("/api/aiops/v4.0/config/scenarios/{scenarioExtId}/reports","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/octet-stream","application/json"],a)}},{key:"getSimulationById",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 getSimulationById");var r={extId:e},o={};Object.keys(n).forEach((function(e){Fd(Ad,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Sd({},o),a=Uy;return this.apiClient.callApi("/api/aiops/v4.0/config/simulations/{extId}","GET",r,{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"listScenarios",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Sd(Sd(Sd(Sd(Sd({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach((function(e){Fd(Ad,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Sd({},o),a=xf;return this.apiClient.callApi("/api/aiops/v4.0/config/scenarios","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"listSimulations",value:function(e){var t=this,n=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=Sd(Sd(Sd(Sd(Sd({},(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{}),e.hasOwnProperty("$limit")?{$limit:e.$limit}:{}),e.hasOwnProperty("$filter")?{$filter:e.$filter}:{}),e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{}),e.hasOwnProperty("$select")?{$select:e.$select}:{}),o={};Object.keys(n).forEach((function(e){Fd(Ad,t).has(e.toLowerCase())||(o[e]=n[e])}));var i=Sd({},o),a=Vs;return this.apiClient.callApi("/api/aiops/v4.0/config/simulations","GET",{},r,i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],a)}},{key:"updateScenarioById",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof df&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateScenarioById");if(null==n)throw new Error("Invalid body when calling updateScenarioById");var i={extId:e},a={};Object.keys(o).forEach((function(e){Fd(Ad,r).has(e.toLowerCase())||(a[e]=o[e])}));var s=Sd({},a);lt.addEtagReferenceToHeader(t,s);var u=ld;return this.apiClient.callApi("/api/aiops/v4.0/config/scenarios/{extId}","PUT",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}},{key:"updateSimulationById",value:function(e,t){var n,r=this,o=(arguments.length<=2?0:arguments.length-2)>0?arguments.length<=2?void 0:arguments[2]:{};if(n=t instanceof os&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateSimulationById");if(null==n)throw new Error("Invalid body when calling updateSimulationById");var i={extId:e},a={};Object.keys(o).forEach((function(e){Fd(Ad,r).has(e.toLowerCase())||(a[e]=o[e])}));var s=Sd({},a);lt.addEtagReferenceToHeader(t,s);var u=eu;return this.apiClient.callApi("/api/aiops/v4.0/config/simulations/{extId}","PUT",i,{},s,{},n,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],u)}}],n=[{key:"ApiClient",get:function(){return lt}}],t&&Ed(e.prototype,t),n&&Ed(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Ud={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",GHZ:"GHz",GB:"GB",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ud).find((function(t){return Ud[t]===e}));return null==t?Ud.$UNKNOWN:Ud[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ud.$UNKNOWN:case Ud.$REDACTED:case Ud.GHZ:case Ud.GB:return;default:throw new Error("Invalid : must be CapacityUnit.{ $UNKNOWN|$REDACTED|GHZ|GB }")}}};Object.freeze(Ud);const Md=Ud;var xd={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",DAYS:"DAYS",MONTH:"MONTH",YEAR:"YEAR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(xd).find((function(t){return xd[t]===e}));return null==t?xd.$UNKNOWN:xd[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xd.$UNKNOWN:case xd.$REDACTED:case xd.DAYS:case xd.MONTH:case xd.YEAR:return;default:throw new Error("Invalid : must be RunwayDuration.{ $UNKNOWN|$REDACTED|DAYS|MONTH|YEAR }")}}};Object.freeze(xd);const Nd=xd;function _d(e){return _d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_d(e)}function Vd(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 Bd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vd(Object(n),!0).forEach((function(t){Ld(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ld(e,t,n){return(t=Wd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wd(r.key),r)}}function Wd(e){var t=function(e){if("object"!=_d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_d(t)?t:t+""}var zd=new WeakSet,Gd=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,zd),this.$objectType="aiops.v4.capacityplanning.CapacityDetails",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getRunway",value:function(){return this.runway}},{key:"setRunway",value:function(e){this.runway=e}},{key:"getUsedCapacity",value:function(){return this.usedCapacity}},{key:"setUsedCapacity",value:function(e){this.usedCapacity=e}},{key:"getTotalCapacity",value:function(){return this.totalCapacity}},{key:"setTotalCapacity",value:function(e){this.totalCapacity=e}},{key:"getEffectiveCapacity",value:function(){return this.effectiveCapacity}},{key:"setEffectiveCapacity",value:function(e){this.effectiveCapacity=e}},{key:"getCapacityUnit",value:function(){return this.capacityUnit}},{key:"setCapacityUnit",value:function(e){this.capacityUnit=e}},{key:"getRunwayDuration",value:function(){return this.runwayDuration}},{key:"setRunwayDuration",value:function(e){this.runwayDuration=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 Bd(Bd(Bd(Bd(Bd(Bd(Bd({},void 0!==this.getRunway()&&null!==this.getRunway()?{runway:this.getRunway()}:{}),void 0!==this.getUsedCapacity()&&null!==this.getUsedCapacity()?{usedCapacity:this.getUsedCapacity()}:{}),void 0!==this.getTotalCapacity()&&null!==this.getTotalCapacity()?{totalCapacity:this.getTotalCapacity()}:{}),void 0!==this.getEffectiveCapacity()&&null!==this.getEffectiveCapacity()?{effectiveCapacity:this.getEffectiveCapacity()}:{}),void 0!==this.getCapacityUnit()&&null!==this.getCapacityUnit()?{capacityUnit:this.getCapacityUnit()}:{}),void 0!==this.getRunwayDuration()&&null!==this.getRunwayDuration()?{runwayDuration:this.getRunwayDuration()}:{}),{},{$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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"runway"!==t||void 0!==this.runway&&null!==this.runway?"usedCapacity"!==t||void 0!==this.usedCapacity&&null!==this.usedCapacity?"totalCapacity"!==t||void 0!==this.totalCapacity&&null!==this.totalCapacity?"effectiveCapacity"!==t||void 0!==this.effectiveCapacity&&null!==this.effectiveCapacity?"capacityUnit"!==t||void 0!==this.capacityUnit&&null!==this.capacityUnit?"runwayDuration"!==t||void 0!==this.runwayDuration&&null!==this.runwayDuration?"$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("runwayDuration","undefined or null"):new U("capacityUnit","undefined or null"):new U("effectiveCapacity","undefined or null"):new U("totalCapacity","undefined or null"):new U("usedCapacity","undefined or null"):new U("runway","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("runway")&&null!==t.runway&&void 0!==t.runway&&n.setRunway(t.runway),t.hasOwnProperty("usedCapacity")&&null!==t.usedCapacity&&void 0!==t.usedCapacity&&n.setUsedCapacity(t.usedCapacity),t.hasOwnProperty("totalCapacity")&&null!==t.totalCapacity&&void 0!==t.totalCapacity&&n.setTotalCapacity(t.totalCapacity),t.hasOwnProperty("effectiveCapacity")&&null!==t.effectiveCapacity&&void 0!==t.effectiveCapacity&&n.setEffectiveCapacity(t.effectiveCapacity),t.hasOwnProperty("capacityUnit")&&null!==t.capacityUnit&&void 0!==t.capacityUnit&&n.setCapacityUnit(Md.constructFromObject(t.capacityUnit)),t.hasOwnProperty("runwayDuration")&&null!==t.runwayDuration&&void 0!==t.runwayDuration&&n.setRunwayDuration(Nd.constructFromObject(t.runwayDuration)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Bd({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Jd(t.prototype,n),r&&Jd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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 qd(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 Kd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qd(Object(n),!0).forEach((function(t){Xd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xd(e,t,n){return(t=Zd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zd(r.key),r)}}function Zd(e){var t=function(e){if("object"!=Hd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hd(t)?t:t+""}function Qd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qd=function(){return!!e})()}function ev(e){return ev=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ev(e)}function tv(e,t){return tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tv(e,t)}Gd.prototype.runway=void 0,Gd.prototype.usedCapacity=void 0,Gd.prototype.totalCapacity=void 0,Gd.prototype.effectiveCapacity=void 0,Gd.prototype.capacityUnit=void 0,Gd.prototype.runwayDuration=void 0,Gd.prototype.$reserved=void 0,Gd.prototype.$objectType=void 0,Gd.prototype.$unknownFields=void 0;var nv=new WeakSet,rv=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=ev(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,Qd()?Reflect.construct(t,n||[],ev(e).constructor):t.apply(e,n))}(this,t),nv),e.$objectType="aiops.v4.capacityplanning.Runway",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tv(e,t)}(t,e),n=t,r=[{key:"getCpu",value:function(){return this.cpu}},{key:"setCpu",value:function(e){this.cpu=e}},{key:"getMemory",value:function(){return this.memory}},{key:"setMemory",value:function(e){this.memory=e}},{key:"getStorage",value:function(){return this.storage}},{key:"setStorage",value:function(e){this.storage=e}},{key:"toJson",value:function(e){return Kd(!1===e?Kd(Kd(Kd(Kd(Kd(Kd({},void 0!==this.getCpu()&&null!==this.getCpu()?{cpu:this.getCpu().toJson(!1)}:{}),void 0!==this.getMemory()&&null!==this.getMemory()?{memory:this.getMemory().toJson(!1)}:{}),void 0!==this.getStorage()&&null!==this.getStorage()?{storage:this.getStorage().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()}:{}):Kd(Kd(Kd({},void 0!==this.getCpu()&&null!==this.getCpu()?{cpu:this.getCpu().toJson(!1)}:{}),void 0!==this.getMemory()&&null!==this.getMemory()?{memory:this.getMemory().toJson(!1)}:{}),void 0!==this.getStorage()&&null!==this.getStorage()?{storage:this.getStorage().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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"cpu"!==t||void 0!==this.cpu&&null!==this.cpu?"memory"!==t||void 0!==this.memory&&null!==this.memory?"storage"!==t||void 0!==this.storage&&null!==this.storage?new U(t,"no such property exists"):new U("storage","undefined or null"):new U("memory","undefined or null"):new U("cpu","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,bo.constructFromObject(e,n,!0),e.hasOwnProperty("cpu")&&null!==e.cpu&&void 0!==e.cpu&&n.setCpu(Gd.constructFromObject(e.cpu)),e.hasOwnProperty("memory")&&null!==e.memory&&void 0!==e.memory&&n.setMemory(Gd.constructFromObject(e.memory)),e.hasOwnProperty("storage")&&null!==e.storage&&void 0!==e.storage&&n.setStorage(Gd.constructFromObject(e.storage)),!r))for(var o in n.$unknownFields=Kd({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Yd(n.prototype,r),o&&Yd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(bo);function ov(e){return ov="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ov(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 av(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=lv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lv(r.key),r)}}function lv(e){var t=function(e){if("object"!=ov(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ov(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ov(t)?t:t+""}rv.prototype.cpu=void 0,rv.prototype.memory=void 0,rv.prototype.storage=void 0,bo.prototype.extId=void 0,bo.prototype.links=void 0,io.prototype.tenantId=void 0;var cv=new WeakSet,fv=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,cv),this.$objectType="aiops.v4.clusterMetrics.Cluster",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getUuid",value:function(){return this.uuid}},{key:"setUuid",value:function(e){this.uuid=e}},{key:"getExternalIpAddress",value:function(){return this.externalIpAddress}},{key:"setExternalIpAddress",value:function(e){this.externalIpAddress=e}},{key:"getMemoryCapacityBytes",value:function(){return this.memoryCapacityBytes}},{key:"setMemoryCapacityBytes",value:function(e){this.memoryCapacityBytes=e}},{key:"getNumCpus",value:function(){return this.numCpus}},{key:"setNumCpus",value:function(e){this.numCpus=e}},{key:"getHypervisorMemoryUsagePpm",value:function(){return this.hypervisorMemoryUsagePpm}},{key:"setHypervisorMemoryUsagePpm",value:function(e){this.hypervisorMemoryUsagePpm=e}},{key:"getHypervisorCpuUsagePpm",value:function(){return this.hypervisorCpuUsagePpm}},{key:"setHypervisorCpuUsagePpm",value:function(e){this.hypervisorCpuUsagePpm=e}},{key:"getRf",value:function(){return this.rf}},{key:"setRf",value:function(e){this.rf=e}},{key:"getCapacityBytes",value:function(){return this.capacityBytes}},{key:"setCapacityBytes",value:function(e){this.capacityBytes=e}},{key:"getFreeBytes",value:function(){return this.freeBytes}},{key:"setFreeBytes",value:function(e){this.freeBytes=e}},{key:"getUsageBytes",value:function(){return this.usageBytes}},{key:"setUsageBytes",value:function(e){this.usageBytes=e}},{key:"getSavedBytes",value:function(){return this.savedBytes}},{key:"setSavedBytes",value:function(e){this.savedBytes=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 av(av(av(av(av(av(av(av(av(av(av(av(av({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{}),void 0!==this.getExternalIpAddress()&&null!==this.getExternalIpAddress()?{externalIpAddress:this.getExternalIpAddress()}:{}),void 0!==this.getMemoryCapacityBytes()&&null!==this.getMemoryCapacityBytes()?{memoryCapacityBytes:this.getMemoryCapacityBytes()}:{}),void 0!==this.getNumCpus()&&null!==this.getNumCpus()?{numCpus:this.getNumCpus()}:{}),void 0!==this.getHypervisorMemoryUsagePpm()&&null!==this.getHypervisorMemoryUsagePpm()?{hypervisorMemoryUsagePpm:this.getHypervisorMemoryUsagePpm()}:{}),void 0!==this.getHypervisorCpuUsagePpm()&&null!==this.getHypervisorCpuUsagePpm()?{hypervisorCpuUsagePpm:this.getHypervisorCpuUsagePpm()}:{}),void 0!==this.getRf()&&null!==this.getRf()?{rf:this.getRf()}:{}),void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{}),void 0!==this.getFreeBytes()&&null!==this.getFreeBytes()?{freeBytes:this.getFreeBytes()}:{}),void 0!==this.getUsageBytes()&&null!==this.getUsageBytes()?{usageBytes:this.getUsageBytes()}:{}),void 0!==this.getSavedBytes()&&null!==this.getSavedBytes()?{savedBytes:this.getSavedBytes()}:{}),{},{$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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new U("name","undefined or null");if("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new U("uuid","undefined or null");if(!F.validatePattern(this.uuid,/^[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("uuid","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"externalIpAddress"!==t||void 0!==this.externalIpAddress&&null!==this.externalIpAddress?"memoryCapacityBytes"!==t||void 0!==this.memoryCapacityBytes&&null!==this.memoryCapacityBytes?"numCpus"!==t||void 0!==this.numCpus&&null!==this.numCpus?"hypervisorMemoryUsagePpm"!==t||void 0!==this.hypervisorMemoryUsagePpm&&null!==this.hypervisorMemoryUsagePpm?"hypervisorCpuUsagePpm"!==t||void 0!==this.hypervisorCpuUsagePpm&&null!==this.hypervisorCpuUsagePpm?"rf"!==t||void 0!==this.rf&&null!==this.rf?"capacityBytes"!==t||void 0!==this.capacityBytes&&null!==this.capacityBytes?"freeBytes"!==t||void 0!==this.freeBytes&&null!==this.freeBytes?"usageBytes"!==t||void 0!==this.usageBytes&&null!==this.usageBytes?"savedBytes"!==t||void 0!==this.savedBytes&&null!==this.savedBytes?"$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("savedBytes","undefined or null"):new U("usageBytes","undefined or null"):new U("freeBytes","undefined or null"):new U("capacityBytes","undefined or null"):new U("rf","undefined or null"):new U("hypervisorCpuUsagePpm","undefined or null"):new U("hypervisorMemoryUsagePpm","undefined or null"):new U("numCpus","undefined or null"):new U("memoryCapacityBytes","undefined or null"):new U("externalIpAddress","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("uuid")&&null!==t.uuid&&void 0!==t.uuid&&n.setUuid(t.uuid),t.hasOwnProperty("externalIpAddress")&&null!==t.externalIpAddress&&void 0!==t.externalIpAddress&&n.setExternalIpAddress(t.externalIpAddress),t.hasOwnProperty("memoryCapacityBytes")&&null!==t.memoryCapacityBytes&&void 0!==t.memoryCapacityBytes&&n.setMemoryCapacityBytes(t.memoryCapacityBytes),t.hasOwnProperty("numCpus")&&null!==t.numCpus&&void 0!==t.numCpus&&n.setNumCpus(t.numCpus),t.hasOwnProperty("hypervisorMemoryUsagePpm")&&null!==t.hypervisorMemoryUsagePpm&&void 0!==t.hypervisorMemoryUsagePpm&&n.setHypervisorMemoryUsagePpm(t.hypervisorMemoryUsagePpm),t.hasOwnProperty("hypervisorCpuUsagePpm")&&null!==t.hypervisorCpuUsagePpm&&void 0!==t.hypervisorCpuUsagePpm&&n.setHypervisorCpuUsagePpm(t.hypervisorCpuUsagePpm),t.hasOwnProperty("rf")&&null!==t.rf&&void 0!==t.rf&&n.setRf(t.rf),t.hasOwnProperty("capacityBytes")&&null!==t.capacityBytes&&void 0!==t.capacityBytes&&n.setCapacityBytes(t.capacityBytes),t.hasOwnProperty("freeBytes")&&null!==t.freeBytes&&void 0!==t.freeBytes&&n.setFreeBytes(t.freeBytes),t.hasOwnProperty("usageBytes")&&null!==t.usageBytes&&void 0!==t.usageBytes&&n.setUsageBytes(t.usageBytes),t.hasOwnProperty("savedBytes")&&null!==t.savedBytes&&void 0!==t.savedBytes&&n.setSavedBytes(t.savedBytes),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=av({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&uv(t.prototype,n),r&&uv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function pv(e){return pv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pv(e)}function yv(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 dv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yv(Object(n),!0).forEach((function(t){vv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vv(e,t,n){return(t=bv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bv(r.key),r)}}function bv(e){var t=function(e){if("object"!=pv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=pv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pv(t)?t:t+""}fv.prototype.name=void 0,fv.prototype.uuid=void 0,fv.prototype.externalIpAddress=void 0,fv.prototype.memoryCapacityBytes=void 0,fv.prototype.numCpus=void 0,fv.prototype.hypervisorMemoryUsagePpm=void 0,fv.prototype.hypervisorCpuUsagePpm=void 0,fv.prototype.rf=void 0,fv.prototype.capacityBytes=void 0,fv.prototype.freeBytes=void 0,fv.prototype.usageBytes=void 0,fv.prototype.savedBytes=void 0,fv.prototype.$reserved=void 0,fv.prototype.$objectType=void 0,fv.prototype.$unknownFields=void 0;var mv=new WeakSet,gv=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,mv),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 dv(dv(dv({},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 S?r=["value"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new U("value","undefined or null");if(!F.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(!F.validateMaximum(this.prefixLength,32))return new U("prefixLength","does not satisfy required maximum constraint: 32");if(!F.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 o in n.$unknownFields=dv({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&hv(t.prototype,n),r&&hv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function wv(e){return wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wv(e)}function Ov(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 jv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ov(Object(n),!0).forEach((function(t){$v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ov(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $v(e,t,n){return(t=Pv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pv(r.key),r)}}function Pv(e){var t=function(e){if("object"!=wv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wv(t)?t:t+""}function Tv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tv=function(){return!!e})()}function Sv(e){return Sv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sv(e)}function Cv(e,t){return Cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cv(e,t)}gv.prototype.value=void 0,gv.prototype.prefixLength=32,gv.prototype.$reserved=void 0,gv.prototype.$objectType=void 0,gv.prototype.$unknownFields=void 0;var Ev=new WeakSet,Dv=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=Sv(t),function(e,t){if(t&&("object"==wv(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,Tv()?Reflect.construct(t,n||[],Sv(e).constructor):t.apply(e,n))}(this,t),Ev),e.$objectType="aiops.v4.clusterMetrics.ClusterMetrics",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cv(e,t)}(t,e),n=t,r=[{key:"getClusterName",value:function(){return this.clusterName}},{key:"setClusterName",value:function(e){this.clusterName=e}},{key:"getExternalIP",value:function(){return this.externalIP}},{key:"setExternalIP",value:function(e){this.externalIP=e}},{key:"getCvmIPs",value:function(){return this.cvmIPs}},{key:"setCvmIPs",value:function(e){this.cvmIPs=e}},{key:"getTotalMemorySizeBytes",value:function(){return this.totalMemorySizeBytes}},{key:"setTotalMemorySizeBytes",value:function(e){this.totalMemorySizeBytes=e}},{key:"getCurrentMemoryUsageSizeBytes",value:function(){return this.currentMemoryUsageSizeBytes}},{key:"setCurrentMemoryUsageSizeBytes",value:function(e){this.currentMemoryUsageSizeBytes=e}},{key:"getProvisionedMemoryUsageBytes",value:function(){return this.provisionedMemoryUsageBytes}},{key:"setProvisionedMemoryUsageBytes",value:function(e){this.provisionedMemoryUsageBytes=e}},{key:"getMaxVmMemorySizeBytes",value:function(){return this.maxVmMemorySizeBytes}},{key:"setMaxVmMemorySizeBytes",value:function(e){this.maxVmMemorySizeBytes=e}},{key:"getAvailableMemorySizeBytes",value:function(){return this.availableMemorySizeBytes}},{key:"setAvailableMemorySizeBytes",value:function(e){this.availableMemorySizeBytes=e}},{key:"getLargestPoweredOffVMMemory",value:function(){return this.largestPoweredOffVMMemory}},{key:"setLargestPoweredOffVMMemory",value:function(e){this.largestPoweredOffVMMemory=e}},{key:"getTotalVCpuCount",value:function(){return this.totalVCpuCount}},{key:"setTotalVCpuCount",value:function(e){this.totalVCpuCount=e}},{key:"getCurrentUsedVCpuCount",value:function(){return this.currentUsedVCpuCount}},{key:"setCurrentUsedVCpuCount",value:function(e){this.currentUsedVCpuCount=e}},{key:"getProvisionedVCpuCount",value:function(){return this.provisionedVCpuCount}},{key:"setProvisionedVCpuCount",value:function(e){this.provisionedVCpuCount=e}},{key:"getMaxVmVCpuSize",value:function(){return this.maxVmVCpuSize}},{key:"setMaxVmVCpuSize",value:function(e){this.maxVmVCpuSize=e}},{key:"getAvailableVCpuCount",value:function(){return this.availableVCpuCount}},{key:"setAvailableVCpuCount",value:function(e){this.availableVCpuCount=e}},{key:"getLargestPoweredOffVMVCpu",value:function(){return this.largestPoweredOffVMVCpu}},{key:"setLargestPoweredOffVMVCpu",value:function(e){this.largestPoweredOffVMVCpu=e}},{key:"getTotalCpuHz",value:function(){return this.totalCpuHz}},{key:"setTotalCpuHz",value:function(e){this.totalCpuHz=e}},{key:"getCurrentUsedCpuHz",value:function(){return this.currentUsedCpuHz}},{key:"setCurrentUsedCpuHz",value:function(e){this.currentUsedCpuHz=e}},{key:"getProvisionedCpuHz",value:function(){return this.provisionedCpuHz}},{key:"setProvisionedCpuHz",value:function(e){this.provisionedCpuHz=e}},{key:"getTotalStorageCapacityRawBytes",value:function(){return this.totalStorageCapacityRawBytes}},{key:"setTotalStorageCapacityRawBytes",value:function(e){this.totalStorageCapacityRawBytes=e}},{key:"getTotalStorageCapacityLogicalBytes",value:function(){return this.totalStorageCapacityLogicalBytes}},{key:"setTotalStorageCapacityLogicalBytes",value:function(e){this.totalStorageCapacityLogicalBytes=e}},{key:"getTotalStorageCapacityLogicalWithSavingsBytes",value:function(){return this.totalStorageCapacityLogicalWithSavingsBytes}},{key:"setTotalStorageCapacityLogicalWithSavingsBytes",value:function(e){this.totalStorageCapacityLogicalWithSavingsBytes=e}},{key:"getTotalStorageUsageBytes",value:function(){return this.totalStorageUsageBytes}},{key:"setTotalStorageUsageBytes",value:function(e){this.totalStorageUsageBytes=e}},{key:"getTotalStorageAvailableBytes",value:function(){return this.totalStorageAvailableBytes}},{key:"setTotalStorageAvailableBytes",value:function(e){this.totalStorageAvailableBytes=e}},{key:"getTotalStorageAvailableLogicalBytes",value:function(){return this.totalStorageAvailableLogicalBytes}},{key:"setTotalStorageAvailableLogicalBytes",value:function(e){this.totalStorageAvailableLogicalBytes=e}},{key:"toJson",value:function(e){return jv(!1===e?jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv({},void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{}),void 0!==this.getExternalIP()&&null!==this.getExternalIP()?{externalIP:this.getExternalIP().toJson(!1)}:{}),void 0!==this.getCvmIPs()&&null!==this.getCvmIPs()?{cvmIPs:this.getCvmIPs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalMemorySizeBytes()&&null!==this.getTotalMemorySizeBytes()?{totalMemorySizeBytes:this.getTotalMemorySizeBytes()}:{}),void 0!==this.getCurrentMemoryUsageSizeBytes()&&null!==this.getCurrentMemoryUsageSizeBytes()?{currentMemoryUsageSizeBytes:this.getCurrentMemoryUsageSizeBytes()}:{}),void 0!==this.getProvisionedMemoryUsageBytes()&&null!==this.getProvisionedMemoryUsageBytes()?{provisionedMemoryUsageBytes:this.getProvisionedMemoryUsageBytes()}:{}),void 0!==this.getMaxVmMemorySizeBytes()&&null!==this.getMaxVmMemorySizeBytes()?{maxVmMemorySizeBytes:this.getMaxVmMemorySizeBytes()}:{}),void 0!==this.getAvailableMemorySizeBytes()&&null!==this.getAvailableMemorySizeBytes()?{availableMemorySizeBytes:this.getAvailableMemorySizeBytes()}:{}),void 0!==this.getLargestPoweredOffVMMemory()&&null!==this.getLargestPoweredOffVMMemory()?{largestPoweredOffVMMemory:this.getLargestPoweredOffVMMemory()}:{}),void 0!==this.getTotalVCpuCount()&&null!==this.getTotalVCpuCount()?{totalVCpuCount:this.getTotalVCpuCount()}:{}),void 0!==this.getCurrentUsedVCpuCount()&&null!==this.getCurrentUsedVCpuCount()?{currentUsedVCpuCount:this.getCurrentUsedVCpuCount()}:{}),void 0!==this.getProvisionedVCpuCount()&&null!==this.getProvisionedVCpuCount()?{provisionedVCpuCount:this.getProvisionedVCpuCount()}:{}),void 0!==this.getMaxVmVCpuSize()&&null!==this.getMaxVmVCpuSize()?{maxVmVCpuSize:this.getMaxVmVCpuSize()}:{}),void 0!==this.getAvailableVCpuCount()&&null!==this.getAvailableVCpuCount()?{availableVCpuCount:this.getAvailableVCpuCount()}:{}),void 0!==this.getLargestPoweredOffVMVCpu()&&null!==this.getLargestPoweredOffVMVCpu()?{largestPoweredOffVMVCpu:this.getLargestPoweredOffVMVCpu()}:{}),void 0!==this.getTotalCpuHz()&&null!==this.getTotalCpuHz()?{totalCpuHz:this.getTotalCpuHz()}:{}),void 0!==this.getCurrentUsedCpuHz()&&null!==this.getCurrentUsedCpuHz()?{currentUsedCpuHz:this.getCurrentUsedCpuHz()}:{}),void 0!==this.getProvisionedCpuHz()&&null!==this.getProvisionedCpuHz()?{provisionedCpuHz:this.getProvisionedCpuHz()}:{}),void 0!==this.getTotalStorageCapacityRawBytes()&&null!==this.getTotalStorageCapacityRawBytes()?{totalStorageCapacityRawBytes:this.getTotalStorageCapacityRawBytes()}:{}),void 0!==this.getTotalStorageCapacityLogicalBytes()&&null!==this.getTotalStorageCapacityLogicalBytes()?{totalStorageCapacityLogicalBytes:this.getTotalStorageCapacityLogicalBytes()}:{}),void 0!==this.getTotalStorageCapacityLogicalWithSavingsBytes()&&null!==this.getTotalStorageCapacityLogicalWithSavingsBytes()?{totalStorageCapacityLogicalWithSavingsBytes:this.getTotalStorageCapacityLogicalWithSavingsBytes()}:{}),void 0!==this.getTotalStorageUsageBytes()&&null!==this.getTotalStorageUsageBytes()?{totalStorageUsageBytes:this.getTotalStorageUsageBytes()}:{}),void 0!==this.getTotalStorageAvailableBytes()&&null!==this.getTotalStorageAvailableBytes()?{totalStorageAvailableBytes:this.getTotalStorageAvailableBytes()}:{}),void 0!==this.getTotalStorageAvailableLogicalBytes()&&null!==this.getTotalStorageAvailableLogicalBytes()?{totalStorageAvailableLogicalBytes:this.getTotalStorageAvailableLogicalBytes()}:{}),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()}:{}):jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv(jv({},void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{}),void 0!==this.getExternalIP()&&null!==this.getExternalIP()?{externalIP:this.getExternalIP().toJson(!1)}:{}),void 0!==this.getCvmIPs()&&null!==this.getCvmIPs()?{cvmIPs:this.getCvmIPs().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalMemorySizeBytes()&&null!==this.getTotalMemorySizeBytes()?{totalMemorySizeBytes:this.getTotalMemorySizeBytes()}:{}),void 0!==this.getCurrentMemoryUsageSizeBytes()&&null!==this.getCurrentMemoryUsageSizeBytes()?{currentMemoryUsageSizeBytes:this.getCurrentMemoryUsageSizeBytes()}:{}),void 0!==this.getProvisionedMemoryUsageBytes()&&null!==this.getProvisionedMemoryUsageBytes()?{provisionedMemoryUsageBytes:this.getProvisionedMemoryUsageBytes()}:{}),void 0!==this.getMaxVmMemorySizeBytes()&&null!==this.getMaxVmMemorySizeBytes()?{maxVmMemorySizeBytes:this.getMaxVmMemorySizeBytes()}:{}),void 0!==this.getAvailableMemorySizeBytes()&&null!==this.getAvailableMemorySizeBytes()?{availableMemorySizeBytes:this.getAvailableMemorySizeBytes()}:{}),void 0!==this.getLargestPoweredOffVMMemory()&&null!==this.getLargestPoweredOffVMMemory()?{largestPoweredOffVMMemory:this.getLargestPoweredOffVMMemory()}:{}),void 0!==this.getTotalVCpuCount()&&null!==this.getTotalVCpuCount()?{totalVCpuCount:this.getTotalVCpuCount()}:{}),void 0!==this.getCurrentUsedVCpuCount()&&null!==this.getCurrentUsedVCpuCount()?{currentUsedVCpuCount:this.getCurrentUsedVCpuCount()}:{}),void 0!==this.getProvisionedVCpuCount()&&null!==this.getProvisionedVCpuCount()?{provisionedVCpuCount:this.getProvisionedVCpuCount()}:{}),void 0!==this.getMaxVmVCpuSize()&&null!==this.getMaxVmVCpuSize()?{maxVmVCpuSize:this.getMaxVmVCpuSize()}:{}),void 0!==this.getAvailableVCpuCount()&&null!==this.getAvailableVCpuCount()?{availableVCpuCount:this.getAvailableVCpuCount()}:{}),void 0!==this.getLargestPoweredOffVMVCpu()&&null!==this.getLargestPoweredOffVMVCpu()?{largestPoweredOffVMVCpu:this.getLargestPoweredOffVMVCpu()}:{}),void 0!==this.getTotalCpuHz()&&null!==this.getTotalCpuHz()?{totalCpuHz:this.getTotalCpuHz()}:{}),void 0!==this.getCurrentUsedCpuHz()&&null!==this.getCurrentUsedCpuHz()?{currentUsedCpuHz:this.getCurrentUsedCpuHz()}:{}),void 0!==this.getProvisionedCpuHz()&&null!==this.getProvisionedCpuHz()?{provisionedCpuHz:this.getProvisionedCpuHz()}:{}),void 0!==this.getTotalStorageCapacityRawBytes()&&null!==this.getTotalStorageCapacityRawBytes()?{totalStorageCapacityRawBytes:this.getTotalStorageCapacityRawBytes()}:{}),void 0!==this.getTotalStorageCapacityLogicalBytes()&&null!==this.getTotalStorageCapacityLogicalBytes()?{totalStorageCapacityLogicalBytes:this.getTotalStorageCapacityLogicalBytes()}:{}),void 0!==this.getTotalStorageCapacityLogicalWithSavingsBytes()&&null!==this.getTotalStorageCapacityLogicalWithSavingsBytes()?{totalStorageCapacityLogicalWithSavingsBytes:this.getTotalStorageCapacityLogicalWithSavingsBytes()}:{}),void 0!==this.getTotalStorageUsageBytes()&&null!==this.getTotalStorageUsageBytes()?{totalStorageUsageBytes:this.getTotalStorageUsageBytes()}:{}),void 0!==this.getTotalStorageAvailableBytes()&&null!==this.getTotalStorageAvailableBytes()?{totalStorageAvailableBytes:this.getTotalStorageAvailableBytes()}:{}),void 0!==this.getTotalStorageAvailableLogicalBytes()&&null!==this.getTotalStorageAvailableLogicalBytes()?{totalStorageAvailableLogicalBytes:this.getTotalStorageAvailableLogicalBytes()}:{}),{},{$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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"clusterName"!==t||void 0!==this.clusterName&&null!==this.clusterName?"externalIP"!==t||void 0!==this.externalIP&&null!==this.externalIP?"cvmIPs"!==t||void 0!==this.cvmIPs&&null!==this.cvmIPs?"totalMemorySizeBytes"!==t||void 0!==this.totalMemorySizeBytes&&null!==this.totalMemorySizeBytes?"currentMemoryUsageSizeBytes"!==t||void 0!==this.currentMemoryUsageSizeBytes&&null!==this.currentMemoryUsageSizeBytes?"provisionedMemoryUsageBytes"!==t||void 0!==this.provisionedMemoryUsageBytes&&null!==this.provisionedMemoryUsageBytes?"maxVmMemorySizeBytes"!==t||void 0!==this.maxVmMemorySizeBytes&&null!==this.maxVmMemorySizeBytes?"availableMemorySizeBytes"!==t||void 0!==this.availableMemorySizeBytes&&null!==this.availableMemorySizeBytes?"largestPoweredOffVMMemory"!==t||void 0!==this.largestPoweredOffVMMemory&&null!==this.largestPoweredOffVMMemory?"totalVCpuCount"!==t||void 0!==this.totalVCpuCount&&null!==this.totalVCpuCount?"currentUsedVCpuCount"!==t||void 0!==this.currentUsedVCpuCount&&null!==this.currentUsedVCpuCount?"provisionedVCpuCount"!==t||void 0!==this.provisionedVCpuCount&&null!==this.provisionedVCpuCount?"maxVmVCpuSize"!==t||void 0!==this.maxVmVCpuSize&&null!==this.maxVmVCpuSize?"availableVCpuCount"!==t||void 0!==this.availableVCpuCount&&null!==this.availableVCpuCount?"largestPoweredOffVMVCpu"!==t||void 0!==this.largestPoweredOffVMVCpu&&null!==this.largestPoweredOffVMVCpu?"totalCpuHz"!==t||void 0!==this.totalCpuHz&&null!==this.totalCpuHz?"currentUsedCpuHz"!==t||void 0!==this.currentUsedCpuHz&&null!==this.currentUsedCpuHz?"provisionedCpuHz"!==t||void 0!==this.provisionedCpuHz&&null!==this.provisionedCpuHz?"totalStorageCapacityRawBytes"!==t||void 0!==this.totalStorageCapacityRawBytes&&null!==this.totalStorageCapacityRawBytes?"totalStorageCapacityLogicalBytes"!==t||void 0!==this.totalStorageCapacityLogicalBytes&&null!==this.totalStorageCapacityLogicalBytes?"totalStorageCapacityLogicalWithSavingsBytes"!==t||void 0!==this.totalStorageCapacityLogicalWithSavingsBytes&&null!==this.totalStorageCapacityLogicalWithSavingsBytes?"totalStorageUsageBytes"!==t||void 0!==this.totalStorageUsageBytes&&null!==this.totalStorageUsageBytes?"totalStorageAvailableBytes"!==t||void 0!==this.totalStorageAvailableBytes&&null!==this.totalStorageAvailableBytes?"totalStorageAvailableLogicalBytes"!==t||void 0!==this.totalStorageAvailableLogicalBytes&&null!==this.totalStorageAvailableLogicalBytes?new U(t,"no such property exists"):new U("totalStorageAvailableLogicalBytes","undefined or null"):new U("totalStorageAvailableBytes","undefined or null"):new U("totalStorageUsageBytes","undefined or null"):new U("totalStorageCapacityLogicalWithSavingsBytes","undefined or null"):new U("totalStorageCapacityLogicalBytes","undefined or null"):new U("totalStorageCapacityRawBytes","undefined or null"):new U("provisionedCpuHz","undefined or null"):new U("currentUsedCpuHz","undefined or null"):new U("totalCpuHz","undefined or null"):new U("largestPoweredOffVMVCpu","undefined or null"):new U("availableVCpuCount","undefined or null"):new U("maxVmVCpuSize","undefined or null"):new U("provisionedVCpuCount","undefined or null"):new U("currentUsedVCpuCount","undefined or null"):new U("totalVCpuCount","undefined or null"):new U("largestPoweredOffVMMemory","undefined or null"):new U("availableMemorySizeBytes","undefined or null"):new U("maxVmMemorySizeBytes","undefined or null"):new U("provisionedMemoryUsageBytes","undefined or null"):new U("currentMemoryUsageSizeBytes","undefined or null"):new U("totalMemorySizeBytes","undefined or null"):new U("cvmIPs","undefined or null"):new U("externalIP","undefined or null"):new U("clusterName","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,bo.constructFromObject(e,a,!0),e.hasOwnProperty("clusterName")&&null!==e.clusterName&&void 0!==e.clusterName&&a.setClusterName(e.clusterName),e.hasOwnProperty("externalIP")&&null!==e.externalIP&&void 0!==e.externalIP&&a.setExternalIP(gv.constructFromObject(e.externalIP)),e.hasOwnProperty("cvmIPs")&&null!==e.cvmIPs&&void 0!==e.cvmIPs){for(i=[],n=e.cvmIPs,o=0;o<n.length;o++)r=gv.constructFromObject(n[o],void 0),i.push(r);a.setCvmIPs(i)}if(e.hasOwnProperty("totalMemorySizeBytes")&&null!==e.totalMemorySizeBytes&&void 0!==e.totalMemorySizeBytes&&a.setTotalMemorySizeBytes(e.totalMemorySizeBytes),e.hasOwnProperty("currentMemoryUsageSizeBytes")&&null!==e.currentMemoryUsageSizeBytes&&void 0!==e.currentMemoryUsageSizeBytes&&a.setCurrentMemoryUsageSizeBytes(e.currentMemoryUsageSizeBytes),e.hasOwnProperty("provisionedMemoryUsageBytes")&&null!==e.provisionedMemoryUsageBytes&&void 0!==e.provisionedMemoryUsageBytes&&a.setProvisionedMemoryUsageBytes(e.provisionedMemoryUsageBytes),e.hasOwnProperty("maxVmMemorySizeBytes")&&null!==e.maxVmMemorySizeBytes&&void 0!==e.maxVmMemorySizeBytes&&a.setMaxVmMemorySizeBytes(e.maxVmMemorySizeBytes),e.hasOwnProperty("availableMemorySizeBytes")&&null!==e.availableMemorySizeBytes&&void 0!==e.availableMemorySizeBytes&&a.setAvailableMemorySizeBytes(e.availableMemorySizeBytes),e.hasOwnProperty("largestPoweredOffVMMemory")&&null!==e.largestPoweredOffVMMemory&&void 0!==e.largestPoweredOffVMMemory&&a.setLargestPoweredOffVMMemory(e.largestPoweredOffVMMemory),e.hasOwnProperty("totalVCpuCount")&&null!==e.totalVCpuCount&&void 0!==e.totalVCpuCount&&a.setTotalVCpuCount(e.totalVCpuCount),e.hasOwnProperty("currentUsedVCpuCount")&&null!==e.currentUsedVCpuCount&&void 0!==e.currentUsedVCpuCount&&a.setCurrentUsedVCpuCount(e.currentUsedVCpuCount),e.hasOwnProperty("provisionedVCpuCount")&&null!==e.provisionedVCpuCount&&void 0!==e.provisionedVCpuCount&&a.setProvisionedVCpuCount(e.provisionedVCpuCount),e.hasOwnProperty("maxVmVCpuSize")&&null!==e.maxVmVCpuSize&&void 0!==e.maxVmVCpuSize&&a.setMaxVmVCpuSize(e.maxVmVCpuSize),e.hasOwnProperty("availableVCpuCount")&&null!==e.availableVCpuCount&&void 0!==e.availableVCpuCount&&a.setAvailableVCpuCount(e.availableVCpuCount),e.hasOwnProperty("largestPoweredOffVMVCpu")&&null!==e.largestPoweredOffVMVCpu&&void 0!==e.largestPoweredOffVMVCpu&&a.setLargestPoweredOffVMVCpu(e.largestPoweredOffVMVCpu),e.hasOwnProperty("totalCpuHz")&&null!==e.totalCpuHz&&void 0!==e.totalCpuHz&&a.setTotalCpuHz(e.totalCpuHz),e.hasOwnProperty("currentUsedCpuHz")&&null!==e.currentUsedCpuHz&&void 0!==e.currentUsedCpuHz&&a.setCurrentUsedCpuHz(e.currentUsedCpuHz),e.hasOwnProperty("provisionedCpuHz")&&null!==e.provisionedCpuHz&&void 0!==e.provisionedCpuHz&&a.setProvisionedCpuHz(e.provisionedCpuHz),e.hasOwnProperty("totalStorageCapacityRawBytes")&&null!==e.totalStorageCapacityRawBytes&&void 0!==e.totalStorageCapacityRawBytes&&a.setTotalStorageCapacityRawBytes(e.totalStorageCapacityRawBytes),e.hasOwnProperty("totalStorageCapacityLogicalBytes")&&null!==e.totalStorageCapacityLogicalBytes&&void 0!==e.totalStorageCapacityLogicalBytes&&a.setTotalStorageCapacityLogicalBytes(e.totalStorageCapacityLogicalBytes),e.hasOwnProperty("totalStorageCapacityLogicalWithSavingsBytes")&&null!==e.totalStorageCapacityLogicalWithSavingsBytes&&void 0!==e.totalStorageCapacityLogicalWithSavingsBytes&&a.setTotalStorageCapacityLogicalWithSavingsBytes(e.totalStorageCapacityLogicalWithSavingsBytes),e.hasOwnProperty("totalStorageUsageBytes")&&null!==e.totalStorageUsageBytes&&void 0!==e.totalStorageUsageBytes&&a.setTotalStorageUsageBytes(e.totalStorageUsageBytes),e.hasOwnProperty("totalStorageAvailableBytes")&&null!==e.totalStorageAvailableBytes&&void 0!==e.totalStorageAvailableBytes&&a.setTotalStorageAvailableBytes(e.totalStorageAvailableBytes),e.hasOwnProperty("totalStorageAvailableLogicalBytes")&&null!==e.totalStorageAvailableLogicalBytes&&void 0!==e.totalStorageAvailableLogicalBytes&&a.setTotalStorageAvailableLogicalBytes(e.totalStorageAvailableLogicalBytes),!s)for(var u in a.$unknownFields=jv({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&kv(n.prototype,r),o&&kv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(bo);function Fv(e){return Fv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fv(e)}function Rv(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 Av(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rv(Object(n),!0).forEach((function(t){Iv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Iv(e,t,n){return(t=Mv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Mv(r.key),r)}}function Mv(e){var t=function(e){if("object"!=Fv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fv(t)?t:t+""}Dv.prototype.clusterName=void 0,Dv.prototype.externalIP=void 0,Dv.prototype.cvmIPs=void 0,Dv.prototype.totalMemorySizeBytes=void 0,Dv.prototype.currentMemoryUsageSizeBytes=void 0,Dv.prototype.provisionedMemoryUsageBytes=void 0,Dv.prototype.maxVmMemorySizeBytes=void 0,Dv.prototype.availableMemorySizeBytes=void 0,Dv.prototype.largestPoweredOffVMMemory=void 0,Dv.prototype.totalVCpuCount=void 0,Dv.prototype.currentUsedVCpuCount=void 0,Dv.prototype.provisionedVCpuCount=void 0,Dv.prototype.maxVmVCpuSize=void 0,Dv.prototype.availableVCpuCount=void 0,Dv.prototype.largestPoweredOffVMVCpu=void 0,Dv.prototype.totalCpuHz=void 0,Dv.prototype.currentUsedCpuHz=void 0,Dv.prototype.provisionedCpuHz=void 0,Dv.prototype.totalStorageCapacityRawBytes=void 0,Dv.prototype.totalStorageCapacityLogicalBytes=void 0,Dv.prototype.totalStorageCapacityLogicalWithSavingsBytes=void 0,Dv.prototype.totalStorageUsageBytes=void 0,Dv.prototype.totalStorageAvailableBytes=void 0,Dv.prototype.totalStorageAvailableLogicalBytes=void 0,bo.prototype.extId=void 0,bo.prototype.links=void 0,io.prototype.tenantId=void 0;var xv=new WeakSet,Nv=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,xv),this.$objectType="aiops.v4.clusterMetrics.Node",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getNodeUuid",value:function(){return this.nodeUuid}},{key:"setNodeUuid",value:function(e){this.nodeUuid=e}},{key:"getHaMemoryReservedBytes",value:function(){return this.haMemoryReservedBytes}},{key:"setHaMemoryReservedBytes",value:function(e){this.haMemoryReservedBytes=e}},{key:"getNumCpuThreads",value:function(){return this.numCpuThreads}},{key:"setNumCpuThreads",value:function(e){this.numCpuThreads=e}},{key:"getCapacityHz",value:function(){return this.capacityHz}},{key:"setCapacityHz",value:function(e){this.capacityHz=e}},{key:"getMemorySizeBytes",value:function(){return this.memorySizeBytes}},{key:"setMemorySizeBytes",value:function(e){this.memorySizeBytes=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 Av(Av(Av(Av(Av(Av({},void 0!==this.getNodeUuid()&&null!==this.getNodeUuid()?{nodeUuid:this.getNodeUuid()}:{}),void 0!==this.getHaMemoryReservedBytes()&&null!==this.getHaMemoryReservedBytes()?{haMemoryReservedBytes:this.getHaMemoryReservedBytes()}:{}),void 0!==this.getNumCpuThreads()&&null!==this.getNumCpuThreads()?{numCpuThreads:this.getNumCpuThreads()}:{}),void 0!==this.getCapacityHz()&&null!==this.getCapacityHz()?{capacityHz:this.getCapacityHz()}:{}),void 0!==this.getMemorySizeBytes()&&null!==this.getMemorySizeBytes()?{memorySizeBytes:this.getMemorySizeBytes()}:{}),{},{$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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("nodeUuid"===t){if(void 0===this.nodeUuid||null===this.nodeUuid)return new U("nodeUuid","undefined or null");if(!F.validatePattern(this.nodeUuid,/^[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("nodeUuid","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"haMemoryReservedBytes"!==t||void 0!==this.haMemoryReservedBytes&&null!==this.haMemoryReservedBytes?"numCpuThreads"!==t||void 0!==this.numCpuThreads&&null!==this.numCpuThreads?"capacityHz"!==t||void 0!==this.capacityHz&&null!==this.capacityHz?"memorySizeBytes"!==t||void 0!==this.memorySizeBytes&&null!==this.memorySizeBytes?"$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("memorySizeBytes","undefined or null"):new U("capacityHz","undefined or null"):new U("numCpuThreads","undefined or null"):new U("haMemoryReservedBytes","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("nodeUuid")&&null!==t.nodeUuid&&void 0!==t.nodeUuid&&n.setNodeUuid(t.nodeUuid),t.hasOwnProperty("haMemoryReservedBytes")&&null!==t.haMemoryReservedBytes&&void 0!==t.haMemoryReservedBytes&&n.setHaMemoryReservedBytes(t.haMemoryReservedBytes),t.hasOwnProperty("numCpuThreads")&&null!==t.numCpuThreads&&void 0!==t.numCpuThreads&&n.setNumCpuThreads(t.numCpuThreads),t.hasOwnProperty("capacityHz")&&null!==t.capacityHz&&void 0!==t.capacityHz&&n.setCapacityHz(t.capacityHz),t.hasOwnProperty("memorySizeBytes")&&null!==t.memorySizeBytes&&void 0!==t.memorySizeBytes&&n.setMemorySizeBytes(t.memorySizeBytes),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Av({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Uv(t.prototype,n),r&&Uv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function _v(e){return _v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_v(e)}function Vv(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,t,n){return(t=Jv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jv(r.key),r)}}function Jv(e){var t=function(e){if("object"!=_v(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_v(t)?t:t+""}function Wv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wv=function(){return!!e})()}function zv(e){return zv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zv(e)}function Gv(e,t){return Gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gv(e,t)}Nv.prototype.nodeUuid=void 0,Nv.prototype.haMemoryReservedBytes=void 0,Nv.prototype.numCpuThreads=void 0,Nv.prototype.capacityHz=void 0,Nv.prototype.memorySizeBytes=void 0,Nv.prototype.$reserved=void 0,Nv.prototype.$objectType=void 0,Nv.prototype.$unknownFields=void 0;var Hv=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=zv(t),function(e,t){if(t&&("object"==_v(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,Wv()?Reflect.construct(t,n||[],zv(e).constructor):t.apply(e,n))}(this,t)).$objectType="aiops.v4.clusterMetrics.NodeProjection",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gv(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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Nv.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vv(Object(n),!0).forEach((function(t){Bv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Lv(n.prototype,r),o&&Lv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Nv);function qv(e){return qv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qv(e)}function Kv(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 Xv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kv(Object(n),!0).forEach((function(t){Yv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yv(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 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,Qv(r.key),r)}}function Qv(e){var t=function(e){if("object"!=qv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=qv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qv(t)?t:t+""}var eh=new WeakSet,th=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="aiops.v4.clusterMetrics.Vm",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getVmUuid",value:function(){return this.vmUuid}},{key:"setVmUuid",value:function(e){this.vmUuid=e}},{key:"getVmMemory",value:function(){return this.vmMemory}},{key:"setVmMemory",value:function(e){this.vmMemory=e}},{key:"getNumVcpus",value:function(){return this.numVcpus}},{key:"setNumVcpus",value:function(e){this.numVcpus=e}},{key:"getPowerState",value:function(){return this.powerState}},{key:"setPowerState",value:function(e){this.powerState=e}},{key:"getNode",value:function(){return this.node}},{key:"setNode",value:function(e){this.node=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 Xv(Xv(Xv(Xv(Xv(Xv({},void 0!==this.getVmUuid()&&null!==this.getVmUuid()?{vmUuid:this.getVmUuid()}:{}),void 0!==this.getVmMemory()&&null!==this.getVmMemory()?{vmMemory:this.getVmMemory()}:{}),void 0!==this.getNumVcpus()&&null!==this.getNumVcpus()?{numVcpus:this.getNumVcpus()}:{}),void 0!==this.getPowerState()&&null!==this.getPowerState()?{powerState:this.getPowerState()}:{}),void 0!==this.getNode()&&null!==this.getNode()?{node:this.getNode()}:{}),{},{$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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("vmUuid"===t){if(void 0===this.vmUuid||null===this.vmUuid)return new U("vmUuid","undefined or null");if(!F.validatePattern(this.vmUuid,/^[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("vmUuid","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"vmMemory"!==t||void 0!==this.vmMemory&&null!==this.vmMemory?"numVcpus"!==t||void 0!==this.numVcpus&&null!==this.numVcpus?"powerState"!==t||void 0!==this.powerState&&null!==this.powerState?"node"!==t||void 0!==this.node&&null!==this.node?"$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("node","undefined or null"):new U("powerState","undefined or null"):new U("numVcpus","undefined or null"):new U("vmMemory","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("vmUuid")&&null!==t.vmUuid&&void 0!==t.vmUuid&&n.setVmUuid(t.vmUuid),t.hasOwnProperty("vmMemory")&&null!==t.vmMemory&&void 0!==t.vmMemory&&n.setVmMemory(t.vmMemory),t.hasOwnProperty("numVcpus")&&null!==t.numVcpus&&void 0!==t.numVcpus&&n.setNumVcpus(t.numVcpus),t.hasOwnProperty("powerState")&&null!==t.powerState&&void 0!==t.powerState&&n.setPowerState(t.powerState),t.hasOwnProperty("node")&&null!==t.node&&void 0!==t.node&&n.setNode(t.node),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Xv({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Zv(t.prototype,n),r&&Zv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function nh(e){return nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nh(e)}function rh(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 oh(e,t,n){return(t=ah(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,ah(r.key),r)}}function ah(e){var t=function(e){if("object"!=nh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nh(t)?t:t+""}function sh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sh=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)}th.prototype.vmUuid=void 0,th.prototype.vmMemory=void 0,th.prototype.numVcpus=void 0,th.prototype.powerState=void 0,th.prototype.node=void 0,th.prototype.$reserved=void 0,th.prototype.$objectType=void 0,th.prototype.$unknownFields=void 0;var ch=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=uh(t),function(e,t){if(t&&("object"==nh(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,sh()?Reflect.construct(t,n||[],uh(e).constructor):t.apply(e,n))}(this,t)).$objectType="aiops.v4.clusterMetrics.VmProjection",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lh(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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,th.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rh(Object(n),!0).forEach((function(t){oh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&ih(n.prototype,r),o&&ih(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(th);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 ph(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 yh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ph(Object(n),!0).forEach((function(t){dh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ph(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dh(e,t,n){return(t=hh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hh(r.key),r)}}function hh(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 bh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bh=function(){return!!e})()}function mh(e){return mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mh(e)}function gh(e,t){return gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gh(e,t)}var wh=new WeakSet,Oh=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=mh(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,bh()?Reflect.construct(t,n||[],mh(e).constructor):t.apply(e,n))}(this,t),wh),e.$objectType="aiops.v4.clusterMetrics.ClusterProjection",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gh(e,t)}(t,e),n=t,r=[{key:"getVmProjection",value:function(){return this.vmProjection}},{key:"setVmProjection",value:function(e){this.vmProjection=e}},{key:"getNodeProjection",value:function(){return this.nodeProjection}},{key:"setNodeProjection",value:function(e){this.nodeProjection=e}},{key:"toJson",value:function(e){return yh(yh(yh(yh(yh(yh(yh(yh(yh(yh(yh(yh(yh(yh(yh({},void 0!==this.getVmProjection()&&null!==this.getVmProjection()?{vmProjection:this.getVmProjection().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getNodeProjection()&&null!==this.getNodeProjection()?{nodeProjection:this.getNodeProjection().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{}),void 0!==this.getExternalIpAddress()&&null!==this.getExternalIpAddress()?{externalIpAddress:this.getExternalIpAddress()}:{}),void 0!==this.getMemoryCapacityBytes()&&null!==this.getMemoryCapacityBytes()?{memoryCapacityBytes:this.getMemoryCapacityBytes()}:{}),void 0!==this.getNumCpus()&&null!==this.getNumCpus()?{numCpus:this.getNumCpus()}:{}),void 0!==this.getHypervisorMemoryUsagePpm()&&null!==this.getHypervisorMemoryUsagePpm()?{hypervisorMemoryUsagePpm:this.getHypervisorMemoryUsagePpm()}:{}),void 0!==this.getHypervisorCpuUsagePpm()&&null!==this.getHypervisorCpuUsagePpm()?{hypervisorCpuUsagePpm:this.getHypervisorCpuUsagePpm()}:{}),void 0!==this.getRf()&&null!==this.getRf()?{rf:this.getRf()}:{}),void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{}),void 0!==this.getFreeBytes()&&null!==this.getFreeBytes()?{freeBytes:this.getFreeBytes()}:{}),void 0!==this.getUsageBytes()&&null!==this.getUsageBytes()?{usageBytes:this.getUsageBytes()}:{}),void 0!==this.getSavedBytes()&&null!==this.getSavedBytes()?{savedBytes:this.getSavedBytes()}:{}),{},{$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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"vmProjection"!==t||void 0!==this.vmProjection&&null!==this.vmProjection?"nodeProjection"!==t||void 0!==this.nodeProjection&&null!==this.nodeProjection?new U(t,"no such property exists"):new U("nodeProjection","undefined or null"):new U("vmProjection","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,fv.constructFromObject(e,a,!0),e.hasOwnProperty("vmProjection")&&null!==e.vmProjection&&void 0!==e.vmProjection){for(i=[],n=e.vmProjection,o=0;o<n.length;o++)r=ch.constructFromObject(n[o],void 0),i.push(r);a.setVmProjection(i)}if(e.hasOwnProperty("nodeProjection")&&null!==e.nodeProjection&&void 0!==e.nodeProjection){for(i=[],n=e.nodeProjection,o=0;o<n.length;o++)r=Hv.constructFromObject(n[o],void 0),i.push(r);a.setNodeProjection(i)}if(!s)for(var u in a.$unknownFields=yh({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&vh(n.prototype,r),o&&vh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(fv);Oh.prototype.vmProjection=void 0,Oh.prototype.nodeProjection=void 0,fv.prototype.name=void 0,fv.prototype.uuid=void 0,fv.prototype.externalIpAddress=void 0,fv.prototype.memoryCapacityBytes=void 0,fv.prototype.numCpus=void 0,fv.prototype.hypervisorMemoryUsagePpm=void 0,fv.prototype.hypervisorCpuUsagePpm=void 0,fv.prototype.rf=void 0,fv.prototype.capacityBytes=void 0,fv.prototype.freeBytes=void 0,fv.prototype.usageBytes=void 0,fv.prototype.savedBytes=void 0;var jh={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",IGNORE_RUNWAY_NUTANIX:"IGNORE_RUNWAY_NUTANIX",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(jh).find((function(t){return jh[t]===e}));return null==t?jh.$UNKNOWN:jh[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case jh.$UNKNOWN:case jh.$REDACTED:case jh.IGNORE_RUNWAY_NUTANIX:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|IGNORE_RUNWAY_NUTANIX }")}}};Object.freeze(jh);const $h=jh;function kh(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 Ph(e){return Ph="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ph(e)}function Th(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 Sh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Th(Object(n),!0).forEach((function(t){Ch(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Th(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ch(e,t,n){return(t=Dh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Dh(r.key),r)}}function Dh(e){var t=function(e){if("object"!=Ph(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ph(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ph(t)?t:t+""}function Fh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fh=function(){return!!e})()}function Rh(e){return Rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rh(e)}function Ah(e,t){return Ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ah(e,t)}function Ih(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 Uh=new WeakSet,Mh=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=Rh(t),function(e,t){if(t&&("object"==Ph(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,Fh()?Reflect.construct(t,n||[],Rh(e).constructor):t.apply(e,n))}(this,t),Uh),e.$objectType="aiops.v4.config.CalculateRunwayApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ah(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 Sh(Sh(Sh({},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})):Ih(Uh,this,xh).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})):Ih(Uh,this,xh).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Ph(e.data)){case"prism.v4.config.TaskReference":r.setData(ap.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Sh({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Eh(n.prototype,r),o&&Eh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function xh(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return kh(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)?kh(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Ph(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 Nh(e){return Nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nh(e)}function _h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_h(Object(n),!0).forEach((function(t){Bh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bh(e,t,n){return(t=Jh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jh(r.key),r)}}function Jh(e){var t=function(e){if("object"!=Nh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nh(t)?t:t+""}function Wh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wh=function(){return!!e})()}function zh(e){return zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zh(e)}function Gh(e,t){return Gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gh(e,t)}Mh.prototype.metadata=void 0,Mh.prototype.data=void 0,Mh.prototype.$reserved=void 0,Mh.prototype.$objectType=void 0,Mh.prototype.$unknownFields=void 0;var Hh=new WeakSet,qh=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(n=function(e,t,n){return t=zh(t),function(e,t){if(t&&("object"==Nh(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,Wh()?Reflect.construct(t,n||[],zh(e).constructor):t.apply(e,n))}(this,t),Hh),n.name=e,n.$objectType="aiops.v4.config.CategoryDetail",n.$reserved={$fv:"v4.r0"},n.$unknownFields={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gh(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getIsDefault",value:function(){return this.isDefault}},{key:"setIsDefault",value:function(e){this.isDefault=e}},{key:"toJson",value:function(e){return Vh(!1===e?Vh(Vh(Vh(Vh(Vh({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getIsDefault()&&null!==this.getIsDefault()?{isDefault:this.getIsDefault()}:{}),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()}:{}):Vh({},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 S?r=["name"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"isDefault"!==t||void 0!==this.isDefault&&null!==this.isDefault?new U(t,"no such property exists"):new U("isDefault","undefined or null"):new U("name","undefined or null")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,bo.constructFromObject(e,n,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&n.setName(e.name),e.hasOwnProperty("isDefault")&&null!==e.isDefault&&void 0!==e.isDefault&&n.setIsDefault(e.isDefault),!r))for(var o in n.$unknownFields=Vh({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Lh(n.prototype,r),o&&Lh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(bo);function Kh(e){return Kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kh(e)}function Xh(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 Yh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xh(Object(n),!0).forEach((function(t){Zh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zh(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 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,eb(r.key),r)}}function eb(e){var t=function(e){if("object"!=Kh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kh(t)?t:t+""}function tb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tb=function(){return!!e})()}function nb(e){return nb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nb(e)}function rb(e,t){return rb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rb(e,t)}function ob(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")}qh.prototype.name=void 0,qh.prototype.isDefault=!1,bo.prototype.extId=void 0,bo.prototype.links=void 0,io.prototype.tenantId=void 0;var ib=new WeakSet,ab=function(e){function t(e,n,r,o,i){var a;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)}(a=function(e,t,n){return t=nb(t),function(e,t){if(t&&("object"==Kh(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,tb()?Reflect.construct(t,n||[],nb(e).constructor):t.apply(e,n))}(this,t),ib),a.name=e,a.startDateTime=n,a.endDateTime=r,a.clusterType=o,a.clusterUuid=i,a.$objectType="aiops.v4.config.IgnoreWindow",a.$reserved={$fv:"v4.r0"},a.$unknownFields={},a}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&&rb(e,t)}(t,e),n=t,r=[{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getStartDateTime",value:function(){return this.startDateTime}},{key:"setStartDateTime",value:function(e){this.startDateTime=e}},{key:"getEndDateTime",value:function(){return this.endDateTime}},{key:"setEndDateTime",value:function(e){this.endDateTime=e}},{key:"getClusterType",value:function(){return this.clusterType}},{key:"setClusterType",value:function(e){this.clusterType=e}},{key:"getClusterUuid",value:function(){return this.clusterUuid}},{key:"setClusterUuid",value:function(e){this.clusterUuid=e}},{key:"toJson",value:function(e){return Yh(!1===e?Yh(Yh(Yh(Yh(Yh(Yh(Yh(Yh({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getStartDateTime()&&null!==this.getStartDateTime()?{startDateTime:ob(ib,this,sb).call(this,this.getStartDateTime(),!1)}:{}),void 0!==this.getEndDateTime()&&null!==this.getEndDateTime()?{endDateTime:ob(ib,this,sb).call(this,this.getEndDateTime(),!1)}:{}),void 0!==this.getClusterType()&&null!==this.getClusterType()?{clusterType:this.getClusterType()}:{}),void 0!==this.getClusterUuid()&&null!==this.getClusterUuid()?{clusterUuid:this.getClusterUuid()}:{}),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()}:{}):Yh(Yh(Yh(Yh(Yh({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getStartDateTime()&&null!==this.getStartDateTime()?{startDateTime:ob(ib,this,sb).call(this,this.getStartDateTime(),!1)}:{}),void 0!==this.getEndDateTime()&&null!==this.getEndDateTime()?{endDateTime:ob(ib,this,sb).call(this,this.getEndDateTime(),!1)}:{}),void 0!==this.getClusterType()&&null!==this.getClusterType()?{clusterType:this.getClusterType()}:{}),void 0!==this.getClusterUuid()&&null!==this.getClusterUuid()?{clusterUuid:this.getClusterUuid()}:{}),{},{$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 S?r=["name","startDateTime","endDateTime","clusterType","clusterUuid"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!F.validateMaxLength(this.name,256))return new U("name","does not satisfy required maxLength constraint: 256");if(!F.validateMinLength(this.name,1))return new U("name","does not satisfy required minLength constraint: 1")}if("startDateTime"===t&&(void 0===this.startDateTime||null===this.startDateTime))return new U("startDateTime","undefined or null");if("endDateTime"===t&&(void 0===this.endDateTime||null===this.endDateTime))return new U("endDateTime","undefined or null");if("clusterType"===t&&(void 0===this.clusterType||null===this.clusterType))return new U("clusterType","undefined or null");if("clusterUuid"===t){if(void 0===this.clusterUuid||null===this.clusterUuid)return new U("clusterUuid","undefined or null");if(!F.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}$/")}return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,bo.constructFromObject(e,n,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&n.setName(e.name),e.hasOwnProperty("startDateTime")&&null!==e.startDateTime&&void 0!==e.startDateTime&&n.setStartDateTime(e.startDateTime),e.hasOwnProperty("endDateTime")&&null!==e.endDateTime&&void 0!==e.endDateTime&&n.setEndDateTime(e.endDateTime),e.hasOwnProperty("clusterType")&&null!==e.clusterType&&void 0!==e.clusterType&&n.setClusterType($h.constructFromObject(e.clusterType)),e.hasOwnProperty("clusterUuid")&&null!==e.clusterUuid&&void 0!==e.clusterUuid&&n.setClusterUuid(e.clusterUuid),!r))for(var o in n.$unknownFields=Yh({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Qh(n.prototype,r),o&&Qh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(bo);function sb(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function ub(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 lb(e){return lb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lb(e)}function cb(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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cb(Object(n),!0).forEach((function(t){pb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pb(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 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,db(r.key),r)}}function db(e){var t=function(e){if("object"!=lb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=lb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==lb(t)?t:t+""}function vb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vb=function(){return!!e})()}function hb(e){return hb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hb(e)}function bb(e,t){return bb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bb(e,t)}function mb(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")}ab.prototype.name=void 0,ab.prototype.startDateTime=void 0,ab.prototype.endDateTime=void 0,ab.prototype.clusterType=void 0,ab.prototype.clusterUuid=void 0,bo.prototype.extId=void 0,bo.prototype.links=void 0,io.prototype.tenantId=void 0;var gb=new WeakSet,wb=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=hb(t),function(e,t){if(t&&("object"==lb(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,vb()?Reflect.construct(t,n||[],hb(e).constructor):t.apply(e,n))}(this,t),gb),e.$objectType="aiops.v4.config.CreateIgnoreWindowApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bb(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 fb(fb(fb({},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})):mb(gb,this,Ob).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})):mb(gb,this,Ob).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:lb(e.data)){case"aiops.v4.config.IgnoreWindow":r.setData(ab.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=fb({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&yb(n.prototype,r),o&&yb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ob(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ub(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)?ub(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===lb(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 jb(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 $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 kb(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 Pb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kb(Object(n),!0).forEach((function(t){Tb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tb(e,t,n){return(t=Cb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cb(r.key),r)}}function Cb(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 Eb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Eb=function(){return!!e})()}function Db(e){return Db=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Db(e)}function Fb(e,t){return Fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fb(e,t)}function Rb(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")}wb.prototype.metadata=void 0,wb.prototype.data=void 0,wb.prototype.$reserved=void 0,wb.prototype.$objectType=void 0,wb.prototype.$unknownFields=void 0;var Ab=new WeakSet,Ib=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=Db(t),function(e,t){if(t&&("object"==$b(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,Eb()?Reflect.construct(t,n||[],Db(e).constructor):t.apply(e,n))}(this,t),Ab),e.$objectType="aiops.v4.config.DeleteIgnoreWindowApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fb(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 Pb(Pb(Pb({},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})):Rb(Ab,this,Ub).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})):Rb(Ab,this,Ub).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.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:$b(e.data)){case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;case"":r.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Pb({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Sb(n.prototype,r),o&&Sb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ub(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return jb(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)?jb(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===$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 Mb(e){return Mb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mb(e)}function xb(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 Nb(e,t,n){return(t=Vb(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,Vb(r.key),r)}}function Vb(e){var t=function(e){if("object"!=Mb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mb(t)?t:t+""}function Bb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bb=function(){return!!e})()}function Lb(e){return Lb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lb(e)}function Jb(e,t){return Jb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jb(e,t)}Ib.prototype.metadata=void 0,Ib.prototype.data=void 0,Ib.prototype.$reserved=void 0,Ib.prototype.$objectType=void 0,Ib.prototype.$unknownFields=void 0;var Wb=function(e){function t(e,n,r,o,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(a=function(e,t,n){return t=Lb(t),function(e,t){if(t&&("object"==Mb(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,Bb()?Reflect.construct(t,n||[],Lb(e).constructor):t.apply(e,n))}(this,t,[e,n,r,o,i])).$objectType="aiops.v4.config.IgnoreWindowProjection",a.$reserved={$fv:"v4.r0"},a.$unknownFields={},a}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&&Jb(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 S?r=["name","startDateTime","endDateTime","clusterType","clusterUuid"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,ab.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xb(Object(n),!0).forEach((function(t){Nb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&_b(n.prototype,r),o&&_b(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ab),zb={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INEFFICIENCY_EXCLUSION:"INEFFICIENCY_EXCLUSION",ANOMALY_EXCLUSION:"ANOMALY_EXCLUSION",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(zb).find((function(t){return zb[t]===e}));return null==t?zb.$UNKNOWN:zb[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case zb.$UNKNOWN:case zb.$REDACTED:case zb.INEFFICIENCY_EXCLUSION:case zb.ANOMALY_EXCLUSION:return;default:throw new Error("Invalid : must be PolicyType.{ $UNKNOWN|$REDACTED|INEFFICIENCY_EXCLUSION|ANOMALY_EXCLUSION }")}}};Object.freeze(zb);const Gb=zb;function Hb(e){return Hb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hb(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){Xb(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 Xb(e,t,n){return(t=Zb(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,Zb(r.key),r)}}function Zb(e){var t=function(e){if("object"!=Hb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hb(t)?t:t+""}var Qb=new WeakSet,em=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.clusterUuid=t,this.clusterType=n,this.$objectType="aiops.v4.config.RunwayParams",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getClusterUuid",value:function(){return this.clusterUuid}},{key:"setClusterUuid",value:function(e){this.clusterUuid=e}},{key:"getClusterType",value:function(){return this.clusterType}},{key:"setClusterType",value:function(e){this.clusterType=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.getClusterUuid()&&null!==this.getClusterUuid()?{clusterUuid:this.getClusterUuid()}:{}),void 0!==this.getClusterType()&&null!==this.getClusterType()?{clusterType:this.getClusterType()}:{}),{},{$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 S?r=["clusterUuid","clusterType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("clusterUuid"===t){if(void 0===this.clusterUuid||null===this.clusterUuid)return new U("clusterUuid","undefined or null");if(!F.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}$/")}return"clusterType"!==t||void 0!==this.clusterType&&null!==this.clusterType?"$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("clusterType","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("clusterUuid")&&null!==t.clusterUuid&&void 0!==t.clusterUuid&&n.setClusterUuid(t.clusterUuid),t.hasOwnProperty("clusterType")&&null!==t.clusterType&&void 0!==t.clusterType&&n.setClusterType($h.constructFromObject(t.clusterType)),t.hasOwnProperty("$reserved")&&(n.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(n.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(n.$unknownFields=t.$unknownFields),!r))for(var o in n.$unknownFields=Kb({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Yb(t.prototype,n),r&&Yb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function tm(e){return tm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tm(e)}function nm(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 rm(e,t,n){return(t=im(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function om(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,im(r.key),r)}}function im(e){var t=function(e){if("object"!=tm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tm(t)?t:t+""}function am(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(am=function(){return!!e})()}function sm(e){return sm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sm(e)}function um(e,t){return um=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},um(e,t)}em.prototype.clusterUuid=void 0,em.prototype.clusterType=void 0,em.prototype.$reserved=void 0,em.prototype.$objectType=void 0,em.prototype.$unknownFields=void 0;var lm=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,n){return t=sm(t),function(e,t){if(t&&("object"==tm(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,am()?Reflect.construct(t,n||[],sm(e).constructor):t.apply(e,n))}(this,t,[e,n])).$objectType="aiops.v4.config.RunwayParamsProjection",r.$reserved={$fv:"v4.r0"},r.$unknownFields={},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&um(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 S?r=["clusterUuid","clusterType"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,em.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nm(Object(n),!0).forEach((function(t){rm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&om(n.prototype,r),o&&om(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(em);function cm(e){return cm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cm(e)}function fm(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 pm(e,t,n){return(t=dm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ym(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dm(r.key),r)}}function dm(e){var t=function(e){if("object"!=cm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=cm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==cm(t)?t:t+""}function vm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vm=function(){return!!e})()}function hm(e){return hm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hm(e)}function bm(e,t){return bm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bm(e,t)}var mm=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=hm(t),function(e,t){if(t&&("object"==cm(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,vm()?Reflect.construct(t,n||[],hm(e).constructor):t.apply(e,n))}(this,t,[e,n,r])).$objectType="aiops.v4.config.SimulatedVmResourceSpecProjection",o.$reserved={$fv:"v4.r0"},o.$unknownFields={},o}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&&bm(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 S?r=["vcpuCount","ramGb","hddGb"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,Ha.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fm(Object(n),!0).forEach((function(t){pm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&ym(n.prototype,r),o&&ym(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ha);function gm(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 wm(e){return wm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wm(e)}function Om(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 jm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Om(Object(n),!0).forEach((function(t){$m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Om(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $m(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 km(e,t){for(var n=0;n<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"!=wm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wm(t)?t:t+""}function Tm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tm=function(){return!!e})()}function Sm(e){return Sm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Sm(e)}function Cm(e,t){return Cm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cm(e,t)}function Em(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 Dm=new WeakSet,Fm=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=Sm(t),function(e,t){if(t&&("object"==wm(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,Tm()?Reflect.construct(t,n||[],Sm(e).constructor):t.apply(e,n))}(this,t),Dm),e.$objectType="aiops.v4.config.UpdateIgnoreWindowApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cm(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 jm(jm(jm({},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})):Em(Dm,this,Rm).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})):Em(Dm,this,Rm).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:wm(e.data)){case"aiops.v4.config.IgnoreWindow":r.setData(ab.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=jm({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&km(n.prototype,r),o&&km(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Rm(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return gm(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)?gm(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===wm(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 Am(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 Im(e){return Im="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Im(e)}function Um(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 Mm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Um(Object(n),!0).forEach((function(t){xm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xm(e,t,n){return(t=_m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_m(r.key),r)}}function _m(e){var t=function(e){if("object"!=Im(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Im(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Im(t)?t:t+""}function Vm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vm=function(){return!!e})()}function Bm(e){return Bm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bm(e)}function Lm(e,t){return Lm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lm(e,t)}function Jm(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")}Fm.prototype.metadata=void 0,Fm.prototype.data=void 0,Fm.prototype.$reserved=void 0,Fm.prototype.$objectType=void 0,Fm.prototype.$unknownFields=void 0;var Wm=new WeakSet,zm=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=Bm(t),function(e,t){if(t&&("object"==Im(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,Vm()?Reflect.construct(t,n||[],Bm(e).constructor):t.apply(e,n))}(this,t),Wm),e.$objectType="aiops.v4.config.UpdatePolicyTaskApiResponse",e.$reserved={$fv:"v4.r0"},e.$unknownFields={},e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lm(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 Mm(Mm(Mm({},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})):Jm(Wm,this,Gm).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})):Jm(Wm,this,Gm).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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new 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")}}],o=[{key:"constructFromObject",value:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(r=r||new t,e.hasOwnProperty("metadata")&&l.constructFromObject(e.metadata,r),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&r.setMetadata(Ne.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Im(e.data)){case"prism.v4.config.TaskReference":r.setData(ap.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":r.setData(pn.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+n+" in data"}if(e.hasOwnProperty("$reserved")&&(r.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(r.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(r.$unknownFields=e.$unknownFields),!o)for(var i in r.$unknownFields=Mm({},e.$unknownFields),e)Object.keys(r).includes(i)||Object.keys(r).includes(this.snakeToCamel(i))||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=e[i])}return r}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&Nm(n.prototype,r),o&&Nm(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Gm(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,(function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return Am(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)?Am(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]}))):"object"===Im(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 Hm(e){return Hm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hm(e)}function qm(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 Km(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qm(Object(n),!0).forEach((function(t){Xm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xm(e,t,n){return(t=Zm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ym(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zm(r.key),r)}}function Zm(e){var t=function(e){if("object"!=Hm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hm(t)?t:t+""}zm.prototype.metadata=void 0,zm.prototype.data=void 0,zm.prototype.$reserved=void 0,zm.prototype.$objectType=void 0,zm.prototype.$unknownFields=void 0;var Qm=new WeakSet,eg=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,Qm),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 Km(Km(Km({},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 S?r=[]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!F.validateMaxLength(this.name,128))return new U("name","does not satisfy required maxLength constraint: 128");if(!F.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 o in n.$unknownFields=Km({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],n&&Ym(t.prototype,n),r&&Ym(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function tg(e){return tg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tg(e)}function ng(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 rg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ng(Object(n),!0).forEach((function(t){og(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ng(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function og(e,t,n){return(t=ag(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ig(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ag(r.key),r)}}function ag(e){var t=function(e){if("object"!=tg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tg(t)?t:t+""}function sg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sg=function(){return!!e})()}function ug(e){return ug=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ug(e)}function lg(e,t){return lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lg(e,t)}function cg(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")}eg.prototype.name=void 0,eg.prototype.value="",eg.prototype.$reserved=void 0,eg.prototype.$objectType=void 0,eg.prototype.$unknownFields=void 0;var fg=new WeakSet,pg=function(e){function t(e,n,r){var o;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)}(o=function(e,t,n){return t=ug(t),function(e,t){if(t&&("object"==tg(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,sg()?Reflect.construct(t,n||[],ug(e).constructor):t.apply(e,n))}(this,t),fg),o.isEnabled=e,o.categories=n,o.parameters=r,o.$objectType="aiops.v4.config.XfitPolicy",o.$reserved={$fv:"v4.r0"},o.$unknownFields={},o}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&&lg(e,t)}(t,e),n=t,r=[{key:"getPolicyType",value:function(){return this.policyType}},{key:"setPolicyType",value:function(e){this.policyType=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:"getUpdatedTime",value:function(){return this.updatedTime}},{key:"setUpdatedTime",value:function(e){this.updatedTime=e}},{key:"getIsDefault",value:function(){return this.isDefault}},{key:"setIsDefault",value:function(e){this.isDefault=e}},{key:"getIsEnabled",value:function(){return this.isEnabled}},{key:"setIsEnabled",value:function(e){this.isEnabled=e}},{key:"getCategories",value:function(){return this.categories}},{key:"setCategories",value:function(e){this.categories=e}},{key:"getParameters",value:function(){return this.parameters}},{key:"setParameters",value:function(e){this.parameters=e}},{key:"toJson",value:function(e){return rg(!1===e?rg(rg(rg(rg(rg(rg(rg(rg(rg(rg(rg({},void 0!==this.getPolicyType()&&null!==this.getPolicyType()?{policyType:this.getPolicyType()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getDescription()&&null!==this.getDescription()?{description:this.getDescription()}:{}),void 0!==this.getUpdatedTime()&&null!==this.getUpdatedTime()?{updatedTime:cg(fg,this,yg).call(this,this.getUpdatedTime(),!1)}:{}),void 0!==this.getIsDefault()&&null!==this.getIsDefault()?{isDefault:this.getIsDefault()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getCategories()&&null!==this.getCategories()?{categories:this.getCategories().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().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()}:{}):rg(rg(rg(rg({},void 0!==this.getPolicyType()&&null!==this.getPolicyType()?{policyType:this.getPolicyType()}:{}),void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{}),void 0!==this.getCategories()&&null!==this.getCategories()?{categories:this.getCategories().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().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 S?r=["isEnabled","categories","parameters"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){if("policyType"===t&&(void 0===this.policyType||null===this.policyType))return new U("policyType","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new U("name","undefined or null");if(!F.validateMaxLength(this.name,256))return new U("name","does not satisfy required maxLength constraint: 256");if(!F.validateMinLength(this.name,1))return new U("name","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(!F.validateMaxLength(this.description,512))return new U("description","does not satisfy required maxLength constraint: 512");if(!F.validateMinLength(this.description,1))return new U("description","does not satisfy required minLength constraint: 1")}if("updatedTime"===t&&(void 0===this.updatedTime||null===this.updatedTime))return new U("updatedTime","undefined or null");if("isDefault"===t&&(void 0===this.isDefault||null===this.isDefault))return new U("isDefault","undefined or null");if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new U("isEnabled","undefined or null");if("categories"===t){if(void 0===this.categories||null===this.categories)return new U("categories","undefined or null");if(!F.validateMaxItems(this.categories,1250))return new U("categories","does not satisfy required maxItems constraint: 1250");if(!F.validateMinItems(this.categories,1))return new U("categories","does not satisfy required minItems constraint: 1")}if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new U("parameters","undefined or null");if(!F.validateMaxItems(this.parameters,50))return new U("parameters","does not satisfy required maxItems constraint: 50")}return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(a=a||new t,bo.constructFromObject(e,a,!0),e.hasOwnProperty("policyType")&&null!==e.policyType&&void 0!==e.policyType&&a.setPolicyType(Gb.constructFromObject(e.policyType)),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&a.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&a.setDescription(e.description),e.hasOwnProperty("updatedTime")&&null!==e.updatedTime&&void 0!==e.updatedTime&&a.setUpdatedTime(e.updatedTime),e.hasOwnProperty("isDefault")&&null!==e.isDefault&&void 0!==e.isDefault&&a.setIsDefault(e.isDefault),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&a.setIsEnabled(e.isEnabled),e.hasOwnProperty("categories")&&null!==e.categories&&void 0!==e.categories){for(i=[],n=e.categories,o=0;o<n.length;o++)r=qh.constructFromObject(n[o],void 0),i.push(r);a.setCategories(i)}if(e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(i=[],n=e.parameters,o=0;o<n.length;o++)r=eg.constructFromObject(n[o],void 0),i.push(r);a.setParameters(i)}if(!s)for(var u in a.$unknownFields=rg({},e.$unknownFields),e)Object.keys(a).includes(u)||Object.keys(a).includes(this.snakeToCamel(u))||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(a.$unknownFields[u]=e[u])}return a}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&ig(n.prototype,r),o&&ig(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(bo);function yg(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function dg(e){return dg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dg(e)}function vg(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,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"!=dg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dg(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)}pg.prototype.policyType=void 0,pg.prototype.name=void 0,pg.prototype.description=void 0,pg.prototype.updatedTime=void 0,pg.prototype.isDefault=!1,pg.prototype.isEnabled=!0,pg.prototype.categories=void 0,pg.prototype.parameters=void 0,bo.prototype.extId=void 0,bo.prototype.links=void 0,io.prototype.tenantId=void 0;var jg=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,n){return t=wg(t),function(e,t){if(t&&("object"==dg(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,[e,n,r])).$objectType="aiops.v4.config.XfitPolicyProjection",o.$reserved={$fv:"v4.r0"},o.$unknownFields={},o}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:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof S?r=["isEnabled","categories","parameters"]:1===arguments.length?(r=arguments[0],e=null):r=arguments[1];var o=[],i=null;return r.forEach((function(t){(i=n.validateProperty(t,e))&&o.push(i)})),new Promise((function(e,t){0!==o.length?t(i):e()}))}},{key:"validateProperty",value:function(e,t){return new U(t,"no such property exists")}}],o=[{key:"constructFromObject",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(n=n||new t,pg.constructFromObject(e,n,!0),!r))for(var o in n.$unknownFields=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vg(Object(n),!0).forEach((function(t){hg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.$unknownFields),e)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=e[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,(function(e){return e[1].toUpperCase()}))}}],r&&bg(n.prototype,r),o&&bg(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(pg);const $g={ApiClient:lt,StatsApi:_a,ScenariosApi:Id,CapacityDetails:Gd,CapacityUnit:Md,CapacityplanningRunway:rv,RunwayDuration:Nd,Cluster:fv,ClusterMetrics:Dv,ClusterProjection:Oh,Node:Nv,NodeProjection:Hv,Vm:th,VmProjection:ch,ClusterType:$h,CalculateRunwayApiResponse:Mh,CapacityUpdateConfig:sl,CapacityUpdateType:Qu,CategoryDetail:qh,CitrixXenProvisionType:ll,CitrixXenWorkload:Rl,CitrixXenWorkloadVendor:fl,ClusterConfig:_u,CreateIgnoreWindowApiResponse:wb,CreateScenarioApiResponse:gp,CreateSimulationApiResponse:bs,DataStoreConfig:fu,DeleteIgnoreWindowApiResponse:Ib,DeleteScenarioApiResponse:Hp,DeleteSimulationApiResponse:Ap,EntityDescriptor:gi,EntityDescriptorListApiResponse:Ri,EntityType:va,EntityTypeListApiResponse:Ca,GenerateRecommendationApiResponse:sy,GenerateReportApiResponse:Oy,GenerateRunwayApiResponse:$d,GetScenarioApiResponse:Ky,GetScenarioReportApiResponse:Yf,GetSimulationApiResponse:Uy,IgnoreWindow:ab,IgnoreWindowProjection:Wb,ListScenariosApiResponse:xf,ListSimulationsApiResponse:Vs,MetricDescriptor:ui,MicrosoftXenProvisionType:Il,MicrosoftXenWorkload:Hl,MicrosoftXenWorkloadVendor:Ml,NodeConfig:Du,NodeSource:yu,PolicyType:Gb,ReplicationFactor:ru,ResourceCapacity:Ou,ConfigRunway:qu,RunwayParams:em,RunwayParamsProjection:lm,Scenario:df,ScenarioProjection:kf,SimulatedVmResourceSpec:Ha,SimulatedVmResourceSpecProjection:mm,Simulation:os,SimulationProjection:Ss,Source:Wi,SourceListApiResponse:ra,SplunkWorkload:tc,SqlProfileType:rc,SqlTransactionType:ic,SqlWorkload:yc,UpdateIgnoreWindowApiResponse:Fm,UpdatePolicyTaskApiResponse:zm,UpdateScenarioApiResponse:ld,UpdateSimulationApiResponse:eu,ValueRange:Xo,ValueType:Zo,VdiProvisionType:vc,VdiUserType:bc,VdiVendor:gc,VdiWorkload:Sc,Vendor:Yu,VmCategoryWorkload:Uc,VmWorkload:Jc,Workload:Qc,XenOperatingSystem:yl,XenWorkload:Ol,XfitPolicy:pg,XfitPolicyProjection:jg,AppMessage:Mt,ErrorResponse:pn,SchemaValidationError:en,SchemaValidationErrorMessage:zt,BoolList:On,BoolVal:En,DoubleList:xn,DoubleVal:zn,Entity:Co,EntityListApiResponse:Bo,IntList:Qn,IntVal:sr,Metric:Yr,Point:Ar,StrList:vr,StrVal:$r,TimeSeries:Jr,Flag:J,IPv4Address:gv,KVPair:ce,KVStringPair:eg,MapOfStringWrapper:Q,Message:Oe,MessageSeverity:ye,TenantAwareModel:io,ApiLink:Ee,ApiResponseMetadata:Ne,ExternalizableAbstractModel:bo,DownSamplingOperator:ei,TaskReference:ap}})(),r.default})()));
|