@nutanix-scratch/aiops-js-client 4.0.2-alpha.1 → 4.0.2
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 +59 -40
- package/dist/Ntnx-Aiops-js-client-prod.js +1 -11
- package/dist/Ntnx-Aiops-js-client.js +1114 -771
- package/dist/es/ApiClient.d.ts +20 -6
- package/dist/es/ApiClient.js +496 -214
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +23 -14
- package/dist/es/apis/scenarios-endpoints.d.ts +181 -0
- package/dist/es/apis/scenarios-endpoints.js +641 -0
- package/dist/es/apis/stats-endpoints.d.ts +93 -0
- package/dist/es/apis/stats-endpoints.js +264 -0
- package/dist/es/index.d.ts +191 -25
- package/dist/es/index.js +719 -56
- package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +109 -0
- package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.js +459 -0
- package/dist/{lib/models/aiops/v4/blackout/ClusterEntity.d.ts → es/models/aiops/v4/capacityplanning/CapacityUnit.d.ts} +6 -6
- 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 +115 -43
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +171 -152
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +168 -87
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +49 -29
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +181 -40
- package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +48 -45
- package/dist/es/models/aiops/v4/clusterMetrics/Node.js +101 -29
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +2 -1
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +59 -30
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +48 -45
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +101 -29
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +2 -1
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +59 -30
- package/dist/es/models/aiops/v4/{blackout/ClusterEntity.d.ts → common/ClusterType.d.ts} +6 -6
- package/dist/es/models/aiops/v4/common/ClusterType.js +79 -0
- package/dist/es/models/aiops/v4/config/CapacityUnit.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CapacityUnit.js +85 -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/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/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/HardwareModel.d.ts +144 -0
- package/dist/es/models/aiops/v4/config/HardwareModel.js +550 -0
- package/dist/es/models/aiops/v4/config/HardwarePart.d.ts +92 -0
- package/dist/es/models/aiops/v4/config/HardwarePart.js +363 -0
- package/dist/es/models/aiops/v4/config/IgnoreWindow.d.ts +111 -0
- package/dist/es/models/aiops/v4/config/IgnoreWindow.js +458 -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 +134 -0
- package/dist/es/models/aiops/v4/config/Runway.js +484 -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/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/{lib/models/aiops/v4/blackout/Operation.d.ts → es/models/aiops/v4/config/ValueType.d.ts} +6 -6
- 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/{blackout/Operation.d.ts → config/VdiVendor.d.ts} +6 -6
- 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 +122 -37
- package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +25 -22
- package/dist/es/models/aiops/v4/error/ErrorResponse.js +149 -63
- package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +65 -44
- package/dist/es/models/aiops/v4/error/SchemaValidationError.js +120 -32
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +42 -33
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +106 -25
- 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/ScenarioStats.d.ts +79 -0
- package/dist/es/models/aiops/v4/stats/ScenarioStats.js +323 -0
- package/dist/es/models/aiops/v4/stats/ScenarioStatsProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/stats/ScenarioStatsProjection.js +151 -0
- package/dist/es/models/aiops/v4/stats/ScenarioStatsTuple.d.ts +160 -0
- package/dist/es/models/aiops/v4/stats/ScenarioStatsTuple.js +617 -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 +107 -23
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +42 -27
- package/dist/es/models/common/v1/config/IPv4Address.js +106 -25
- package/dist/es/models/common/v1/config/KVPair.d.ts +37 -29
- package/dist/es/models/common/v1/config/KVPair.js +161 -54
- 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 +102 -27
- package/dist/es/models/common/v1/config/MessageSeverity.js +15 -16
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +26 -23
- package/dist/es/models/common/v1/config/TenantAwareModel.js +96 -24
- package/dist/es/models/common/v1/response/ApiLink.d.ts +34 -31
- package/dist/es/models/common/v1/response/ApiLink.js +102 -30
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +89 -45
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +130 -34
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +27 -20
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +121 -46
- 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 +26 -23
- package/dist/es/models/prism/v4/config/TaskReference.js +102 -26
- package/dist/es/models/validation/ValidationError.js +12 -14
- package/dist/es/models/validation/ValidationScopes.js +1 -2
- package/dist/es/utils/ValidationUtils.js +12 -14
- package/dist/lib/ApiClient.d.ts +20 -6
- package/dist/lib/ApiClient.js +496 -214
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +23 -14
- package/dist/lib/apis/scenarios-endpoints.d.ts +181 -0
- package/dist/lib/apis/scenarios-endpoints.js +641 -0
- package/dist/lib/apis/stats-endpoints.d.ts +93 -0
- package/dist/lib/apis/stats-endpoints.js +264 -0
- package/dist/lib/index.d.ts +191 -25
- package/dist/lib/index.js +719 -56
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +109 -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 +115 -43
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +171 -152
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +168 -87
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +49 -29
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +181 -40
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +48 -45
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +101 -29
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +2 -1
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +59 -30
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +48 -45
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +101 -29
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +2 -1
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +59 -30
- 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/CapacityUnit.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CapacityUnit.js +85 -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/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/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/HardwareModel.d.ts +144 -0
- package/dist/lib/models/aiops/v4/config/HardwareModel.js +550 -0
- package/dist/lib/models/aiops/v4/config/HardwarePart.d.ts +92 -0
- package/dist/lib/models/aiops/v4/config/HardwarePart.js +363 -0
- package/dist/lib/models/aiops/v4/config/IgnoreWindow.d.ts +111 -0
- package/dist/lib/models/aiops/v4/config/IgnoreWindow.js +458 -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 +134 -0
- package/dist/lib/models/aiops/v4/config/Runway.js +484 -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/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 +122 -37
- package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +25 -22
- package/dist/lib/models/aiops/v4/error/ErrorResponse.js +149 -63
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +65 -44
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +120 -32
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +42 -33
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +106 -25
- 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/ScenarioStats.d.ts +79 -0
- package/dist/lib/models/aiops/v4/stats/ScenarioStats.js +323 -0
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsProjection.js +151 -0
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsTuple.d.ts +160 -0
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsTuple.js +617 -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 +107 -23
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +42 -27
- package/dist/lib/models/common/v1/config/IPv4Address.js +106 -25
- package/dist/lib/models/common/v1/config/KVPair.d.ts +37 -29
- package/dist/lib/models/common/v1/config/KVPair.js +161 -54
- 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 +102 -27
- package/dist/lib/models/common/v1/config/MessageSeverity.js +15 -16
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +26 -23
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +96 -24
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +34 -31
- package/dist/lib/models/common/v1/response/ApiLink.js +102 -30
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +89 -45
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +130 -34
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +27 -20
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +121 -46
- 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 +26 -23
- package/dist/lib/models/prism/v4/config/TaskReference.js +102 -26
- package/dist/lib/models/validation/ValidationError.js +12 -14
- package/dist/lib/models/validation/ValidationScopes.js +1 -2
- package/dist/lib/utils/ValidationUtils.js +12 -14
- package/package.json +6 -5
- package/dist/es/apis/cluster-endpoints.d.ts +0 -48
- package/dist/es/apis/cluster-endpoints.js +0 -127
- package/dist/es/models/aiops/v4/blackout/BlackoutOperation.d.ts +0 -39
- package/dist/es/models/aiops/v4/blackout/BlackoutOperation.js +0 -223
- package/dist/es/models/aiops/v4/blackout/BlackoutOperationsApiResponse.d.ts +0 -60
- package/dist/es/models/aiops/v4/blackout/BlackoutOperationsApiResponse.js +0 -292
- package/dist/es/models/aiops/v4/blackout/BlackoutPeriod.d.ts +0 -117
- package/dist/es/models/aiops/v4/blackout/BlackoutPeriod.js +0 -438
- package/dist/es/models/aiops/v4/blackout/BulkBlackoutPeriodDeleteApiResponse.d.ts +0 -60
- package/dist/es/models/aiops/v4/blackout/BulkBlackoutPeriodDeleteApiResponse.js +0 -283
- package/dist/es/models/aiops/v4/blackout/CalculateRunway.d.ts +0 -41
- package/dist/es/models/aiops/v4/blackout/CalculateRunway.js +0 -225
- package/dist/es/models/aiops/v4/blackout/CalculateRunwayResponse.d.ts +0 -60
- package/dist/es/models/aiops/v4/blackout/CalculateRunwayResponse.js +0 -284
- package/dist/es/models/aiops/v4/blackout/ClusterEntity.js +0 -86
- package/dist/es/models/aiops/v4/blackout/Operation.js +0 -86
- package/dist/es/models/aiops/v4/blackout/TasksListResponse.d.ts +0 -60
- package/dist/es/models/aiops/v4/blackout/TasksListResponse.js +0 -290
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterApiResponse.d.ts +0 -60
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterApiResponse.js +0 -284
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterListApiResponse.d.ts +0 -60
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterListApiResponse.js +0 -292
- package/dist/lib/apis/cluster-endpoints.d.ts +0 -48
- package/dist/lib/apis/cluster-endpoints.js +0 -127
- package/dist/lib/models/aiops/v4/blackout/BlackoutOperation.d.ts +0 -39
- package/dist/lib/models/aiops/v4/blackout/BlackoutOperation.js +0 -223
- package/dist/lib/models/aiops/v4/blackout/BlackoutOperationsApiResponse.d.ts +0 -60
- package/dist/lib/models/aiops/v4/blackout/BlackoutOperationsApiResponse.js +0 -292
- package/dist/lib/models/aiops/v4/blackout/BlackoutPeriod.d.ts +0 -117
- package/dist/lib/models/aiops/v4/blackout/BlackoutPeriod.js +0 -438
- package/dist/lib/models/aiops/v4/blackout/BulkBlackoutPeriodDeleteApiResponse.d.ts +0 -60
- package/dist/lib/models/aiops/v4/blackout/BulkBlackoutPeriodDeleteApiResponse.js +0 -283
- package/dist/lib/models/aiops/v4/blackout/CalculateRunway.d.ts +0 -41
- package/dist/lib/models/aiops/v4/blackout/CalculateRunway.js +0 -225
- package/dist/lib/models/aiops/v4/blackout/CalculateRunwayResponse.d.ts +0 -60
- package/dist/lib/models/aiops/v4/blackout/CalculateRunwayResponse.js +0 -284
- package/dist/lib/models/aiops/v4/blackout/ClusterEntity.js +0 -86
- package/dist/lib/models/aiops/v4/blackout/Operation.js +0 -86
- package/dist/lib/models/aiops/v4/blackout/TasksListResponse.d.ts +0 -60
- package/dist/lib/models/aiops/v4/blackout/TasksListResponse.js +0 -290
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterApiResponse.d.ts +0 -60
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterApiResponse.js +0 -284
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterListApiResponse.d.ts +0 -60
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterListApiResponse.js +0 -292
|
@@ -1,11 +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 o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.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 o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));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,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(2);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})(e)}function i(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return s(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 s(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function s(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 a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(i=n.key,s=void 0,s=function(e,t){if("object"!==o(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===o(s)?s:String(s)),n)}var i,s}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,o;return t=e,o=[{key:"constructFromObject",value:function(t,r){if(t){if(r=r||new e,t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){var n,o=i(t.links);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(s.hasOwnProperty("rel")&&s.hasOwnProperty("href"))switch(s.rel){case"first":r.linkFirst=s.href;break;case"prev":r.linkPrev=s.href;break;case"next":r.linkNext=s.href;break;case"last":r.linkLast=s.href}}}catch(e){o.e(e)}finally{o.f()}}t.hasOwnProperty("totalAvailableResults")&&(r.resultsTotal=t.totalAvailableResults)}return r}}],(r=[{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,r){this.apiClient=e,this.page=t,this.resultsPerPage=r}},{key:"_getLink",value:function(e){null===this.apiClient&&(this.apiClient=n.a.instance);var t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}])&&a(t.prototype,r),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();u.prototype.linkFirst=null,u.prototype.linkPrev=null,u.prototype.linkNext=null,u.prototype.linkLast=null,u.prototype.apiClient=null,u.prototype.page=null,u.prototype.resultsPerPage=null,u.prototype.resultsTotal=null},function(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})(e)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}e.exports=n},function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return J}));var n=r(10),o=r.n(n),i=r(0),s=r(55),a=r(26),u=r.n(a),l=r(27),c=r.n(l),f=r(11),p=r.n(f);function h(e){return(h="function"==typeof Symbol&&"symbol"==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)}function d(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return y(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 y(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw i}}}}function y(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 v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==h(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===h(i)?i:String(i)),n)}var o,i}function g(e,t){b(e,t),t.add(e)}function m(e,t,r){b(e,t),t.set(e,r)}function b(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(e,t,r){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return r}function O(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,j(e,t,"get"))}function k(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,j(e,t,"set"),r),r}function j(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}u()(o.a);var P=new WeakMap,$=new WeakMap,T=new WeakMap,S=new WeakMap,C=new WeakMap,E=new WeakMap,_=new WeakMap,M=new WeakMap,F=new WeakSet,R=new WeakSet,A=new WeakSet,B=new WeakSet,x=new WeakSet,D=new WeakSet,U=new WeakSet,I=new WeakSet,L=new WeakSet,N=new WeakSet,V=new WeakSet,z=new WeakSet,H=new WeakSet,q=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),g(this,q),g(this,H),g(this,z),g(this,V),g(this,N),g(this,L),g(this,I),g(this,U),g(this,D),g(this,x),g(this,B),g(this,A),g(this,R),g(this,F),m(this,P,{writable:!0,value:void 0}),m(this,$,{writable:!0,value:void 0}),m(this,T,{writable:!0,value:void 0}),m(this,S,{writable:!0,value:void 0}),m(this,C,{writable:!0,value:void 0}),m(this,E,{writable:!0,value:void 0}),m(this,_,{writable:!0,value:void 0}),m(this,M,{writable:!0,value:void 0}),k(this,M,Object.freeze({DEBUG:{key:"DEBUG",value:Symbol(0)},INFO:{key:"INFO",value:Symbol(1)},WARN:{key:"WARN",value:Symbol(2)},ERROR:{key:"ERROR",value:Symbol(3)}})),this.scheme="https",this.host="undefined"==typeof self?"localhost":self.location.hostname,this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={basicAuthScheme:{type:"basic"}},this.defaultHeaders={},k(this,C,3e4),k(this,E,3e4),k(this,_,18e5),this.readTimeout=O(this,E),this.connectTimeout=O(this,C),this.cache=!0,k(this,$,null),this.maxRetryAttempts=5,this.retryInterval=3e3,"undefined"==typeof self&&(this.agent=new o.a.agent),this.requestAgent=null,this.debug=!1,k(this,T,null),this.username=null,this.password=null,k(this,S,!0),this.loggerFile=null}var t,r,n;return t=e,n=[{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 r=t.toLowerCase(),n=Object.keys(e).find((function(e){return e.toLowerCase()===r}));return n?e[n]:null}return null}},{key:"addEtagReferenceToHeader",value:function(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){var r=e.$reserved.ETag;null!=r&&""!==r&&(t["If-Match"]=r)}}},{key:"parseDate",value:function(e){return new Date(e)}},{key:"parseQueryParam",value:function(e,t,r,n){var o=null;if(void 0!==t&&t.hasOwnProperty(r)&&(o=t[r]),null===o&&("string"==typeof e||e instanceof String)){var i=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=e.match(new RegExp("".concat(i,"=([0-9]+)")));s&&(o=s[1])}return null===o&&(o=n),o}},{key:"convertToType",value:function(t,r){if(null==t)return t;switch(r){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(r===Object)return t;if("function"==typeof r)return r.constructFromObject(t);if(Array.isArray(r)){var n=r[0];return t.map((function(t){return e.convertToType(t,n)}))}if("object"===h(r)){var o,i;for(var s in r)if(r.hasOwnProperty(s)){o=s,i=r[s];break}var a={};for(var s in t)if(t.hasOwnProperty(s)){var u=e.convertToType(s,o),l=e.convertToType(t[s],i);a[u]=l}return a}return t}}},{key:"constructFromObject",value:function(t,r,n){if(Array.isArray(t))for(var o=0;o<t.length;o++)t.hasOwnProperty(o)&&(r[o]=e.convertToType(t[o],n));else for(var i in t)t.hasOwnProperty(i)&&(r[i]=e.convertToType(t[i],n))}}],(r=[{key:"verifySsl",get:function(){return O(this,S)},set:function(e){this.requestAgent=e?null:new c.a.Agent({rejectUnauthorized:!1}),k(this,S,e)}},{key:"loggerFile",set:function(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=p.a.createWriteStream(e,{flags:"a"})),k(this,T,new console.Console({stdout:e,stderr:e})))}},{key:"addDefaultHeader",value:function(e,t){"Authorization"===e&&k(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 r=this;e.match(/^\//)||(e="/"+e),k(this,P,"undefined"==typeof self?this.scheme+":":self.location.protocol);var n="";""!==O(this,P)&&""!==this.host&&""!==this.port?n=O(this,P)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(n=self.origin);var o=n+e;return o=o.replace(/\{([\w-]+)\}/g,(function(e,n){var o;return o=t.hasOwnProperty(n)?r.paramToString(t[n]):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:"addEtagToReservedMap",value:function(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){var r=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0){var n,o=d(t.getData());try{for(o.s();!(n=o.n()).done;){var i=n.value;i.hasOwnProperty("$reserved")&&void 0!==i.get$Reserved()&&(i.get$Reserved().ETag=r)}}catch(e){o.e(e)}finally{o.f()}}else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=r)}return t}},{key:"callApi",value:function(e,t,r,n,i,a,u,l,c,f,p){var h=this,d=this.buildUrl(e,r),y=o()(t,d);if(y.oldCallback=y.callback,y.callback=function(e,t){if(t&&t.status){var r=t.status;r>=400&&401!==r&&408!==r&&503!==r&&504!==r&&(this._maxRetries=0),401===t.status&&(this.unset("Cookie"),this._maxRetries=1)}this.oldCallback(e,t)},w(this,x,X).call(this,y,l),"GET"===t.toUpperCase()&&!1===this.cache&&(n._=(new Date).getTime()),y.query(w(this,B,K).call(this,n)),y.set(this.defaultHeaders).set(w(this,B,K).call(this,i)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==i["NTNX-Request-Id"]&&void 0!==i["NTNX-Request-Id"])){var v=Object(s.a)();y.set(w(this,B,K).call(this,{"NTNX-Request-Id":v}))}"undefined"!=typeof window&&void 0!==window.document||y.set(w(this,B,K).call(this,{"User-Agent":"Nutanix-aiops-js-client/4.0.2-alpha.1"})),this.requestAgent&&y.agent(this.requestAgent);var g={};g.response=w(this,I,ee).call(this,this.connectTimeout,O(this,C)),g.deadline=w(this,I,ee).call(this,this.readTimeout,O(this,E)),y.timeout(g);var m=w(this,R,Y).call(this,c);if(m?"multipart/form-data"!=m&&y.type(m):y.header["Content-Type"]||y.type("application/json"),"application/x-www-form-urlencoded"===m)y.send(w(this,B,K).call(this,a));else if("multipart/form-data"==m){var b=w(this,B,K).call(this,a);for(var k in b)b.hasOwnProperty(k)&&(w(this,A,G).call(this,b[k])?y.attach(k,b[k]):y.field(k,b[k]))}else u&&y.send(u);var j=w(this,R,Y).call(this,f);return j&&y.accept(j),"Blob"===p?y.responseType("blob"):"String"===p&&y.responseType("string"),w(this,N,re).call(this,y),w(this,V,ne).call(this,O(this,M).INFO,null,"Request URL :",t,d),w(this,V,ne).call(this,O(this,M).DEBUG,w(this,q,se),"Request Headers :",void 0===y.header?"":y.header),w(this,V,ne).call(this,O(this,M).DEBUG,null,"Request Body :",void 0===y._data?"":y._data),new Promise((function(t,r){y.retry(h.maxRetryAttempts,h.retryInterval,[]).end((function(o,i){if(w(h,L,te).call(h,i||{}),o)o.data=w(h,D,Q).call(h,i,p),null!=i&&w(h,V,ne).call(h,O(h,M).INFO,null,"Response Status :",i.status),w(h,V,ne).call(h,O(h,M).ERROR,null,"Error :",o.data),r(o);else{w(h,V,ne).call(h,O(h,M).INFO,null,"Response Status :",i.status);try{var s=w(h,D,Q).call(h,i,p);w(h,V,ne).call(h,O(h,M).DEBUG,w(h,q,se),"Response Headers :",i.headers),w(h,V,ne).call(h,O(h,M).DEBUG,null,"Response Body :",s),h.addEtagToReservedMap(i,s),w(h,U,Z).call(h,s,e,n),t({data:s,response:i})}catch(e){w(h,V,ne).call(h,O(h,M).ERROR,null,"Error :",e),r(e)}}}))}))}}])&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function W(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function Y(e){for(var t=0;t<e.length;t++)if(w(this,F,W).call(this,e[t]))return e[t];return e[0]}function G(t){var n;try{n=r(11)}catch(e){}return!!(n&&n.ReadStream&&t instanceof n.ReadStream)||("function"==typeof e&&t instanceof e||("function"==typeof Blob&&t instanceof Blob||"function"==typeof File&&t instanceof File))}function K(e){var t={};for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r]&&null!=e[r]){var n=e[r];w(this,A,G).call(this,n)||Array.isArray(n)?t[r]=n:t[r]=this.paramToString(n)}return t}function X(e,t){var r=this;t.forEach((function(t){var n=r.authentications[t];switch(n.type){case"basic":n.username||n.password?e.auth(n.username||"",n.password||""):(r.username||r.password)&&e.auth(r.username||"",r.password||""),w(r,V,ne).call(r,O(r,M).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(n.apiKey){var o={};n.apiKeyPrefix?o[n.name]=n.apiKeyPrefix+" "+n.apiKey:o[n.name]=n.apiKey,"header"===n.in?e.set(o):e.query(o)}w(r,V,ne).call(r,O(r,M).DEBUG,null,"apiKey applied to request");break;case"oauth2":n.accessToken&&e.set({Authorization:"Bearer "+n.accessToken}),w(r,V,ne).call(r,O(r,M).DEBUG,null,"oauth2 applied to request");break;default:throw w(r,V,ne).call(r,O(r,M).ERROR,null,"Unknown authentication type:",n.type),new Error("Unknown authentication type: "+n.type)}}))}function Q(e,t){if(null==e||null==t||204==e.status)return null;var r=e.body;return(null==r||"object"===h(r)&&void 0===r.length&&!Object.keys(r).length)&&(r=e.text),J.convertToType(r,t)}function Z(e,t,r){if(e instanceof i.a){var n=parseInt(this.constructor.parseQueryParam(t,r,"$page","0"),10),o=parseInt(this.constructor.parseQueryParam(t,r,"$limit","50"),10);e.populatePaginationMetadata(this,n,o)}}function ee(e,t){return e<=0?e=t:e>O(this,_)&&(e=O(this,_)),e}function te(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){var t="",r=e.headers["set-cookie"];if(r.length>0){var n,o=d(r);try{for(o.s();!(n=o.n()).done;){var i=n.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))}k(this,$,t),w(this,V,ne).call(this,O(this,M).DEBUG,null,"Retained cookie :",t)}else k(this,$,null)}function re(e){null!=O(this,$)&&e.set(w(this,B,K).call(this,{Cookie:O(this,$)}))}function ne(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if("object"===h(e)&&"key"in e&&"value"in e&&"symbol"===h(e.value)||(e=O(this,M).INFO),!w(this,z,oe).call(this,e)){var i=(n=n.map((function(e){return"string"==typeof e?e:t?t(e):JSON.stringify(e)}))).join(" ");i=w(this,H,ie).call(this)+" "+e.key+" - "+i,void 0!==O(this,T)&&null!==O(this,T)&&"function"==typeof O(this,T).log?O(this,T).log(i):console.log(i)}}function oe(e){return!this.debug&&e===O(this,M).DEBUG}function ie(){var e=Date.now(),t=(new Date).getTimezoneOffset();return new Date(e-60*t*1e3).toISOString().slice(0,23)}function se(e){if("object"!==h(e))return e;var t="\n";return e&&Object.keys(e).forEach((function(r){t+=r+"=["+e[r]+"]\n"})),"\n"===t?e:t}J.instance=new J}).call(this,r(4).Buffer)},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(28),o=r(29),i=r(12);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(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 f(this,e)}return l(this,e,t,r)}function l(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);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=p(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(t,r),o=(e=a(e,n)).write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|h(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):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(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 f(e,t){if(c(t),e=a(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function p(e,t){var r=t.length<0?0:0|h(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.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 L(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 L(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 E(this,t,r);case"utf8":case"utf-8":return T(this,t,r);case"ascii":return S(this,t,r);case"latin1":case"binary":return C(this,t,r);case"base64":return $(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 v(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,o){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=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,o){var i,s=1,a=e.length,u=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,u/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){var c=-1;for(i=r;i<a;i++)if(l(e,i)===l(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===u)return c*s}else-1!==c&&(i-=i-c),c=-1}else for(r+u>a&&(r=a-u),i=r;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(l(e,i+p)!==l(t,p)){f=!1;break}if(f)return i}return-1}function b(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/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 w(e,t,r,n){return V(L(t,e.length-r),e,r,n)}function O(e,t,r,n){return V(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function k(e,t,r,n){return O(e,t,r,n)}function j(e,t,r,n){return V(N(t),e,r,n)}function P(e,t,r,n){return V(function(e,t){for(var r,n,o,i=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function $(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function T(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,s,a,u,l=e[o],c=null,f=l>239?4:l>223?3:l>191?2:1;if(o+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&l)<<6|63&i)>127&&(c=u);break;case 3:i=e[o+1],s=e[o+2],128==(192&i)&&128==(192&s)&&(u=(15&l)<<12|(63&i)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:i=e[o+1],s=e[o+2],a=e[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),o+=f}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=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.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(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return l(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return c(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)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},u.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}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var s=e[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,o),o+=s.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.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)v(this,t,t+1);return this},u.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)v(this,t,t+3),v(this,t+1,t+2);return this},u.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)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):y.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.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+">"},u.prototype.compare=function(e,t,r,n,o){if(!u.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===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(i,s),l=this.slice(n,o),c=e.slice(t,r),f=0;f<a;++f)if(l[f]!==c[f]){i=l[f],s=c[f];break}return i<s?-1:s<i?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},u.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 o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return w(this,e,t,r);case"ascii":return O(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return j(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function C(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function E(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=I(e[i]);return o}function _(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function M(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 F(e,t,r,n,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function A(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function B(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function x(e,t,r,n,i){return i||B(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function D(e,t,r,n,i){return i||B(e,0,r,8),o.write(e,t,r,n,52,8),r+8}u.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),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||M(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||M(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||M(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||M(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||F(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||F(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):A(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);F(this,e,t,r,o-1,-o)}var i=0,s=1,a=0;for(this[t]=255&e;++i<r&&(s*=256);)e<0&&0===a&&0!==this[t+i-1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);F(this,e,t,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===a&&0!==this[t+i+1]&&(a=1),this[t+i]=(e/s>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):A(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):A(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return D(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return D(this,e,t,!1,r)},u.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 o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},u.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 o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.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 i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var s=u.isBuffer(e)?e:L(new u(e,n).toString()),a=s.length;for(i=0;i<r-t;++i)this[i+t]=s[i%a]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function I(e){return e<16?"0"+e.toString(16):e.toString(16)}function L(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.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;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function N(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}}).call(this,r(1))},function(e,t){var r,n,o=e.exports={};function i(){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===i||!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:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,l=[],c=!1,f=-1;function p(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&h())}function h(){if(!c){var e=a(p);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,c=!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 d(e,t){this.fun=e,this.array=t}function y(){}o.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];l.push(new d(e,t)),1!==l.length||c||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){"use strict";var n=r(8),o=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=f;var i=Object.create(r(7));i.inherits=r(3);var s=r(17),a=r(21);i.inherits(f,s);for(var u=o(a.prototype),l=0;l<u.length;l++){var c=u[l];f.prototype[c]||(f.prototype[c]=a.prototype[c])}function f(e){if(!(this instanceof f))return new f(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",p)}function p(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.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)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t,r){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)}function o(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===o(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"===n(e)},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===o(e)},t.isObject=function(e){return"object"===n(e)&&null!==e},t.isDate=function(e){return"[object Date]"===o(e)},t.isError=function(e){return"[object Error]"===o(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"===n(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,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,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,o)}));default:for(i=new Array(a-1),s=0;s<i.length;)i[s++]=arguments[s];return t.nextTick((function(){e.apply(null,i)}))}}}:e.exports=t}).call(this,r(5))},function(e,t,r){var n=r(4),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=s),i(o,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(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 o(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";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 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=r(30),s=r(31),a=r(32),u=r(13),l=r(33),c=r(35);function f(){}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 p=t=e.exports;t.Request=b,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 h="".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 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(u(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 v(e){for(var t,r,n={},o=e.split("&"),i=0,s=o.length;i<s;++i)-1===(r=(t=o[i]).indexOf("="))?n[decodeURIComponent(t)]="":n[decodeURIComponent(t.slice(0,r))]=decodeURIComponent(t.slice(r+1));return n}function g(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,o,i=e.split(/\r?\n/),s={},a=0,u=i.length;a<u;++a)-1!==(t=(r=i[a]).indexOf(":"))&&(n=r.slice(0,t).toLowerCase(),o=h(r.slice(t+1)),s[n]=o);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 b(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 w(e,t,r){var n=p("DELETE",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n}p.serializeObject=d,p.parseString=v,p.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},p.serialize={"application/x-www-form-urlencoded":d,"application/json":s},p.parse={"application/x-www-form-urlencoded":v,"application/json":JSON.parse},l(m.prototype),m.prototype._parseBody=function(e){var t=p.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&g(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,r=e.url,n="cannot ".concat(t," ").concat(r," (").concat(this.status,")"),o=new Error(n);return o.status=this.status,o.method=t,o.url=r,o},p.Response=m,i(b.prototype),a(b.prototype),b.prototype.type=function(e){return this.set("Content-Type",p.types[e]||e),this},b.prototype.accept=function(e){return this.set("Accept",p.types[e]||e),this},b.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 o=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,o)},b.prototype.query=function(e){return"string"!=typeof e&&(e=d(e)),e&&this._query.push(e),this},b.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},b.prototype._getFormData=function(){return this._formData||(this._formData=new o.FormData),this._formData},b.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)},b.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)},b.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},b.prototype.ca=b.prototype.agent,b.prototype.buffer=b.prototype.ca,b.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},b.prototype.pipe=b.prototype.write,b.prototype._isHost=function(e){return e&&"object"===n(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},b.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()},b.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},b.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,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 o=this._header["content-type"],i=this._serializer||p.serialize[o?o.split(";")[0]:""];!i&&g(o)&&(i=p.serialize["application/json"]),i&&(r=i(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)},p.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(e){c.prototype[e.toLowerCase()]=function(t,r){var n=new p.Request(e,t);return this._setDefaults(n),r&&n.end(r),n}})),c.prototype.del=c.prototype.delete,p.get=function(e,t,r){var n=p("GET",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},p.head=function(e,t,r){var n=p("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&n.query(t),r&&n.end(r),n},p.options=function(e,t,r){var n=p("OPTIONS",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},p.del=w,p.delete=w,p.patch=function(e,t,r){var n=p("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},p.post=function(e,t,r){var n=p("POST",e);return"function"==typeof t&&(r=t,t=null),t&&n.send(t),r&&n.end(r),n},p.put=function(e,t,r){var n=p("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 o(e){var t=n();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var i=void 0!==e.ArrayBuffer,s=i&&a(e.ArrayBuffer.prototype.slice);function a(e){return"function"==typeof e}t.arraybuffer=t.fetch||i&&o("arraybuffer"),t.msstream=!t.fetch&&s&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&i&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!n()&&a(n().overrideMimeType),t.vbArray=a(e.VBArray),r=null}).call(this,r(1))},function(e,t,r){(function(e,n,o){var i=r(14),s=r(3),a=r(16),u=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=t.IncomingMessage=function(t,r,s,u){var l=this;if(a.Readable.call(l),l._mode=s,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){e.nextTick((function(){l.emit("close")}))})),"fetch"===s){if(l._fetchResponse=r,l.url=r.url,l.statusCode=r.status,l.statusMessage=r.statusText,r.headers.forEach((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),i.writableStream){var c=new WritableStream({write:function(e){return new Promise((function(t,r){l._destroyed?r():l.push(new o(e))?t():l._resumeFetch=t}))},close:function(){n.clearTimeout(u),l._destroyed||l.push(null)},abort:function(e){l._destroyed||l.emit("error",e)}});try{return void r.body.pipeTo(c).catch((function(e){n.clearTimeout(u),l._destroyed||l.emit("error",e)}))}catch(e){}}var f=r.body.getReader();!function e(){f.read().then((function(t){if(!l._destroyed){if(t.done)return n.clearTimeout(u),void l.push(null);l.push(new o(t.value)),e()}})).catch((function(e){n.clearTimeout(u),l._destroyed||l.emit("error",e)}))}()}else{if(l._xhr=t,l._pos=0,l.url=t.responseURL,l.statusCode=t.status,l.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===l.headers[r]&&(l.headers[r]=[]),l.headers[r].push(t[2])):void 0!==l.headers[r]?l.headers[r]+=", "+t[2]:l.headers[r]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!i.overrideMimeType){var p=l.rawHeaders["mime-type"];if(p){var h=p.match(/;\s*charset=([^;])(;|$)/);h&&(l._charset=h[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};s(l,a.Readable),l.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,r=null;switch(e._mode){case"text:vbarray":if(t.readyState!==u.DONE)break;try{r=new n.VBArray(t.responseBody).toArray()}catch(e){}if(null!==r){e.push(new o(r));break}case"text":try{r=t.responseText}catch(t){e._mode="text:vbarray";break}if(r.length>e._pos){var i=r.substr(e._pos);if("x-user-defined"===e._charset){for(var s=new o(i.length),a=0;a<i.length;a++)s[a]=255&i.charCodeAt(a);e.push(s)}else e.push(i,e._charset);e._pos=r.length}break;case"arraybuffer":if(t.readyState!==u.DONE||!t.response)break;r=t.response,e.push(new o(new Uint8Array(r)));break;case"moz-chunked-arraybuffer":if(r=t.response,t.readyState!==u.LOADING||!r)break;e.push(new o(new Uint8Array(r)));break;case"ms-stream":if(r=t.response,t.readyState!==u.LOADING)break;var l=new n.MSStreamReader;l.onprogress=function(){l.result.byteLength>e._pos&&(e.push(new o(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(r)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,r(5),r(1),r(4).Buffer)},function(e,t,r){(t=e.exports=r(17)).Stream=t,t.Readable=t,t.Writable=r(21),t.Duplex=r(6),t.Transform=r(23),t.PassThrough=r(44)},function(e,t,r){"use strict";(function(t,n){var o=r(8);e.exports=b;var i,s=r(12);b.ReadableState=m;r(18).EventEmitter;var a=function(e,t){return e.listeners(t).length},u=r(19),l=r(9).Buffer,c=t.Uint8Array||function(){};var f=Object.create(r(7));f.inherits=r(3);var p=r(38),h=void 0;h=p&&p.debuglog?p.debuglog("stream"):function(){};var d,y=r(39),v=r(20);f.inherits(b,u);var g=["error","close","destroy","pause","resume"];function m(e,t){e=e||{};var n=t instanceof(i=i||r(6));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o: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&&(d||(d=r(22).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||r(6),!(this instanceof b))return new b(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)),u.call(this)}function w(e,t,r,n,o){var i,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,j(e)}(e,s)):(o||(i=function(e,t){var r;n=t,l.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(s,t)),i?e.emit("error",i):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):O(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?O(e,s,t,!1):$(e,s)):O(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 O(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&&j(e)),$(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.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=l.from(e,t),t=""),r=!0),w(this,e,t,!1,r)},b.prototype.unshift=function(e){return w(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return d||(d=r(22).StringDecoder),this._readableState.decoder=new d(e),this._readableState.encoding=e,this};function k(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 j(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(P,e):P(e))}function P(e){h("emit readable"),e.emit("readable"),E(e)}function $(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(T,e,t))}function T(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function S(e){h("readable nexttick read 0"),e.read(0)}function C(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;for(h("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,o=r.data;e-=o.length;for(;r=r.next;){var i=r.data,s=e>i.length?i.length:e;if(s===i.length?o+=i:o+=i.slice(0,e),0===(e-=s)){s===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(s));break}++n}return t.length-=n,o}(e,t):function(e,t){var r=l.allocUnsafe(e),n=t.head,o=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var i=n.data,s=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,s),0===(e-=s)){s===i.length?(++o,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(s));break}++o}return t.length-=o,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function M(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(F,t,e))}function F(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}b.prototype.read=function(e){h("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 h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?M(this):j(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&M(this),null;var n,o=t.needReadable;return h("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",o=!0),t.ended||t.reading?h("reading or ended",o=!1):o&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(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&&M(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:b;function l(t,n){h("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,h("cleanup"),e.removeListener("close",g),e.removeListener("finish",m),e.removeListener("drain",f),e.removeListener("error",v),e.removeListener("unpipe",l),r.removeListener("end",c),r.removeListener("end",b),r.removeListener("data",y),p=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){h("onend"),e.end()}i.endEmitted?o.nextTick(u):r.once("end",u),e.on("unpipe",l);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,E(e))}}(r);e.on("drain",f);var p=!1;var d=!1;function y(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==R(i.pipes,e))&&!p&&(h("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,d=!0),r.pause())}function v(t){h("onerror",t),b(),e.removeListener("error",v),0===a(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",m),b()}function m(){h("onfinish"),e.removeListener("close",g),b()}function b(){h("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",v),e.once("close",g),e.once("finish",m),e.emit("pipe",r),i.flowing||(h("pipe resume"),r.resume()),e},b.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,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,r);return this}var s=R(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},b.prototype.on=function(e,t){var r=u.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&&j(this):o.nextTick(S,this))}return r},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(C,e,t))}(this,e)),this},b.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var o in e.on("end",(function(){if(h("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(h("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))})),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<g.length;i++)e.on(g[i],this.emit.bind(this,g[i]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=_}).call(this,r(1),r(5))},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 o,i="object"===("undefined"==typeof Reflect?"undefined":n(Reflect))?Reflect:null,s=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};o=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 a=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}m(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&m(e,"error",t,r)}(e,o,{once:!0})}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+n(e))}function f(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function p(e,t,r,n){var o,i,s,a;if(c(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),s=i[t]),void 0===s)s=i[t]=r,++e._eventsCount;else if("function"==typeof s?s=i[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=f(e))>0&&s.length>o&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function h(){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 d(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=h.bind(n);return o.listener=r,n.wrapFn=o,o}function y(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]: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}(o):g(o,o.length)}function v(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 m(e,t,r,o){if("function"==typeof e.on)o.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 '+n(e));e.addEventListener(t,(function n(i){o.once&&e.removeEventListener(t,n),r(i)}))}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),u.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},u.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(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},u.prototype.getMaxListeners=function(){return f(this)},u.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)s(u,this,t);else{var l=u.length,c=g(u,l);for(r=0;r<l;++r)s(c[r],this,t)}return!0},u.prototype.addListener=function(e,t){return p(this,e,t,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,t){return p(this,e,t,!0)},u.prototype.once=function(e,t){return c(t),this.on(e,d(this,e,t)),this},u.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,d(this,e,t)),this},u.prototype.removeListener=function(e,t){var r,n,o,i,s;if(c(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(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){s=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},u.prototype.off=u.prototype.removeListener,u.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 o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);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},u.prototype.listeners=function(e){return y(this,e,!0)},u.prototype.rawListeners=function(e){return y(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},u.prototype.listenerCount=v,u.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,r){e.exports=r(18).EventEmitter},function(e,t,r){"use strict";var n=r(8);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(o,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(o,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,o){var i=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 o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=m;var a,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:i.nextTick;m.WritableState=g;var l=Object.create(r(7));l.inherits=r(3);var c={deprecate:r(43)},f=r(19),p=r(9).Buffer,h=o.Uint8Array||function(){};var d,y=r(20);function v(){}function g(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 o=e.highWaterMark,l=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(l||0===l)?l:c,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 f=!1===e.decodeStrings;this.decodeStrings=!f,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,o=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,o){--t.pendingcb,r?(i.nextTick(o,n),i.nextTick(P,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(o(n),e._writableState.errorEmitted=!0,e.emit("error",n),P(e,t))}(e,r,n,t,o);else{var s=k(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||O(e,r),n?u(w,e,r,s,o):w(e,r,s,o)}}(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),!(d.call(m,this)||this instanceof a))return new m(e);this._writableState=new g(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)),f.call(this)}function b(e,t,r,n,o,i,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function w(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 O(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,b(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,f=r.callback;if(b(e,t,!1,t.objectMode?1:l.length,l,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(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=k(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(j,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}l.inherits(m,f),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.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]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===m&&(e&&e._writableState instanceof g)}})):d=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,o=this._writableState,s=!1,a=!o.objectMode&&(n=e,p.isBuffer(n)||n instanceof h);return a&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=v),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var o=!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),i.nextTick(n,s),o=!1),o}(this,o,e,r))&&(o.pendingcb++,s=function(e,t,r,n,o,i){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,r));return t}(t,n,o);n!==s&&(r=!0,o="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,a,n,o,i);return u}(this,o,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||O(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?i.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(41).setImmediate,r(1))},function(e,t,r){"use strict";var n=r(9).Buffer,o=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 i(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===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=p,void(this.end=h)}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 u(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 l(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 c(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 f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.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||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=s(t[n]);if(o>=0)return o>0&&(e.lastNeed=o-1),o;if(--n<r||-2===o)return 0;if((o=s(t[n]))>=0)return o>0&&(e.lastNeed=o-2),o;if(--n<r||-2===o)return 0;if((o=s(t[n]))>=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;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)},i.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),o=Object.create(r(7));function i(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 o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:i.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){u(e,t,r)})):u(this,null,null)}function u(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)}o.inherits=r(3),o.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 o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.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";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 o=r(48),i=r(50);function s(){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 s?e.format():s.prototype.format.call(e)},t.Url=s;var a=/^([a-z0-9.+-]+:)/i,u=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),f=["'"].concat(c),p=["%","/","?",";","#"].concat(f),h=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(51);function w(e,t,r){if(e&&i.isObject(e)&&e instanceof s)return e;var n=new s;return n.parse(e,t,r),n}s.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+n(e));var s=e.indexOf("?"),u=-1!==s&&s<e.indexOf("#")?"?":"#",c=e.split(u);c[0]=c[0].replace(/\\/g,"/");var w=e=c.join(u);if(w=w.trim(),!r&&1===e.split("#").length){var O=l.exec(w);if(O)return this.path=w,this.href=w,this.pathname=O[1],O[2]?(this.search=O[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var k=a.exec(w);if(k){var j=(k=k[0]).toLowerCase();this.protocol=j,w=w.substr(k.length)}if(r||k||w.match(/^\/\/[^@\/]+@[^@\/]+/)){var P="//"===w.substr(0,2);!P||k&&g[k]||(w=w.substr(2),this.slashes=!0)}if(!g[k]&&(P||k&&!m[k])){for(var $,T,S=-1,C=0;C<h.length;C++){-1!==(E=w.indexOf(h[C]))&&(-1===S||E<S)&&(S=E)}-1!==(T=-1===S?w.lastIndexOf("@"):w.lastIndexOf("@",S))&&($=w.slice(0,T),w=w.slice(T+1),this.auth=decodeURIComponent($)),S=-1;for(C=0;C<p.length;C++){var E;-1!==(E=w.indexOf(p[C]))&&(-1===S||E<S)&&(S=E)}-1===S&&(S=w.length),this.host=w.slice(0,S),w=w.slice(S),this.parseHost(),this.hostname=this.hostname||"";var _="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!_)for(var M=this.hostname.split(/\./),F=(C=0,M.length);C<F;C++){var R=M[C];if(R&&!R.match(d)){for(var A="",B=0,x=R.length;B<x;B++)R.charCodeAt(B)>127?A+="x":A+=R[B];if(!A.match(d)){var D=M.slice(0,C),U=M.slice(C+1),I=R.match(y);I&&(D.push(I[1]),U.unshift(I[2])),U.length&&(w="/"+U.join(".")+w),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=o.toASCII(this.hostname));var L=this.port?":"+this.port:"",N=this.hostname||"";this.host=N+L,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!v[j])for(C=0,F=f.length;C<F;C++){var V=f[C];if(-1!==w.indexOf(V)){var z=encodeURIComponent(V);z===V&&(z=escape(V)),w=w.split(V).join(z)}}var H=w.indexOf("#");-1!==H&&(this.hash=w.substr(H),w=w.slice(0,H));var q=w.indexOf("?");if(-1!==q?(this.search=w.substr(q),this.query=w.substr(q+1),t&&(this.query=b.parse(this.query)),w=w.slice(0,q)):t&&(this.search="",this.query={}),w&&(this.pathname=w),m[j]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){L=this.pathname||"";var J=this.search||"";this.path=L+J}return this.href=this.format(),this},s.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=b.stringify(this.query));var a=this.search||s&&"?"+s||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||m[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},s.prototype.resolve=function(e){return this.resolveObject(w(e,!1,!0)).format()},s.prototype.resolveObject=function(e){if(i.isString(e)){var t=new s;t.parse(e,!1,!0),e=t}for(var r=new s,n=Object.keys(this),o=0;o<n.length;o++){var a=n[o];r[a]=this[a]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),l=0;l<u.length;l++){var c=u[l];"protocol"!==c&&(r[c]=e[c])}return m[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!m[e.protocol]){for(var f=Object.keys(e),p=0;p<f.length;p++){var h=f[p];r[h]=e[h]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||g[e.protocol])r.pathname=e.pathname;else{for(var d=(e.pathname||"").split("/");d.length&&!(e.host=d.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),r.pathname=d.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||"",v=r.search||"";r.path=y+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var b=r.pathname&&"/"===r.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),O=w||b||r.host&&e.pathname,k=O,j=r.pathname&&r.pathname.split("/")||[],P=(d=e.pathname&&e.pathname.split("/")||[],r.protocol&&!m[r.protocol]);if(P&&(r.hostname="",r.port=null,r.host&&(""===j[0]?j[0]=r.host:j.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===d[0]?d[0]=e.host:d.unshift(e.host)),e.host=null),O=O&&(""===d[0]||""===j[0])),w)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,j=d;else if(d.length)j||(j=[]),j.pop(),j=j.concat(d),r.search=e.search,r.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(P)r.hostname=r.host=j.shift(),(E=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=E.shift(),r.host=r.hostname=E.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(!j.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var $=j.slice(-1)[0],T=(r.host||e.host||j.length>1)&&("."===$||".."===$)||""===$,S=0,C=j.length;C>=0;C--)"."===($=j[C])?j.splice(C,1):".."===$?(j.splice(C,1),S++):S&&(j.splice(C,1),S--);if(!O&&!k)for(;S--;S)j.unshift("..");!O||""===j[0]||j[0]&&"/"===j[0].charAt(0)||j.unshift(""),T&&"/"!==j.join("/").substr(-1)&&j.push("");var E,_=""===j[0]||j[0]&&"/"===j[0].charAt(0);P&&(r.hostname=r.host=_?"":j.length?j.shift():"",(E=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=E.shift(),r.host=r.hostname=E.shift()));return(O=O||r.host&&j.length)&&!_&&j.unshift(""),j.length?r.pathname=j.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},s.prototype.parseHost=function(){var e=this.host,t=u.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(t){e.exports=t}).call(this,{})},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){var n=t.status;if(n>=500)return!0;if((n>=400||n<200)&&-1===r.indexOf(n))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses)){var r;r=this._retries?this._retryDelays[this._retries-1]:0;var n=this;return setTimeout((function(){return n._retry()}),r)}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,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var n=t.length,o=e-n;if(0!==o){if(o<0)throw new Error("Cannot have more delays than retries");for(var i=t[n-1],s=0;s<o+1;s++)t.push(i)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=r||[],this}e.exports=function(e){var t=e.Request;return t.prototype.oldRetry=t.prototype.retry,t.prototype.retry=n,t.prototype.callback=r,e}},function(e,t,r){var n=r(36),o=r(24),i=e.exports;for(var s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);function a(e){if("string"==typeof e&&(e=o.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}i.request=function(e,t){return e=a(e),n.request.call(this,e,t)},i.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=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,r,n=l(e),s=n[0],a=n[1],u=new i(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),c=0,f=a>0?s-4:s;for(r=0;r<f;r+=4)t=o[e.charCodeAt(r)]<<18|o[e.charCodeAt(r+1)]<<12|o[e.charCodeAt(r+2)]<<6|o[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;2===a&&(t=o[e.charCodeAt(r)]<<2|o[e.charCodeAt(r+1)]>>4,u[c++]=255&t);1===a&&(t=o[e.charCodeAt(r)]<<10|o[e.charCodeAt(r+1)]<<4|o[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],s=0,a=r-o;s<a;s+=16383)i.push(c(e,s,s+16383>a?a:s+16383));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)n[a]=s[a],o[s.charCodeAt(a)]=a;function l(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 c(e,t,r){for(var o,i,s=[],a=t;a<r;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".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,o){var i,s,a=8*o-n-1,u=(1<<a)-1,l=u>>1,c=-7,f=r?o-1:0,p=r?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-c)-1,h>>=-c,c+=a;c>0;i=256*i+e[t+f],f+=p,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=n;c>0;s=256*s+e[t+f],f+=p,c-=8);if(0===i)i=1-l;else{if(i===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),i-=l}return(h?-1:1)*s*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var s,a,u,l=8*i-o-1,c=(1<<l)-1,f=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,d=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=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));o>=8;e[r+h]=255&a,h+=d,a/=256,o-=8);for(s=s<<o|a,l+=o;l>0;e[r+h]=255&s,h+=d,s/=256,l-=8);e[r+h-d]|=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 o=0;o<n.length;o++)if((r=n[o])===t||r.fn===t){n.splice(o,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 o=(r=r.slice(0)).length;n<o;++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){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})(e)}e.exports=s,s.default=s,s.stable=l,s.stableStringify=l;var n=[],o=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,s,u){var l;void 0===u&&(u=i()),function e(t,n,o,i,s,u,l){var c;if(u+=1,"object"===r(t)&&null!==t){for(c=0;c<i.length;c++)if(i[c]===t)return void a("[Circular]",t,n,s);if(void 0!==l.depthLimit&&u>l.depthLimit)return void a("[...]",t,n,s);if(void 0!==l.edgesLimit&&o+1>l.edgesLimit)return void a("[...]",t,n,s);if(i.push(t),Array.isArray(t))for(c=0;c<t.length;c++)e(t[c],c,c,i,t,u,l);else{var f=Object.keys(t);for(c=0;c<f.length;c++){var p=f[c];e(t[p],p,c,i,t,u,l)}}i.pop()}}(e,"",0,[],void 0,0,u);try{l=0===o.length?JSON.stringify(e,t,s):JSON.stringify(e,c(t),s)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var f=n.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return l}function a(e,t,r,i){var s=Object.getOwnPropertyDescriptor(i,r);void 0!==s.get?s.configurable?(Object.defineProperty(i,r,{value:e}),n.push([i,r,t,s])):o.push([t,r,e]):(i[r]=e,n.push([i,r,t]))}function u(e,t){return e<t?-1:e>t?1:0}function l(e,t,s,l){void 0===l&&(l=i());var f,p=function e(t,o,i,s,l,c,f){var p;if(c+=1,"object"===r(t)&&null!==t){for(p=0;p<s.length;p++)if(s[p]===t)return void a("[Circular]",t,o,l);try{if("function"==typeof t.toJSON)return}catch(e){return}if(void 0!==f.depthLimit&&c>f.depthLimit)return void a("[...]",t,o,l);if(void 0!==f.edgesLimit&&i+1>f.edgesLimit)return void a("[...]",t,o,l);if(s.push(t),Array.isArray(t))for(p=0;p<t.length;p++)e(t[p],p,p,s,t,c,f);else{var h={},d=Object.keys(t).sort(u);for(p=0;p<d.length;p++){var y=d[p];e(t[y],y,p,s,t,c,f),h[y]=t[y]}if(void 0===l)return h;n.push([l,o,t]),l[o]=h}s.pop()}}(e,"",0,[],void 0,0,l)||e;try{f=0===o.length?JSON.stringify(p,t,s):JSON.stringify(p,c(t),s)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var h=n.pop();4===h.length?Object.defineProperty(h[0],h[1],h[3]):h[0][h[1]]=h[2]}}return f}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,r){if(o.length>0)for(var n=0;n<o.length;n++){var i=o[n];if(i[1]===t&&i[0]===r){r=i[2],o.splice(n,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 o=r(13);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"!==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},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 s=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.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},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 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)},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 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},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 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},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,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},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),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&&o(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},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 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("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.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)}},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))}},function(e,t,r){"use strict";var n=r(34);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=n.type(t);var r=n.params(t);for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(this[o]=r[o]);this.links={};try{e.link&&(this.links=n.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}},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(),o=r.shift();return n&&o&&(e[n]=o),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 o(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 o(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 o(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 o(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 i(){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){i.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}})),i.prototype._setDefaults=function(e){this._defaults.forEach((function(t){e[t.fn].apply(e,n(t.args))}))},e.exports=i},function(e,t,r){(function(e){var n=r(37),o=r(15),i=r(46),s=r(47),a=r(24),u=t;u.request=function(t,r){t="string"==typeof t?a.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",s=t.protocol||o,u=t.hostname||t.host,l=t.port,c=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?s+"//"+u:"")+(l?":"+l:"")+c,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var f=new n(t);return r&&f.on("response",r),f},u.get=function(e,t){var r=u.request(e,t);return r.end(),r},u.ClientRequest=n,u.IncomingMessage=o.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=s,u.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(1))},function(e,t,r){(function(t,n,o){var i=r(14),s=r(3),a=r(15),u=r(16),l=r(45),c=a.IncomingMessage,f=a.readyStates;var p=e.exports=function(e){var r,n=this;u.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 o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)o=!1,r=!0;else if("prefer-streaming"===e.mode)r=!1;else if("allow-wrong-content-type"===e.mode)r=!i.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 i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":i.vbArray&&e?"text:vbarray":"text"}(r,o),n._fetchTimer=null,n.on("finish",(function(){n._onFinish()}))};s(p,u.Writable),p.prototype.setHeader=function(e,t){var r=e.toLowerCase();-1===h.indexOf(r)&&(this._headers[r]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.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=i.arraybuffer?l(t.concat(e._body)):i.blobConstructor?new n.Blob(e._body.map((function(e){return l(e)})),{type:(s["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(s).forEach((function(e){var t=s[e].name,r=s[e].value;Array.isArray(r)?r.forEach((function(e){u.push([t,e])})):u.push([t,r])})),"fetch"===e._mode){var c=null;if(i.abortController){var p=new AbortController;c=p.signal,e._fetchAbortController=p,"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:u,body:a||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:c}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){n.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var h=e._xhr=new n.XMLHttpRequest;try{h.open(e._opts.method,e._opts.url,!0)}catch(t){return void o.nextTick((function(){e.emit("error",t)}))}"responseType"in h&&(h.responseType=e._mode.split(":")[0]),"withCredentials"in h&&(h.withCredentials=!!r.withCredentials),"text"===e._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(h.timeout=r.requestTimeout,h.ontimeout=function(){e.emit("requestTimeout")}),u.forEach((function(e){h.setRequestHeader(e[0],e[1])})),e._response=null,h.onreadystatechange=function(){switch(h.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(h.onprogress=function(){e._onXHRProgress()}),h.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{h.send(a)}catch(t){return void o.nextTick((function(){e.emit("error",t)}))}}}},p.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())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},p.prototype._write=function(e,t,r){this._body.push(e),r()},p.prototype.abort=p.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()},p.prototype.end=function(e,t,r){"function"==typeof e&&(r=e,e=void 0),u.Writable.prototype.end.call(this,e,t,r)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var h=["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(1),r(5))},function(e,t){},function(e,t,r){"use strict";var n=r(9).Buffer,o=r(40);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,o,i=n.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,r=i,o=a,t.copy(r,o),a+=s.data.length,s=s.next;return i},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.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,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.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(42),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(1))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,o,i,s,a,u=1,l={},c=!1,f=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){d(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?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,n=function(e){var t=f.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):n=function(e){setTimeout(d,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&d(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(s+t,"*")}),p.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 o={callback:e,args:t};return l[u]=o,n(u),u++},p.clearImmediate=h}function h(e){delete l[e]}function d(e){if(c)setTimeout(d,0,e);else{var t=l[e];if(t){c=!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{h(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(1),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(1))},function(e,t,r){"use strict";e.exports=i;var n=r(23),o=Object.create(r(7));function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}o.inherits=r(3),o.inherits(i,n),i.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,o=0;o<r;o++)t[o]=e[o];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 o in n)r.call(n,o)&&(e[o]=n[o])}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 o;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
|
|
11
|
-
/*! https://mths.be/punycode v1.4.1 by @mathias */!function(s){var a="object"==i(t)&&t&&!t.nodeType&&t,u="object"==i(e)&&e&&!e.nodeType&&e,l="object"==(void 0===n?"undefined":i(n))&&n;l.global!==l&&l.window!==l&&l.self!==l||(s=l);var c,f,p=2147483647,h=/^xn--/,d=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=Math.floor,m=String.fromCharCode;function b(e){throw new RangeError(v[e])}function w(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function O(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+w((e=e.replace(y,".")).split("."),t).join(".")}function k(e){for(var t,r,n=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function j(e){return w(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function P(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function $(e,t,r){var n=0;for(e=r?g(e/700):e>>1,e+=g(e/t);e>455;n+=36)e=g(e/35);return g(n+36*e/(e+38))}function T(e){var t,r,n,o,i,s,a,u,l,c,f,h=[],d=e.length,y=0,v=128,m=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&b("not-basic"),h.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<d;){for(i=y,s=1,a=36;o>=d&&b("invalid-input"),((u=(f=e.charCodeAt(o++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:36)>=36||u>g((p-y)/s))&&b("overflow"),y+=u*s,!(u<(l=a<=m?1:a>=m+26?26:a-m));a+=36)s>g(p/(c=36-l))&&b("overflow"),s*=c;m=$(y-i,t=h.length+1,0==i),g(y/t)>p-v&&b("overflow"),v+=g(y/t),y%=t,h.splice(y++,0,v)}return j(h)}function S(e){var t,r,n,o,i,s,a,u,l,c,f,h,d,y,v,w=[];for(h=(e=k(e)).length,t=128,r=0,i=72,s=0;s<h;++s)(f=e[s])<128&&w.push(m(f));for(n=o=w.length,o&&w.push("-");n<h;){for(a=p,s=0;s<h;++s)(f=e[s])>=t&&f<a&&(a=f);for(a-t>g((p-r)/(d=n+1))&&b("overflow"),r+=(a-t)*d,t=a,s=0;s<h;++s)if((f=e[s])<t&&++r>p&&b("overflow"),f==t){for(u=r,l=36;!(u<(c=l<=i?1:l>=i+26?26:l-i));l+=36)v=u-c,y=36-c,w.push(m(P(c+v%y,0))),u=g(v/y);w.push(m(P(u,0))),i=$(r,d,n==o),r=0,++n}++r,++t}return w.join("")}if(c={version:"1.4.1",ucs2:{decode:k,encode:j},decode:T,encode:S,toASCII:function(e){return O(e,(function(e){return d.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return O(e,(function(e){return h.test(e)?T(e.slice(4).toLowerCase()):e}))}},"object"==i(r(25))&&r(25))void 0===(o=function(){return c}.call(t,r,t,e))||(e.exports=o);else if(a&&u)if(e.exports==a)u.exports=c;else for(f in c)c.hasOwnProperty(f)&&(a[f]=c[f]);else s.punycode=c}(this)}).call(this,r(49)(e),r(1))},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";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={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"===n(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){"use strict";t.decode=t.parse=r(52),t.encode=t.stringify=r(53)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,i){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var c=0;c<l;++c){var f,p,h,d,y=e[c].replace(a,"%20"),v=y.indexOf(r);v>=0?(f=y.substr(0,v),p=y.substr(v+1)):(f=y,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),n(s,h)?o(s[h])?s[h].push(d):s[h]=[s[h],d]:s[h]=d}return s};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.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)}var o=function(e){switch(n(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,u){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"===n(e)?s(a(e),(function(n){var a=encodeURIComponent(o(n))+r;return i(e[n])?s(e[n],(function(e){return a+encodeURIComponent(o(e))})).join(t):a+encodeURIComponent(o(e[n]))})).join(t):u?encodeURIComponent(o(u))+r+encodeURIComponent(o(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(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 a=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){"use strict";r.r(t),r.d(t,"ApiClient",(function(){return n.a})),r.d(t,"ClusterApi",(function(){return At})),r.d(t,"BlackoutOperation",(function(){return rr})),r.d(t,"BlackoutOperationsApiResponse",(function(){return hr})),r.d(t,"BlackoutPeriod",(function(){return zt})),r.d(t,"BulkBlackoutPeriodDeleteApiResponse",(function(){return Pr})),r.d(t,"CalculateRunway",(function(){return Br})),r.d(t,"CalculateRunwayResponse",(function(){return Zr})),r.d(t,"ClusterEntity",(function(){return xt})),r.d(t,"Operation",(function(){return qt})),r.d(t,"TasksListResponse",(function(){return fn})),r.d(t,"Cluster",(function(){return mn})),r.d(t,"ClusterApiResponse",(function(){return St})),r.d(t,"ClusterListApiResponse",(function(){return vt})),r.d(t,"ClusterMetrics",(function(){return ee})),r.d(t,"ClusterProjection",(function(){return fo})),r.d(t,"Node",(function(){return $n})),r.d(t,"NodeProjection",(function(){return xn})),r.d(t,"Vm",(function(){return zn})),r.d(t,"VmProjection",(function(){return eo})),r.d(t,"AppMessage",(function(){return le})),r.d(t,"ErrorResponse",(function(){return _e})),r.d(t,"SchemaValidationError",(function(){return je})),r.d(t,"SchemaValidationErrorMessage",(function(){return ve})),r.d(t,"Flag",(function(){return De})),r.d(t,"IPv4Address",(function(){return m})),r.d(t,"KVPair",(function(){return He})),r.d(t,"Message",(function(){return Xe})),r.d(t,"MessageSeverity",(function(){return re})),r.d(t,"TenantAwareModel",(function(){return F})),r.d(t,"ApiLink",(function(){return $})),r.d(t,"ApiResponseMetadata",(function(){return ot})),r.d(t,"ExternalizableAbstractModel",(function(){return z})),r.d(t,"TaskReference",(function(){return Vr}));var n=r(2),o={DEFAULT:"DEFAULT",constructFromObject:function(e){if("string"==typeof e||e instanceof String)return o[e];throw new Error("Received object name is not an instance of String")},validate:function(e){if(null!=e)switch(e){case o.DEFAULT:return;default:throw new Error("Invalid : must be ValidationScopes.{ }")}}};Object.freeze(o);var i=o;function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==s(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===s(i)?i:String(i)),n)}var o,i}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,n=[{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)}}],(r=null)&&a(t.prototype,r),n&&a(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function l(e){return(l="function"==typeof Symbol&&"symbol"==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)}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(o=n.key,i=void 0,i=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===l(i)?i:String(i)),n)}var o,i}var f=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=t,this.message=r}var t,r,n;return t=e,(r=[{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()}}}])&&c(t.prototype,r),n&&c(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return(t=g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,g(n.key),n)}}function g(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===p(t)?t:String(t)}var m=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.IPv4Address"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(r=r||new e,t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&r.setValue(t.value),t.hasOwnProperty("prefixLength")&&null!==t.prefixLength&&void 0!==t.prefixLength&&r.setPrefixLength(t.prefixLength),t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!n))for(var o in r.$unknownFields=d({},t.$unknownFields),t)Object.keys(r).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o]);return r}}],(r=[{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 d(d(d({},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 r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new f("value","undefined or null");if(!u.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 f("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 f("prefixLength","undefined or null");if(!u.validateMaximum(this.prefixLength,32))return new f("prefixLength","does not satisfy required maximum constraint: 32");if(!u.validateMinimum(this.prefixLength,0))return new f("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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&v(t.prototype,r),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();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})(e)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){k(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e,t,r){return(t=P(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,P(n.key),n)}}function P(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}m.prototype.value=void 0,m.prototype.prefixLength=32,m.prototype.$reserved=void 0,m.prototype.$objectType=void 0,m.prototype.$unknownFields=void 0;var $=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fqObjectType:"common.v1.r0.a3.response.ApiLink"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(r=r||new e,t.hasOwnProperty("href")&&null!==t.href&&void 0!==t.href&&r.setHref(t.href),t.hasOwnProperty("rel")&&null!==t.rel&&void 0!==t.rel&&r.setRel(t.rel),t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!n))for(var o in r.$unknownFields=O({},t.$unknownFields),t)Object.keys(r).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o]);return r}}],(r=[{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 O(O(O({},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 r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("rel","undefined or null"):new f("href","undefined or null")}}])&&j(t.prototype,r),n&&j(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){E(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function E(e,t,r){return(t=M(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,M(n.key),n)}}function M(e){var t=function(e,t){if("object"!==T(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===T(t)?t:String(t)}$.prototype.href=void 0,$.prototype.rel=void 0,$.prototype.$reserved=void 0,$.prototype.$objectType=void 0,$.prototype.$unknownFields=void 0;var F=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.TenantAwareModel"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(r=r||new e,t.hasOwnProperty("tenantId")&&null!==t.tenantId&&void 0!==t.tenantId&&r.setTenantId(t.tenantId),t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!n))for(var o in r.$unknownFields=C({},t.$unknownFields),t)Object.keys(r).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o]);return r}}],(r=[{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?C(C({},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 r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new f("tenantId","undefined or null");if(!u.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 f("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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&_(t.prototype,r),n&&_(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();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})(e)}function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function B(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){x(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t,r){return(t=U(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,U(n.key),n)}}function U(e){var t=function(e,t){if("object"!==R(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===R(t)?t:String(t)}function I(e,t){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=V(e);if(t){var o=V(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return N(this,r)}}function N(e,t){if(t&&("object"===R(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)}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}F.prototype.tenantId=void 0,F.prototype.$reserved=void 0,F.prototype.$objectType=void 0,F.prototype.$unknownFields=void 0;var z=function(e){!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&&I(e,t)}(s,e);var t,r,n,o=L(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="common.v1.response.ExternalizableAbstractModel",e.$reserved={$fqObjectType:"common.v1.r0.a3.response.ExternalizableAbstractModel"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r,n,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,F.constructFromObject(e,t,!0),e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(i=[],r=e.links,o=0;o<r.length;o++)n=$.constructFromObject(r[o],void 0),i.push(n);t.setLinks(i)}if(!a)for(var u in t.$unknownFields=B({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return 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 B(!1===e?B(B(B({},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()}:{}):B(B({},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()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(null==e){if(!u.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 f("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===i.update&&!u.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 f("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 f(t,"no such property exists"):new f("links","undefined or null")}}])&&D(t.prototype,r),n&&D(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(F);function H(e){return(H="function"==typeof Symbol&&"symbol"==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)}function q(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q(Object(r),!0).forEach((function(t){W(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function W(e,t,r){return(t=G(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G(n.key),n)}}function G(e){var t=function(e,t){if("object"!==H(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==H(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===H(t)?t:String(t)}function K(e,t){return(K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Z(e);if(t){var o=Z(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Q(this,r)}}function Q(e,t){if(t&&("object"===H(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)}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}z.prototype.extId=void 0,z.prototype.links=void 0;var ee=function(e){!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&&K(e,t)}(s,e);var t,r,n,o=X(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="aiops.v4.clusterMetrics.ClusterMetrics",e.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.ClusterMetrics"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r,n,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,z.constructFromObject(e,t,!0),e.hasOwnProperty("clusterName")&&null!==e.clusterName&&void 0!==e.clusterName&&t.setClusterName(e.clusterName),e.hasOwnProperty("externalIP")&&null!==e.externalIP&&void 0!==e.externalIP&&t.setExternalIP(m.constructFromObject(e.externalIP)),e.hasOwnProperty("cvmIPs")&&null!==e.cvmIPs&&void 0!==e.cvmIPs){for(i=[],r=e.cvmIPs,o=0;o<r.length;o++)n=m.constructFromObject(r[o],void 0),i.push(n);t.setCvmIPs(i)}if(e.hasOwnProperty("totalMemorySizeBytes")&&null!==e.totalMemorySizeBytes&&void 0!==e.totalMemorySizeBytes&&t.setTotalMemorySizeBytes(e.totalMemorySizeBytes),e.hasOwnProperty("currentMemoryUsageSizeBytes")&&null!==e.currentMemoryUsageSizeBytes&&void 0!==e.currentMemoryUsageSizeBytes&&t.setCurrentMemoryUsageSizeBytes(e.currentMemoryUsageSizeBytes),e.hasOwnProperty("provisionedMemoryUsageBytes")&&null!==e.provisionedMemoryUsageBytes&&void 0!==e.provisionedMemoryUsageBytes&&t.setProvisionedMemoryUsageBytes(e.provisionedMemoryUsageBytes),e.hasOwnProperty("maxVmMemorySizeBytes")&&null!==e.maxVmMemorySizeBytes&&void 0!==e.maxVmMemorySizeBytes&&t.setMaxVmMemorySizeBytes(e.maxVmMemorySizeBytes),e.hasOwnProperty("availableMemorySizeBytes")&&null!==e.availableMemorySizeBytes&&void 0!==e.availableMemorySizeBytes&&t.setAvailableMemorySizeBytes(e.availableMemorySizeBytes),e.hasOwnProperty("largestPoweredOffVMMemory")&&null!==e.largestPoweredOffVMMemory&&void 0!==e.largestPoweredOffVMMemory&&t.setLargestPoweredOffVMMemory(e.largestPoweredOffVMMemory),e.hasOwnProperty("totalVCpuCount")&&null!==e.totalVCpuCount&&void 0!==e.totalVCpuCount&&t.setTotalVCpuCount(e.totalVCpuCount),e.hasOwnProperty("currentUsedVCpuCount")&&null!==e.currentUsedVCpuCount&&void 0!==e.currentUsedVCpuCount&&t.setCurrentUsedVCpuCount(e.currentUsedVCpuCount),e.hasOwnProperty("provisionedVCpuCount")&&null!==e.provisionedVCpuCount&&void 0!==e.provisionedVCpuCount&&t.setProvisionedVCpuCount(e.provisionedVCpuCount),e.hasOwnProperty("maxVmVCpuSize")&&null!==e.maxVmVCpuSize&&void 0!==e.maxVmVCpuSize&&t.setMaxVmVCpuSize(e.maxVmVCpuSize),e.hasOwnProperty("availableVCpuCount")&&null!==e.availableVCpuCount&&void 0!==e.availableVCpuCount&&t.setAvailableVCpuCount(e.availableVCpuCount),e.hasOwnProperty("largestPoweredOffVMVCpu")&&null!==e.largestPoweredOffVMVCpu&&void 0!==e.largestPoweredOffVMVCpu&&t.setLargestPoweredOffVMVCpu(e.largestPoweredOffVMVCpu),e.hasOwnProperty("totalCpuHz")&&null!==e.totalCpuHz&&void 0!==e.totalCpuHz&&t.setTotalCpuHz(e.totalCpuHz),e.hasOwnProperty("currentUsedCpuHz")&&null!==e.currentUsedCpuHz&&void 0!==e.currentUsedCpuHz&&t.setCurrentUsedCpuHz(e.currentUsedCpuHz),e.hasOwnProperty("provisionedCpuHz")&&null!==e.provisionedCpuHz&&void 0!==e.provisionedCpuHz&&t.setProvisionedCpuHz(e.provisionedCpuHz),e.hasOwnProperty("totalStorageCapacityRawBytes")&&null!==e.totalStorageCapacityRawBytes&&void 0!==e.totalStorageCapacityRawBytes&&t.setTotalStorageCapacityRawBytes(e.totalStorageCapacityRawBytes),e.hasOwnProperty("totalStorageCapacityLogicalBytes")&&null!==e.totalStorageCapacityLogicalBytes&&void 0!==e.totalStorageCapacityLogicalBytes&&t.setTotalStorageCapacityLogicalBytes(e.totalStorageCapacityLogicalBytes),e.hasOwnProperty("totalStorageCapacityLogicalWithSavingsBytes")&&null!==e.totalStorageCapacityLogicalWithSavingsBytes&&void 0!==e.totalStorageCapacityLogicalWithSavingsBytes&&t.setTotalStorageCapacityLogicalWithSavingsBytes(e.totalStorageCapacityLogicalWithSavingsBytes),e.hasOwnProperty("totalStorageUsageBytes")&&null!==e.totalStorageUsageBytes&&void 0!==e.totalStorageUsageBytes&&t.setTotalStorageUsageBytes(e.totalStorageUsageBytes),e.hasOwnProperty("totalStorageAvailableBytes")&&null!==e.totalStorageAvailableBytes&&void 0!==e.totalStorageAvailableBytes&&t.setTotalStorageAvailableBytes(e.totalStorageAvailableBytes),e.hasOwnProperty("totalStorageAvailableLogicalBytes")&&null!==e.totalStorageAvailableLogicalBytes&&void 0!==e.totalStorageAvailableLogicalBytes&&t.setTotalStorageAvailableLogicalBytes(e.totalStorageAvailableLogicalBytes),!a)for(var u in t.$unknownFields=J({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return 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 J(!1===e?J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J({},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()}:{}):J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J(J({},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((function(e){return 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((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("totalStorageAvailableLogicalBytes","undefined or null"):new f("totalStorageAvailableBytes","undefined or null"):new f("totalStorageUsageBytes","undefined or null"):new f("totalStorageCapacityLogicalWithSavingsBytes","undefined or null"):new f("totalStorageCapacityLogicalBytes","undefined or null"):new f("totalStorageCapacityRawBytes","undefined or null"):new f("provisionedCpuHz","undefined or null"):new f("currentUsedCpuHz","undefined or null"):new f("totalCpuHz","undefined or null"):new f("largestPoweredOffVMVCpu","undefined or null"):new f("availableVCpuCount","undefined or null"):new f("maxVmVCpuSize","undefined or null"):new f("provisionedVCpuCount","undefined or null"):new f("currentUsedVCpuCount","undefined or null"):new f("totalVCpuCount","undefined or null"):new f("largestPoweredOffVMMemory","undefined or null"):new f("availableMemorySizeBytes","undefined or null"):new f("maxVmMemorySizeBytes","undefined or null"):new f("provisionedMemoryUsageBytes","undefined or null"):new f("currentMemoryUsageSizeBytes","undefined or null"):new f("totalMemorySizeBytes","undefined or null"):new f("cvmIPs","undefined or null"):new f("externalIP","undefined or null"):new f("clusterName","undefined or null")}}])&&Y(t.prototype,r),n&&Y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(z);ee.prototype.clusterName=void 0,ee.prototype.externalIP=void 0,ee.prototype.cvmIPs=void 0,ee.prototype.totalMemorySizeBytes=void 0,ee.prototype.currentMemoryUsageSizeBytes=void 0,ee.prototype.provisionedMemoryUsageBytes=void 0,ee.prototype.maxVmMemorySizeBytes=void 0,ee.prototype.availableMemorySizeBytes=void 0,ee.prototype.largestPoweredOffVMMemory=void 0,ee.prototype.totalVCpuCount=void 0,ee.prototype.currentUsedVCpuCount=void 0,ee.prototype.provisionedVCpuCount=void 0,ee.prototype.maxVmVCpuSize=void 0,ee.prototype.availableVCpuCount=void 0,ee.prototype.largestPoweredOffVMVCpu=void 0,ee.prototype.totalCpuHz=void 0,ee.prototype.currentUsedCpuHz=void 0,ee.prototype.provisionedCpuHz=void 0,ee.prototype.totalStorageCapacityRawBytes=void 0,ee.prototype.totalStorageCapacityLogicalBytes=void 0,ee.prototype.totalStorageCapacityLogicalWithSavingsBytes=void 0,ee.prototype.totalStorageUsageBytes=void 0,ee.prototype.totalStorageAvailableBytes=void 0,ee.prototype.totalStorageAvailableLogicalBytes=void 0;var te={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(te).find((function(t){return te[t]===e}));return null==t?te.$UNKNOWN:te[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case te.$UNKNOWN:case te.$REDACTED:case te.INFO:case te.WARNING:case te.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(te);var re=te;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})(e)}function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ie(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(r),!0).forEach((function(t){se(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function se(e,t,r){return(t=ue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ae(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ue(n.key),n)}}function ue(e){var t=function(e,t){if("object"!==ne(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ne(t)?t:String(t)}var le=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="aiops.v4.error.AppMessage",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.error.AppMessage"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(r=r||new e,t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&r.setMessage(t.message),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&r.setSeverity(re.constructFromObject(t.severity)),t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&r.setCode(t.code),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&r.setLocale(t.locale),t.hasOwnProperty("errorGroup")&&null!==t.errorGroup&&void 0!==t.errorGroup&&r.setErrorGroup(t.errorGroup),t.hasOwnProperty("argumentsMap")&&null!==t.argumentsMap&&void 0!==t.argumentsMap&&r.setArgumentsMap(t.argumentsMap),t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!n))for(var o in r.$unknownFields=ie({},t.$unknownFields),t)Object.keys(r).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o]);return r}}],(r=[{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 ie(ie(ie(ie(ie(ie(ie({},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()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("argumentsMap","undefined or null"):new f("errorGroup","undefined or null"):new f("locale","undefined or null"):new f("code","undefined or null"):new f("severity","undefined or null"):new f("message","undefined or null")}}])&&ae(t.prototype,r),n&&ae(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){he(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function he(e,t,r){return(t=ye(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function de(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ye(n.key),n)}}function ye(e){var t=function(e,t){if("object"!==ce(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ce(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ce(t)?t:String(t)}le.prototype.message=void 0,le.prototype.severity=void 0,le.prototype.code=void 0,le.prototype.locale="en_US",le.prototype.errorGroup=void 0,le.prototype.argumentsMap=void 0,le.prototype.$reserved=void 0,le.prototype.$objectType=void 0,le.prototype.$unknownFields=void 0;var ve=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="aiops.v4.error.SchemaValidationErrorMessage",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.error.SchemaValidationErrorMessage"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(r=r||new e,t.hasOwnProperty("location")&&null!==t.location&&void 0!==t.location&&r.setLocation(t.location),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&r.setMessage(t.message),t.hasOwnProperty("attributePath")&&null!==t.attributePath&&void 0!==t.attributePath&&r.setAttributePath(t.attributePath),t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!n))for(var o in r.$unknownFields=pe({},t.$unknownFields),t)Object.keys(r).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o]);return r}}],(r=[{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 pe(pe(pe(pe({},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 r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("attributePath","undefined or null"):new f("message","undefined or null"):new f("location","undefined or null")}}])&&de(t.prototype,r),n&&de(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ge(e){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function me(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?me(Object(r),!0).forEach((function(t){we(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):me(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function we(e,t,r){return(t=ke(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ke(n.key),n)}}function ke(e){var t=function(e,t){if("object"!==ge(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ge(t)?t:String(t)}ve.prototype.location=void 0,ve.prototype.message=void 0,ve.prototype.attributePath=void 0,ve.prototype.$reserved=void 0,ve.prototype.$objectType=void 0,ve.prototype.$unknownFields=void 0;var je=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="aiops.v4.error.SchemaValidationError",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.error.SchemaValidationError"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&r.setTimestamp(t.timestamp),t.hasOwnProperty("statusCode")&&null!==t.statusCode&&void 0!==t.statusCode&&r.setStatusCode(t.statusCode),t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error&&r.setError(t.error),t.hasOwnProperty("path")&&null!==t.path&&void 0!==t.path&&r.setPath(t.path),t.hasOwnProperty("validationErrorMessages")&&null!==t.validationErrorMessages&&void 0!==t.validationErrorMessages){for(s=[],n=t.validationErrorMessages,i=0;i<n.length;i++)o=ve.constructFromObject(n[i],void 0),s.push(o);r.setValidationErrorMessages(s)}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!a)for(var u in r.$unknownFields=be({},t.$unknownFields),t)Object.keys(r).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(r.$unknownFields[u]=t[u])}return r}}],(r=[{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 be(be(be(be(be(be({},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()}:{}),!1===e?void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map((function(e){return e.toJson(!1)}))}:{}:void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("validationErrorMessages","undefined or null"):new f("path","undefined or null"):new f("error","undefined or null"):new f("statusCode","undefined or null"):new f("timestamp","undefined or null")}}])&&Oe(t.prototype,r),n&&Oe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==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)}function $e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(r),!0).forEach((function(t){Se(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$e(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Se(e,t,r){return(t=Ee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ee(n.key),n)}}function Ee(e){var t=function(e,t){if("object"!==Pe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pe(t)?t:String(t)}je.prototype.timestamp=void 0,je.prototype.statusCode=void 0,je.prototype.error=void 0,je.prototype.path=void 0,je.prototype.validationErrorMessages=void 0,je.prototype.$reserved=void 0,je.prototype.$objectType=void 0,je.prototype.$unknownFields=void 0;var _e=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="aiops.v4.error.ErrorResponse",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.error.ErrorResponse"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n,o,i,s,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("error")&&null!==t.error&&void 0!==t.error)if("EMPTY_LIST"===(a=t.$errorItemDiscriminator))r.setError([]);else if("List<aiops.v4.error.AppMessage>"===a){for(s=[],n=t.error,i=0;i<n.length;i++)o=le.constructFromObject(n[i],void 0),s.push(o);r.setError(s)}else{if("aiops.v4.error.SchemaValidationError"!==a)throw"Unknown data type "+a+" in data";r.setError(je.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!u)for(var l in r.$unknownFields=Te({},t.$unknownFields),t)Object.keys(r).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(r.$unknownFields[l]=t[l])}return r}}],(r=[{key:"getError",value:function(){return this.error}},{key:"setError",value:function(e){this.error=e}},{key:"get$errorItemDiscriminator",value:function(){return this.getError()===[]?"EMPTY_LIST":Array.isArray(this.getError())&&this.getError()[0]instanceof le?"List<aiops.v4.error.AppMessage>":this.getError()instanceof je?"aiops.v4.error.SchemaValidationError":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Te(Te({},!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((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getError()}:{}: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((function(e){return void 0!==e.toJson?e.toJson():e})):this.getError()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("error","undefined or null")}}])&&Ce(t.prototype,r),n&&Ce(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fe(Object(r),!0).forEach((function(t){Ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ae(e,t,r){return(t=xe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Be(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xe(n.key),n)}}function xe(e){var t=function(e,t){if("object"!==Me(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Me(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Me(t)?t:String(t)}_e.prototype.error=void 0,_e.prototype.$reserved=void 0,_e.prototype.$objectType=void 0,_e.prototype.$unknownFields=void 0;var De=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.Flag",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.Flag"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(r=r||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&r.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value&&r.setValue(t.value),t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!n))for(var o in r.$unknownFields=Re({},t.$unknownFields),t)Object.keys(r).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o]);return r}}],(r=[{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 Re(Re(Re({},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 r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("value","undefined or null"):new f("name","undefined or null")}}])&&Be(t.prototype,r),n&&Be(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==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)}function Ie(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(r),!0).forEach((function(t){Ne(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ne(e,t,r){return(t=ze(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ve(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ze(n.key),n)}}function ze(e){var t=function(e,t){if("object"!==Ue(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ue(t)?t:String(t)}De.prototype.name=void 0,De.prototype.value=!1,De.prototype.$reserved=void 0,De.prototype.$objectType=void 0,De.prototype.$unknownFields=void 0;var He=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.KVPair",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.KVPair"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&r.setName(t.name),t.hasOwnProperty("value")&&null!==t.value&&void 0!==t.value)if("EMPTY_LIST"===(n=t.$valueItemDiscriminator))r.setValue([]);else if("String"===n)r.setValue(t.value);else{if("Integer"!==n)throw"Unknown data type "+n+" in data";r.setValue(t.value)}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=Le({},t.$unknownFields),t)Object.keys(r).includes(i)||"$"===i[0]&&i.endsWith("ItemDiscriminator")||(r.$unknownFields[i]=t[i])}return r}}],(r=[{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$valueItemDiscriminator",value:function(){return"string"==typeof this.getValue()?"String":"number"==typeof this.getValue()?"Integer":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Le(Le(Le({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),!1===e?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((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getValue()}:{}: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((function(e){return void 0!==e.toJson?e.toJson():e})):this.getValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("value","undefined or null"):new f("name","undefined or null")}}])&&Ve(t.prototype,r),n&&Ve(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qe(e){return(qe="function"==typeof Symbol&&"symbol"==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)}function Je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function We(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(r),!0).forEach((function(t){Ye(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ye(e,t,r){return(t=Ke(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ge(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ke(n.key),n)}}function Ke(e){var t=function(e,t){if("object"!==qe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qe(t)?t:String(t)}He.prototype.name=void 0,He.prototype.value=void 0,He.prototype.$reserved=void 0,He.prototype.$objectType=void 0,He.prototype.$unknownFields=void 0;var Xe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.config.Message",this.$reserved={$fqObjectType:"common.v1.r0.a3.config.Message"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(r=r||new e,t.hasOwnProperty("code")&&null!==t.code&&void 0!==t.code&&r.setCode(t.code),t.hasOwnProperty("message")&&null!==t.message&&void 0!==t.message&&r.setMessage(t.message),t.hasOwnProperty("locale")&&null!==t.locale&&void 0!==t.locale&&r.setLocale(t.locale),t.hasOwnProperty("severity")&&null!==t.severity&&void 0!==t.severity&&r.setSeverity(re.constructFromObject(t.severity)),t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!n))for(var o in r.$unknownFields=We({},t.$unknownFields),t)Object.keys(r).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o]);return r}}],(r=[{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 We(We(We(We(We({},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 r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("severity","undefined or null"):new f("locale","undefined or null"):new f("message","undefined or null"):new f("code","undefined or null")}}])&&Ge(t.prototype,r),n&&Ge(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Qe(e){return(Qe="function"==typeof Symbol&&"symbol"==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)}function Ze(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function et(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(r),!0).forEach((function(t){tt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tt(e,t,r){return(t=nt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nt(n.key),n)}}function nt(e){var t=function(e,t){if("object"!==Qe(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Qe(t)?t:String(t)}Xe.prototype.code=void 0,Xe.prototype.message=void 0,Xe.prototype.locale="en_US",Xe.prototype.severity=void 0,Xe.prototype.$reserved=void 0,Xe.prototype.$objectType=void 0,Xe.prototype.$unknownFields=void 0;var ot=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fqObjectType:"common.v1.r0.a3.response.ApiResponseMetadata"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n,o,i,s,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("flags")&&null!==t.flags&&void 0!==t.flags){for(s=[],n=t.flags,i=0;i<n.length;i++)o=De.constructFromObject(n[i],void 0),s.push(o);r.setFlags(s)}if(t.hasOwnProperty("links")&&null!==t.links&&void 0!==t.links){for(s=[],n=t.links,i=0;i<n.length;i++)o=$.constructFromObject(n[i],void 0),s.push(o);r.setLinks(s)}if(t.hasOwnProperty("totalAvailableResults")&&null!==t.totalAvailableResults&&void 0!==t.totalAvailableResults&&r.setTotalAvailableResults(t.totalAvailableResults),t.hasOwnProperty("messages")&&null!==t.messages&&void 0!==t.messages){for(s=[],n=t.messages,i=0;i<n.length;i++)o=Xe.constructFromObject(n[i],void 0),s.push(o);r.setMessages(s)}if(t.hasOwnProperty("extraInfo")&&null!==t.extraInfo&&void 0!==t.extraInfo){for(s=[],n=t.extraInfo,i=0;i<n.length;i++)o=He.constructFromObject(n[i],void 0),s.push(o);r.setExtraInfo(s)}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!a)for(var u in r.$unknownFields=et({},t.$unknownFields),t)Object.keys(r).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(r.$unknownFields[u]=t[u])}return r}}],(r=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return et(!1===e?et(et(et(et(et({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{}),void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson(!1)}))}:{}):et(et(et(et(et({},void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map((function(e){return e.toJson()}))}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson()}))}:{}),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()}))}:{}),void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map((function(e){return e.toJson()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"flags"!==t||void 0!==this.flags&&null!==this.flags?"links"!==t||void 0!==this.links&&null!==this.links?"totalAvailableResults"!==t||void 0!==this.totalAvailableResults&&null!==this.totalAvailableResults?"messages"!==t||void 0!==this.messages&&null!==this.messages?"extraInfo"!==t||void 0!==this.extraInfo&&null!==this.extraInfo?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("extraInfo","undefined or null"):new f("messages","undefined or null"):new f("totalAvailableResults","undefined or null"):new f("links","undefined or null"):new f("flags","undefined or null")}}])&&rt(t.prototype,r),n&&rt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();ot.prototype.flags=void 0,ot.prototype.links=void 0,ot.prototype.totalAvailableResults=void 0,ot.prototype.messages=void 0,ot.prototype.extraInfo=void 0,ot.prototype.$reserved=void 0,ot.prototype.$objectType=void 0,ot.prototype.$unknownFields=void 0;var it=r(0);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})(e)}function at(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?at(Object(r),!0).forEach((function(t){lt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):at(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lt(e,t,r){return(t=ft(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ct(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ft(n.key),n)}}function ft(e){var t=function(e,t){if("object"!==st(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==st(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===st(t)?t:String(t)}function pt(e,t){return(pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ht(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=yt(e);if(t){var o=yt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return dt(this,r)}}function dt(e,t){if(t&&("object"===st(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)}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vt=function(e){!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&&pt(e,t)}(s,e);var t,r,n,o=ht(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="aiops.v4.clusterMetrics.ClusterListApiResponse",e.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.ClusterListApiResponse"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r,n,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&it.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<aiops.v4.clusterMetrics.ClusterMetrics>"===a){for(i=[],r=e.data,o=0;o<r.length;o++)n=ee.constructFromObject(r[o],void 0),i.push(n);t.setData(i)}else{if("aiops.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData(_e.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var l in t.$unknownFields=ut({},e.$unknownFields),e)Object.keys(t).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(t.$unknownFields[l]=e[l])}return 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$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof ee?"List<aiops.v4.clusterMetrics.ClusterMetrics>":this.getData()instanceof _e?"aiops.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ut(!1===e?ut(ut({},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((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):ut(ut({},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((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&ct(t.prototype,r),n&&ct(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(it.a);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})(e)}function mt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(r),!0).forEach((function(t){wt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function wt(e,t,r){return(t=kt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kt(n.key),n)}}function kt(e){var t=function(e,t){if("object"!==gt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==gt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gt(t)?t:String(t)}function jt(e,t){return(jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Pt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Tt(e);if(t){var o=Tt(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return $t(this,r)}}function $t(e,t){if(t&&("object"===gt(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)}function Tt(e){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}vt.prototype.metadata=void 0,vt.prototype.data=void 0,vt.prototype.$reserved=void 0,vt.prototype.$objectType=void 0,vt.prototype.$unknownFields=void 0;var St=function(e){!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&&jt(e,t)}(s,e);var t,r,n,o=Pt(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="aiops.v4.clusterMetrics.ClusterApiResponse",e.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.ClusterApiResponse"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&it.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(r=e.$dataItemDiscriminator))t.setData([]);else if("aiops.v4.clusterMetrics.ClusterMetrics"===r)t.setData(ee.constructFromObject(e.data,void 0));else{if("aiops.v4.error.ErrorResponse"!==r)throw"Unknown data type "+r+" in data";t.setData(_e.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)for(var o in t.$unknownFields=bt({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return 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$dataItemDiscriminator",value:function(){return this.getData()instanceof ee?"aiops.v4.clusterMetrics.ClusterMetrics":this.getData()instanceof _e?"aiops.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return bt(!1===e?bt(bt({},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((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):bt(bt({},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((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Ot(t.prototype,r),n&&Ot(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(it.a);function Ct(e){return(Ct="function"==typeof Symbol&&"symbol"==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)}function Et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(r),!0).forEach((function(t){Mt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Mt(e,t,r){return(t=Rt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ft(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Rt(n.key),n)}}function Rt(e){var t=function(e,t){if("object"!==Ct(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ct(t)?t:String(t)}St.prototype.metadata=void 0,St.prototype.data=void 0,St.prototype.$reserved=void 0,St.prototype.$objectType=void 0,St.prototype.$unknownFields=void 0;var At=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.apiClient=t||n.a.instance}var t,r,o;return t=e,o=[{key:"ApiClient",get:function(){return n.a}}],(r=[{key:"getClusterResourceById",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=null;if(null==e)throw new Error("Missing the required parameter 'extId' when calling getClusterResourceById");var n={extId:e},o={},i=_t(_t({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],l=["application/json"],c=St;return this.apiClient.callApi("/api/aiops/v4.0.a1/cluster-metrics/{extId}","GET",n,o,i,s,r,a,u,l,c)}},{key:"listResourcesForAllClusters",value:function(e){var t=(arguments.length<=1?0:arguments.length-1)>0?arguments.length<=1?void 0:arguments[1]:{},r=null,n={},o=_t(_t(_t(_t({},(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=_t(_t({},t.hasOwnProperty("If-Match")&&null!==t["If-Match"]?{"If-Match":t["If-Match"].toString()}:{}),t.hasOwnProperty("If-None-Match")&&null!==t["If-None-Match"]?{"If-None-Match":t["If-None-Match"].toString()}:{}),s={},a=["basicAuthScheme"],u=[],l=["application/json"],c=vt;return this.apiClient.callApi("/api/aiops/v4.0.a1/cluster-metrics","GET",n,o,i,s,r,a,u,l,c)}}])&&Ft(t.prototype,r),o&&Ft(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Bt={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",NUTANIX:"NUTANIX",VCENTER:"VCENTER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Bt).find((function(t){return Bt[t]===e}));return null==t?Bt.$UNKNOWN:Bt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Bt.$UNKNOWN:case Bt.$REDACTED:case Bt.NUTANIX:case Bt.VCENTER:return;default:throw new Error("Invalid : must be ClusterEntity.{ $UNKNOWN|$REDACTED|NUTANIX|VCENTER }")}}};Object.freeze(Bt);var xt=Bt;function Dt(e){return(Dt="function"==typeof Symbol&&"symbol"==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)}function Ut(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function It(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ut(Object(r),!0).forEach((function(t){Lt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ut(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Lt(e,t,r){return(t=Vt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Vt(n.key),n)}}function Vt(e){var t=function(e,t){if("object"!==Dt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Dt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Dt(t)?t:String(t)}var zt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="aiops.v4.blackout.BlackoutPeriod",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.blackout.BlackoutPeriod"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n,o,i,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t){if(r=r||new e,t.hasOwnProperty("uuid")&&null!==t.uuid&&void 0!==t.uuid&&r.setUuid(t.uuid),t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&r.setName(t.name),t.hasOwnProperty("startTime")&&null!==t.startTime&&void 0!==t.startTime&&r.setStartTime(t.startTime),t.hasOwnProperty("endTime")&&null!==t.endTime&&void 0!==t.endTime&&r.setEndTime(t.endTime),t.hasOwnProperty("clusterType")&&null!==t.clusterType&&void 0!==t.clusterType&&r.setClusterType(xt.constructFromObject(t.clusterType)),t.hasOwnProperty("clusterUuid")&&null!==t.clusterUuid&&void 0!==t.clusterUuid&&r.setClusterUuid(t.clusterUuid),t.hasOwnProperty("resources")&&null!==t.resources&&void 0!==t.resources){for(i=[],n=t.resources,o=0;o<n.length;o++)i.push(n[o]);r.setResources(i)}if(t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!s)for(var a in r.$unknownFields=It({},t.$unknownFields),t)Object.keys(r).includes(a)||"$"===a[0]&&a.endsWith("ItemDiscriminator")||(r.$unknownFields[a]=t[a])}return r}}],(r=[{key:"getUuid",value:function(){return this.uuid}},{key:"setUuid",value:function(e){this.uuid=e}},{key:"getName",value:function(){return this.name}},{key:"setName",value:function(e){this.name=e}},{key:"getStartTime",value:function(){return this.startTime}},{key:"setStartTime",value:function(e){this.startTime=e}},{key:"getEndTime",value:function(){return this.endTime}},{key:"setEndTime",value:function(e){this.endTime=e}},{key:"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:"getResources",value:function(){return this.resources}},{key:"setResources",value:function(e){this.resources=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return It(It(It(It(It(It(It(It({},void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{}),void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getStartTime()&&null!==this.getStartTime()?{startTime:this.getStartTime()}:{}),void 0!==this.getEndTime()&&null!==this.getEndTime()?{endTime:this.getEndTime()}:{}),void 0!==this.getClusterType()&&null!==this.getClusterType()?{clusterType:this.getClusterType()}:{}),void 0!==this.getClusterUuid()&&null!==this.getClusterUuid()?{clusterUuid:this.getClusterUuid()}:{}),void 0!==this.getResources()&&null!==this.getResources()?{resources:this.getResources()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new f("uuid","undefined or null");if(!u.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 f("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}$/")}if("name"===t){if(void 0===this.name||null===this.name)return new f("name","undefined or null");if(!u.validateMaxLength(this.name,256))return new f("name","does not satisfy required maxLength constraint: 256");if(!u.validateMinLength(this.name,1))return new f("name","does not satisfy required minLength constraint: 1")}return"startTime"!==t||void 0!==this.startTime&&null!==this.startTime?"endTime"!==t||void 0!==this.endTime&&null!==this.endTime?"clusterType"!==t||void 0!==this.clusterType&&null!==this.clusterType?"clusterUuid"!==t||void 0!==this.clusterUuid&&null!==this.clusterUuid?"resources"!==t||void 0!==this.resources&&null!==this.resources?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("resources","undefined or null"):new f("clusterUuid","undefined or null"):new f("clusterType","undefined or null"):new f("endTime","undefined or null"):new f("startTime","undefined or null")}}])&&Nt(t.prototype,r),n&&Nt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();zt.prototype.uuid=void 0,zt.prototype.name=void 0,zt.prototype.startTime=void 0,zt.prototype.endTime=void 0,zt.prototype.clusterType=void 0,zt.prototype.clusterUuid=void 0,zt.prototype.resources=void 0,zt.prototype.$reserved=void 0,zt.prototype.$objectType=void 0,zt.prototype.$unknownFields=void 0;var Ht={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CREATE:"CREATE",UPDATE:"UPDATE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Ht).find((function(t){return Ht[t]===e}));return null==t?Ht.$UNKNOWN:Ht[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ht.$UNKNOWN:case Ht.$REDACTED:case Ht.CREATE:case Ht.UPDATE:return;default:throw new Error("Invalid : must be Operation.{ $UNKNOWN|$REDACTED|CREATE|UPDATE }")}}};Object.freeze(Ht);var qt=Ht;function Jt(e){return(Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(r),!0).forEach((function(t){Gt(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gt(e,t,r){return(t=Xt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Xt(n.key),n)}}function Xt(e){var t=function(e,t){if("object"!==Jt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Jt(t)?t:String(t)}function Qt(e,t){return(Qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=tr(e);if(t){var o=tr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return er(this,r)}}function er(e,t){if(t&&("object"===Jt(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)}function tr(e){return(tr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rr=function(e){!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&&Qt(e,t)}(s,e);var t,r,n,o=Zt(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="aiops.v4.blackout.BlackoutOperation",e.$reserved={$fqObjectType:"aiops.v4.r0.a1.blackout.BlackoutOperation"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,z.constructFromObject(e,t,!0),e.hasOwnProperty("operation")&&null!==e.operation&&void 0!==e.operation&&t.setOperation(qt.constructFromObject(e.operation)),e.hasOwnProperty("blackoutPeriod")&&null!==e.blackoutPeriod&&void 0!==e.blackoutPeriod&&t.setBlackoutPeriod(zt.constructFromObject(e.blackoutPeriod)),!r))for(var n in t.$unknownFields=Yt({},e.$unknownFields),e)Object.keys(t).includes(n)||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n]);return t}}],(r=[{key:"getOperation",value:function(){return this.operation}},{key:"setOperation",value:function(e){this.operation=e}},{key:"getBlackoutPeriod",value:function(){return this.blackoutPeriod}},{key:"setBlackoutPeriod",value:function(e){this.blackoutPeriod=e}},{key:"toJson",value:function(e){return Yt(!1===e?Yt(Yt(Yt(Yt(Yt({},void 0!==this.getOperation()&&null!==this.getOperation()?{operation:this.getOperation()}:{}),void 0!==this.getBlackoutPeriod()&&null!==this.getBlackoutPeriod()?{blackoutPeriod:this.getBlackoutPeriod().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()}:{}):Yt(Yt(Yt(Yt({},void 0!==this.getOperation()&&null!==this.getOperation()?{operation:this.getOperation()}:{}),void 0!==this.getBlackoutPeriod()&&null!==this.getBlackoutPeriod()?{blackoutPeriod:this.getBlackoutPeriod().toJson()}:{}),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()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"operation"!==t||void 0!==this.operation&&null!==this.operation?"blackoutPeriod"!==t||void 0!==this.blackoutPeriod&&null!==this.blackoutPeriod?new f(t,"no such property exists"):new f("blackoutPeriod","undefined or null"):new f("operation","undefined or null")}}])&&Kt(t.prototype,r),n&&Kt(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(z);function nr(e){return(nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function or(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?or(Object(r),!0).forEach((function(t){sr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):or(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sr(e,t,r){return(t=ur(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ar(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ur(n.key),n)}}function ur(e){var t=function(e,t){if("object"!==nr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==nr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nr(t)?t:String(t)}function lr(e,t){return(lr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=pr(e);if(t){var o=pr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return fr(this,r)}}function fr(e,t){if(t&&("object"===nr(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)}function pr(e){return(pr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}rr.prototype.operation=void 0,rr.prototype.blackoutPeriod=void 0;var hr=function(e){!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&&lr(e,t)}(s,e);var t,r,n,o=cr(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="aiops.v4.blackout.BlackoutOperationsApiResponse",e.$reserved={$fqObjectType:"aiops.v4.r0.a1.blackout.BlackoutOperationsApiResponse"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r,n,o,i,a,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&it.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(a=e.$dataItemDiscriminator))t.setData([]);else if("List<aiops.v4.blackout.BlackoutOperation>"===a){for(i=[],r=e.data,o=0;o<r.length;o++)n=rr.constructFromObject(r[o],void 0),i.push(n);t.setData(i)}else{if("aiops.v4.error.ErrorResponse"!==a)throw"Unknown data type "+a+" in data";t.setData(_e.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!u)for(var l in t.$unknownFields=ir({},e.$unknownFields),e)Object.keys(t).includes(l)||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(t.$unknownFields[l]=e[l])}return 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$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&this.getData()[0]instanceof rr?"List<aiops.v4.blackout.BlackoutOperation>":this.getData()instanceof _e?"aiops.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ir(!1===e?ir(ir({},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((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):ir(ir({},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((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&ar(t.prototype,r),n&&ar(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(it.a);function dr(e){return(dr="function"==typeof Symbol&&"symbol"==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)}function yr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yr(Object(r),!0).forEach((function(t){gr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gr(e,t,r){return(t=br(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,br(n.key),n)}}function br(e){var t=function(e,t){if("object"!==dr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==dr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===dr(t)?t:String(t)}function wr(e,t){return(wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Or(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=jr(e);if(t){var o=jr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return kr(this,r)}}function kr(e,t){if(t&&("object"===dr(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)}function jr(e){return(jr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}hr.prototype.metadata=void 0,hr.prototype.data=void 0,hr.prototype.$reserved=void 0,hr.prototype.$objectType=void 0,hr.prototype.$unknownFields=void 0;var Pr=function(e){!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&&wr(e,t)}(s,e);var t,r,n,o=Or(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="aiops.v4.blackout.BulkBlackoutPeriodDeleteApiResponse",e.$reserved={$fqObjectType:"aiops.v4.r0.a1.blackout.BulkBlackoutPeriodDeleteApiResponse"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&it.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(r=e.$dataItemDiscriminator))t.setData([]);else if("aiops.v4.error.ErrorResponse"===r)t.setData(_e.constructFromObject(e.data,void 0));else{if("EMPTY"!==r)throw"Unknown data type "+r+" in data";t.setData(null)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)for(var o in t.$unknownFields=vr({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return 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$dataItemDiscriminator",value:function(){return this.getData()instanceof _e?"aiops.v4.error.ErrorResponse":null===this.getData()?"EMPTY":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return vr(!1===e?vr(vr({},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((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):vr(vr({},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((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&mr(t.prototype,r),n&&mr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(it.a);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})(e)}function Tr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(r),!0).forEach((function(t){Cr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Cr(e,t,r){return(t=_r(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Er(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_r(n.key),n)}}function _r(e){var t=function(e,t){if("object"!==$r(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==$r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$r(t)?t:String(t)}function Mr(e,t){return(Mr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ar(e);if(t){var o=Ar(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Rr(this,r)}}function Rr(e,t){if(t&&("object"===$r(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)}function Ar(e){return(Ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Pr.prototype.metadata=void 0,Pr.prototype.data=void 0,Pr.prototype.$reserved=void 0,Pr.prototype.$objectType=void 0,Pr.prototype.$unknownFields=void 0;var Br=function(e){!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&&Mr(e,t)}(s,e);var t,r,n,o=Fr(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="aiops.v4.blackout.CalculateRunway",e.$reserved={$fqObjectType:"aiops.v4.r0.a1.blackout.CalculateRunway"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,z.constructFromObject(e,t,!0),e.hasOwnProperty("clusterUuid")&&null!==e.clusterUuid&&void 0!==e.clusterUuid&&t.setClusterUuid(e.clusterUuid),e.hasOwnProperty("clusterType")&&null!==e.clusterType&&void 0!==e.clusterType&&t.setClusterType(xt.constructFromObject(e.clusterType)),!r))for(var n in t.$unknownFields=Sr({},e.$unknownFields),e)Object.keys(t).includes(n)||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n]);return t}}],(r=[{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:"toJson",value:function(e){return Sr(!1===e?Sr(Sr(Sr(Sr(Sr({},void 0!==this.getClusterUuid()&&null!==this.getClusterUuid()?{clusterUuid:this.getClusterUuid()}:{}),void 0!==this.getClusterType()&&null!==this.getClusterType()?{clusterType:this.getClusterType()}:{}),void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{}),void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map((function(e){return e.toJson(!1)}))}:{}),void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{}):Sr(Sr(Sr(Sr({},void 0!==this.getClusterUuid()&&null!==this.getClusterUuid()?{clusterUuid:this.getClusterUuid()}:{}),void 0!==this.getClusterType()&&null!==this.getClusterType()?{clusterType:this.getClusterType()}:{}),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()}))}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return"clusterUuid"!==t||void 0!==this.clusterUuid&&null!==this.clusterUuid?"clusterType"!==t||void 0!==this.clusterType&&null!==this.clusterType?new f(t,"no such property exists"):new f("clusterType","undefined or null"):new f("clusterUuid","undefined or null")}}])&&Er(t.prototype,r),n&&Er(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(z);function xr(e){return(xr="function"==typeof Symbol&&"symbol"==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)}function Dr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ur(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Dr(Object(r),!0).forEach((function(t){Ir(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ir(e,t,r){return(t=Nr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nr(n.key),n)}}function Nr(e){var t=function(e,t){if("object"!==xr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==xr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===xr(t)?t:String(t)}Br.prototype.clusterUuid=void 0,Br.prototype.clusterType=void 0;var Vr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fqObjectType:"prism.v4.r0.a1.config.TaskReference"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(r=r||new e,t.hasOwnProperty("extId")&&null!==t.extId&&void 0!==t.extId&&r.setExtId(t.extId),t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!n))for(var o in r.$unknownFields=Ur({},t.$unknownFields),t)Object.keys(r).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o]);return r}}],(r=[{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 Ur(Ur({},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 r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new f("extId","undefined or null");if(!u.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 f("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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null")}}])&&Lr(t.prototype,r),n&&Lr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();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})(e)}function Hr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function qr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(r),!0).forEach((function(t){Jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Jr(e,t,r){return(t=Yr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Yr(n.key),n)}}function Yr(e){var t=function(e,t){if("object"!==zr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==zr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zr(t)?t:String(t)}function Gr(e,t){return(Gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Kr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Qr(e);if(t){var o=Qr(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Xr(this,r)}}function Xr(e,t){if(t&&("object"===zr(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)}function Qr(e){return(Qr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Vr.prototype.extId=void 0,Vr.prototype.$reserved=void 0,Vr.prototype.$objectType=void 0,Vr.prototype.$unknownFields=void 0;var Zr=function(e){!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&&Gr(e,t)}(s,e);var t,r,n,o=Kr(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="aiops.v4.blackout.CalculateRunwayResponse",e.$reserved={$fqObjectType:"aiops.v4.r0.a1.blackout.CalculateRunwayResponse"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&it.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(r=e.$dataItemDiscriminator))t.setData([]);else if("prism.v4.config.TaskReference"===r)t.setData(Vr.constructFromObject(e.data,void 0));else{if("aiops.v4.error.ErrorResponse"!==r)throw"Unknown data type "+r+" in data";t.setData(_e.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)for(var o in t.$unknownFields=qr({},e.$unknownFields),e)Object.keys(t).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(t.$unknownFields[o]=e[o])}return 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$dataItemDiscriminator",value:function(){return this.getData()instanceof Vr?"prism.v4.config.TaskReference":this.getData()instanceof _e?"aiops.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return qr(!1===e?qr(qr({},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((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):qr(qr({},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((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&Wr(t.prototype,r),n&&Wr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(it.a);function en(e){return(en="function"==typeof Symbol&&"symbol"==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)}function tn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function rn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(r),!0).forEach((function(t){nn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function nn(e,t,r){return(t=sn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function on(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sn(n.key),n)}}function sn(e){var t=function(e,t){if("object"!==en(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==en(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===en(t)?t:String(t)}function an(e,t){return(an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=cn(e);if(t){var o=cn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ln(this,r)}}function ln(e,t){if(t&&("object"===en(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)}function cn(e){return(cn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Zr.prototype.metadata=void 0,Zr.prototype.data=void 0,Zr.prototype.$reserved=void 0,Zr.prototype.$objectType=void 0,Zr.prototype.$unknownFields=void 0;var fn=function(e){!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&&an(e,t)}(s,e);var t,r,n,o=un(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="aiops.v4.blackout.TasksListResponse",e.$reserved={$fqObjectType:"aiops.v4.r0.a1.blackout.TasksListResponse"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r,n,o,i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(t=t||new s,e.hasOwnProperty("metadata")&&it.a.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(ot.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if("EMPTY_LIST"===(i=e.$dataItemDiscriminator))t.setData([]);else if("List<String>"===i){for(o=[],r=e.data,n=0;n<r.length;n++)o.push(r[n]);t.setData(o)}else{if("aiops.v4.error.ErrorResponse"!==i)throw"Unknown data type "+i+" in data";t.setData(_e.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!a)for(var u in t.$unknownFields=rn({},e.$unknownFields),e)Object.keys(t).includes(u)||"$"===u[0]&&u.endsWith("ItemDiscriminator")||(t.$unknownFields[u]=e[u])}return 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$dataItemDiscriminator",value:function(){return this.getData()===[]?"EMPTY_LIST":Array.isArray(this.getData())&&"string"==typeof this.getData()[0]?"List<String>":this.getData()instanceof _e?"aiops.v4.error.ErrorResponse":void 0}},{key:"get$Reserved",value:function(){return 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(!1===e?rn(rn({},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((function(e){return void 0!==e.toJson?e.toJson(!1):e})):this.getData()}:{}):rn(rn({},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((function(e){return void 0!==e.toJson?e.toJson():e})):this.getData()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("data","undefined or null"):new f("metadata","undefined or null")}}])&&on(t.prototype,r),n&&on(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(it.a);function pn(e){return(pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function dn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(r),!0).forEach((function(t){yn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yn(e,t,r){return(t=gn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gn(n.key),n)}}function gn(e){var t=function(e,t){if("object"!==pn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==pn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pn(t)?t:String(t)}fn.prototype.metadata=void 0,fn.prototype.data=void 0,fn.prototype.$reserved=void 0,fn.prototype.$objectType=void 0,fn.prototype.$unknownFields=void 0;var mn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="aiops.v4.clusterMetrics.Cluster",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.Cluster"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(r=r||new e,t.hasOwnProperty("name")&&null!==t.name&&void 0!==t.name&&r.setName(t.name),t.hasOwnProperty("uuid")&&null!==t.uuid&&void 0!==t.uuid&&r.setUuid(t.uuid),t.hasOwnProperty("externalIpAddress")&&null!==t.externalIpAddress&&void 0!==t.externalIpAddress&&r.setExternalIpAddress(t.externalIpAddress),t.hasOwnProperty("memoryCapacityBytes")&&null!==t.memoryCapacityBytes&&void 0!==t.memoryCapacityBytes&&r.setMemoryCapacityBytes(t.memoryCapacityBytes),t.hasOwnProperty("numCpus")&&null!==t.numCpus&&void 0!==t.numCpus&&r.setNumCpus(t.numCpus),t.hasOwnProperty("hypervisorMemoryUsagePpm")&&null!==t.hypervisorMemoryUsagePpm&&void 0!==t.hypervisorMemoryUsagePpm&&r.setHypervisorMemoryUsagePpm(t.hypervisorMemoryUsagePpm),t.hasOwnProperty("hypervisorCpuUsagePpm")&&null!==t.hypervisorCpuUsagePpm&&void 0!==t.hypervisorCpuUsagePpm&&r.setHypervisorCpuUsagePpm(t.hypervisorCpuUsagePpm),t.hasOwnProperty("rf")&&null!==t.rf&&void 0!==t.rf&&r.setRf(t.rf),t.hasOwnProperty("capacityBytes")&&null!==t.capacityBytes&&void 0!==t.capacityBytes&&r.setCapacityBytes(t.capacityBytes),t.hasOwnProperty("freeBytes")&&null!==t.freeBytes&&void 0!==t.freeBytes&&r.setFreeBytes(t.freeBytes),t.hasOwnProperty("usageBytes")&&null!==t.usageBytes&&void 0!==t.usageBytes&&r.setUsageBytes(t.usageBytes),t.hasOwnProperty("savedBytes")&&null!==t.savedBytes&&void 0!==t.savedBytes&&r.setSavedBytes(t.savedBytes),t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!n))for(var o in r.$unknownFields=dn({},t.$unknownFields),t)Object.keys(r).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o]);return r}}],(r=[{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 dn(dn(dn(dn(dn(dn(dn(dn(dn(dn(dn(dn(dn({},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 r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new f("name","undefined or null");if("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new f("uuid","undefined or null");if(!u.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 f("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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("savedBytes","undefined or null"):new f("usageBytes","undefined or null"):new f("freeBytes","undefined or null"):new f("capacityBytes","undefined or null"):new f("rf","undefined or null"):new f("hypervisorCpuUsagePpm","undefined or null"):new f("hypervisorMemoryUsagePpm","undefined or null"):new f("numCpus","undefined or null"):new f("memoryCapacityBytes","undefined or null"):new f("externalIpAddress","undefined or null")}}])&&vn(t.prototype,r),n&&vn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function On(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(r),!0).forEach((function(t){kn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kn(e,t,r){return(t=Pn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Pn(n.key),n)}}function Pn(e){var t=function(e,t){if("object"!==bn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==bn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===bn(t)?t:String(t)}mn.prototype.name=void 0,mn.prototype.uuid=void 0,mn.prototype.externalIpAddress=void 0,mn.prototype.memoryCapacityBytes=void 0,mn.prototype.numCpus=void 0,mn.prototype.hypervisorMemoryUsagePpm=void 0,mn.prototype.hypervisorCpuUsagePpm=void 0,mn.prototype.rf=void 0,mn.prototype.capacityBytes=void 0,mn.prototype.freeBytes=void 0,mn.prototype.usageBytes=void 0,mn.prototype.savedBytes=void 0,mn.prototype.$reserved=void 0,mn.prototype.$objectType=void 0,mn.prototype.$unknownFields=void 0;var $n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="aiops.v4.clusterMetrics.Node",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.Node"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(r=r||new e,t.hasOwnProperty("nodeUuid")&&null!==t.nodeUuid&&void 0!==t.nodeUuid&&r.setNodeUuid(t.nodeUuid),t.hasOwnProperty("haMemoryReservedBytes")&&null!==t.haMemoryReservedBytes&&void 0!==t.haMemoryReservedBytes&&r.setHaMemoryReservedBytes(t.haMemoryReservedBytes),t.hasOwnProperty("numCpuThreads")&&null!==t.numCpuThreads&&void 0!==t.numCpuThreads&&r.setNumCpuThreads(t.numCpuThreads),t.hasOwnProperty("capacityHz")&&null!==t.capacityHz&&void 0!==t.capacityHz&&r.setCapacityHz(t.capacityHz),t.hasOwnProperty("memorySizeBytes")&&null!==t.memorySizeBytes&&void 0!==t.memorySizeBytes&&r.setMemorySizeBytes(t.memorySizeBytes),t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!n))for(var o in r.$unknownFields=On({},t.$unknownFields),t)Object.keys(r).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o]);return r}}],(r=[{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 On(On(On(On(On(On({},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 r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("nodeUuid"===t){if(void 0===this.nodeUuid||null===this.nodeUuid)return new f("nodeUuid","undefined or null");if(!u.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 f("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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("memorySizeBytes","undefined or null"):new f("capacityHz","undefined or null"):new f("numCpuThreads","undefined or null"):new f("haMemoryReservedBytes","undefined or null")}}])&&jn(t.prototype,r),n&&jn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Tn(e){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Cn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(r),!0).forEach((function(t){En(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function En(e,t,r){return(t=Mn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Mn(n.key),n)}}function Mn(e){var t=function(e,t){if("object"!==Tn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Tn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Tn(t)?t:String(t)}function Fn(e,t){return(Fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Bn(e);if(t){var o=Bn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return An(this,r)}}function An(e,t){if(t&&("object"===Tn(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)}function Bn(e){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}$n.prototype.nodeUuid=void 0,$n.prototype.haMemoryReservedBytes=void 0,$n.prototype.numCpuThreads=void 0,$n.prototype.capacityHz=void 0,$n.prototype.memorySizeBytes=void 0,$n.prototype.$reserved=void 0,$n.prototype.$objectType=void 0,$n.prototype.$unknownFields=void 0;var xn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fn(e,t)}(s,e);var t,r,n,o=Rn(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="aiops.v4.clusterMetrics.NodeProjection",e.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.NodeProjection"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,$n.constructFromObject(e,t,!0),!r))for(var n in t.$unknownFields=Cn({},e.$unknownFields),e)Object.keys(t).includes(n)||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n]);return t}}],(r=[{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return new f(t,"no such property exists")}}])&&_n(t.prototype,r),n&&_n(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}($n);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})(e)}function Un(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function In(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(r),!0).forEach((function(t){Ln(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Un(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ln(e,t,r){return(t=Vn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Vn(n.key),n)}}function Vn(e){var t=function(e,t){if("object"!==Dn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Dn(t)?t:String(t)}var zn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$objectType="aiops.v4.clusterMetrics.Vm",this.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.Vm"},this.$unknownFields={}}var t,r,n;return t=e,n=[{key:"constructFromObject",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t&&(r=r||new e,t.hasOwnProperty("vmUuid")&&null!==t.vmUuid&&void 0!==t.vmUuid&&r.setVmUuid(t.vmUuid),t.hasOwnProperty("vmMemory")&&null!==t.vmMemory&&void 0!==t.vmMemory&&r.setVmMemory(t.vmMemory),t.hasOwnProperty("numVcpus")&&null!==t.numVcpus&&void 0!==t.numVcpus&&r.setNumVcpus(t.numVcpus),t.hasOwnProperty("powerState")&&null!==t.powerState&&void 0!==t.powerState&&r.setPowerState(t.powerState),t.hasOwnProperty("node")&&null!==t.node&&void 0!==t.node&&r.setNode(t.node),t.hasOwnProperty("$reserved")&&(r.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(r.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(r.$unknownFields=t.$unknownFields),!n))for(var o in r.$unknownFields=In({},t.$unknownFields),t)Object.keys(r).includes(o)||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(r.$unknownFields[o]=t[o]);return r}}],(r=[{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 In(In(In(In(In(In({},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 r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){if("vmUuid"===t){if(void 0===this.vmUuid||null===this.vmUuid)return new f("vmUuid","undefined or null");if(!u.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 f("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 f(t,"no such property exists"):new f("$unknownFields","undefined or null"):new f("$objectType","undefined or null"):new f("$reserved","undefined or null"):new f("node","undefined or null"):new f("powerState","undefined or null"):new f("numVcpus","undefined or null"):new f("vmMemory","undefined or null")}}])&&Nn(t.prototype,r),n&&Nn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Hn(e){return(Hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(r),!0).forEach((function(t){Wn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wn(e,t,r){return(t=Gn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yn(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gn(n.key),n)}}function Gn(e){var t=function(e,t){if("object"!==Hn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Hn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Hn(t)?t:String(t)}function Kn(e,t){return(Kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Zn(e);if(t){var o=Zn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Qn(this,r)}}function Qn(e,t){if(t&&("object"===Hn(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)}function Zn(e){return(Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}zn.prototype.vmUuid=void 0,zn.prototype.vmMemory=void 0,zn.prototype.numVcpus=void 0,zn.prototype.powerState=void 0,zn.prototype.node=void 0,zn.prototype.$reserved=void 0,zn.prototype.$objectType=void 0,zn.prototype.$unknownFields=void 0;var eo=function(e){!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&&Kn(e,t)}(s,e);var t,r,n,o=Xn(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="aiops.v4.clusterMetrics.VmProjection",e.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.VmProjection"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,zn.constructFromObject(e,t,!0),!r))for(var n in t.$unknownFields=Jn({},e.$unknownFields),e)Object.keys(t).includes(n)||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n]);return t}}],(r=[{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):e()}))}},{key:"validateProperty",value:function(e,t){return new f(t,"no such property exists")}}])&&Yn(t.prototype,r),n&&Yn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(zn);function to(e){return(to="function"==typeof Symbol&&"symbol"==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)}function ro(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function no(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ro(Object(r),!0).forEach((function(t){oo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ro(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oo(e,t,r){return(t=so(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function io(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,so(n.key),n)}}function so(e){var t=function(e,t){if("object"!==to(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==to(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===to(t)?t:String(t)}function ao(e,t){return(ao=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function uo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=co(e);if(t){var o=co(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return lo(this,r)}}function lo(e,t){if(t&&("object"===to(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)}function co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ao(e,t)}(s,e);var t,r,n,o=uo(s);function s(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(e=o.call(this)).$objectType="aiops.v4.clusterMetrics.ClusterProjection",e.$reserved={$fqObjectType:"aiops.v4.r0.a1.clusterMetrics.ClusterProjection"},e.$unknownFields={},e}return t=s,n=[{key:"constructFromObject",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e&&(t=t||new s,mn.constructFromObject(e,t,!0),e.hasOwnProperty("vmProjection")&&null!==e.vmProjection&&void 0!==e.vmProjection&&t.setVmProjection(eo.constructFromObject(e.vmProjection)),e.hasOwnProperty("nodeProjection")&&null!==e.nodeProjection&&void 0!==e.nodeProjection&&t.setNodeProjection(xn.constructFromObject(e.nodeProjection)),!r))for(var n in t.$unknownFields=no({},e.$unknownFields),e)Object.keys(t).includes(n)||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n]);return 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 no(no(no(no(no(no(no(no(no(no(no(no(no(!1===e?no(no({},void 0!==this.getVmProjection()&&null!==this.getVmProjection()?{vmProjection:this.getVmProjection().toJson(!1)}:{}),void 0!==this.getNodeProjection()&&null!==this.getNodeProjection()?{nodeProjection:this.getNodeProjection().toJson(!1)}:{}):no(no({},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()})}},{key:"validate",value:function(e,t){var r=this,n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof i?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];var o=[],s=null;return n.forEach((function(t){(s=r.validateProperty(t,e))&&o.push(s)})),new Promise((function(e,t){0!==o.length?t(s):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 f(t,"no such property exists"):new f("nodeProjection","undefined or null"):new f("vmProjection","undefined or null")}}])&&io(t.prototype,r),n&&io(t,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(mn);fo.prototype.vmProjection=void 0,fo.prototype.nodeProjection=void 0;t.default={ApiClient:n.a,ClusterApi:At,BlackoutOperation:rr,BlackoutOperationsApiResponse:hr,BlackoutPeriod:zt,BulkBlackoutPeriodDeleteApiResponse:Pr,CalculateRunway:Br,CalculateRunwayResponse:Zr,ClusterEntity:xt,Operation:qt,TasksListResponse:fn,Cluster:mn,ClusterApiResponse:St,ClusterListApiResponse:vt,ClusterMetrics:ee,ClusterProjection:fo,Node:$n,NodeProjection:xn,Vm:zn,VmProjection:eo,AppMessage:le,ErrorResponse:_e,SchemaValidationError:je,SchemaValidationErrorMessage:ve,Flag:De,IPv4Address:m,KVPair:He,Message:Xe,MessageSeverity:re,TenantAwareModel:F,ApiLink:$,ApiResponseMetadata:ot,ExternalizableAbstractModel:z,TaskReference:Vr}},function(e,t,r){"use strict";var n,o=new Uint8Array(16);function i(){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(o)}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)},u=[],l=0;l<256;++l)u.push((l+256).toString(16).substr(1));var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[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||i)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return c(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={19:(e,t,n)=>{"use strict";var r=n(897);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(this[o]=n[o]);this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},98:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return e&&"object"===t(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},340:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=s,s.default=s,s.stable=p,s.stableStringify=p;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,p){var f;if(c+=1,"object"===t(e)&&null!==e){for(f=0;f<a.length;f++)if(a[f]===e)return void u(r,e,o,s);if(void 0!==p.depthLimit&&c>p.depthLimit)return void u(n,e,o,s);if(void 0!==p.edgesLimit&&i+1>p.edgesLimit)return void u(n,e,o,s);if(a.push(e),Array.isArray(e))for(f=0;f<e.length;f++)l(e[f],f,f,a,e,c,p);else{var y=Object.keys(e);for(f=0;f<y.length;f++){var d=y[f];l(e[d],d,f,a,e,c,p)}}a.pop()}}function c(e,t){return e<t?-1:e>t?1:0}function p(e,t,n,r){void 0===r&&(r=a());var s,u=f(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 f(e,i,a,s,l,p,y){var d;if(p+=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&&p>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++)f(e[d],d,d,s,e,p,y);else{var v={},h=Object.keys(e).sort(c);for(d=0;d<h.length;d++){var b=h[d];f(e[b],b,d,s,e,p,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)}}},388:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},540:e=>{function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,r){if(r)return r(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){var o=t.status;if(o>=500)return!0;if((o>=400||o<200)&&-1===n.indexOf(o))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){var n;n=this._retries?this._retryDelays[this._retries-1]:0;var r=this;return setTimeout(function(){return r._retry()},n)}var o=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),o(e,t)}function n(e,t,n,r){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);var o=t.length,i=e-o;if(0!==i){if(i<0)throw new Error("Cannot have more delays than retries");for(var a=t[o-1],s=0;s<i+1;s++)t.push(a)}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=r,this}e.exports=function(e){var r=e.Request;return r.prototype.oldRetry=r.prototype.retry,r.prototype.retry=n,r.prototype.callback=t,e}},545:()=>{},548:()=>{},585:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o;"undefined"!=typeof window?o=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),o=void 0):o=self;var i=n(960),a=n(340),s=n(695),u=n(388),l=n(19),c=n(619);function p(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var f=t=e.exports;t.Request=g,f.getXHR=function(){if(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=f("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}f.serializeObject=d,f.parseString=h,f.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},f.serialize={"application/x-www-form-urlencoded":d,"application/json":a},f.parse={"application/x-www-form-urlencoded":h,"application/json":JSON.parse},l(m.prototype),m.prototype._parseBody=function(e){var t=f.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&b(this.type)&&(t=f.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},m.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},f.Response=m,i(g.prototype),s(g.prototype),g.prototype.type=function(e){return this.set("Content-Type",f.types[e]||e),this},g.prototype.accept=function(e){return this.set("Accept",f.types[e]||e),this},g.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===r(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")})},g.prototype.query=function(e){return"string"!=typeof e&&(e=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||p,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},g.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=f.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",r.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",r.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||f.serialize[o?o.split(";")[0]:""];!i&&b(o)&&(i=f.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)},f.agent=function(){return new c},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){c.prototype[e.toLowerCase()]=function(t,n){var r=new f.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),c.prototype.del=c.prototype.delete,f.get=function(e,t,n){var r=f("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.head=function(e,t,n){var r=f("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},f.options=function(e,t,n){var r=f("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.del=w,f.delete=w,f.patch=function(e,t,n){var r=f("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.post=function(e,t,n){var r=f("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},f.put=function(e,t,n){var r=f("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},597:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},619:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this._defaults.push({fn:e,args:n}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(n){var r;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(r=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})},e.exports=n},695:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(388);function i(e){if(e)return function(e){for(var t in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,t)&&(e[t]=i.prototype[t]);return e}(e)}e.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(e){return this._parser=e,this},i.prototype.responseType=function(e){return this._responseType=e,this},i.prototype.serialize=function(e){return this._serializer=e,this},i.prototype.timeout=function(e){if(!e||"object"!==r(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},i.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var a=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];i.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&a.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var r=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){r.on("abort",function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}}),r.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},i.prototype.catch=function(e){return this.then(void 0,e)},i.prototype.use=function(e){return e(this),this},i.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},i.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},i.prototype.get=function(e){return this._header[e.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(e,t){if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},i.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},i.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(o(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(e,t[r]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(r("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},i.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},i.prototype.redirects=function(e){return this._maxRedirects=e,this},i.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(e){var t=o(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&o(this._data))for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this._data[r]=e[r]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},i.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},i.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error("".concat(e+t,"ms exceeded"));r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.timedoutError=r,this.abort(),this.callback(r)}},i.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},784:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o="win32"===process.platform,i=n(818);function a(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];o&&"."!==o&&(".."===o?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(o))}return n}function s(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var r=t;r>=0&&!e[r];r--);return 0===n&&r===t?e:n>r?[]:e.slice(n,r+1)}var u=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,c={};function p(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 f(e){var t=u.exec(e),n=t[1]||"",r=!!n&&":"!==n[1];return{device:n,isUnc:r,isAbsolute:r||!!t[2],tail:t[3]}}function 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=f(o),u=s.device,l=s.isUnc,c=s.isAbsolute,p=s.tail;if((!u||!e||u.toLowerCase()===e.toLowerCase())&&(e||(e=u),n||(t=p+"\\"+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=f(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 f(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,p=0;p<u;p++)if(i[p]!==a[p]){l=p;break}if(0==l)return t;var f=[];for(p=l;p<i.length;p++)f.push("..");return(f=f.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=p(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=p(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},c.extname=function(e){return p(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=p(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},799:()=>{},818:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),u=r[n];n<i;u=r[++n])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 p(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 p(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=" "+p(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(f(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(f(e,t,n,r,o,!0))}),i}(e,n,r,s,a):a.map(function(t){return f(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 p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(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}},897:(e,t)=>{"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},960:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o<r.length;o++)if((n=r[o])===t||n.fn===t){r.splice(o,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var o=(n=n.slice(0)).length;r<o;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},965:()=>{}},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:()=>eg});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 p(){if(!u&&!(u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(c)}const f=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var 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&&f.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},h=function(e,t,n){var r=(e=e||{}).random||(e.rng||p)();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,F(r.key),r)}}function F(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 D=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 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 x(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){_(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 _(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 G=new WeakSet,L=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,G),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 x(x(x({},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(!D.validateMaxLength(this.name,128))return new U("name","does not satisfy required maxLength constraint: 128");if(!D.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=x({},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 z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function W(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 J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?J(Object(n),!0).forEach(function(t){q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(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"!=z(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==z(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")}L.prototype.name=void 0,L.prototype.value=!1,L.prototype.$reserved=void 0,L.prototype.$objectType=void 0,L.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 W(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)?W(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"===z(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,pe).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,pe).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(!D.validateMaxLength(this.name,128))return new U("name","does not satisfy required maxLength constraint: 128");if(!D.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 pe(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 fe={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(fe).find(function(t){return fe[t]===e});return null==t?fe.$UNKNOWN:fe[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case fe.$UNKNOWN:case fe.$REDACTED:case fe.INFO:case fe.WARNING:case fe.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(fe);const ye=fe;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 Fe(e){return Fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fe(e)}function De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?De(Object(n),!0).forEach(function(t){Ae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(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"!=Fe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Fe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fe(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,Ne=new WeakSet,xe=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Ne),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}return t=e,n=[{key:"getFlags",value:function(){return this.flags}},{key:"setFlags",value:function(e){this.flags=e}},{key:"getLinks",value:function(){return this.links}},{key:"setLinks",value:function(e){this.links=e}},{key:"getTotalAvailableResults",value:function(){return this.totalAvailableResults}},{key:"setTotalAvailableResults",value:function(e){this.totalAvailableResults=e}},{key:"getMessages",value:function(){return this.messages}},{key:"setMessages",value:function(e){this.messages=e}},{key:"getExtraInfo",value:function(){return this.extraInfo}},{key:"setExtraInfo",value:function(e){this.extraInfo=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return 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(!D.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(!D.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(!D.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(!D.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=L.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,n){if(""===n)return e;var r=i[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""}))}if("function"==typeof o){var a=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=ze(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 Ge(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){Le(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 Le(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 ze(e){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function We(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 Je(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)?Je(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 Je(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"!=ze(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ze(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")}xe.prototype.flags=void 0,xe.prototype.links=void 0,xe.prototype.totalAvailableResults=void 0,xe.prototype.messages=void 0,xe.prototype.extraInfo=void 0,xe.prototype.$reserved=void 0,xe.prototype.$objectType=void 0,xe.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,this.withCredentials=!1,"undefined"==typeof self&&(this.agent=new(t().agent)),this.requestAgent=null,this.debug=!1,Ze(nt,this,null),this.username=null,this.password=null,Ze(rt,this,!0),this.downloadDestination=null,this.loggerFile=null}return r=e,o=[{key:"verifySsl",get:function(){return 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=We(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,p,f){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.2"}))),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,pt).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,$t),"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,ft).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,kt).call(y,r,e,i,f,t,n)})})}u&&v.send(u)}"Blob"==typeof f?v.responseType("blob"):"String"===f&&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:p.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,[]).withCredentials(y.withCredentials).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,f):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,$t),"Response Headers :",u.headers);var l="";if(u.headers.hasOwnProperty("content-type")&&(l=u.headers["content-type"]),T.includes(l))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 p=y.downloadDestination.getWriter();try{u.on("data",function(e){p.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"),p.close();var e=Qe(ut,y,ht).call(y,u,f);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,Pt).call(y,u,b,h,o,a,f)}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.withCredentials(y.withCredentials),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,Pt).call(w,e,$,g,o,a,f)})}else Qe(ut,y,kt).call(y,u,e,i,f,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"===ze(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 pt(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 ft(e){var t;try{t=n(799)}catch(e){}return!!(t&&t.ReadStream&&e instanceof t.ReadStream)||"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof 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,ft).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 L;n.name="hasError",n.value=!1;var r=[n],o=new xe;return o.flags=r,i.metadata=o,i}var i;return(null==(i=e.body)||"object"===ze(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=We(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"===ze(e)&&"key"in e&&"value"in e&&"symbol"===ze(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=(new Date).toISOString()+" "+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(e){if("object"!==ze(e))return e;var t="\n";return e&&Object.keys(e).forEach(function(n){t+=n+"=["+e[n]+"]\n"}),"\n"===t?e:t}function kt(e,t,n,r,o,i){try{var a=Qe(ut,this,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,$t),"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(Ge(Ge({},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 Pt(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 p=new L;p.name="hasError",p.value=!1;var f=[p],y=new xe;y.flags=f,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 Tt(e){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(e)}function St(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 Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach(function(t){Ft(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ft(e,t,n){return(t=Rt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rt(r.key),r)}}function Rt(e){var t=function(e){if("object"!=Tt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Tt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Tt(t)?t:t+""}function At(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 It=new WeakSet,Ut=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,It),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 Et(Et(Et(Et(Et(Et(Et({},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:At(It,this,Mt).call(this,this.getArgumentsMap(),!1)}:{}:void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:At(It,this,Mt).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=Et({},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&&Dt(t.prototype,n),r&&Dt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Mt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,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 St(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)?St(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"===Tt(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 xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach(function(t){Vt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vt(e,t,n){return(t=Gt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gt(r.key),r)}}function Gt(e){var t=function(e){if("object"!=Nt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nt(t)?t:t+""}Ut.prototype.message=void 0,Ut.prototype.severity=void 0,Ut.prototype.code=void 0,Ut.prototype.locale="en_US",Ut.prototype.errorGroup=void 0,Ut.prototype.argumentsMap=void 0,Ut.prototype.$reserved=void 0,Ut.prototype.$objectType=void 0,Ut.prototype.$unknownFields=void 0;var Lt=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,Lt),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 _t(_t(_t(_t({},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=_t({},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&&Bt(t.prototype,n),r&&Bt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wt(e){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(e)}function Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ht(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach(function(t){qt(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qt(e,t,n){return(t=Xt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xt(r.key),r)}}function Xt(e){var t=function(e){if("object"!=Wt(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wt(t)?t:t+""}function Yt(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 Zt=new WeakSet,Qt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Zt),this.$objectType="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 Ht(Ht(Ht(Ht(Ht(Ht({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Yt(Zt,this,en).call(this,this.getTimestamp(),!1)}:{}),void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{}),void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{}),void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{}),void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map(function(e){return e.toJson(!1)})}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof 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=Ht({},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&&Kt(t.prototype,n),r&&Kt(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function en(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function tn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nn(e){return nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nn(e)}function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(n),!0).forEach(function(t){an(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function an(e,t,n){return(t=un(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,un(r.key),r)}}function un(e){var t=function(e){if("object"!=nn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=nn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==nn(t)?t:t+""}function ln(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Qt.prototype.timestamp=void 0,Qt.prototype.statusCode=void 0,Qt.prototype.error=void 0,Qt.prototype.path=void 0,Qt.prototype.validationErrorMessages=void 0,Qt.prototype.$reserved=void 0,Qt.prototype.$objectType=void 0,Qt.prototype.$unknownFields=void 0;var cn=new WeakSet,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,cn),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 on(on({},!1===e?void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):ln(cn,this,fn).call(this,this.getError(),!1)}:{}:void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map(function(e){return void 0!==e.toJson?e.toJson():e}):ln(cn,this,fn).call(this,this.getError())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof 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:nn(n[0]),o=0;o<n.length;o++){if("aiops.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";r=Ut.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:nn(t.error)))throw"Unknown datatype "+a+" in data";s.setError(Qt.constructFromObject(t.error,void 0))}if(t.hasOwnProperty("$reserved")&&(s.$reserved=t.$reserved),t.hasOwnProperty("$objectType")&&(s.$objectType=t.$objectType),t.hasOwnProperty("$unknownFields")&&(s.$unknownFields=t.$unknownFields),!u)for(var l in s.$unknownFields=on({},t.$unknownFields),t)Object.keys(s).includes(l)||Object.keys(s).includes(this.snakeToCamel(l))||"$"===l[0]&&l.endsWith("ItemDiscriminator")||(s.$unknownFields[l]=t[l])}return s}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&sn(t.prototype,n),r&&sn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function fn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,function(e){var n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}(n,r)||function(e,t){if(e){if("string"==typeof e)return tn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tn(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===nn(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function yn(e){return yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yn(e)}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?dn(Object(n),!0).forEach(function(t){hn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hn(e,t,n){return(t=mn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mn(r.key),r)}}function mn(e){var t=function(e){if("object"!=yn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yn(t)?t:t+""}pn.prototype.error=void 0,pn.prototype.$reserved=void 0,pn.prototype.$objectType=void 0,pn.prototype.$unknownFields=void 0;var gn=new WeakSet,wn=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,gn),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 vn(vn({},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(!D.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=vn({},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&&bn(t.prototype,n),r&&bn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function On(e){return On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},On(e)}function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach(function(t){kn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kn(e,t,n){return(t=Tn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tn(r.key),r)}}function Tn(e){var t=function(e){if("object"!=On(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=On(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==On(t)?t:t+""}wn.prototype.boolList=void 0,wn.prototype.$reserved=void 0,wn.prototype.$objectType=void 0,wn.prototype.$unknownFields=void 0;var Sn=new WeakSet,Cn=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,Sn),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 $n($n({},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=$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&&Pn(t.prototype,n),r&&Pn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function En(e){return En="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},En(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 Dn(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){Rn(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 Rn(e,t,n){return(t=In(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function An(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,In(r.key),r)}}function In(e){var t=function(e){if("object"!=En(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=En(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==En(t)?t:t+""}Cn.prototype.boolValue=void 0,Cn.prototype.$reserved=void 0,Cn.prototype.$objectType=void 0,Cn.prototype.$unknownFields=void 0;var Un=new WeakSet,Mn=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,Un),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 Dn(Dn({},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(!D.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=Dn({},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&&An(t.prototype,n),r&&An(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 xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach(function(t){Vn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vn(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 Bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gn(r.key),r)}}function Gn(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+""}Mn.prototype.doubleList=void 0,Mn.prototype.$reserved=void 0,Mn.prototype.$objectType=void 0,Mn.prototype.$unknownFields=void 0;var Ln=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,Ln),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 _n(_n({},void 0!==this.getDoubleValue()&&null!==this.getDoubleValue()?{doubleValue:this.getDoubleValue()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof 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=_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&&Bn(t.prototype,n),r&&Bn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Wn(e){return Wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wn(e)}function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),!0).forEach(function(t){qn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qn(e,t,n){return(t=Xn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xn(r.key),r)}}function Xn(e){var t=function(e){if("object"!=Wn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wn(t)?t:t+""}zn.prototype.doubleValue=void 0,zn.prototype.$reserved=void 0,zn.prototype.$objectType=void 0,zn.prototype.$unknownFields=void 0;var Yn=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,Yn),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 Hn(Hn({},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(!D.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=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&&Kn(t.prototype,n),r&&Kn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Qn(e){return Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qn(e)}function er(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?er(Object(n),!0).forEach(function(t){nr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nr(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 rr(e,t){for(var n=0;n<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"!=Qn(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qn(t)?t:t+""}Zn.prototype.intList=void 0,Zn.prototype.$reserved=void 0,Zn.prototype.$objectType=void 0,Zn.prototype.$unknownFields=void 0;var ir=new WeakSet,ar=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,ir),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 tr(tr({},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=tr({},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&&rr(t.prototype,n),r&&rr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function sr(e){return sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(e)}function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(n),!0).forEach(function(t){cr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cr(e,t,n){return(t=fr(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,fr(r.key),r)}}function fr(e){var t=function(e){if("object"!=sr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sr(t)?t:t+""}ar.prototype.intValue=void 0,ar.prototype.$reserved=void 0,ar.prototype.$objectType=void 0,ar.prototype.$unknownFields=void 0;var yr=new WeakSet,dr=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,yr),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 lr(lr({},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(!D.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=lr({},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 vr(e){return vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vr(e)}function hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hr(Object(n),!0).forEach(function(t){mr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mr(e,t,n){return(t=wr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wr(r.key),r)}}function wr(e){var t=function(e){if("object"!=vr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=vr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==vr(t)?t:t+""}dr.prototype.strList=void 0,dr.prototype.$reserved=void 0,dr.prototype.$objectType=void 0,dr.prototype.$unknownFields=void 0;var Or=new WeakSet,jr=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,Or),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 br(br({},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=br({},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&&gr(t.prototype,n),r&&gr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function $r(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 kr(e){return kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kr(e)}function Pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(n),!0).forEach(function(t){Sr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sr(e,t,n){return(t=Er(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Er(r.key),r)}}function Er(e){var t=function(e){if("object"!=kr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kr(t)?t:t+""}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")}jr.prototype.strValue=void 0,jr.prototype.$reserved=void 0,jr.prototype.$objectType=void 0,jr.prototype.$unknownFields=void 0;var Dr=new WeakSet,Rr=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,Dr),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 Tr(Tr(Tr({},!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(Dr,this,Ar).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(Dr,this,Ar).call(this,this.getValue())}:{}),void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Fr(Dr,this,Ir).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:kr(t.value)){case"aiops.v4.stats.StrVal":r.setValue(jr.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.BoolVal":r.setValue(Cn.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.IntVal":r.setValue(ar.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(dr.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.BoolList":r.setValue(wn.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.IntList":r.setValue(Zn.constructFromObject(t.value,void 0));break;case"aiops.v4.stats.DoubleList":r.setValue(Mn.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=Tr({},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&&Cr(t.prototype,n),r&&Cr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ar(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 $r(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)?$r(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"===kr(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 Ir(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}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 Mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(n),!0).forEach(function(t){xr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xr(e,t,n){return(t=Vr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vr(r.key),r)}}function Vr(e){var t=function(e){if("object"!=Ur(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ur(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ur(t)?t:t+""}Rr.prototype.value=void 0,Rr.prototype.timestamp=void 0,Rr.prototype.$reserved=void 0,Rr.prototype.$objectType=void 0,Rr.prototype.$unknownFields=void 0;var Br=new WeakSet,Gr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,Br),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(!D.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=Rr.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&&_r(t.prototype,n),r&&_r(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Lr(e){return Lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lr(e)}function 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 Wr(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){Jr(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 Jr(e,t,n){return(t=qr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qr(r.key),r)}}function qr(e){var t=function(e){if("object"!=Lr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Lr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Lr(t)?t:t+""}Gr.prototype.samplingIntervalSecs=void 0,Gr.prototype.values=void 0,Gr.prototype.$reserved=void 0,Gr.prototype.$objectType=void 0,Gr.prototype.$unknownFields=void 0;var Kr=new WeakSet,Xr=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,Kr),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 Wr(Wr(Wr({},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(!D.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(Gr.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=Wr({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Hr(t.prototype,n),r&&Hr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Yr(e){return Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yr(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 Qr(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){eo(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 eo(e,t,n){return(t=no(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function to(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,no(r.key),r)}}function no(e){var t=function(e){if("object"!=Yr(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yr(t)?t:t+""}Xr.prototype.name=void 0,Xr.prototype.timeSeries=void 0,Xr.prototype.$reserved=void 0,Xr.prototype.$objectType=void 0,Xr.prototype.$unknownFields=void 0;var ro=new WeakSet,oo=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,ro),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?Qr(Qr({},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(!D.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=Qr({},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&&to(t.prototype,n),r&&to(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function io(e){return io="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},io(e)}function ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function so(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ao(Object(n),!0).forEach(function(t){uo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ao(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uo(e,t,n){return(t=co(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,co(r.key),r)}}function co(e){var t=function(e){if("object"!=io(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=io(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==io(t)?t:t+""}function po(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(po=function(){return!!e})()}function fo(e){return fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fo(e)}function yo(e,t){return yo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yo(e,t)}oo.prototype.tenantId=void 0,oo.prototype.$reserved=void 0,oo.prototype.$objectType=void 0,oo.prototype.$unknownFields=void 0;var vo=new WeakSet,ho=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=fo(t),function(e,t){if(t&&("object"==io(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||[],fo(e).constructor):t.apply(e,n))}(this,t),vo),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&&yo(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?so(so(so(so({},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(!D.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&&!D.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(!D.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,oo.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=so({},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&&lo(n.prototype,r),o&&lo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(oo);function bo(e){return bo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bo(e)}function mo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function go(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mo(Object(n),!0).forEach(function(t){wo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wo(e,t,n){return(t=jo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jo(r.key),r)}}function jo(e){var t=function(e){if("object"!=bo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=bo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bo(t)?t:t+""}function $o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($o=function(){return!!e})()}function ko(e){return ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ko(e)}function Po(e,t){return Po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Po(e,t)}ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var To=new WeakSet,So=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=ko(t),function(e,t){if(t&&("object"==bo(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,$o()?Reflect.construct(t,n||[],ko(e).constructor):t.apply(e,n))}(this,t),To),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&&Po(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 go(!1===e?go(go(go(go(go(go(go({},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()}:{}):go(go(go(go({},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(!D.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(!D.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,ho.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=Xr.constructFromObject(n[o],void 0),i.push(r);a.setMetrics(i)}if(!s)for(var u in a.$unknownFields=go({},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&&Oo(n.prototype,r),o&&Oo(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ho);function Co(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 Eo(e){return Eo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eo(e)}function 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 Do(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){Ro(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 Ro(e,t,n){return(t=Io(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ao(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Io(r.key),r)}}function Io(e){var t=function(e){if("object"!=Eo(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Eo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Eo(t)?t:t+""}function Uo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Uo=function(){return!!e})()}function Mo(e){return Mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mo(e)}function No(e,t){return No=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},No(e,t)}function xo(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")}So.prototype.entityType=void 0,So.prototype.source=void 0,So.prototype.parents=void 0,So.prototype.metrics=void 0,ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var _o=new WeakSet,Vo=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=Mo(t),function(e,t){if(t&&("object"==Eo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Uo()?Reflect.construct(t,n||[],Mo(e).constructor):t.apply(e,n))}(this,t),_o),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 Do(Do(Do({},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}):xo(_o,this,Bo).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}):xo(_o,this,Bo).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(xe.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:Eo(n[0]),o=0;o<n.length;o++){if("aiops.v4.stats.Entity"!==a)throw"Unknown list of type "+a+" in data";r=So.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:Eo(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=Do({},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&&Ao(n.prototype,r),o&&Ao(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Bo(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 Co(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)?Co(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"===Eo(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 Go(e){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Go(e)}function Lo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Lo(Object(n),!0).forEach(function(t){Wo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wo(e,t,n){return(t=Ho(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function 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,Ho(r.key),r)}}function Ho(e){var t=function(e){if("object"!=Go(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Go(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Go(t)?t:t+""}Vo.prototype.metadata=void 0,Vo.prototype.data=void 0,Vo.prototype.$reserved=void 0,Vo.prototype.$objectType=void 0,Vo.prototype.$unknownFields=void 0;var qo=new WeakSet,Ko=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(this,qo),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&&Jo(t.prototype,n),r&&Jo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();Ko.prototype.min=void 0,Ko.prototype.max=void 0,Ko.prototype.$reserved=void 0,Ko.prototype.$objectType=void 0,Ko.prototype.$unknownFields=void 0;var Xo={$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(Xo).find(function(t){return Xo[t]===e});return null==t?Xo.$UNKNOWN:Xo[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Xo.$UNKNOWN:case Xo.$REDACTED:case Xo.BOOL:case Xo.INT:case Xo.DOUBLE:case Xo.STRING:case Xo.BOOL_LIST:case Xo.INT_LIST:case Xo.DOUBLE_LIST:case Xo.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(Xo);const Yo=Xo;var Zo={$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(Zo).find(function(t){return Zo[t]===e});return null==t?Zo.$UNKNOWN:Zo[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Zo.$UNKNOWN:case Zo.$REDACTED:case Zo.SUM:case Zo.MIN:case Zo.MAX:case Zo.AVG:case Zo.COUNT:case Zo.LAST:return;default:throw new Error("Invalid : must be DownSamplingOperator.{ $UNKNOWN|$REDACTED|SUM|MIN|MAX|AVG|COUNT|LAST }")}}};Object.freeze(Zo);const Qo=Zo;function ei(e){return ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ei(e)}function ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(n),!0).forEach(function(t){ri(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ri(e,t,n){return(t=ii(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ii(r.key),r)}}function ii(e){var t=function(e){if("object"!=ei(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ei(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ei(t)?t:t+""}var ai=new WeakSet,si=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,ai),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 ni(ni(ni(ni(ni(ni(ni(ni(ni(ni(ni(ni({},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(!D.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(!D.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(!D.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(Yo.constructFromObject(t.valueType)),t.hasOwnProperty("valueRange")&&null!==t.valueRange&&void 0!==t.valueRange&&a.setValueRange(Ko.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(Qo.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=ni({},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&&oi(t.prototype,n),r&&oi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function ui(e){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ui(e)}function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?li(Object(n),!0).forEach(function(t){pi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):li(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pi(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 fi(e,t){for(var n=0;n<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"!=ui(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ui(t)?t:t+""}function di(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(di=function(){return!!e})()}function vi(e){return vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vi(e)}function hi(e,t){return hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hi(e,t)}si.prototype.isAttribute=void 0,si.prototype.isAttributePersistedAsTimeSeries=void 0,si.prototype.name=void 0,si.prototype.displayName=void 0,si.prototype.valueType=void 0,si.prototype.valueRange=void 0,si.prototype.defaultValue=void 0,si.prototype.unit=void 0,si.prototype.samplingIntervalSecs=void 0,si.prototype.downsamplingOperator=void 0,si.prototype.additionalProperties=void 0,si.prototype.$reserved=void 0,si.prototype.$objectType=void 0,si.prototype.$unknownFields=void 0;var bi=new WeakSet,mi=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=vi(t),function(e,t){if(t&&("object"==ui(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,di()?Reflect.construct(t,n||[],vi(e).constructor):t.apply(e,n))}(this,t),bi),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&&hi(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 ci(!1===e?ci(ci(ci(ci(ci(ci(ci(ci({},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()}:{}):ci(ci(ci(ci(ci({},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(!D.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(!D.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(!D.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,ho.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=si.constructFromObject(n[o],void 0),i.push(r);a.setMetrics(i)}if(!s)for(var u in a.$unknownFields=ci({},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&&fi(n.prototype,r),o&&fi(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ho);function gi(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 wi(e){return wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wi(e)}function Oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ji(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(n),!0).forEach(function(t){$i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $i(e,t,n){return(t=Pi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ki(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pi(r.key),r)}}function Pi(e){var t=function(e){if("object"!=wi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=wi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wi(t)?t:t+""}function Ti(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ti=function(){return!!e})()}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Si(e)}function Ci(e,t){return Ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ci(e,t)}function Ei(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")}mi.prototype.entityType=void 0,mi.prototype.source=void 0,mi.prototype.displayName=void 0,mi.prototype.parents=void 0,mi.prototype.metrics=void 0,ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var Fi=new WeakSet,Di=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=Si(t),function(e,t){if(t&&("object"==wi(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,Ti()?Reflect.construct(t,n||[],Si(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&&Ci(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return ji(ji(ji({},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}):Ei(Fi,this,Ri).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}):Ei(Fi,this,Ri).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(xe.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:wi(n[0]),o=0;o<n.length;o++){if("aiops.v4.config.EntityDescriptor"!==a)throw"Unknown list of type "+a+" in data";r=mi.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:wi(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=ji({},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&&ki(n.prototype,r),o&&ki(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ri(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 gi(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)?gi(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"===wi(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Ai(e){return Ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ai(e)}function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ii(Object(n),!0).forEach(function(t){Mi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mi(e,t,n){return(t=xi(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,xi(r.key),r)}}function xi(e){var t=function(e){if("object"!=Ai(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ai(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ai(t)?t:t+""}function _i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_i=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Vi(e)}function Bi(e,t){return Bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bi(e,t)}Di.prototype.metadata=void 0,Di.prototype.data=void 0,Di.prototype.$reserved=void 0,Di.prototype.$objectType=void 0,Di.prototype.$unknownFields=void 0;var Gi=new WeakSet,Li=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=Vi(t),function(e,t){if(t&&("object"==Ai(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,_i()?Reflect.construct(t,n||[],Vi(e).constructor):t.apply(e,n))}(this,t),Gi),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&&Bi(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 Ui(!1===e?Ui(Ui(Ui(Ui({},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()}:{}):Ui({},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(!D.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,ho.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=Ui({},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}(ho);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 Wi(e){return Wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wi(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 Hi(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){qi(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 qi(e,t,n){return(t=Xi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ki(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xi(r.key),r)}}function Xi(e){var t=function(e){if("object"!=Wi(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Wi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Wi(t)?t:t+""}function Yi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Yi=function(){return!!e})()}function Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Zi(e)}function Qi(e,t){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qi(e,t)}function ea(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Li.prototype.sourceName=void 0,ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var ta=new WeakSet,na=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Zi(t),function(e,t){if(t&&("object"==Wi(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,Yi()?Reflect.construct(t,n||[],Zi(e).constructor):t.apply(e,n))}(this,t),ta),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&&Qi(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 Hi(Hi(Hi({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):ea(ta,this,ra).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):ea(ta,this,ra).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof 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(xe.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:Wi(n[0]),o=0;o<n.length;o++){if("aiops.v4.config.Source"!==a)throw"Unknown list of type "+a+" in data";r=Li.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:Wi(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=Hi({},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&&Ki(n.prototype,r),o&&Ki(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ra(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"===Wi(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 oa(e){return oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oa(e)}function ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ia(Object(n),!0).forEach(function(t){sa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sa(e,t,n){return(t=la(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,la(r.key),r)}}function la(e){var t=function(e){if("object"!=oa(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=oa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oa(t)?t:t+""}function ca(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ca=function(){return!!e})()}function pa(e){return pa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pa(e)}function fa(e,t){return fa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fa(e,t)}na.prototype.metadata=void 0,na.prototype.data=void 0,na.prototype.$reserved=void 0,na.prototype.$objectType=void 0,na.prototype.$unknownFields=void 0;var ya=new WeakSet,da=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"==oa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ca()?Reflect.construct(t,n||[],pa(e).constructor):t.apply(e,n))}(this,t),ya),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&&fa(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 aa(!1===e?aa(aa(aa(aa({},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()}:{}):aa({},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(!D.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,ho.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=aa({},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&&ua(n.prototype,r),o&&ua(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ho);function va(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 ha(e){return ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ha(e)}function 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 ma(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){ga(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 ga(e,t,n){return(t=Oa(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,Oa(r.key),r)}}function Oa(e){var t=function(e){if("object"!=ha(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ha(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ha(t)?t:t+""}function ja(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ja=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$a(e)}function ka(e,t){return ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ka(e,t)}function Pa(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")}da.prototype.entityTypeName=void 0,ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var Ta=new WeakSet,Sa=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=$a(t),function(e,t){if(t&&("object"==ha(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,ja()?Reflect.construct(t,n||[],$a(e).constructor):t.apply(e,n))}(this,t),Ta),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&&ka(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 ma(ma(ma({},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}):Pa(Ta,this,Ca).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}):Pa(Ta,this,Ca).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(xe.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:ha(n[0]),o=0;o<n.length;o++){if("aiops.v4.config.EntityType"!==a)throw"Unknown list of type "+a+" in data";r=da.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:ha(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=ma({},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&&wa(n.prototype,r),o&&wa(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ca(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 va(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)?va(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"===ha(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 Ea(e){return Ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ea(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 Da(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){Ra(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 Ra(e,t,n){return(t=Ia(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ia(r.key),r)}}function Ia(e){var t=function(e){if("object"!=Ea(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ea(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ea(t)?t:t+""}function Ua(e,t){return e.get(Ma(e,t))}function Ma(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Sa.prototype.metadata=void 0,Sa.prototype.data=void 0,Sa.prototype.$reserved=void 0,Sa.prototype.$objectType=void 0,Sa.prototype.$unknownFields=void 0;var Na=new WeakMap,xa=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(Ma(n,this),r),Ua(Na,this).add("authorization"),Ua(Na,this).add("cookie"),Ua(Na,this).add("host"),Ua(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=Da(Da(Da({},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){Ua(Na,n).has(e.toLowerCase())||(a[e]=r[e])});var s=Da({},a),u=Di;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=Da(Da(Da(Da(Da(Da(Da(Da({},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){Ua(Na,i).has(e.toLowerCase())||(l[e]=a[e])});var c=Da({},l),p=Vo;return this.apiClient.callApi("/api/aiops/v4.0/stats/sources/{sourceExtId}/entities/{extId}","GET",s,u,c,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],p)}},{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){Ua(Na,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Da({},o),a=Sa;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){Ua(Na,e).has(r.toLowerCase())||(n[r]=t[r])});var r=Da({},n),o=na;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&&Aa(e.prototype,t),n&&Aa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function _a(e){return _a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_a(e)}function Va(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ba(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(Object(n),!0).forEach(function(t){Ga(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ga(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 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,za(r.key),r)}}function za(e){var t=function(e){if("object"!=_a(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_a(t)?t:t+""}var Wa=new WeakSet,Ja=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,Wa),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 Ba(Ba(Ba(Ba(Ba({},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=Ba({},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&&La(t.prototype,n),r&&La(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ha(e){return Ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ha(e)}function qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(n),!0).forEach(function(t){Xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xa(e,t,n){return(t=Za(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ya(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Za(r.key),r)}}function Za(e){var t=function(e){if("object"!=Ha(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ha(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ha(t)?t:t+""}function Qa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Qa=function(){return!!e})()}function es(e){return es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},es(e)}function ts(e,t){return ts=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ts(e,t)}Ja.prototype.vcpuCount=void 0,Ja.prototype.ramGb=void 0,Ja.prototype.hddGb=void 0,Ja.prototype.ssdGb=void 0,Ja.prototype.$reserved=void 0,Ja.prototype.$objectType=void 0,Ja.prototype.$unknownFields=void 0;var ns=new WeakSet,rs=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=es(t),function(e,t){if(t&&("object"==Ha(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,Qa()?Reflect.construct(t,n||[],es(e).constructor):t.apply(e,n))}(this,t),ns),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&&ts(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 Ka(!1===e?Ka(Ka(Ka(Ka(Ka({},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()}:{}):Ka(Ka({},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(!D.validateMaxLength(this.name,256))return new U("name","does not satisfy required maxLength constraint: 256");if(!D.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,ho.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(Ja.constructFromObject(e.simulationSpec)),!r))for(var o in n.$unknownFields=Ka({},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&&Ya(n.prototype,r),o&&Ya(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ho);function os(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 is(e){return is="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},is(e)}function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?as(Object(n),!0).forEach(function(t){us(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):as(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function us(e,t,n){return(t=cs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ls(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cs(r.key),r)}}function cs(e){var t=function(e){if("object"!=is(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=is(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==is(t)?t:t+""}function ps(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ps=function(){return!!e})()}function fs(e){return fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fs(e)}function ys(e,t){return ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ys(e,t)}function ds(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")}rs.prototype.name=void 0,rs.prototype.simulationSpec=void 0,ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var vs=new WeakSet,hs=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=fs(t),function(e,t){if(t&&("object"==is(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||[],fs(e).constructor):t.apply(e,n))}(this,t),vs),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&&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 ss(ss(ss({},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}):ds(vs,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}):ds(vs,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=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(xe.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:is(e.data)){case"aiops.v4.config.Simulation":r.setData(rs.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=ss({},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&&ls(n.prototype,r),o&&ls(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 os(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)?os(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"===is(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 ms(e){return ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ms(e)}function gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ws(e,t,n){return(t=js(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,js(r.key),r)}}function js(e){var t=function(e){if("object"!=ms(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ms(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ms(t)?t:t+""}function $s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($s=function(){return!!e})()}function ks(e){return ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ks(e)}function Ps(e,t){return Ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ps(e,t)}hs.prototype.metadata=void 0,hs.prototype.data=void 0,hs.prototype.$reserved=void 0,hs.prototype.$objectType=void 0,hs.prototype.$unknownFields=void 0;var Ts=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=ks(t),function(e,t){if(t&&("object"==ms(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,$s()?Reflect.construct(t,n||[],ks(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&&Ps(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,rs.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?gs(Object(n),!0).forEach(function(t){ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},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&&Os(n.prototype,r),o&&Os(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(rs);function Ss(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 Cs(e){return Cs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cs(e)}function Es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Es(Object(n),!0).forEach(function(t){Ds(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Es(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ds(e,t,n){return(t=As(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,As(r.key),r)}}function As(e){var t=function(e){if("object"!=Cs(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Cs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Cs(t)?t:t+""}function Is(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Is=function(){return!!e})()}function Us(e){return Us=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Us(e)}function Ms(e,t){return Ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ms(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 xs=new WeakSet,_s=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=Us(t),function(e,t){if(t&&("object"==Cs(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,Is()?Reflect.construct(t,n||[],Us(e).constructor):t.apply(e,n))}(this,t),xs),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&&Ms(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(xs,this,Vs).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(xs,this,Vs).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(xe.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:Cs(n[0]),o=0;o<n.length;o++)switch(a){case"aiops.v4.config.Simulation":r=rs.constructFromObject(n[o],void 0),i.push(r);break;case"aiops.v4.config.SimulationProjection":r=Ts.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:Cs(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&&Rs(n.prototype,r),o&&Rs(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Vs(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 Ss(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)?Ss(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"===Cs(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function Bs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Gs(e){return Gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gs(e)}function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Ls(Object(n),!0).forEach(function(t){Ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ws(e,t,n){return(t=Hs(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,Hs(r.key),r)}}function Hs(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 qs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qs=function(){return!!e})()}function Ks(e){return Ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ks(e)}function Xs(e,t){return Xs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xs(e,t)}function Ys(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}_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;var Zs=new WeakSet,Qs=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Ks(t),function(e,t){if(t&&("object"==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,qs()?Reflect.construct(t,n||[],Ks(e).constructor):t.apply(e,n))}(this,t),Zs),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&&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 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}):Ys(Zs,this,eu).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}):Ys(Zs,this,eu).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(xe.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:Gs(n[0]),o=0;o<n.length;o++){if("aiops.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";r=Ut.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:Gs(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&&Js(n.prototype,r),o&&Js(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function eu(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 Bs(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)?Bs(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Gs(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}Qs.prototype.metadata=void 0,Qs.prototype.data=void 0,Qs.prototype.$reserved=void 0,Qs.prototype.$objectType=void 0,Qs.prototype.$unknownFields=void 0;var tu={$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(tu).find(function(t){return tu[t]===e});return null==t?tu.$UNKNOWN:tu[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case tu.$UNKNOWN:case tu.$REDACTED:case tu.RF_2:case tu.RF_3:return;default:throw new Error("Invalid : must be ReplicationFactor.{ $UNKNOWN|$REDACTED|RF_2|RF_3 }")}}};Object.freeze(tu);const nu=tu;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 ou(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?ou(Object(n),!0).forEach(function(t){au(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ou(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function au(e,t,n){return(t=uu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uu(r.key),r)}}function uu(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+""}var lu=new WeakSet,cu=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,lu),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 iu(iu(iu(iu(iu(iu(iu(iu(iu(iu(iu({},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(nu.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=iu({},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&&su(t.prototype,n),r&&su(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();cu.prototype.replicationFactor=void 0,cu.prototype.compressionSavingPercent=25.81037,cu.prototype.dedupSavingPercent=35.864,cu.prototype.erasureCodingSavingPercent=15.16939,cu.prototype.overallSavingPercent=59.64,cu.prototype.cpuOverCommitRatio=1,cu.prototype.ramOverCommitRatio=1,cu.prototype.cpuReservationPercentage=0,cu.prototype.ramReservationPercentage=0,cu.prototype.storageReservationPercentage=0,cu.prototype.$reserved=void 0,cu.prototype.$objectType=void 0,cu.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 fu=pu;function yu(e){return yu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yu(e)}function du(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?du(Object(n),!0).forEach(function(t){hu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):du(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hu(e,t,n){return(t=mu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mu(r.key),r)}}function mu(e){var t=function(e){if("object"!=yu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yu(t)?t:t+""}var gu=new WeakSet,wu=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,gu),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 vu(vu(vu(vu(vu(vu({},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=vu({},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&&bu(t.prototype,n),r&&bu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ou(e){return Ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ou(e)}function ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ju(Object(n),!0).forEach(function(t){ku(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ju(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ku(e,t,n){return(t=Tu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tu(r.key),r)}}function Tu(e){var t=function(e){if("object"!=Ou(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ou(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ou(t)?t:t+""}function Su(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")}wu.prototype.cpuGhz=void 0,wu.prototype.ramGb=void 0,wu.prototype.hddGb=void 0,wu.prototype.ssdGb=void 0,wu.prototype.nvmeGb=void 0,wu.prototype.$reserved=void 0,wu.prototype.$objectType=void 0,wu.prototype.$unknownFields=void 0;var Cu=new WeakSet,Eu=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,Cu),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 $u($u($u($u($u($u($u({},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:Su(Cu,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(!D.validateMaximum(this.nodeCount,500))return new U("nodeCount","does not satisfy required maximum constraint: 500");if(!D.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(fu.constructFromObject(t.nodeSource)),t.hasOwnProperty("nodeResourceCapacity")&&null!==t.nodeResourceCapacity&&void 0!==t.nodeResourceCapacity&&n.setNodeResourceCapacity(wu.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=$u({},t.$unknownFields),t)Object.keys(n).includes(o)||Object.keys(n).includes(this.snakeToCamel(o))||"$"===o[0]&&o.endsWith("ItemDiscriminator")||(n.$unknownFields[o]=t[o]);return n}},{key:"snakeToCamel",value:function(e){return e.replace(/(_\w)/g,function(e){return e[1].toUpperCase()})}}],n&&Pu(t.prototype,n),r&&Pu(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 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 Ru(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Ru(Object(n),!0).forEach(function(t){Iu(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ru(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Iu(e,t,n){return(t=Mu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function 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,Mu(r.key),r)}}function Mu(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+""}Eu.prototype.model=void 0,Eu.prototype.nodeCount=void 0,Eu.prototype.targetOnlineTime=void 0,Eu.prototype.isEnabled=!1,Eu.prototype.nodeSource=void 0,Eu.prototype.nodeResourceCapacity=void 0,Eu.prototype.$reserved=void 0,Eu.prototype.$objectType=void 0,Eu.prototype.$unknownFields=void 0;var Nu=new WeakSet,xu=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 Au(Au(Au({},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(!D.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(cu.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=Eu.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=Au({},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&&Uu(t.prototype,n),r&&Uu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function _u(e){return _u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_u(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 Bu(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){Gu(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 Gu(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 Lu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zu(r.key),r)}}function zu(e){var t=function(e){if("object"!=_u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=_u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_u(t)?t:t+""}function Wu(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")}xu.prototype.dataStoreConfig=void 0,xu.prototype.nodeConfigs=void 0,xu.prototype.$reserved=void 0,xu.prototype.$objectType=void 0,xu.prototype.$unknownFields=void 0;var Ju=new WeakSet,Hu=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,Ju),this.minimumRunwayDays=t,this.cpuRunwayDays=n,this.memoryRunwayDays=r,this.storageRunwayDays=o,this.runwayStartTime=i,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:"getRunwayStartTime",value:function(){return this.runwayStartTime}},{key:"setRunwayStartTime",value:function(e){this.runwayStartTime=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Bu(Bu(Bu(Bu(Bu(Bu({},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.getRunwayStartTime()&&null!==this.getRunwayStartTime()?{runwayStartTime:Wu(Ju,this,qu).call(this,this.getRunwayStartTime(),!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=["minimumRunwayDays","cpuRunwayDays","memoryRunwayDays","storageRunwayDays","runwayStartTime"]: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(!D.validateMaximum(this.minimumRunwayDays,366))return new U("minimumRunwayDays","does not satisfy required maximum constraint: 366");if(!D.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(!D.validateMaximum(this.cpuRunwayDays,366))return new U("cpuRunwayDays","does not satisfy required maximum constraint: 366");if(!D.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(!D.validateMaximum(this.memoryRunwayDays,366))return new U("memoryRunwayDays","does not satisfy required maximum constraint: 366");if(!D.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(!D.validateMaximum(this.storageRunwayDays,366))return new U("storageRunwayDays","does not satisfy required maximum constraint: 366");if(!D.validateMinimum(this.storageRunwayDays,0))return new U("storageRunwayDays","does not satisfy required minimum constraint: 0")}return"runwayStartTime"!==t||void 0!==this.runwayStartTime&&null!==this.runwayStartTime?"$reserved"!==t||void 0!==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("runwayStartTime","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("runwayStartTime")&&null!==t.runwayStartTime&&void 0!==t.runwayStartTime&&n.setRunwayStartTime(t.runwayStartTime),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=Bu({},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&&Lu(t.prototype,n),r&&Lu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function qu(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Hu.prototype.minimumRunwayDays=void 0,Hu.prototype.cpuRunwayDays=void 0,Hu.prototype.memoryRunwayDays=void 0,Hu.prototype.storageRunwayDays=void 0,Hu.prototype.runwayStartTime=void 0,Hu.prototype.$reserved=void 0,Hu.prototype.$objectType=void 0,Hu.prototype.$unknownFields=void 0;var Ku={$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(Ku).find(function(t){return Ku[t]===e});return null==t?Ku.$UNKNOWN:Ku[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ku.$UNKNOWN:case Ku.$REDACTED:case Ku.NUTANIX:case Ku.DELL:case Ku.LENOVO:case Ku.CISCO:case Ku.IBM:case Ku.HPE_DX:case Ku.AWS:case Ku.FUJITSU:case Ku.AZURE:return;default:throw new Error("Invalid : must be Vendor.{ $UNKNOWN|$REDACTED|NUTANIX|DELL|LENOVO|CISCO|IBM|HPE_DX|AWS|FUJITSU|AZURE }")}}};Object.freeze(Ku);const Xu=Ku;var Yu={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INCREASE:"INCREASE",DECREASE:"DECREASE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Yu).find(function(t){return Yu[t]===e});return null==t?Yu.$UNKNOWN:Yu[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Yu.$UNKNOWN:case Yu.$REDACTED:case Yu.INCREASE:case Yu.DECREASE:return;default:throw new Error("Invalid : must be CapacityUpdateType.{ $UNKNOWN|$REDACTED|INCREASE|DECREASE }")}}};Object.freeze(Yu);const Zu=Yu;function Qu(e){return Qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qu(e)}function el(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?el(Object(n),!0).forEach(function(t){nl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nl(e,t,n){return(t=ol(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ol(r.key),r)}}function ol(e){var t=function(e){if("object"!=Qu(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Qu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qu(t)?t:t+""}var il=new WeakSet,al=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,il),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 tl(tl(tl({},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(Zu.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=tl({},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&&rl(t.prototype,n),r&&rl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();al.prototype.percentageChange=void 0,al.prototype.changeType=void 0,al.prototype.$reserved=void 0,al.prototype.$objectType=void 0,al.prototype.$unknownFields=void 0;var sl={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PVS:"PVS",MCS:"MCS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(sl).find(function(t){return sl[t]===e});return null==t?sl.$UNKNOWN:sl[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case sl.$UNKNOWN:case sl.$REDACTED:case sl.PVS:case sl.MCS:return;default:throw new Error("Invalid : must be CitrixXenProvisionType.{ $UNKNOWN|$REDACTED|PVS|MCS }")}}};Object.freeze(sl);const ul=sl;var ll={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",XEN_APP:"XEN_APP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(ll).find(function(t){return ll[t]===e});return null==t?ll.$UNKNOWN:ll[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ll.$UNKNOWN:case ll.$REDACTED:case ll.XEN_APP:return;default:throw new Error("Invalid : must be CitrixXenWorkloadVendor.{ $UNKNOWN|$REDACTED|XEN_APP }")}}};Object.freeze(ll);const cl=ll;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 fl=pl;function yl(e){return yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yl(e)}function dl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dl(Object(n),!0).forEach(function(t){hl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hl(e,t,n){return(t=ml(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,ml(r.key),r)}}function ml(e){var t=function(e){if("object"!=yl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=yl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==yl(t)?t:t+""}var gl=new WeakSet,wl=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,gl),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 vl(vl(vl(vl(vl(vl(vl({},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(!D.validateMaximum(this.systemDataGb,62e3))return new U("systemDataGb","does not satisfy required maximum constraint: 62000");if(!D.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(!D.validateMaximum(this.userCount,1e5))return new U("userCount","does not satisfy required maximum constraint: 100000");if(!D.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(!D.validateMaximum(this.mcsDiffSizeGb,50))return new U("mcsDiffSizeGb","does not satisfy required maximum constraint: 50");if(!D.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(!D.validateMaximum(this.userProfileDataMb,100))return new U("userProfileDataMb","does not satisfy required maximum constraint: 100");if(!D.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(!D.validateMaximum(this.pvsWriteCacheSizeGb,50))return new U("pvsWriteCacheSizeGb","does not satisfy required maximum constraint: 50");if(!D.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(fl.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=vl({},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&&bl(t.prototype,n),r&&bl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ol(e){return Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ol(e)}function jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?jl(Object(n),!0).forEach(function(t){kl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kl(e,t,n){return(t=Tl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tl(r.key),r)}}function Tl(e){var t=function(e){if("object"!=Ol(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ol(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ol(t)?t:t+""}function Sl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sl=function(){return!!e})()}function Cl(e){return Cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cl(e)}function El(e,t){return El=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},El(e,t)}wl.prototype.operatingSystem=void 0,wl.prototype.systemDataGb=void 0,wl.prototype.userCount=void 0,wl.prototype.mcsDiffSizeGb=void 0,wl.prototype.userProfileDataMb=void 0,wl.prototype.pvsWriteCacheSizeGb=void 0,wl.prototype.$reserved=void 0,wl.prototype.$objectType=void 0,wl.prototype.$unknownFields=void 0;var Fl=new WeakSet,Dl=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=Cl(t),function(e,t){if(t&&("object"==Ol(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,Sl()?Reflect.construct(t,n||[],Cl(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&&El(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,wl.constructFromObject(e,n,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&n.setVendor(cl.constructFromObject(e.vendor)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&n.setProvisionType(ul.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&&Pl(n.prototype,r),o&&Pl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wl);Dl.prototype.vendor=void 0,Dl.prototype.provisionType=void 0,wl.prototype.operatingSystem=void 0,wl.prototype.systemDataGb=void 0,wl.prototype.userCount=void 0,wl.prototype.mcsDiffSizeGb=void 0,wl.prototype.userProfileDataMb=void 0,wl.prototype.pvsWriteCacheSizeGb=void 0;var Rl={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM_CLONE:"VM_CLONE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Rl).find(function(t){return Rl[t]===e});return null==t?Rl.$UNKNOWN:Rl[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Rl.$UNKNOWN:case Rl.$REDACTED:case Rl.VM_CLONE:return;default:throw new Error("Invalid : must be MicrosoftXenProvisionType.{ $UNKNOWN|$REDACTED|VM_CLONE }")}}};Object.freeze(Rl);const Al=Rl;var Il={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",MICROSOFT_RDSH:"MICROSOFT_RDSH",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Il).find(function(t){return Il[t]===e});return null==t?Il.$UNKNOWN:Il[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Il.$UNKNOWN:case Il.$REDACTED:case Il.MICROSOFT_RDSH:return;default:throw new Error("Invalid : must be MicrosoftXenWorkloadVendor.{ $UNKNOWN|$REDACTED|MICROSOFT_RDSH }")}}};Object.freeze(Il);const Ul=Il;function Ml(e){return Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ml(e)}function 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 xl(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){_l(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 _l(e,t,n){return(t=Bl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bl(r.key),r)}}function Bl(e){var t=function(e){if("object"!=Ml(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ml(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ml(t)?t:t+""}function Gl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Gl=function(){return!!e})()}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ll(e)}function zl(e,t){return zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zl(e,t)}var Wl=new WeakSet,Jl=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=Ll(t),function(e,t){if(t&&("object"==Ml(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,Gl()?Reflect.construct(t,n||[],Ll(e).constructor):t.apply(e,n))}(this,t,[r,o,i,a,s,u]),Wl),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 xl(xl(xl(xl(xl(xl(xl(xl(xl({},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,wl.constructFromObject(e,n,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&n.setVendor(Ul.constructFromObject(e.vendor)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&n.setProvisionType(Al.constructFromObject(e.provisionType)),!r))for(var o in n.$unknownFields=xl({},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&&Vl(n.prototype,r),o&&Vl(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(wl);function Hl(e){return Hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hl(e)}function ql(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?ql(Object(n),!0).forEach(function(t){Xl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ql(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xl(e,t,n){return(t=Zl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zl(r.key),r)}}function Zl(e){var t=function(e){if("object"!=Hl(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hl(t)?t:t+""}Jl.prototype.vendor=void 0,Jl.prototype.provisionType=void 0,wl.prototype.operatingSystem=void 0,wl.prototype.systemDataGb=void 0,wl.prototype.userCount=void 0,wl.prototype.mcsDiffSizeGb=void 0,wl.prototype.userProfileDataMb=void 0,wl.prototype.pvsWriteCacheSizeGb=void 0;var Ql=new WeakSet,ec=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,Ql),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 Kl(Kl(Kl(Kl(Kl({},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(!D.validateMaximum(this.dailyAverageIndexingRateGb,2e4))return new U("dailyAverageIndexingRateGb","does not satisfy required maximum constraint: 20000");if(!D.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(!D.validateMaximum(this.hotRetentionDays,2e4))return new U("hotRetentionDays","does not satisfy required maximum constraint: 20000");if(!D.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(!D.validateMaximum(this.coldRetentionDays,2e4))return new U("coldRetentionDays","does not satisfy required maximum constraint: 20000");if(!D.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(!D.validateMaximum(this.userCount,500))return new U("userCount","does not satisfy required maximum constraint: 500");if(!D.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=Kl({},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&&Yl(t.prototype,n),r&&Yl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();ec.prototype.dailyAverageIndexingRateGb=500,ec.prototype.hotRetentionDays=7,ec.prototype.coldRetentionDays=60,ec.prototype.userCount=5,ec.prototype.$reserved=void 0,ec.prototype.$objectType=void 0,ec.prototype.$unknownFields=void 0;var tc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(tc).find(function(t){return tc[t]===e});return null==t?tc.$UNKNOWN:tc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case tc.$UNKNOWN:case tc.$REDACTED:case tc.SMALL:case tc.MEDIUM:case tc.LARGE:return;default:throw new Error("Invalid : must be SqlProfileType.{ $UNKNOWN|$REDACTED|SMALL|MEDIUM|LARGE }")}}};Object.freeze(tc);const nc=tc;var rc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",OLAP:"OLAP",OLTP:"OLTP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(rc).find(function(t){return rc[t]===e});return null==t?rc.$UNKNOWN:rc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case rc.$UNKNOWN:case rc.$REDACTED:case rc.OLAP:case rc.OLTP:return;default:throw new Error("Invalid : must be SqlTransactionType.{ $UNKNOWN|$REDACTED|OLAP|OLTP }")}}};Object.freeze(rc);const oc=rc;function ic(e){return ic="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ic(e)}function ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ac(Object(n),!0).forEach(function(t){uc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ac(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uc(e,t,n){return(t=cc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cc(r.key),r)}}function cc(e){var t=function(e){if("object"!=ic(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ic(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ic(t)?t:t+""}var pc=new WeakSet,fc=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 sc(sc(sc(sc(sc({},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(!D.validateMaximum(this.dbCount,1e5))return new U("dbCount","does not satisfy required maximum constraint: 100000");if(!D.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(nc.constructFromObject(t.profileType)),t.hasOwnProperty("transactionType")&&null!==t.transactionType&&void 0!==t.transactionType&&n.setTransactionType(oc.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=sc({},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&&lc(t.prototype,n),r&&lc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();fc.prototype.dbCount=void 0,fc.prototype.profileType=void 0,fc.prototype.transactionType=void 0,fc.prototype.isBusinessCritical=!1,fc.prototype.$reserved=void 0,fc.prototype.$objectType=void 0,fc.prototype.$unknownFields=void 0;var yc={$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(yc).find(function(t){return yc[t]===e});return null==t?yc.$UNKNOWN:yc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case yc.$UNKNOWN:case yc.$REDACTED:case yc.FULL_CLONES:case yc.V2V_P2V:case yc.PROVISIONING_SERVICES:case yc.MACHINE_CREATION_SERVICES:case yc.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(yc);const dc=yc;var vc={$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(vc).find(function(t){return vc[t]===e});return null==t?vc.$UNKNOWN:vc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case vc.$UNKNOWN:case vc.$REDACTED:case vc.TASK_WORKER:case vc.KNOWLEDGE_WORKER:case vc.POWER_USER:case vc.DEVELOPER:return;default:throw new Error("Invalid : must be VdiUserType.{ $UNKNOWN|$REDACTED|TASK_WORKER|KNOWLEDGE_WORKER|POWER_USER|DEVELOPER }")}}};Object.freeze(vc);const hc=vc;var bc={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VIEW:"VIEW",XEN_DESKTOP:"XEN_DESKTOP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(bc).find(function(t){return bc[t]===e});return null==t?bc.$UNKNOWN:bc[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case bc.$UNKNOWN:case bc.$REDACTED:case bc.VIEW:case bc.XEN_DESKTOP:return;default:throw new Error("Invalid : must be VdiVendor.{ $UNKNOWN|$REDACTED|VIEW|XEN_DESKTOP }")}}};Object.freeze(bc);const mc=bc;function gc(e){return gc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gc(e)}function wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Oc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wc(Object(n),!0).forEach(function(t){jc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jc(e,t,n){return(t=kc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kc(r.key),r)}}function kc(e){var t=function(e){if("object"!=gc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gc(t)?t:t+""}var Pc=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,Pc),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 Oc(Oc(Oc(Oc(Oc({},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(!D.validateMaximum(this.userCount,1e3))return new U("userCount","does not satisfy required maximum constraint: 1000");if(!D.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(mc.constructFromObject(t.vendor)),t.hasOwnProperty("userType")&&null!==t.userType&&void 0!==t.userType&&n.setUserType(hc.constructFromObject(t.userType)),t.hasOwnProperty("provisionType")&&null!==t.provisionType&&void 0!==t.provisionType&&n.setProvisionType(dc.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=Oc({},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&&$c(t.prototype,n),r&&$c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Sc(e){return Sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sc(e)}function Cc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cc(Object(n),!0).forEach(function(t){Fc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fc(e,t,n){return(t=Rc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rc(r.key),r)}}function Rc(e){var t=function(e){if("object"!=Sc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sc(t)?t:t+""}Tc.prototype.vendor=void 0,Tc.prototype.userType=void 0,Tc.prototype.provisionType=void 0,Tc.prototype.userCount=void 0,Tc.prototype.$reserved=void 0,Tc.prototype.$objectType=void 0,Tc.prototype.$unknownFields=void 0;var Ac=new WeakSet,Ic=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,Ac),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 Ec(Ec(Ec(Ec({},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(!D.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=Ec({},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&&Dc(t.prototype,n),r&&Dc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Uc(e){return Uc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uc(e)}function Mc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mc(Object(n),!0).forEach(function(t){xc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xc(e,t,n){return(t=Vc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vc(r.key),r)}}function Vc(e){var t=function(e){if("object"!=Uc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Uc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uc(t)?t:t+""}Ic.prototype.categoryExtId=void 0,Ic.prototype.currentVmCount=void 0,Ic.prototype.targetVmCount=void 0,Ic.prototype.$reserved=void 0,Ic.prototype.$objectType=void 0,Ic.prototype.$unknownFields=void 0;var Bc=new WeakSet,Gc=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,Bc),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(!D.validateMaximum(this.vmCount,2e4))return new U("vmCount","does not satisfy required maximum constraint: 20000");if(!D.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(!D.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&&_c(t.prototype,n),r&&_c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Lc(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 Wc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(n),!0).forEach(function(t){Hc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hc(e,t,n){return(t=Kc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kc(r.key),r)}}function Kc(e){var t=function(e){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 Xc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Gc.prototype.vmCount=void 0,Gc.prototype.simulationExtId=void 0,Gc.prototype.$reserved=void 0,Gc.prototype.$objectType=void 0,Gc.prototype.$unknownFields=void 0;var Yc=new WeakSet,Zc=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,Yc),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 Jc(Jc(Jc(Jc(Jc({},void 0!==this.getScheduleDate()&&null!==this.getScheduleDate()?{scheduleDate:Xc(Yc,this,ep).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}):Xc(Yc,this,Qc).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}):Xc(Yc,this,Qc).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(wu.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(fc.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.VmWorkload":r.setWorkloadProperties(Gc.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.VdiWorkload":r.setWorkloadProperties(Tc.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.SplunkWorkload":r.setWorkloadProperties(ec.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.CitrixXenWorkload":r.setWorkloadProperties(Dl.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.MicrosoftXenWorkload":r.setWorkloadProperties(Jl.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.CapacityUpdateConfig":r.setWorkloadProperties(al.constructFromObject(t.workloadProperties,void 0));break;case"aiops.v4.config.VmCategoryWorkload":r.setWorkloadProperties(Ic.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=Jc({},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&&qc(t.prototype,n),r&&qc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Qc(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 Lc(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)?Lc(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 ep(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function tp(e){return tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tp(e)}function np(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?np(Object(n),!0).forEach(function(t){op(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):np(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function op(e,t,n){return(t=ap(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ip(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ap(r.key),r)}}function ap(e){var t=function(e){if("object"!=tp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tp(t)?t:t+""}function sp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sp=function(){return!!e})()}function up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},up(e)}function lp(e,t){return lp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lp(e,t)}function cp(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")}Zc.prototype.scheduleDate=void 0,Zc.prototype.isEnabled=!1,Zc.prototype.projectedResourceRequirement=void 0,Zc.prototype.workloadProperties=void 0,Zc.prototype.$reserved=void 0,Zc.prototype.$objectType=void 0,Zc.prototype.$unknownFields=void 0;var pp=new WeakSet,fp=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=up(t),function(e,t){if(t&&("object"==tp(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,sp()?Reflect.construct(t,n||[],up(e).constructor):t.apply(e,n))}(this,t),pp),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&&lp(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 rp(!1===e?rp(rp(rp(rp(rp(rp(rp(rp(rp(rp(rp({},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:cp(pp,this,yp).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()}:{}):rp(rp(rp(rp(rp(rp(rp({},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(!D.validateMaxLength(this.name,256))return new U("name","does not satisfy required maxLength constraint: 256");if(!D.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(!D.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(!D.validateMaxItems(this.vendors,10))return new U("vendors","does not satisfy required maxItems constraint: 10");if(!D.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(!D.validateMaximum(this.targetRunwayDays,360))return new U("targetRunwayDays","does not satisfy required maximum constraint: 360");if(!D.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(!D.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,ho.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=Xu.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(Hu.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=Zc.constructFromObject(n[o],void 0),i.push(r);a.setWorkloads(i)}if(e.hasOwnProperty("clusterConfig")&&null!==e.clusterConfig&&void 0!==e.clusterConfig&&a.setClusterConfig(xu.constructFromObject(e.clusterConfig)),!s)for(var u in a.$unknownFields=rp({},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&&ip(n.prototype,r),o&&ip(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ho);function yp(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function dp(e){return dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dp(e)}function vp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hp(e,t,n){return(t=mp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mp(r.key),r)}}function mp(e){var t=function(e){if("object"!=dp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=dp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==dp(t)?t:t+""}function gp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(gp=function(){return!!e})()}function wp(e){return wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wp(e)}function Op(e,t){return Op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Op(e,t)}fp.prototype.name=void 0,fp.prototype.clusterExtId=void 0,fp.prototype.vendors=void 0,fp.prototype.updatedTime=void 0,fp.prototype.targetRunwayDays=void 0,fp.prototype.runway=void 0,fp.prototype.workloads=void 0,fp.prototype.clusterConfig=void 0,ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var jp=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=wp(t),function(e,t){if(t&&("object"==dp(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,gp()?Reflect.construct(t,n||[],wp(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&&Op(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,fp.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?vp(Object(n),!0).forEach(function(t){hp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vp(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&&bp(n.prototype,r),o&&bp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(fp);function $p(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 kp(e){return kp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kp(e)}function Pp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?Pp(Object(n),!0).forEach(function(t){Sp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sp(e,t,n){return(t=Ep(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ep(r.key),r)}}function Ep(e){var t=function(e){if("object"!=kp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kp(t)?t:t+""}function Fp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Fp=function(){return!!e})()}function Dp(e){return Dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Dp(e)}function Rp(e,t){return Rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rp(e,t)}function Ap(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 Ip=new WeakSet,Up=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=Dp(t),function(e,t){if(t&&("object"==kp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Fp()?Reflect.construct(t,n||[],Dp(e).constructor):t.apply(e,n))}(this,t),Ip),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&&Rp(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 Tp(Tp(Tp({},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}):Ap(Ip,this,Mp).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}):Ap(Ip,this,Mp).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(xe.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:kp(n[0]),o=0;o<n.length;o++)switch(a){case"aiops.v4.config.Scenario":r=fp.constructFromObject(n[o],void 0),i.push(r);break;case"aiops.v4.config.ScenarioProjection":r=jp.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:kp(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=Tp({},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&&Cp(n.prototype,r),o&&Cp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Mp(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 $p(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)?$p(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"===kp(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 Np(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 _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 Vp(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){Bp(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 Bp(e,t,n){return(t=Lp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lp(r.key),r)}}function Lp(e){var t=function(e){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 zp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zp=function(){return!!e})()}function Wp(e){return Wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Wp(e)}function Jp(e,t){return Jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jp(e,t)}function Hp(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")}Up.prototype.metadata=void 0,Up.prototype.data=void 0,Up.prototype.$reserved=void 0,Up.prototype.$objectType=void 0,Up.prototype.$unknownFields=void 0;var qp=new WeakSet,Kp=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=Wp(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,zp()?Reflect.construct(t,n||[],Wp(e).constructor):t.apply(e,n))}(this,t),qp),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&&Jp(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 Vp(Vp(Vp({},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}):Hp(qp,this,Xp).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}):Hp(qp,this,Xp).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(xe.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"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=Vp({},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&&Gp(n.prototype,r),o&&Gp(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Xp(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 Np(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)?Np(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 Yp(e){return Yp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yp(e)}function Zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zp(Object(n),!0).forEach(function(t){ef(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ef(e,t,n){return(t=nf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nf(r.key),r)}}function nf(e){var t=function(e){if("object"!=Yp(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yp(t)?t:t+""}Kp.prototype.metadata=void 0,Kp.prototype.data=void 0,Kp.prototype.$reserved=void 0,Kp.prototype.$objectType=void 0,Kp.prototype.$unknownFields=void 0;var rf=new WeakSet,of=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,rf),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r1"},this.$unknownFields={}}return t=e,n=[{key:"getExtId",value:function(){return this.extId}},{key:"setExtId",value:function(e){this.extId=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Qp(Qp({},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(!D.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=Qp({},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&&tf(t.prototype,n),r&&tf(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function af(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 sf(e){return sf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sf(e)}function uf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uf(Object(n),!0).forEach(function(t){cf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cf(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 pf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ff(r.key),r)}}function ff(e){var t=function(e){if("object"!=sf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=sf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==sf(t)?t:t+""}function yf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(yf=function(){return!!e})()}function df(e){return df=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},df(e)}function vf(e,t){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vf(e,t)}function hf(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")}of.prototype.extId=void 0,of.prototype.$reserved=void 0,of.prototype.$objectType=void 0,of.prototype.$unknownFields=void 0;var bf=new WeakSet,mf=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=df(t),function(e,t){if(t&&("object"==sf(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,yf()?Reflect.construct(t,n||[],df(e).constructor):t.apply(e,n))}(this,t),bf),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&&vf(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}):hf(bf,this,gf).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):hf(bf,this,gf).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof 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(xe.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:sf(e.data)){case"prism.v4.config.TaskReference":r.setData(of.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=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&&pf(n.prototype,r),o&&pf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function gf(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 af(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)?af(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"===sf(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 wf(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 Of(e){return Of="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Of(e)}function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jf(Object(n),!0).forEach(function(t){kf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kf(e,t,n){return(t=Tf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Tf(r.key),r)}}function Tf(e){var t=function(e){if("object"!=Of(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Of(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Of(t)?t:t+""}function Sf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sf=function(){return!!e})()}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cf(e)}function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ef(e,t)}function Ff(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}mf.prototype.metadata=void 0,mf.prototype.data=void 0,mf.prototype.$reserved=void 0,mf.prototype.$objectType=void 0,mf.prototype.$unknownFields=void 0;var Df=new WeakSet,Rf=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"==Of(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,Sf()?Reflect.construct(t,n||[],Cf(e).constructor):t.apply(e,n))}(this,t),Df),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&&Ef(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return $f($f($f({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):Ff(Df,this,Af).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):Ff(Df,this,Af).call(this,this.getData())}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),$unknownFields:this.get$UnknownFields()})}},{key:"validate",value:function(e,t){var n=this,r=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof 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(xe.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:Of(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=$f({},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&&Pf(n.prototype,r),o&&Pf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Af(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 wf(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)?wf(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"===Of(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 If(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Uf(e){return Uf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uf(e)}function Mf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mf(Object(n),!0).forEach(function(t){xf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xf(e,t,n){return(t=Vf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vf(r.key),r)}}function Vf(e){var t=function(e){if("object"!=Uf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Uf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Uf(t)?t:t+""}function Bf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Bf=function(){return!!e})()}function Gf(e){return Gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gf(e)}function Lf(e,t){return Lf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lf(e,t)}function zf(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Rf.prototype.metadata=void 0,Rf.prototype.data=void 0,Rf.prototype.$reserved=void 0,Rf.prototype.$objectType=void 0,Rf.prototype.$unknownFields=void 0;var Wf=new WeakSet,Jf=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Gf(t),function(e,t){if(t&&("object"==Uf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Bf()?Reflect.construct(t,n||[],Gf(e).constructor):t.apply(e,n))}(this,t),Wf),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&&Lf(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 Nf(Nf(Nf({},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}):zf(Wf,this,Hf).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}):zf(Wf,this,Hf).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(xe.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:Uf(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=Nf({},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&&_f(n.prototype,r),o&&_f(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Hf(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 If(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?If(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Uf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function qf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Kf(e){return Kf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kf(e)}function Xf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Yf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xf(Object(n),!0).forEach(function(t){Zf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zf(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 Qf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ey(r.key),r)}}function ey(e){var t=function(e){if("object"!=Kf(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Kf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Kf(t)?t:t+""}function ty(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ty=function(){return!!e})()}function ny(e){return ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ny(e)}function ry(e,t){return ry=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ry(e,t)}function oy(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Jf.prototype.metadata=void 0,Jf.prototype.data=void 0,Jf.prototype.$reserved=void 0,Jf.prototype.$objectType=void 0,Jf.prototype.$unknownFields=void 0;var iy=new WeakSet,ay=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=ny(t),function(e,t){if(t&&("object"==Kf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ty()?Reflect.construct(t,n||[],ny(e).constructor):t.apply(e,n))}(this,t),iy),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&&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 Yf(Yf(Yf({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):oy(iy,this,sy).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}):oy(iy,this,sy).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(xe.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Kf(e.data)){case"prism.v4.config.TaskReference":r.setData(of.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=Yf({},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&&Qf(n.prototype,r),o&&Qf(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function sy(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 qf(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qf(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return[i,void 0!==a.toJson?a.toJson(t):a]})):"object"===Kf(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function uy(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 ly(e){return ly="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ly(e)}function cy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?cy(Object(n),!0).forEach(function(t){fy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fy(e,t,n){return(t=dy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dy(r.key),r)}}function dy(e){var t=function(e){if("object"!=ly(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ly(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ly(t)?t:t+""}function vy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(vy=function(){return!!e})()}function hy(e){return hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hy(e)}function by(e,t){return by=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},by(e,t)}function my(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")}ay.prototype.metadata=void 0,ay.prototype.data=void 0,ay.prototype.$reserved=void 0,ay.prototype.$objectType=void 0,ay.prototype.$unknownFields=void 0;var gy=new WeakSet,wy=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=hy(t),function(e,t){if(t&&("object"==ly(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,vy()?Reflect.construct(t,n||[],hy(e).constructor):t.apply(e,n))}(this,t),gy),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&&by(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}):my(gy,this,Oy).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}):my(gy,this,Oy).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(xe.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:ly(e.data)){case"prism.v4.config.TaskReference":r.setData(of.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&&yy(n.prototype,r),o&&yy(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Oy(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 uy(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)?uy(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"===ly(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 jy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $y(e){return $y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$y(e)}function ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var 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?ky(Object(n),!0).forEach(function(t){Ty(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ky(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ty(e,t,n){return(t=Cy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Cy(r.key),r)}}function Cy(e){var t=function(e){if("object"!=$y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=$y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$y(t)?t:t+""}function Ey(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ey=function(){return!!e})()}function Fy(e){return Fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fy(e)}function Dy(e,t){return Dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dy(e,t)}function Ry(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")}wy.prototype.metadata=void 0,wy.prototype.data=void 0,wy.prototype.$reserved=void 0,wy.prototype.$objectType=void 0,wy.prototype.$unknownFields=void 0;var Ay=new WeakSet,Iy=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"==$y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ey()?Reflect.construct(t,n||[],Fy(e).constructor):t.apply(e,n))}(this,t),Ay),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&&Dy(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}):Ry(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}):Ry(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(xe.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:$y(e.data)){case"aiops.v4.config.Simulation":r.setData(rs.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&&Sy(n.prototype,r),o&&Sy(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 jy(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)?jy(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"===$y(e)&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),function(e){return[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]]})):e}function My(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 xy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xy(Object(n),!0).forEach(function(t){Vy(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vy(e,t,n){return(t=Gy(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function By(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gy(r.key),r)}}function Gy(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 Ly(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ly=function(){return!!e})()}function zy(e){return zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zy(e)}function Wy(e,t){return Wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wy(e,t)}function Jy(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Iy.prototype.metadata=void 0,Iy.prototype.data=void 0,Iy.prototype.$reserved=void 0,Iy.prototype.$objectType=void 0,Iy.prototype.$unknownFields=void 0;var Hy=new WeakSet,qy=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,Ly()?Reflect.construct(t,n||[],zy(e).constructor):t.apply(e,n))}(this,t),Hy),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&&Wy(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 _y(_y(_y({},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}):Jy(Hy,this,Ky).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}):Jy(Hy,this,Ky).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(xe.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(fp.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=_y({},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&&By(n.prototype,r),o&&By(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function Ky(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 My(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)?My(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 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 Yy(e){return Yy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yy(e)}function Zy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zy(Object(n),!0).forEach(function(t){ed(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ed(e,t,n){return(t=nd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function td(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nd(r.key),r)}}function nd(e){var t=function(e){if("object"!=Yy(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yy(t)?t:t+""}function rd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rd=function(){return!!e})()}function od(e){return od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},od(e)}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},id(e,t)}function ad(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")}qy.prototype.metadata=void 0,qy.prototype.data=void 0,qy.prototype.$reserved=void 0,qy.prototype.$objectType=void 0,qy.prototype.$unknownFields=void 0;var sd=new WeakSet,ud=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=od(t),function(e,t){if(t&&("object"==Yy(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,rd()?Reflect.construct(t,n||[],od(e).constructor):t.apply(e,n))}(this,t),sd),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&&id(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 Qy(Qy(Qy({},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}):ad(sd,this,ld).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}):ad(sd,this,ld).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(xe.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(n=e.data.hasOwnProperty("$objectType")?e.data.$objectType:Yy(e.data)){case"prism.v4.config.TaskReference":r.setData(of.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=Qy({},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&&td(n.prototype,r),o&&td(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function ld(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"===Yy(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 cd(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 fd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fd(Object(n),!0).forEach(function(t){dd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dd(e,t,n){return(t=hd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hd(r.key),r)}}function hd(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 bd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(bd=function(){return!!e})()}function md(e){return md=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},md(e)}function gd(e,t){return gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gd(e,t)}function wd(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ud.prototype.metadata=void 0,ud.prototype.data=void 0,ud.prototype.$reserved=void 0,ud.prototype.$objectType=void 0,ud.prototype.$unknownFields=void 0;var Od=new WeakSet,jd=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=md(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,bd()?Reflect.construct(t,n||[],md(e).constructor):t.apply(e,n))}(this,t),Od),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&&gd(e,t)}(t,e),n=t,r=[{key:"getMetadata",value:function(){return this.metadata}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getData",value:function(){return this.data}},{key:"setData",value:function(e){this.data=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return yd(yd(yd({},void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{}),!1===e?void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson(!1):e}):wd(Od,this,$d).call(this,this.getData(),!1)}:{}:void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(function(e){return void 0!==e.toJson?e.toJson():e}):wd(Od,this,$d).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(xe.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(of.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=yd({},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&&vd(n.prototype,r),o&&vd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(l);function $d(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 cd(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)?cd(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 kd(e){return kd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kd(e)}function Pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Td(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pd(Object(n),!0).forEach(function(t){Sd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sd(e,t,n){return(t=Ed(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ed(r.key),r)}}function Ed(e){var t=function(e){if("object"!=kd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=kd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==kd(t)?t:t+""}function Fd(e,t){return e.get(Dd(e,t))}function Dd(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")}jd.prototype.metadata=void 0,jd.prototype.data=void 0,jd.prototype.$reserved=void 0,jd.prototype.$objectType=void 0,jd.prototype.$unknownFields=void 0;var Rd=new WeakMap,Ad=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,Rd,void 0),this.apiClient=t||lt.instance,n=Rd,r=new Set,n.set(Dd(n,this),r),Fd(Rd,this).add("authorization"),Fd(Rd,this).add("cookie"),Fd(Rd,this).add("host"),Fd(Rd,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 fp&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createScenario");var o={};Object.keys(r).forEach(function(e){Fd(Rd,n).has(e.toLowerCase())||(o[e]=r[e])});var i=Td({},o);lt.addEtagReferenceToHeader(e,i);var a=mf;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 rs&&"function"==typeof e.toJson?e.toJson():e))throw new Error("Invalid body when calling createSimulation");var o={};Object.keys(r).forEach(function(e){Fd(Rd,n).has(e.toLowerCase())||(o[e]=r[e])});var i=Td({},o);lt.addEtagReferenceToHeader(e,i);var a=hs;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(Rd,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Td({},o),a=Jf;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(Rd,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Td({},o),a=Rf;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(Rd,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Td({},o),a=ay;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(Rd,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Td({},o),a=wy;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(Rd,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Td({},o),a=jd;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(Rd,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Td({},o),a=qy;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(Rd,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Td({},o),a=Kp;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(Rd,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Td({},o),a=Iy;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=Td(Td(Td(Td(Td({},(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(Rd,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Td({},o),a=Up;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=Td(Td(Td(Td(Td({},(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(Rd,t).has(e.toLowerCase())||(o[e]=n[e])});var i=Td({},o),a=_s;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 fp&&"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(Rd,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Td({},a);lt.addEtagReferenceToHeader(t,s);var u=ud;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 rs&&"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(Rd,r).has(e.toLowerCase())||(a[e]=o[e])});var s=Td({},a);lt.addEtagReferenceToHeader(t,s);var u=Qs;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&&Cd(e.prototype,t),n&&Cd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),Id={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",GHZ:"GHz",GB:"GB",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Id).find(function(t){return Id[t]===e});return null==t?Id.$UNKNOWN:Id[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Id.$UNKNOWN:case Id.$REDACTED:case Id.GHZ:case Id.GB:return;default:throw new Error("Invalid : must be CapacityUnit.{ $UNKNOWN|$REDACTED|GHZ|GB }")}}};Object.freeze(Id);const Ud=Id;var Md={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",DAYS:"DAYS",MONTH:"MONTH",YEAR:"YEAR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Md).find(function(t){return Md[t]===e});return null==t?Md.$UNKNOWN:Md[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Md.$UNKNOWN:case Md.$REDACTED:case Md.DAYS:case Md.MONTH:case Md.YEAR:return;default:throw new Error("Invalid : must be RunwayDuration.{ $UNKNOWN|$REDACTED|DAYS|MONTH|YEAR }")}}};Object.freeze(Md);const Nd=Md;function xd(e){return xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xd(e)}function _d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_d(Object(n),!0).forEach(function(t){Bd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bd(e,t,n){return(t=Ld(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ld(r.key),r)}}function Ld(e){var t=function(e){if("object"!=xd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xd(t)?t:t+""}var zd=new WeakSet,Wd=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 Vd(Vd(Vd(Vd(Vd(Vd(Vd({},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(Ud.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=Vd({},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&&Gd(t.prototype,n),r&&Gd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Jd(e){return Jd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jd(e)}function Hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hd(Object(n),!0).forEach(function(t){Kd(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kd(e,t,n){return(t=Yd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yd(r.key),r)}}function Yd(e){var t=function(e){if("object"!=Jd(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Jd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Jd(t)?t:t+""}function Zd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Zd=function(){return!!e})()}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qd(e)}function ev(e,t){return ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ev(e,t)}Wd.prototype.runway=void 0,Wd.prototype.usedCapacity=void 0,Wd.prototype.totalCapacity=void 0,Wd.prototype.effectiveCapacity=void 0,Wd.prototype.capacityUnit=void 0,Wd.prototype.runwayDuration=void 0,Wd.prototype.$reserved=void 0,Wd.prototype.$objectType=void 0,Wd.prototype.$unknownFields=void 0;var tv=new WeakSet,nv=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=Qd(t),function(e,t){if(t&&("object"==Jd(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,Zd()?Reflect.construct(t,n||[],Qd(e).constructor):t.apply(e,n))}(this,t),tv),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&&ev(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 qd(!1===e?qd(qd(qd(qd(qd(qd({},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()}:{}):qd(qd(qd({},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,ho.constructFromObject(e,n,!0),e.hasOwnProperty("cpu")&&null!==e.cpu&&void 0!==e.cpu&&n.setCpu(Wd.constructFromObject(e.cpu)),e.hasOwnProperty("memory")&&null!==e.memory&&void 0!==e.memory&&n.setMemory(Wd.constructFromObject(e.memory)),e.hasOwnProperty("storage")&&null!==e.storage&&void 0!==e.storage&&n.setStorage(Wd.constructFromObject(e.storage)),!r))for(var o in n.$unknownFields=qd({},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&&Xd(n.prototype,r),o&&Xd(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ho);function rv(e){return rv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rv(e)}function 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 iv(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){av(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 av(e,t,n){return(t=uv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uv(r.key),r)}}function uv(e){var t=function(e){if("object"!=rv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=rv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rv(t)?t:t+""}nv.prototype.cpu=void 0,nv.prototype.memory=void 0,nv.prototype.storage=void 0,ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var lv=new WeakSet,cv=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,lv),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 iv(iv(iv(iv(iv(iv(iv(iv(iv(iv(iv(iv(iv({},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(!D.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=iv({},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&&sv(t.prototype,n),r&&sv(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 fv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fv(Object(n),!0).forEach(function(t){dv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dv(e,t,n){return(t=hv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hv(r.key),r)}}function hv(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+""}cv.prototype.name=void 0,cv.prototype.uuid=void 0,cv.prototype.externalIpAddress=void 0,cv.prototype.memoryCapacityBytes=void 0,cv.prototype.numCpus=void 0,cv.prototype.hypervisorMemoryUsagePpm=void 0,cv.prototype.hypervisorCpuUsagePpm=void 0,cv.prototype.rf=void 0,cv.prototype.capacityBytes=void 0,cv.prototype.freeBytes=void 0,cv.prototype.usageBytes=void 0,cv.prototype.savedBytes=void 0,cv.prototype.$reserved=void 0,cv.prototype.$objectType=void 0,cv.prototype.$unknownFields=void 0;var bv=new WeakSet,mv=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,bv),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 yv(yv(yv({},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(!D.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(!D.validateMaximum(this.prefixLength,32))return new U("prefixLength","does not satisfy required maximum constraint: 32");if(!D.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=yv({},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&&vv(t.prototype,n),r&&vv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function gv(e){return gv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gv(e)}function wv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ov(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wv(Object(n),!0).forEach(function(t){jv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jv(e,t,n){return(t=kv(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,kv(r.key),r)}}function kv(e){var t=function(e){if("object"!=gv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=gv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gv(t)?t:t+""}function Pv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pv=function(){return!!e})()}function Tv(e){return Tv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tv(e)}function Sv(e,t){return Sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sv(e,t)}mv.prototype.value=void 0,mv.prototype.prefixLength=32,mv.prototype.$reserved=void 0,mv.prototype.$objectType=void 0,mv.prototype.$unknownFields=void 0;var Cv=new WeakSet,Ev=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Tv(t),function(e,t){if(t&&("object"==gv(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,Pv()?Reflect.construct(t,n||[],Tv(e).constructor):t.apply(e,n))}(this,t),Cv),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&&Sv(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 Ov(!1===e?Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov({},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()}:{}):Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov(Ov({},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,ho.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(mv.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=mv.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=Ov({},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&&$v(n.prototype,r),o&&$v(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ho);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 Dv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dv(Object(n),!0).forEach(function(t){Av(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Av(e,t,n){return(t=Uv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Uv(r.key),r)}}function Uv(e){var t=function(e){if("object"!=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+""}Ev.prototype.clusterName=void 0,Ev.prototype.externalIP=void 0,Ev.prototype.cvmIPs=void 0,Ev.prototype.totalMemorySizeBytes=void 0,Ev.prototype.currentMemoryUsageSizeBytes=void 0,Ev.prototype.provisionedMemoryUsageBytes=void 0,Ev.prototype.maxVmMemorySizeBytes=void 0,Ev.prototype.availableMemorySizeBytes=void 0,Ev.prototype.largestPoweredOffVMMemory=void 0,Ev.prototype.totalVCpuCount=void 0,Ev.prototype.currentUsedVCpuCount=void 0,Ev.prototype.provisionedVCpuCount=void 0,Ev.prototype.maxVmVCpuSize=void 0,Ev.prototype.availableVCpuCount=void 0,Ev.prototype.largestPoweredOffVMVCpu=void 0,Ev.prototype.totalCpuHz=void 0,Ev.prototype.currentUsedCpuHz=void 0,Ev.prototype.provisionedCpuHz=void 0,Ev.prototype.totalStorageCapacityRawBytes=void 0,Ev.prototype.totalStorageCapacityLogicalBytes=void 0,Ev.prototype.totalStorageCapacityLogicalWithSavingsBytes=void 0,Ev.prototype.totalStorageUsageBytes=void 0,Ev.prototype.totalStorageAvailableBytes=void 0,Ev.prototype.totalStorageAvailableLogicalBytes=void 0,ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var Mv=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,Mv),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 Rv(Rv(Rv(Rv(Rv(Rv({},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(!D.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=Rv({},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&&Iv(t.prototype,n),r&&Iv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function xv(e){return xv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xv(e)}function _v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vv(e,t,n){return(t=Gv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gv(r.key),r)}}function Gv(e){var t=function(e){if("object"!=xv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=xv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==xv(t)?t:t+""}function Lv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Lv=function(){return!!e})()}function zv(e){return zv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zv(e)}function Wv(e,t){return Wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wv(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 Jv=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"==xv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Lv()?Reflect.construct(t,n||[],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&&Wv(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?_v(Object(n),!0).forEach(function(t){Vv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_v(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&&Bv(n.prototype,r),o&&Bv(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Nv);function Hv(e){return Hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hv(e)}function qv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qv(Object(n),!0).forEach(function(t){Xv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xv(e,t,n){return(t=Zv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zv(r.key),r)}}function Zv(e){var t=function(e){if("object"!=Hv(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Hv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Hv(t)?t:t+""}var Qv=new WeakSet,eh=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,Qv),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 Kv(Kv(Kv(Kv(Kv(Kv({},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(!D.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=Kv({},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&&Yv(t.prototype,n),r&&Yv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function th(e){return th="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},th(e)}function nh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rh(e,t,n){return(t=ih(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ih(r.key),r)}}function ih(e){var t=function(e){if("object"!=th(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=th(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==th(t)?t:t+""}function ah(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ah=function(){return!!e})()}function sh(e){return sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sh(e)}function uh(e,t){return uh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uh(e,t)}eh.prototype.vmUuid=void 0,eh.prototype.vmMemory=void 0,eh.prototype.numVcpus=void 0,eh.prototype.powerState=void 0,eh.prototype.node=void 0,eh.prototype.$reserved=void 0,eh.prototype.$objectType=void 0,eh.prototype.$unknownFields=void 0;var lh=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,n){return t=sh(t),function(e,t){if(t&&("object"==th(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ah()?Reflect.construct(t,n||[],sh(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&&uh(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,eh.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?nh(Object(n),!0).forEach(function(t){rh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nh(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&&oh(n.prototype,r),o&&oh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(eh);function ch(e){return ch="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ch(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 fh(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){yh(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 yh(e,t,n){return(t=vh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vh(r.key),r)}}function vh(e){var t=function(e){if("object"!=ch(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=ch(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ch(t)?t:t+""}function hh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(hh=function(){return!!e})()}function bh(e){return bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bh(e)}function mh(e,t){return mh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mh(e,t)}var gh=new WeakSet,wh=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=bh(t),function(e,t){if(t&&("object"==ch(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,hh()?Reflect.construct(t,n||[],bh(e).constructor):t.apply(e,n))}(this,t),gh),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&&mh(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 fh(fh(fh(fh(fh(fh(fh(fh(fh(fh(fh(fh(fh(fh(fh({},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,cv.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=lh.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=Jv.constructFromObject(n[o],void 0),i.push(r);a.setNodeProjection(i)}if(!s)for(var u in a.$unknownFields=fh({},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&&dh(n.prototype,r),o&&dh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(cv);wh.prototype.vmProjection=void 0,wh.prototype.nodeProjection=void 0,cv.prototype.name=void 0,cv.prototype.uuid=void 0,cv.prototype.externalIpAddress=void 0,cv.prototype.memoryCapacityBytes=void 0,cv.prototype.numCpus=void 0,cv.prototype.hypervisorMemoryUsagePpm=void 0,cv.prototype.hypervisorCpuUsagePpm=void 0,cv.prototype.rf=void 0,cv.prototype.capacityBytes=void 0,cv.prototype.freeBytes=void 0,cv.prototype.usageBytes=void 0,cv.prototype.savedBytes=void 0;var Oh={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",IGNORE_RUNWAY_NUTANIX:"IGNORE_RUNWAY_NUTANIX",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys(Oh).find(function(t){return Oh[t]===e});return null==t?Oh.$UNKNOWN:Oh[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Oh.$UNKNOWN:case Oh.$REDACTED:case Oh.IGNORE_RUNWAY_NUTANIX:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|IGNORE_RUNWAY_NUTANIX }")}}};Object.freeze(Oh);const jh=Oh;var $h={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",GHZ:"GHz",GB:"GB",constructFromObject:function(e){if("string"==typeof e||e instanceof String){var t=Object.keys($h).find(function(t){return $h[t]===e});return null==t?$h.$UNKNOWN:$h[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case $h.$UNKNOWN:case $h.$REDACTED:case $h.GHZ:case $h.GB:return;default:throw new Error("Invalid : must be CapacityUnit.{ $UNKNOWN|$REDACTED|GHZ|GB }")}}};Object.freeze($h);const kh=$h;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=Fh(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,Fh(r.key),r)}}function Fh(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 Dh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Dh=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)}var Ih=new WeakSet,Uh=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=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,Dh()?Reflect.construct(t,n||[],Rh(e).constructor):t.apply(e,n))}(this,t),Ih),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&&Ah(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 Sh(!1===e?Sh(Sh(Sh(Sh(Sh({},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()}:{}):Sh({},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,ho.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=Sh({},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&&Eh(n.prototype,r),o&&Eh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ho);function Mh(e){return Mh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mh(e)}function Nh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nh(Object(n),!0).forEach(function(t){_h(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _h(e,t,n){return(t=Bh(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,Bh(r.key),r)}}function Bh(e){var t=function(e){if("object"!=Mh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Mh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Mh(t)?t:t+""}Uh.prototype.name=void 0,Uh.prototype.isDefault=!1,ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var Gh=new WeakSet,Lh=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,Gh),this.modelName=t,this.partCapacity=n,this.unit=r,this.$objectType="aiops.v4.config.HardwarePart",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getModelName",value:function(){return this.modelName}},{key:"setModelName",value:function(e){this.modelName=e}},{key:"getPartCapacity",value:function(){return this.partCapacity}},{key:"setPartCapacity",value:function(e){this.partCapacity=e}},{key:"getUnit",value:function(){return this.unit}},{key:"setUnit",value:function(e){this.unit=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return xh(xh(xh(xh({},void 0!==this.getModelName()&&null!==this.getModelName()?{modelName:this.getModelName()}:{}),void 0!==this.getPartCapacity()&&null!==this.getPartCapacity()?{partCapacity:this.getPartCapacity()}:{}),void 0!==this.getUnit()&&null!==this.getUnit()?{unit:this.getUnit()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$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=["modelName","partCapacity","unit"]: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"modelName"!==t||void 0!==this.modelName&&null!==this.modelName?"partCapacity"!==t||void 0!==this.partCapacity&&null!==this.partCapacity?"unit"!==t||void 0!==this.unit&&null!==this.unit?"$reserved"!==t||void 0!==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("unit","undefined or null"):new U("partCapacity","undefined or null"):new U("modelName","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("modelName")&&null!==t.modelName&&void 0!==t.modelName&&n.setModelName(t.modelName),t.hasOwnProperty("partCapacity")&&null!==t.partCapacity&&void 0!==t.partCapacity&&n.setPartCapacity(t.partCapacity),t.hasOwnProperty("unit")&&null!==t.unit&&void 0!==t.unit&&n.setUnit(kh.constructFromObject(t.unit)),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=xh({},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&&Vh(t.prototype,n),r&&Vh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function zh(e){return zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zh(e)}function Wh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wh(Object(n),!0).forEach(function(t){Hh(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hh(e,t,n){return(t=Kh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Kh(r.key),r)}}function Kh(e){var t=function(e){if("object"!=zh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=zh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==zh(t)?t:t+""}function Xh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Xh=function(){return!!e})()}function Yh(e){return Yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yh(e)}function Zh(e,t){return Zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zh(e,t)}Lh.prototype.modelName=void 0,Lh.prototype.partCapacity=void 0,Lh.prototype.unit=void 0,Lh.prototype.$reserved=void 0,Lh.prototype.$objectType=void 0,Lh.prototype.$unknownFields=void 0;var Qh=new WeakSet,eb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}(e=function(e,t,n){return t=Yh(t),function(e,t){if(t&&("object"==zh(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,Xh()?Reflect.construct(t,n||[],Yh(e).constructor):t.apply(e,n))}(this,t),Qh),e.$objectType="aiops.v4.config.HardwareModel",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&&Zh(e,t)}(t,e),n=t,r=[{key:"getVendor",value:function(){return this.vendor}},{key:"setVendor",value:function(e){this.vendor=e}},{key:"getModel",value:function(){return this.model}},{key:"setModel",value:function(e){this.model=e}},{key:"getCpus",value:function(){return this.cpus}},{key:"setCpus",value:function(e){this.cpus=e}},{key:"getRams",value:function(){return this.rams}},{key:"setRams",value:function(e){this.rams=e}},{key:"getHdds",value:function(){return this.hdds}},{key:"setHdds",value:function(e){this.hdds=e}},{key:"getSsds",value:function(){return this.ssds}},{key:"setSsds",value:function(e){this.ssds=e}},{key:"getNvmes",value:function(){return this.nvmes}},{key:"setNvmes",value:function(e){this.nvmes=e}},{key:"toJson",value:function(e){return Jh(!1===e?Jh(Jh(Jh(Jh(Jh(Jh(Jh(Jh(Jh(Jh({},void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{}),void 0!==this.getModel()&&null!==this.getModel()?{model:this.getModel()}:{}),void 0!==this.getCpus()&&null!==this.getCpus()?{cpus:this.getCpus().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getRams()&&null!==this.getRams()?{rams:this.getRams().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getHdds()&&null!==this.getHdds()?{hdds:this.getHdds().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSsds()&&null!==this.getSsds()?{ssds:this.getSsds().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getNvmes()&&null!==this.getNvmes()?{nvmes:this.getNvmes().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()}:{}):Jh(Jh(Jh(Jh(Jh(Jh(Jh({},void 0!==this.getVendor()&&null!==this.getVendor()?{vendor:this.getVendor()}:{}),void 0!==this.getModel()&&null!==this.getModel()?{model:this.getModel()}:{}),void 0!==this.getCpus()&&null!==this.getCpus()?{cpus:this.getCpus().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getRams()&&null!==this.getRams()?{rams:this.getRams().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getHdds()&&null!==this.getHdds()?{hdds:this.getHdds().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getSsds()&&null!==this.getSsds()?{ssds:this.getSsds().map(function(e){return e.toJson(!1)})}:{}),void 0!==this.getNvmes()&&null!==this.getNvmes()?{nvmes:this.getNvmes().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"vendor"!==t||void 0!==this.vendor&&null!==this.vendor?"model"!==t||void 0!==this.model&&null!==this.model?"cpus"!==t||void 0!==this.cpus&&null!==this.cpus?"rams"!==t||void 0!==this.rams&&null!==this.rams?"hdds"!==t||void 0!==this.hdds&&null!==this.hdds?"ssds"!==t||void 0!==this.ssds&&null!==this.ssds?"nvmes"!==t||void 0!==this.nvmes&&null!==this.nvmes?new U(t,"no such property exists"):new U("nvmes","undefined or null"):new U("ssds","undefined or null"):new U("hdds","undefined or null"):new U("rams","undefined or null"):new U("cpus","undefined or null"):new U("model","undefined or null"):new U("vendor","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,ho.constructFromObject(e,a,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&a.setVendor(Xu.constructFromObject(e.vendor)),e.hasOwnProperty("model")&&null!==e.model&&void 0!==e.model&&a.setModel(e.model),e.hasOwnProperty("cpus")&&null!==e.cpus&&void 0!==e.cpus){for(i=[],n=e.cpus,o=0;o<n.length;o++)r=Lh.constructFromObject(n[o],void 0),i.push(r);a.setCpus(i)}if(e.hasOwnProperty("rams")&&null!==e.rams&&void 0!==e.rams){for(i=[],n=e.rams,o=0;o<n.length;o++)r=Lh.constructFromObject(n[o],void 0),i.push(r);a.setRams(i)}if(e.hasOwnProperty("hdds")&&null!==e.hdds&&void 0!==e.hdds){for(i=[],n=e.hdds,o=0;o<n.length;o++)r=Lh.constructFromObject(n[o],void 0),i.push(r);a.setHdds(i)}if(e.hasOwnProperty("ssds")&&null!==e.ssds&&void 0!==e.ssds){for(i=[],n=e.ssds,o=0;o<n.length;o++)r=Lh.constructFromObject(n[o],void 0),i.push(r);a.setSsds(i)}if(e.hasOwnProperty("nvmes")&&null!==e.nvmes&&void 0!==e.nvmes){for(i=[],n=e.nvmes,o=0;o<n.length;o++)r=Lh.constructFromObject(n[o],void 0),i.push(r);a.setNvmes(i)}if(!s)for(var u in a.$unknownFields=Jh({},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&&qh(n.prototype,r),o&&qh(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ho);function tb(e){return tb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tb(e)}function nb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(n),!0).forEach(function(t){ob(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ob(e,t,n){return(t=ab(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ib(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ab(r.key),r)}}function ab(e){var t=function(e){if("object"!=tb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=tb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==tb(t)?t:t+""}function sb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(sb=function(){return!!e})()}function ub(e){return ub=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ub(e)}function lb(e,t){return lb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lb(e,t)}function cb(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")}eb.prototype.vendor=void 0,eb.prototype.model=void 0,eb.prototype.cpus=void 0,eb.prototype.rams=void 0,eb.prototype.hdds=void 0,eb.prototype.ssds=void 0,eb.prototype.nvmes=void 0,ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var pb=new WeakSet,fb=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=ub(t),function(e,t){if(t&&("object"==tb(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,sb()?Reflect.construct(t,n||[],ub(e).constructor):t.apply(e,n))}(this,t),pb),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&&lb(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 rb(!1===e?rb(rb(rb(rb(rb(rb(rb(rb({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getStartDateTime()&&null!==this.getStartDateTime()?{startDateTime:cb(pb,this,yb).call(this,this.getStartDateTime(),!1)}:{}),void 0!==this.getEndDateTime()&&null!==this.getEndDateTime()?{endDateTime:cb(pb,this,yb).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()}:{}):rb(rb(rb(rb(rb({},void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{}),void 0!==this.getStartDateTime()&&null!==this.getStartDateTime()?{startDateTime:cb(pb,this,yb).call(this,this.getStartDateTime(),!1)}:{}),void 0!==this.getEndDateTime()&&null!==this.getEndDateTime()?{endDateTime:cb(pb,this,yb).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(!D.validateMaxLength(this.name,256))return new U("name","does not satisfy required maxLength constraint: 256");if(!D.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(!D.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,ho.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(jh.constructFromObject(e.clusterType)),e.hasOwnProperty("clusterUuid")&&null!==e.clusterUuid&&void 0!==e.clusterUuid&&n.setClusterUuid(e.clusterUuid),!r))for(var o in n.$unknownFields=rb({},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&&ib(n.prototype,r),o&&ib(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ho);function yb(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function db(e){return db="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},db(e)}function vb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hb(e,t,n){return(t=mb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mb(r.key),r)}}function mb(e){var t=function(e){if("object"!=db(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=db(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==db(t)?t:t+""}function gb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(gb=function(){return!!e})()}function wb(e){return wb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wb(e)}function Ob(e,t){return Ob=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ob(e,t)}fb.prototype.name=void 0,fb.prototype.startDateTime=void 0,fb.prototype.endDateTime=void 0,fb.prototype.clusterType=void 0,fb.prototype.clusterUuid=void 0,ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var jb=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=wb(t),function(e,t){if(t&&("object"==db(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,gb()?Reflect.construct(t,n||[],wb(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&&Ob(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,fb.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?vb(Object(n),!0).forEach(function(t){hb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vb(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&&bb(n.prototype,r),o&&bb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(fb),$b={$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($b).find(function(t){return $b[t]===e});return null==t?$b.$UNKNOWN:$b[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case $b.$UNKNOWN:case $b.$REDACTED:case $b.INEFFICIENCY_EXCLUSION:case $b.ANOMALY_EXCLUSION:return;default:throw new Error("Invalid : must be PolicyType.{ $UNKNOWN|$REDACTED|INEFFICIENCY_EXCLUSION|ANOMALY_EXCLUSION }")}}};Object.freeze($b);const kb=$b;function Pb(e){return Pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pb(e)}function Tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Sb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(n),!0).forEach(function(t){Cb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cb(e,t,n){return(t=Fb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fb(r.key),r)}}function Fb(e){var t=function(e){if("object"!=Pb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Pb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pb(t)?t:t+""}var Db=new WeakSet,Rb=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,Db),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 Sb(Sb(Sb({},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(!D.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(jh.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=Sb({},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&&Eb(t.prototype,n),r&&Eb(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Ab(e){return Ab="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ab(e)}function Ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ub(e,t,n){return(t=Nb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Nb(r.key),r)}}function Nb(e){var t=function(e){if("object"!=Ab(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Ab(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ab(t)?t:t+""}function xb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xb=function(){return!!e})()}function _b(e){return _b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_b(e)}function Vb(e,t){return Vb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vb(e,t)}Rb.prototype.clusterUuid=void 0,Rb.prototype.clusterType=void 0,Rb.prototype.$reserved=void 0,Rb.prototype.$objectType=void 0,Rb.prototype.$unknownFields=void 0;var Bb=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=_b(t),function(e,t){if(t&&("object"==Ab(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,xb()?Reflect.construct(t,n||[],_b(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&&Vb(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,Rb.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?Ib(Object(n),!0).forEach(function(t){Ub(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ib(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&&Mb(n.prototype,r),o&&Mb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Rb);function Gb(e){return Gb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gb(e)}function Lb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zb(e,t,n){return(t=Jb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jb(r.key),r)}}function Jb(e){var t=function(e){if("object"!=Gb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Gb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Gb(t)?t:t+""}function Hb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Hb=function(){return!!e})()}function qb(e){return qb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qb(e)}function Kb(e,t){return Kb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kb(e,t)}var Xb=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=qb(t),function(e,t){if(t&&("object"==Gb(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,Hb()?Reflect.construct(t,n||[],qb(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&&Kb(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,Ja.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?Lb(Object(n),!0).forEach(function(t){zb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lb(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&&Wb(n.prototype,r),o&&Wb(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(Ja);function Yb(e){return Yb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yb(e)}function Zb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zb(Object(n),!0).forEach(function(t){em(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function em(e,t,n){return(t=nm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nm(r.key),r)}}function nm(e){var t=function(e){if("object"!=Yb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Yb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Yb(t)?t:t+""}var rm=new WeakSet,om=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,rm),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 Qb(Qb(Qb({},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(!D.validateMaxLength(this.name,128))return new U("name","does not satisfy required maxLength constraint: 128");if(!D.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=Qb({},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&&tm(t.prototype,n),r&&tm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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 am(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?am(Object(n),!0).forEach(function(t){um(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):am(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function um(e,t,n){return(t=cm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cm(r.key),r)}}function cm(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 pm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pm=function(){return!!e})()}function fm(e){return fm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fm(e)}function ym(e,t){return ym=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ym(e,t)}function dm(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")}om.prototype.name=void 0,om.prototype.value="",om.prototype.$reserved=void 0,om.prototype.$objectType=void 0,om.prototype.$unknownFields=void 0;var vm=new WeakSet,hm=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=fm(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,pm()?Reflect.construct(t,n||[],fm(e).constructor):t.apply(e,n))}(this,t),vm),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&&ym(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 sm(!1===e?sm(sm(sm(sm(sm(sm(sm(sm(sm(sm(sm({},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:dm(vm,this,bm).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()}:{}):sm(sm(sm(sm({},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(!D.validateMaxLength(this.name,256))return new U("name","does not satisfy required maxLength constraint: 256");if(!D.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(!D.validateMaxLength(this.description,512))return new U("description","does not satisfy required maxLength constraint: 512");if(!D.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(!D.validateMaxItems(this.categories,1250))return new U("categories","does not satisfy required maxItems constraint: 1250");if(!D.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(!D.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,ho.constructFromObject(e,a,!0),e.hasOwnProperty("policyType")&&null!==e.policyType&&void 0!==e.policyType&&a.setPolicyType(kb.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=Uh.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=om.constructFromObject(n[o],void 0),i.push(r);a.setParameters(i)}if(!s)for(var u in a.$unknownFields=sm({},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&&lm(n.prototype,r),o&&lm(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(ho);function bm(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function mm(e){return mm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mm(e)}function gm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wm(e,t,n){return(t=jm(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,jm(r.key),r)}}function jm(e){var t=function(e){if("object"!=mm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=mm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mm(t)?t:t+""}function $m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($m=function(){return!!e})()}function km(e){return km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},km(e)}function Pm(e,t){return Pm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pm(e,t)}hm.prototype.policyType=void 0,hm.prototype.name=void 0,hm.prototype.description=void 0,hm.prototype.updatedTime=void 0,hm.prototype.isDefault=!1,hm.prototype.isEnabled=!0,hm.prototype.categories=void 0,hm.prototype.parameters=void 0,ho.prototype.extId=void 0,ho.prototype.links=void 0,oo.prototype.tenantId=void 0;var Tm=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=km(t),function(e,t){if(t&&("object"==mm(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,$m()?Reflect.construct(t,n||[],km(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&&Pm(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,hm.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?gm(Object(n),!0).forEach(function(t){wm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},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}(hm);function Sm(e){return Sm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sm(e)}function Cm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Em(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cm(Object(n),!0).forEach(function(t){Fm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fm(e,t,n){return(t=Rm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rm(r.key),r)}}function Rm(e){var t=function(e){if("object"!=Sm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Sm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Sm(t)?t:t+""}function Am(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 Im=new WeakSet,Um=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,Im),this.$objectType="aiops.v4.stats.ScenarioStatsTuple",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:"getCpuUsageGhz",value:function(){return this.cpuUsageGhz}},{key:"setCpuUsageGhz",value:function(e){this.cpuUsageGhz=e}},{key:"getCpuCapacityGhz",value:function(){return this.cpuCapacityGhz}},{key:"setCpuCapacityGhz",value:function(e){this.cpuCapacityGhz=e}},{key:"getCpuEffectiveCapacityGhz",value:function(){return this.cpuEffectiveCapacityGhz}},{key:"setCpuEffectiveCapacityGhz",value:function(e){this.cpuEffectiveCapacityGhz=e}},{key:"getMemoryUsageGb",value:function(){return this.memoryUsageGb}},{key:"setMemoryUsageGb",value:function(e){this.memoryUsageGb=e}},{key:"getMemoryCapacityGb",value:function(){return this.memoryCapacityGb}},{key:"setMemoryCapacityGb",value:function(e){this.memoryCapacityGb=e}},{key:"getMemoryEffectiveCapacityGb",value:function(){return this.memoryEffectiveCapacityGb}},{key:"setMemoryEffectiveCapacityGb",value:function(e){this.memoryEffectiveCapacityGb=e}},{key:"getStorageUsageGb",value:function(){return this.storageUsageGb}},{key:"setStorageUsageGb",value:function(e){this.storageUsageGb=e}},{key:"getStorageCapacityGb",value:function(){return this.storageCapacityGb}},{key:"setStorageCapacityGb",value:function(e){this.storageCapacityGb=e}},{key:"getStorageEffectiveCapacityGb",value:function(){return this.storageEffectiveCapacityGb}},{key:"setStorageEffectiveCapacityGb",value:function(e){this.storageEffectiveCapacityGb=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return Em(Em(Em(Em(Em(Em(Em(Em(Em(Em(Em({},void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Am(Im,this,Mm).call(this,this.getTimestamp(),!1)}:{}),void 0!==this.getCpuUsageGhz()&&null!==this.getCpuUsageGhz()?{cpuUsageGhz:this.getCpuUsageGhz()}:{}),void 0!==this.getCpuCapacityGhz()&&null!==this.getCpuCapacityGhz()?{cpuCapacityGhz:this.getCpuCapacityGhz()}:{}),void 0!==this.getCpuEffectiveCapacityGhz()&&null!==this.getCpuEffectiveCapacityGhz()?{cpuEffectiveCapacityGhz:this.getCpuEffectiveCapacityGhz()}:{}),void 0!==this.getMemoryUsageGb()&&null!==this.getMemoryUsageGb()?{memoryUsageGb:this.getMemoryUsageGb()}:{}),void 0!==this.getMemoryCapacityGb()&&null!==this.getMemoryCapacityGb()?{memoryCapacityGb:this.getMemoryCapacityGb()}:{}),void 0!==this.getMemoryEffectiveCapacityGb()&&null!==this.getMemoryEffectiveCapacityGb()?{memoryEffectiveCapacityGb:this.getMemoryEffectiveCapacityGb()}:{}),void 0!==this.getStorageUsageGb()&&null!==this.getStorageUsageGb()?{storageUsageGb:this.getStorageUsageGb()}:{}),void 0!==this.getStorageCapacityGb()&&null!==this.getStorageCapacityGb()?{storageCapacityGb:this.getStorageCapacityGb()}:{}),void 0!==this.getStorageEffectiveCapacityGb()&&null!==this.getStorageEffectiveCapacityGb()?{storageEffectiveCapacityGb:this.getStorageEffectiveCapacityGb()}:{}),{},{$reserved:this.get$Reserved(),$objectType:this.get$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?"cpuUsageGhz"!==t||void 0!==this.cpuUsageGhz&&null!==this.cpuUsageGhz?"cpuCapacityGhz"!==t||void 0!==this.cpuCapacityGhz&&null!==this.cpuCapacityGhz?"cpuEffectiveCapacityGhz"!==t||void 0!==this.cpuEffectiveCapacityGhz&&null!==this.cpuEffectiveCapacityGhz?"memoryUsageGb"!==t||void 0!==this.memoryUsageGb&&null!==this.memoryUsageGb?"memoryCapacityGb"!==t||void 0!==this.memoryCapacityGb&&null!==this.memoryCapacityGb?"memoryEffectiveCapacityGb"!==t||void 0!==this.memoryEffectiveCapacityGb&&null!==this.memoryEffectiveCapacityGb?"storageUsageGb"!==t||void 0!==this.storageUsageGb&&null!==this.storageUsageGb?"storageCapacityGb"!==t||void 0!==this.storageCapacityGb&&null!==this.storageCapacityGb?"storageEffectiveCapacityGb"!==t||void 0!==this.storageEffectiveCapacityGb&&null!==this.storageEffectiveCapacityGb?"$reserved"!==t||void 0!==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("storageEffectiveCapacityGb","undefined or null"):new U("storageCapacityGb","undefined or null"):new U("storageUsageGb","undefined or null"):new U("memoryEffectiveCapacityGb","undefined or null"):new U("memoryCapacityGb","undefined or null"):new U("memoryUsageGb","undefined or null"):new U("cpuEffectiveCapacityGhz","undefined or null"):new U("cpuCapacityGhz","undefined or null"):new U("cpuUsageGhz","undefined or null"):new U("timestamp","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("timestamp")&&null!==t.timestamp&&void 0!==t.timestamp&&n.setTimestamp(t.timestamp),t.hasOwnProperty("cpuUsageGhz")&&null!==t.cpuUsageGhz&&void 0!==t.cpuUsageGhz&&n.setCpuUsageGhz(t.cpuUsageGhz),t.hasOwnProperty("cpuCapacityGhz")&&null!==t.cpuCapacityGhz&&void 0!==t.cpuCapacityGhz&&n.setCpuCapacityGhz(t.cpuCapacityGhz),t.hasOwnProperty("cpuEffectiveCapacityGhz")&&null!==t.cpuEffectiveCapacityGhz&&void 0!==t.cpuEffectiveCapacityGhz&&n.setCpuEffectiveCapacityGhz(t.cpuEffectiveCapacityGhz),t.hasOwnProperty("memoryUsageGb")&&null!==t.memoryUsageGb&&void 0!==t.memoryUsageGb&&n.setMemoryUsageGb(t.memoryUsageGb),t.hasOwnProperty("memoryCapacityGb")&&null!==t.memoryCapacityGb&&void 0!==t.memoryCapacityGb&&n.setMemoryCapacityGb(t.memoryCapacityGb),t.hasOwnProperty("memoryEffectiveCapacityGb")&&null!==t.memoryEffectiveCapacityGb&&void 0!==t.memoryEffectiveCapacityGb&&n.setMemoryEffectiveCapacityGb(t.memoryEffectiveCapacityGb),t.hasOwnProperty("storageUsageGb")&&null!==t.storageUsageGb&&void 0!==t.storageUsageGb&&n.setStorageUsageGb(t.storageUsageGb),t.hasOwnProperty("storageCapacityGb")&&null!==t.storageCapacityGb&&void 0!==t.storageCapacityGb&&n.setStorageCapacityGb(t.storageCapacityGb),t.hasOwnProperty("storageEffectiveCapacityGb")&&null!==t.storageEffectiveCapacityGb&&void 0!==t.storageEffectiveCapacityGb&&n.setStorageEffectiveCapacityGb(t.storageEffectiveCapacityGb),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=Em({},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&&Dm(t.prototype,n),r&&Dm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();function Mm(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Nm(e){return Nm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nm(e)}function xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xm(Object(n),!0).forEach(function(t){Vm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vm(e,t,n){return(t=Gm(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gm(r.key),r)}}function Gm(e){var t=function(e){if("object"!=Nm(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Nm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nm(t)?t:t+""}Um.prototype.timestamp=void 0,Um.prototype.cpuUsageGhz=void 0,Um.prototype.cpuCapacityGhz=void 0,Um.prototype.cpuEffectiveCapacityGhz=void 0,Um.prototype.memoryUsageGb=void 0,Um.prototype.memoryCapacityGb=void 0,Um.prototype.memoryEffectiveCapacityGb=void 0,Um.prototype.storageUsageGb=void 0,Um.prototype.storageCapacityGb=void 0,Um.prototype.storageEffectiveCapacityGb=void 0,Um.prototype.$reserved=void 0,Um.prototype.$objectType=void 0,Um.prototype.$unknownFields=void 0;var Lm=new WeakSet,zm=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,Lm),this.$objectType="aiops.v4.stats.ScenarioStats",this.$reserved={$fv:"v4.r0"},this.$unknownFields={}}return t=e,n=[{key:"getScenarioExtId",value:function(){return this.scenarioExtId}},{key:"setScenarioExtId",value:function(e){this.scenarioExtId=e}},{key:"getStats",value:function(){return this.stats}},{key:"setStats",value:function(e){this.stats=e}},{key:"get$Reserved",value:function(){return this.$reserved}},{key:"get$ObjectType",value:function(){return this.$objectType}},{key:"get$UnknownFields",value:function(){return this.$unknownFields}},{key:"toJson",value:function(e){return _m(_m(_m({},void 0!==this.getScenarioExtId()&&null!==this.getScenarioExtId()?{scenarioExtId:this.getScenarioExtId()}:{}),void 0!==this.getStats()&&null!==this.getStats()?{stats:this.getStats().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"scenarioExtId"!==t||void 0!==this.scenarioExtId&&null!==this.scenarioExtId?"stats"!==t||void 0!==this.stats&&null!==this.stats?"$reserved"!==t||void 0!==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("stats","undefined or null"):new U("scenarioExtId","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("scenarioExtId")&&null!==t.scenarioExtId&&void 0!==t.scenarioExtId&&a.setScenarioExtId(t.scenarioExtId),t.hasOwnProperty("stats")&&null!==t.stats&&void 0!==t.stats){for(i=[],n=t.stats,o=0;o<n.length;o++)r=Um.constructFromObject(n[o],void 0),i.push(r);a.setStats(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=_m({},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&&Bm(t.prototype,n),r&&Bm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,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 Jm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Hm(e,t,n){return(t=Km(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Km(r.key),r)}}function Km(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 Xm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Xm=function(){return!!e})()}function Ym(e){return Ym=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ym(e)}function Zm(e,t){return Zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zm(e,t)}zm.prototype.scenarioExtId=void 0,zm.prototype.stats=void 0,zm.prototype.$reserved=void 0,zm.prototype.$objectType=void 0,zm.prototype.$unknownFields=void 0;var Qm=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=Ym(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,Xm()?Reflect.construct(t,n||[],Ym(e).constructor):t.apply(e,n))}(this,t)).$objectType="aiops.v4.stats.ScenarioStatsProjection",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&&Zm(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,zm.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?Jm(Object(n),!0).forEach(function(t){Hm(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},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&&qm(n.prototype,r),o&&qm(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(zm);const eg={ApiClient:lt,StatsApi:xa,ScenariosApi:Ad,CapacityDetails:Wd,CapacityplanningCapacityUnit:Ud,CapacityplanningRunway:nv,RunwayDuration:Nd,Cluster:cv,ClusterMetrics:Ev,ClusterProjection:wh,Node:Nv,NodeProjection:Jv,Vm:eh,VmProjection:lh,ClusterType:jh,ConfigCapacityUnit:kh,CapacityUpdateConfig:al,CapacityUpdateType:Zu,CategoryDetail:Uh,CitrixXenProvisionType:ul,CitrixXenWorkload:Dl,CitrixXenWorkloadVendor:cl,ClusterConfig:xu,CreateScenarioApiResponse:mf,CreateSimulationApiResponse:hs,DataStoreConfig:cu,DeleteScenarioApiResponse:Jf,DeleteSimulationApiResponse:Rf,EntityDescriptor:mi,EntityDescriptorListApiResponse:Di,EntityType:da,EntityTypeListApiResponse:Sa,GenerateRecommendationApiResponse:ay,GenerateReportApiResponse:wy,GenerateRunwayApiResponse:jd,GetScenarioApiResponse:qy,GetScenarioReportApiResponse:Kp,GetSimulationApiResponse:Iy,HardwareModel:eb,HardwarePart:Lh,IgnoreWindow:fb,IgnoreWindowProjection:jb,ListScenariosApiResponse:Up,ListSimulationsApiResponse:_s,MetricDescriptor:si,MicrosoftXenProvisionType:Al,MicrosoftXenWorkload:Jl,MicrosoftXenWorkloadVendor:Ul,NodeConfig:Eu,NodeSource:fu,PolicyType:kb,ReplicationFactor:nu,ResourceCapacity:wu,ConfigRunway:Hu,RunwayParams:Rb,RunwayParamsProjection:Bb,Scenario:fp,ScenarioProjection:jp,SimulatedVmResourceSpec:Ja,SimulatedVmResourceSpecProjection:Xb,Simulation:rs,SimulationProjection:Ts,Source:Li,SourceListApiResponse:na,SplunkWorkload:ec,SqlProfileType:nc,SqlTransactionType:oc,SqlWorkload:fc,UpdateScenarioApiResponse:ud,UpdateSimulationApiResponse:Qs,ValueRange:Ko,ValueType:Yo,VdiProvisionType:dc,VdiUserType:hc,VdiVendor:mc,VdiWorkload:Tc,Vendor:Xu,VmCategoryWorkload:Ic,VmWorkload:Gc,Workload:Zc,XenOperatingSystem:fl,XenWorkload:wl,XfitPolicy:hm,XfitPolicyProjection:Tm,AppMessage:Ut,ErrorResponse:pn,SchemaValidationError:Qt,SchemaValidationErrorMessage:zt,BoolList:wn,BoolVal:Cn,DoubleList:Mn,DoubleVal:zn,Entity:So,EntityListApiResponse:Vo,IntList:Zn,IntVal:ar,Metric:Xr,Point:Rr,ScenarioStats:zm,ScenarioStatsProjection:Qm,ScenarioStatsTuple:Um,StrList:dr,StrVal:jr,TimeSeries:Gr,Flag:L,IPv4Address:mv,KVPair:ce,KVStringPair:om,MapOfStringWrapper:Q,Message:Oe,MessageSeverity:ye,TenantAwareModel:oo,ApiLink:Ee,ApiResponseMetadata:xe,ExternalizableAbstractModel:ho,DownSamplingOperator:Qo,TaskReference:of}})(),r.default})());
|