@nutanix-scratch/aiops-js-client 4.0.2 → 4.2.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -4
- package/dist/Ntnx-Aiops-js-client-prod.js +1 -1
- package/dist/Ntnx-Aiops-js-client.js +560 -675
- package/dist/es/ApiClient.d.ts +29 -7
- package/dist/es/ApiClient.js +854 -667
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/scenarios-endpoints.d.ts +1 -1
- package/dist/es/apis/scenarios-endpoints.js +535 -552
- package/dist/es/apis/stats-endpoints.d.ts +1 -1
- package/dist/es/apis/stats-endpoints.js +196 -202
- package/dist/es/index.d.ts +13 -35
- package/dist/es/index.js +331 -419
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +2 -18
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +396 -457
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +1 -51
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +708 -800
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +1 -38
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +215 -244
- package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +2 -11
- package/dist/es/models/aiops/v4/clusterMetrics/Node.js +233 -280
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +74 -103
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +2 -11
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +233 -280
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +74 -103
- package/dist/es/models/aiops/v4/common/ClusterType.js +7 -9
- package/dist/{lib/models/aiops/v4/capacityplanning/CapacityUnit.d.ts → es/models/aiops/v4/config/CapacityType.d.ts} +6 -6
- package/dist/es/models/aiops/v4/config/CapacityType.js +95 -0
- package/dist/es/models/aiops/v4/config/CapacityUnit.js +7 -9
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +2 -8
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +164 -205
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +7 -9
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +7 -9
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +1 -14
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +171 -204
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +7 -9
- package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +3 -52
- package/dist/es/models/aiops/v4/config/ClusterConfig.js +173 -223
- package/dist/es/models/aiops/v4/{capacityplanning/RunwayDuration.d.ts → config/ClusterType.d.ts} +6 -6
- package/dist/{lib/models/aiops/v4/capacityplanning/CapacityUnit.js → es/models/aiops/v4/config/ClusterType.js} +24 -26
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +2 -46
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +2 -16
- package/dist/es/models/aiops/v4/config/DataStoreConfig.js +364 -421
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +190 -245
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +190 -245
- package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +1 -2
- package/dist/es/models/aiops/v4/config/EntityDescriptor.js +250 -308
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +2 -45
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/config/EntityDetail.d.ts +29 -0
- package/dist/es/models/aiops/v4/config/EntityDetail.js +260 -0
- package/dist/es/models/aiops/v4/config/EntityType.d.ts +1 -16
- package/dist/es/models/aiops/v4/config/EntityType.js +129 -171
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +213 -268
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +213 -268
- package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +2 -29
- package/dist/es/models/aiops/v4/config/MetricDescriptor.js +401 -464
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +7 -9
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +1 -14
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +171 -204
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +7 -9
- package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +13 -21
- package/dist/es/models/aiops/v4/config/NodeConfig.js +305 -317
- package/dist/es/models/aiops/v4/config/NodeSource.js +7 -9
- package/dist/es/models/aiops/v4/config/PolicyType.js +7 -9
- package/dist/es/models/aiops/v4/config/ReplicationFactor.js +7 -9
- package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +2 -11
- package/dist/es/models/aiops/v4/config/ResourceCapacity.js +241 -288
- package/dist/es/models/aiops/v4/config/Runway.d.ts +26 -35
- package/dist/es/models/aiops/v4/config/Runway.js +283 -330
- package/dist/es/models/aiops/v4/config/Scenario.d.ts +39 -83
- package/dist/es/models/aiops/v4/config/Scenario.js +444 -397
- package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/config/ScenarioProjection.js +74 -103
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +2 -10
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +216 -261
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +73 -102
- package/dist/es/models/aiops/v4/config/Simulation.d.ts +1 -25
- package/dist/es/models/aiops/v4/config/Simulation.js +155 -199
- package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/config/SimulationProjection.js +74 -103
- package/dist/es/models/aiops/v4/config/Source.d.ts +1 -16
- package/dist/es/models/aiops/v4/config/Source.js +129 -171
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +2 -50
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +2 -10
- package/dist/es/models/aiops/v4/config/SplunkWorkload.js +246 -291
- package/dist/es/models/aiops/v4/config/SqlProfileType.js +7 -9
- package/dist/es/models/aiops/v4/config/SqlTransactionType.js +7 -9
- package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +2 -10
- package/dist/es/models/aiops/v4/config/SqlWorkload.js +219 -264
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/config/ValueRange.d.ts +2 -8
- package/dist/es/models/aiops/v4/config/ValueRange.js +166 -207
- package/dist/es/models/aiops/v4/config/ValueType.js +7 -9
- package/dist/es/models/aiops/v4/config/VdiProvisionType.js +7 -9
- package/dist/es/models/aiops/v4/config/VdiUserType.js +7 -9
- package/dist/es/models/aiops/v4/config/VdiVendor.js +7 -9
- package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +2 -10
- package/dist/es/models/aiops/v4/config/VdiWorkload.js +216 -261
- package/dist/es/models/aiops/v4/config/Vendor.js +7 -9
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +5 -20
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +188 -247
- package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +2 -8
- package/dist/es/models/aiops/v4/config/VmWorkload.js +176 -217
- package/dist/es/models/aiops/v4/config/Workload.d.ts +2 -19
- package/dist/es/models/aiops/v4/config/Workload.js +248 -297
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +7 -9
- package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +2 -12
- package/dist/es/models/aiops/v4/config/XenWorkload.js +302 -351
- package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +21 -61
- package/dist/es/models/aiops/v4/config/XfitPolicy.js +359 -407
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +2 -4
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +77 -110
- package/dist/es/models/aiops/v4/error/AppMessage.d.ts +2 -12
- package/dist/es/models/aiops/v4/error/AppMessage.js +264 -313
- package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/aiops/v4/error/ErrorResponse.js +175 -218
- package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/aiops/v4/error/SchemaValidationError.js +249 -300
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/es/models/aiops/v4/stats/BoolList.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/BoolList.js +147 -186
- package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/BoolVal.js +140 -179
- package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/DoubleList.js +147 -186
- package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/DoubleVal.js +140 -179
- package/dist/es/models/aiops/v4/stats/Entity.d.ts +1 -2
- package/dist/es/models/aiops/v4/stats/Entity.js +223 -279
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/stats/IntList.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/IntList.js +147 -186
- package/dist/es/models/aiops/v4/stats/IntVal.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/IntVal.js +140 -179
- package/dist/es/models/aiops/v4/stats/Metric.d.ts +2 -20
- package/dist/es/models/aiops/v4/stats/Metric.js +166 -207
- package/dist/es/models/aiops/v4/stats/Point.d.ts +2 -8
- package/dist/es/models/aiops/v4/stats/Point.js +199 -244
- package/dist/es/models/aiops/v4/stats/StrList.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/StrList.js +147 -186
- package/dist/es/models/aiops/v4/stats/StrVal.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/StrVal.js +140 -179
- package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +2 -14
- package/dist/es/models/aiops/v4/stats/TimeSeries.js +175 -220
- package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/es/models/common/v1/config/Flag.js +170 -211
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVPair.js +225 -270
- package/dist/es/models/common/v1/config/KVStringPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVStringPair.js +170 -211
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/es/models/common/v1/config/Message.d.ts +2 -10
- package/dist/es/models/common/v1/config/Message.js +213 -258
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/es/models/common/v1/response/ApiLink.js +165 -206
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +7 -9
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/es/models/validation/ValidationError.js +26 -42
- package/dist/es/models/validation/ValidationScopes.js +3 -3
- package/dist/es/utils/ValidationUtils.js +39 -69
- package/dist/lib/ApiClient.d.ts +29 -7
- package/dist/lib/ApiClient.js +854 -667
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/scenarios-endpoints.d.ts +1 -1
- package/dist/lib/apis/scenarios-endpoints.js +535 -552
- package/dist/lib/apis/stats-endpoints.d.ts +1 -1
- package/dist/lib/apis/stats-endpoints.js +196 -202
- package/dist/lib/index.d.ts +13 -35
- package/dist/lib/index.js +331 -419
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +2 -18
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +396 -457
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +1 -51
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +708 -800
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +1 -38
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +215 -244
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +2 -11
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +233 -280
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +74 -103
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +2 -11
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +233 -280
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +74 -103
- package/dist/lib/models/aiops/v4/common/ClusterType.js +7 -9
- package/dist/{es/models/aiops/v4/capacityplanning/CapacityUnit.d.ts → lib/models/aiops/v4/config/CapacityType.d.ts} +6 -6
- package/dist/lib/models/aiops/v4/config/CapacityType.js +95 -0
- package/dist/lib/models/aiops/v4/config/CapacityUnit.js +7 -9
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +2 -8
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +164 -205
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +7 -9
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +7 -9
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +1 -14
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +171 -204
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +7 -9
- package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +3 -52
- package/dist/lib/models/aiops/v4/config/ClusterConfig.js +173 -223
- package/dist/lib/models/aiops/v4/{capacityplanning/RunwayDuration.d.ts → config/ClusterType.d.ts} +6 -6
- package/dist/{es/models/aiops/v4/capacityplanning/CapacityUnit.js → lib/models/aiops/v4/config/ClusterType.js} +24 -26
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +2 -46
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +2 -16
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +364 -421
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +190 -245
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +190 -245
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +1 -2
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +250 -308
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +2 -45
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/config/EntityDetail.d.ts +29 -0
- package/dist/lib/models/aiops/v4/config/EntityDetail.js +260 -0
- package/dist/lib/models/aiops/v4/config/EntityType.d.ts +1 -16
- package/dist/lib/models/aiops/v4/config/EntityType.js +129 -171
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +213 -268
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +213 -268
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +2 -29
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +401 -464
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +7 -9
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +1 -14
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +171 -204
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +7 -9
- package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +13 -21
- package/dist/lib/models/aiops/v4/config/NodeConfig.js +305 -317
- package/dist/lib/models/aiops/v4/config/NodeSource.js +7 -9
- package/dist/lib/models/aiops/v4/config/PolicyType.js +7 -9
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +7 -9
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +2 -11
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +241 -288
- package/dist/lib/models/aiops/v4/config/Runway.d.ts +26 -35
- package/dist/lib/models/aiops/v4/config/Runway.js +283 -330
- package/dist/lib/models/aiops/v4/config/Scenario.d.ts +39 -83
- package/dist/lib/models/aiops/v4/config/Scenario.js +444 -397
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +74 -103
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +2 -10
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +216 -261
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +73 -102
- package/dist/lib/models/aiops/v4/config/Simulation.d.ts +1 -25
- package/dist/lib/models/aiops/v4/config/Simulation.js +155 -199
- package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/config/SimulationProjection.js +74 -103
- package/dist/lib/models/aiops/v4/config/Source.d.ts +1 -16
- package/dist/lib/models/aiops/v4/config/Source.js +129 -171
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +2 -50
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +2 -10
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +246 -291
- package/dist/lib/models/aiops/v4/config/SqlProfileType.js +7 -9
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +7 -9
- package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +2 -10
- package/dist/lib/models/aiops/v4/config/SqlWorkload.js +219 -264
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +2 -8
- package/dist/lib/models/aiops/v4/config/ValueRange.js +166 -207
- package/dist/lib/models/aiops/v4/config/ValueType.js +7 -9
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +7 -9
- package/dist/lib/models/aiops/v4/config/VdiUserType.js +7 -9
- package/dist/lib/models/aiops/v4/config/VdiVendor.js +7 -9
- package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +2 -10
- package/dist/lib/models/aiops/v4/config/VdiWorkload.js +216 -261
- package/dist/lib/models/aiops/v4/config/Vendor.js +7 -9
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +5 -20
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +188 -247
- package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +2 -8
- package/dist/lib/models/aiops/v4/config/VmWorkload.js +176 -217
- package/dist/lib/models/aiops/v4/config/Workload.d.ts +2 -19
- package/dist/lib/models/aiops/v4/config/Workload.js +248 -297
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +7 -9
- package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +2 -12
- package/dist/lib/models/aiops/v4/config/XenWorkload.js +302 -351
- package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +21 -61
- package/dist/lib/models/aiops/v4/config/XfitPolicy.js +359 -407
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +2 -4
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +77 -110
- package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +2 -12
- package/dist/lib/models/aiops/v4/error/AppMessage.js +264 -313
- package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/aiops/v4/error/ErrorResponse.js +175 -218
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +249 -300
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/BoolList.js +147 -186
- package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/BoolVal.js +140 -179
- package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/DoubleList.js +147 -186
- package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/DoubleVal.js +140 -179
- package/dist/lib/models/aiops/v4/stats/Entity.d.ts +1 -2
- package/dist/lib/models/aiops/v4/stats/Entity.js +223 -279
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/stats/IntList.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/IntList.js +147 -186
- package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/IntVal.js +140 -179
- package/dist/lib/models/aiops/v4/stats/Metric.d.ts +2 -20
- package/dist/lib/models/aiops/v4/stats/Metric.js +166 -207
- package/dist/lib/models/aiops/v4/stats/Point.d.ts +2 -8
- package/dist/lib/models/aiops/v4/stats/Point.js +199 -244
- package/dist/lib/models/aiops/v4/stats/StrList.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/StrList.js +147 -186
- package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/StrVal.js +140 -179
- package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +2 -14
- package/dist/lib/models/aiops/v4/stats/TimeSeries.js +175 -220
- package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/lib/models/common/v1/config/Flag.js +170 -211
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVPair.js +225 -270
- package/dist/lib/models/common/v1/config/KVStringPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVStringPair.js +170 -211
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
- package/dist/lib/models/common/v1/config/Message.js +213 -258
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +7 -9
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/lib/models/validation/ValidationError.js +26 -42
- package/dist/lib/models/validation/ValidationScopes.js +3 -3
- package/dist/lib/utils/ValidationUtils.js +39 -69
- package/package.json +1 -1
- package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +0 -109
- package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.js +0 -459
- package/dist/es/models/aiops/v4/capacityplanning/Runway.d.ts +0 -86
- package/dist/es/models/aiops/v4/capacityplanning/Runway.js +0 -340
- package/dist/es/models/aiops/v4/capacityplanning/RunwayDuration.js +0 -91
- package/dist/es/models/aiops/v4/config/CategoryDetail.d.ts +0 -60
- package/dist/es/models/aiops/v4/config/CategoryDetail.js +0 -315
- package/dist/es/models/aiops/v4/config/HardwareModel.d.ts +0 -144
- package/dist/es/models/aiops/v4/config/HardwareModel.js +0 -550
- package/dist/es/models/aiops/v4/config/HardwarePart.d.ts +0 -92
- package/dist/es/models/aiops/v4/config/HardwarePart.js +0 -363
- package/dist/es/models/aiops/v4/config/IgnoreWindow.d.ts +0 -111
- package/dist/es/models/aiops/v4/config/IgnoreWindow.js +0 -458
- package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.d.ts +0 -20
- package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.js +0 -173
- package/dist/es/models/aiops/v4/config/RunwayParams.d.ts +0 -77
- package/dist/es/models/aiops/v4/config/RunwayParams.js +0 -323
- package/dist/es/models/aiops/v4/config/RunwayParamsProjection.d.ts +0 -14
- package/dist/es/models/aiops/v4/config/RunwayParamsProjection.js +0 -159
- package/dist/es/models/aiops/v4/stats/ScenarioStats.d.ts +0 -79
- package/dist/es/models/aiops/v4/stats/ScenarioStats.js +0 -323
- package/dist/es/models/aiops/v4/stats/ScenarioStatsProjection.d.ts +0 -10
- package/dist/es/models/aiops/v4/stats/ScenarioStatsProjection.js +0 -151
- package/dist/es/models/aiops/v4/stats/ScenarioStatsTuple.d.ts +0 -160
- package/dist/es/models/aiops/v4/stats/ScenarioStatsTuple.js +0 -617
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +0 -109
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.js +0 -459
- package/dist/lib/models/aiops/v4/capacityplanning/Runway.d.ts +0 -86
- package/dist/lib/models/aiops/v4/capacityplanning/Runway.js +0 -340
- package/dist/lib/models/aiops/v4/capacityplanning/RunwayDuration.js +0 -91
- package/dist/lib/models/aiops/v4/config/CategoryDetail.d.ts +0 -60
- package/dist/lib/models/aiops/v4/config/CategoryDetail.js +0 -315
- package/dist/lib/models/aiops/v4/config/HardwareModel.d.ts +0 -144
- package/dist/lib/models/aiops/v4/config/HardwareModel.js +0 -550
- package/dist/lib/models/aiops/v4/config/HardwarePart.d.ts +0 -92
- package/dist/lib/models/aiops/v4/config/HardwarePart.js +0 -363
- package/dist/lib/models/aiops/v4/config/IgnoreWindow.d.ts +0 -111
- package/dist/lib/models/aiops/v4/config/IgnoreWindow.js +0 -458
- package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.d.ts +0 -20
- package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.js +0 -173
- package/dist/lib/models/aiops/v4/config/RunwayParams.d.ts +0 -77
- package/dist/lib/models/aiops/v4/config/RunwayParams.js +0 -323
- package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.d.ts +0 -14
- package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.js +0 -159
- package/dist/lib/models/aiops/v4/stats/ScenarioStats.d.ts +0 -79
- package/dist/lib/models/aiops/v4/stats/ScenarioStats.js +0 -323
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsProjection.d.ts +0 -10
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsProjection.js +0 -151
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsTuple.d.ts +0 -160
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsTuple.js +0 -617
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Ntnx=t():(e.Ntnx=e.Ntnx||{},e.Ntnx.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})());
|
|
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())}(Object("undefined"==typeof self?this:self),()=>(()=>{var e={19(e,t,n){"use strict";var i=n(897);function s(e){if(e)return function(e){for(var t in s.prototype)Object.prototype.hasOwnProperty.call(s.prototype,t)&&(e[t]=s.prototype[t]);return e}(e)}e.exports=s,s.prototype.get=function(e){return this.header[e.toLowerCase()]},s.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=i.type(t);var n=i.params(t);for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(this[s]=n[s]);this.links={};try{e.link&&(this.links=i.parseLinks(e.link))}catch(e){}},s.prototype._setStatusProperties=function(e){var t=e/100|0;this.statusCode=e,this.status=this.statusCode,this.statusType=t,this.info=1===t,this.ok=2===t,this.redirect=3===t,this.clientError=4===t,this.serverError=5===t,this.error=(4===t||5===t)&&this.toError(),this.created=201===e,this.accepted=202===e,this.noContent=204===e,this.badRequest=400===e,this.unauthorized=401===e,this.notAcceptable=406===e,this.forbidden=403===e,this.notFound=404===e,this.unprocessableEntity=422===e}},98(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},340(e){e.exports=r,r.default=r,r.stable=u,r.stableStringify=u;var t="[...]",n="[Circular]",i=[],s=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function r(e,t,n,r){var a;void 0===r&&(r=o()),l(e,"",0,[],void 0,0,r);try{a=0===s.length?JSON.stringify(e,t,n):JSON.stringify(e,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var d=i.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function a(e,t,n,o){var r=Object.getOwnPropertyDescriptor(o,n);void 0!==r.get?r.configurable?(Object.defineProperty(o,n,{value:e}),i.push([o,n,t,r])):s.push([t,n,e]):(o[n]=e,i.push([o,n,t]))}function l(e,i,s,o,r,d,u){var h;if(d+=1,"object"==typeof e&&null!==e){for(h=0;h<o.length;h++)if(o[h]===e)return void a(n,e,i,r);if(void 0!==u.depthLimit&&d>u.depthLimit)return void a(t,e,i,r);if(void 0!==u.edgesLimit&&s+1>u.edgesLimit)return void a(t,e,i,r);if(o.push(e),Array.isArray(e))for(h=0;h<e.length;h++)l(e[h],h,h,o,e,d,u);else{var c=Object.keys(e);for(h=0;h<c.length;h++){var p=c[h];l(e[p],p,h,o,e,d,u)}}o.pop()}}function d(e,t){return e<t?-1:e>t?1:0}function u(e,t,n,r){void 0===r&&(r=o());var a,l=h(e,"",0,[],void 0,0,r)||e;try{a=0===s.length?JSON.stringify(l,t,n):JSON.stringify(l,c(t),n)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var d=i.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return a}function h(e,s,o,r,l,u,c){var p;if(u+=1,"object"==typeof e&&null!==e){for(p=0;p<r.length;p++)if(r[p]===e)return void a(n,e,s,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==c.depthLimit&&u>c.depthLimit)return void a(t,e,s,l);if(void 0!==c.edgesLimit&&o+1>c.edgesLimit)return void a(t,e,s,l);if(r.push(e),Array.isArray(e))for(p=0;p<e.length;p++)h(e[p],p,p,r,e,u,c);else{var y={},v=Object.keys(e).sort(d);for(p=0;p<v.length;p++){var g=v[p];h(e[g],g,p,r,e,u,c),y[g]=e[g]}if(void 0===l)return y;i.push([l,s,e]),l[s]=y}r.pop()}}function c(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(s.length>0)for(var i=0;i<s.length;i++){var o=s[i];if(o[1]===t&&o[0]===n){n=o[2],s.splice(i,1);break}}return e.call(this,t,n)}}},388(e){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}e.exports=function(e){return null!==e&&"object"===t(e)}},540(e){function t(e,t){if(this._maxRetries&&this._retries++<this._maxRetries&&function(e,t,n,i){if(i)return i(e,t);if(e&&e.code&&~["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT","ENOTFOUND","ECONNREFUSED"].indexOf(e.code))return!0;if(t&&t.status){const e=t.status;if(e>=500)return!0;if((e>=400||e<200)&&-1===n.indexOf(e))return!0}return!(!e||!("timeout"in e)||"ECONNABORTED"!==e.code)||e&&"crossDomain"in e}(e,t,this._allowedStatuses,this._retryCallback)){let e;e=this._retries?this._retryDelays[this._retries-1]:0;const t=this;return setTimeout(function(){return t._retry()},e)}const n=this._callback;this.clearTimeout(),e&&(this._maxRetries&&(e.retries=this._retries-1),this.emit("error",e)),n(e,t)}function n(e,t,n,i){0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),"number"==typeof t&&(t=[t]);const s=t.length,o=e-s;if(0!==o){if(o<0)throw new Error("Cannot have more delays than retries");{const e=t[s-1];for(let n=0;n<o+1;n++)t.push(e)}}return this._maxRetries=e,this._retries=0,this._retryDelays=t||[0],this._allowedStatuses=n||[],this._retryCallback=i,this}e.exports=function(e){const i=e.Request;return i.prototype.oldRetry=i.prototype.retry,i.prototype.retry=n,i.prototype.callback=t,e}},545(){},548(){},585(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s;"undefined"!=typeof window?s=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),s=void 0):s=self;var o=n(960),r=n(340),a=n(695),l=n(388),d=n(19),u=n(619);function h(){}e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1===arguments.length?new t.Request("GET",e):new t.Request(e,n)};var c=t=e.exports;t.Request=$,c.getXHR=function(){if(s.XMLHttpRequest&&(!s.location||"file:"!==s.location.protocol||!s.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("Browser-only version of superagent could not find XHR")};var p="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function y(e){if(!l(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(l(n))for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&v(e,"".concat(t,"[").concat(i,"]"),n[i]);else e.push(encodeURI(t)+"="+encodeURIComponent(n));else e.push(encodeURI(t))}function g(e){for(var t,n,i={},s=e.split("&"),o=0,r=s.length;o<r;++o)-1===(n=(t=s[o]).indexOf("="))?i[decodeURIComponent(t)]="":i[decodeURIComponent(t.slice(0,n))]=decodeURIComponent(t.slice(n+1));return i}function m(e){return/[/+]json($|[^-\w])/.test(e)}function w(e){this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var t=this.xhr.status;1223===t&&(t=204),this._setStatusProperties(t),this.headers=function(e){for(var t,n,i,s,o=e.split(/\r?\n/),r={},a=0,l=o.length;a<l;++a)-1!==(t=(n=o[a]).indexOf(":"))&&(i=n.slice(0,t).toLowerCase(),s=p(n.slice(t+1)),r[i]=s);return r}(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 $(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e,t=null,i=null;try{i=new w(n)}catch(e){return(t=new Error("Parser is unable to parse the response")).parse=!0,t.original=e,n.xhr?(t.rawResponse=void 0===n.xhr.responseType?n.xhr.responseText:n.xhr.response,t.status=n.xhr.status?n.xhr.status:null,t.statusCode=t.status):(t.rawResponse=null,t.status=null),n.callback(t)}n.emit("response",i);try{n._isResponseOK(i)||(e=new Error(i.statusText||i.text||"Unsuccessful HTTP response"))}catch(t){e=t}e?(e.original=t,e.response=i,e.status=i.status,n.callback(e,i)):n.callback(null,i)})}function f(e,t,n){var i=c("DELETE",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}c.serializeObject=y,c.parseString=g,c.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},c.serialize={"application/x-www-form-urlencoded":y,"application/json":r},c.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},d(w.prototype),w.prototype._parseBody=function(e){var t=c.parse[this.type];return this.req._parser?this.req._parser(this,e):(!t&&m(this.type)&&(t=c.parse["application/json"]),t&&e&&(e.length>0||e instanceof Object)?t(e):null)},w.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,i="cannot ".concat(t," ").concat(n," (").concat(this.status,")"),s=new Error(i);return s.status=this.status,s.method=t,s.url=n,s},c.Response=w,o($.prototype),a($.prototype),$.prototype.type=function(e){return this.set("Content-Type",c.types[e]||e),this},$.prototype.accept=function(e){return this.set("Accept",c.types[e]||e),this},$.prototype.auth=function(e,t,n){return 1===arguments.length&&(t=""),"object"===i(t)&&null!==t&&(n=t,t=""),n||(n={type:"function"==typeof btoa?"basic":"auto"}),this._auth(e,t,n,function(e){if("function"==typeof btoa)return btoa(e);throw new Error("Cannot use basic auth, btoa is not a function")})},$.prototype.query=function(e){return"string"!=typeof e&&(e=y(e)),e&&this._query.push(e),this},$.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},$.prototype._getFormData=function(){return this._formData||(this._formData=new s.FormData),this._formData},$.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)},$.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)},$.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},$.prototype.ca=$.prototype.agent,$.prototype.buffer=$.prototype.ca,$.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},$.prototype.pipe=$.prototype.write,$.prototype._isHost=function(e){return e&&"object"===i(e)&&!Array.isArray(e)&&"[object Object]"!==Object.prototype.toString.call(e)},$.prototype.end=function(e){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=e||h,this._finalizeQueryString(),this._end()},$.prototype._setUploadTimeout=function(){var e=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){e._timeoutError("Upload timeout of ",e._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},$.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var e=this;this.xhr=c.getXHR();var t=this.xhr,n=this._formData||this._data;this._setTimeouts(),t.onreadystatechange=function(){var n=t.readyState;if(n>=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4===n){var i;try{i=t.status}catch(e){i=0}if(!i){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var i=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100,100===n.percent&&clearTimeout(e._uploadTimeoutTimer)),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.addEventListener("progress",i.bind(null,"download")),t.upload&&t.upload.addEventListener("progress",i.bind(null,"upload"))}catch(e){}t.upload&&this._setUploadTimeout();try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof n&&!this._isHost(n)){var s=this._header["content-type"],o=this._serializer||c.serialize[s?s.split(";")[0]:""];!o&&m(s)&&(o=c.serialize["application/json"]),o&&(n=o(n))}for(var r in this.header)null!==this.header[r]&&Object.prototype.hasOwnProperty.call(this.header,r)&&t.setRequestHeader(r,this.header[r]);this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0===n?null:n)},c.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,n){var i=new c.Request(e,t);return this._setDefaults(i),n&&i.end(n),i}}),u.prototype.del=u.prototype.delete,c.get=function(e,t,n){var i=c("GET",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},c.head=function(e,t,n){var i=c("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&i.query(t),n&&i.end(n),i},c.options=function(e,t,n){var i=c("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.del=f,c.delete=f,c.patch=function(e,t,n){var i=c("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.post=function(e,t,n){var i=c("POST",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i},c.put=function(e,t,n){var i=c("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&i.send(t),n&&i.end(n),i}},597(e){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},619(e){"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(e){n.prototype[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this._defaults.push({fn:e,args:n}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(n){var i;e[n.fn].apply(e,function(e){if(Array.isArray(e))return t(e)}(i=n.args)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})},e.exports=n},695(e,t,n){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s=n(388);function o(e){if(e)return function(e){for(var t in o.prototype)Object.prototype.hasOwnProperty.call(o.prototype,t)&&(e[t]=o.prototype[t]);return e}(e)}e.exports=o,o.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},o.prototype.parse=function(e){return this._parser=e,this},o.prototype.responseType=function(e){return this._responseType=e,this},o.prototype.serialize=function(e){return this._serializer=e,this},o.prototype.timeout=function(e){if(!e||"object"!==i(e))return this._timeout=e,this._responseTimeout=0,this._uploadTimeout=0,this;for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(t){case"deadline":this._timeout=e.deadline;break;case"response":this._responseTimeout=e.response;break;case"upload":this._uploadTimeout=e.upload;break;default:console.warn("Unknown timeout option",t)}return this},o.prototype.retry=function(e,t){return 0!==arguments.length&&!0!==e||(e=1),e<=0&&(e=0),this._maxRetries=e,this._retries=0,this._retryCallback=t,this};var r=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];o.prototype._shouldRetry=function(e,t){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!==t.status)return!0;if(e){if(e.code&&r.includes(e.code))return!0;if(e.timeout&&"ECONNABORTED"===e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},o.prototype.then=function(e,t){var n=this;if(!this._fullfilledPromise){var i=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){i.on("abort",function(){if(!(n._maxRetries&&n._maxRetries>n._retries))if(n.timedout&&n.timedoutError)t(n.timedoutError);else{var e=new Error("Aborted");e.code="ABORTED",e.status=n.status,e.method=n.method,e.url=n.url,t(e)}}),i.end(function(n,i){n?t(n):e(i)})})}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw new Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(s(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(s(e)){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.field(n,e[n]);return this}if(Array.isArray(t)){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&this.field(e,t[i]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=String(t)),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},o.prototype._auth=function(e,t,n,i){switch(n.type){case"basic":this.set("Authorization","Basic ".concat(i("".concat(e,":").concat(t))));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer ".concat(e))}return this},o.prototype.withCredentials=function(e){return void 0===e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw new TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=s(e),n=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(t&&s(this._data))for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(this._data[i]=e[i]);else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"===n?this._data?"".concat(this._data,"&").concat(e):e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)||n||this.type("json"),this},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.includes("?")?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.slice(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.slice(0,t)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.warn("Unsupported")},o.prototype._timeoutError=function(e,t,n){if(!this._aborted){var i=new Error("".concat(e+t,"ms exceeded"));i.timeout=t,i.code="ECONNABORTED",i.errno=n,this.timedout=!0,this.timedoutError=i,this.abort(),this.callback(i)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},784(e,t,n){"use strict";var i="win32"===process.platform,s=n(818);function o(e,t){for(var n=[],i=0;i<e.length;i++){var s=e[i];s&&"."!==s&&(".."===s?n.length&&".."!==n[n.length-1]?n.pop():t&&n.push(".."):n.push(s))}return n}function r(e){for(var t=e.length-1,n=0;n<=t&&!e[n];n++);for(var i=t;i>=0&&!e[i];i--);return 0===n&&i===t?e:n>i?[]:e.slice(n,i+1)}var a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,l=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,d={};function u(e){var t=a.exec(e),n=(t[1]||"")+(t[2]||""),i=t[3]||"",s=l.exec(i);return[n,s[1],s[2],s[3]]}function h(e){var t=a.exec(e),n=t[1]||"",i=!!n&&":"!==n[1];return{device:n,isUnc:i,isAbsolute:i||!!t[2],tail:t[3]}}function c(e){return"\\\\"+e.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}d.resolve=function(){for(var e="",t="",n=!1,i=arguments.length-1;i>=-1;i--){var r;if(i>=0?r=arguments[i]:e?(r=process.env["="+e])&&r.substr(0,3).toLowerCase()===e.toLowerCase()+"\\"||(r=e+"\\"):r=process.cwd(),!s.isString(r))throw new TypeError("Arguments to path.resolve must be strings");if(r){var a=h(r),l=a.device,d=a.isUnc,u=a.isAbsolute,p=a.tail;if((!l||!e||l.toLowerCase()===e.toLowerCase())&&(e||(e=l),n||(t=p+"\\"+t,n=u),e&&n))break}}return d&&(e=c(e)),e+(n?"\\":"")+(t=o(t.split(/[\\\/]+/),!n).join("\\"))||"."},d.normalize=function(e){var t=h(e),n=t.device,i=t.isUnc,s=t.isAbsolute,r=t.tail,a=/[\\\/]$/.test(r);return(r=o(r.split(/[\\\/]+/),!s).join("\\"))||s||(r="."),r&&a&&(r+="\\"),i&&(n=c(n)),n+(s?"\\":"")+r},d.isAbsolute=function(e){return h(e).isAbsolute},d.join=function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(!s.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&e.push(n)}var i=e.join("\\");return/^[\\\/]{2}[^\\\/]/.test(e[0])||(i=i.replace(/^[\\\/]{2,}/,"\\")),d.normalize(i)},d.relative=function(e,t){e=d.resolve(e),t=d.resolve(t);for(var n=e.toLowerCase(),i=t.toLowerCase(),s=r(t.split("\\")),o=r(n.split("\\")),a=r(i.split("\\")),l=Math.min(o.length,a.length),u=l,h=0;h<l;h++)if(o[h]!==a[h]){u=h;break}if(0==u)return t;var c=[];for(h=u;h<o.length;h++)c.push("..");return(c=c.concat(s.slice(u))).join("\\")},d._makeLong=function(e){if(!s.isString(e))return e;if(!e)return"";var t=d.resolve(e);return/^[a-zA-Z]\:\\/.test(t)?"\\\\?\\"+t:/^\\\\[^?.]/.test(t)?"\\\\?\\UNC\\"+t.substring(2):e},d.dirname=function(e){var t=u(e),n=t[0],i=t[1];return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"."},d.basename=function(e,t){var n=u(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},d.extname=function(e){return u(e)[3]},d.format=function(e){if(!s.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!s.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);var n=e.dir,i=e.base||"";return n?n[n.length-1]===d.sep?n+i:n+d.sep+i:i},d.parse=function(e){if(!s.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=u(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},d.sep="\\",d.delimiter=";";var p=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,y={};function v(e){return p.exec(e).slice(1)}y.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var i=n>=0?arguments[n]:process.cwd();if(!s.isString(i))throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,t="/"===i[0])}return(t?"/":"")+(e=o(e.split("/"),!t).join("/"))||"."},y.normalize=function(e){var t=y.isAbsolute(e),n=e&&"/"===e[e.length-1];return(e=o(e.split("/"),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e},y.isAbsolute=function(e){return"/"===e.charAt(0)},y.join=function(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(!s.isString(n))throw new TypeError("Arguments to path.join must be strings");n&&(e+=e?"/"+n:n)}return y.normalize(e)},y.relative=function(e,t){e=y.resolve(e).substr(1),t=y.resolve(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),s=Math.min(n.length,i.length),o=s,a=0;a<s;a++)if(n[a]!==i[a]){o=a;break}var l=[];for(a=o;a<n.length;a++)l.push("..");return(l=l.concat(i.slice(o))).join("/")},y._makeLong=function(e){return e},y.dirname=function(e){var t=v(e),n=t[0],i=t[1];return n||i?(i&&(i=i.substr(0,i.length-1)),n+i):"."},y.basename=function(e,t){var n=v(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},y.extname=function(e){return v(e)[3]},y.format=function(e){if(!s.isObject(e))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof e);var t=e.root||"";if(!s.isString(t))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof e.root);return(e.dir?e.dir+y.sep:"")+(e.base||"")},y.parse=function(e){if(!s.isString(e))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=v(e);if(!t||4!==t.length)throw new TypeError("Invalid path '"+e+"'");return t[1]=t[1]||"",t[2]=t[2]||"",t[3]=t[3]||"",{root:t[0],dir:t[0]+t[1].slice(0,-1),base:t[2],ext:t[3],name:t[2].slice(0,t[2].length-t[3].length)}},y.sep="/",y.delimiter=":",e.exports=i?d:y,e.exports.posix=y,e.exports.win32=d},799(){},818(e,t,n){var i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(r(arguments[n]));return t.join(" ")}n=1;for(var s=arguments,o=s.length,a=String(e).replace(i,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(s[n++]);case"%d":return Number(s[n++]);case"%j":try{return JSON.stringify(s[n++])}catch(e){return"[Circular]"}default:return e}}),l=s[n];n<o;l=s[++n])y(l)||!$(l)?a+=" "+l:a+=" "+r(l);return a},t.deprecate=function(e,i){if(m(n.g.process))return function(){return t.deprecate(e,i).apply(this,arguments)};if(!0===process.noDeprecation)return e;var s=!1;return function(){if(!s){if(process.throwDeprecation)throw new Error(i);process.traceDeprecation?console.trace(i):console.error(i),s=!0}return e.apply(this,arguments)}};var s,o={};function r(e,n){var i={seen:[],stylize:l};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),p(n)?i.showHidden=n:n&&t._extend(i,n),m(i.showHidden)&&(i.showHidden=!1),m(i.depth)&&(i.depth=2),m(i.colors)&&(i.colors=!1),m(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=a),d(i,e,i.depth)}function a(e,t){var n=r.styles[t];return n?"["+r.colors[n][0]+"m"+e+"["+r.colors[n][1]+"m":e}function l(e,t){return e}function d(e,n,i){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var s=n.inspect(i,e);return g(s)||(s=d(e,s,i)),s}var o=function(e,t){if(m(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):y(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var r=Object.keys(n),a=function(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}(r);if(e.showHidden&&(r=Object.getOwnPropertyNames(n)),b(n)&&(r.indexOf("message")>=0||r.indexOf("description")>=0))return u(n);if(0===r.length){if(T(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(w(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(f(n))return e.stylize(Date.prototype.toString.call(n),"date");if(b(n))return u(n)}var $,k="",j=!1,O=["{","}"];return c(n)&&(j=!0,O=["[","]"]),T(n)&&(k=" [Function"+(n.name?": "+n.name:"")+"]"),w(n)&&(k=" "+RegExp.prototype.toString.call(n)),f(n)&&(k=" "+Date.prototype.toUTCString.call(n)),b(n)&&(k=" "+u(n)),0!==r.length||j&&0!=n.length?i<0?w(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),$=j?function(e,t,n,i,s){for(var o=[],r=0,a=t.length;r<a;++r)F(t,String(r))?o.push(h(e,t,n,i,String(r),!0)):o.push("");return s.forEach(function(s){s.match(/^\d+$/)||o.push(h(e,t,n,i,s,!0))}),o}(e,n,i,a,r):r.map(function(t){return h(e,n,i,a,t,j)}),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]}($,k,O)):O[0]+k+O[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,i,s,o){var r,a,l;if((l=Object.getOwnPropertyDescriptor(t,s)||{value:t[s]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),F(i,s)||(r="["+s+"]"),a||(e.seen.indexOf(l.value)<0?(a=y(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),m(r)){if(o&&s.match(/^\d+$/))return a;(r=JSON.stringify(""+s)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=e.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=e.stylize(r,"string"))}return r+": "+a}function c(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function y(e){return null===e}function v(e){return"number"==typeof e}function g(e){return"string"==typeof e}function m(e){return void 0===e}function w(e){return $(e)&&"[object RegExp]"===k(e)}function $(e){return"object"==typeof e&&null!==e}function f(e){return $(e)&&"[object Date]"===k(e)}function b(e){return $(e)&&("[object Error]"===k(e)||e instanceof Error)}function T(e){return"function"==typeof e}function k(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(m(s)&&(s=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!o[e])if(new RegExp("\\b"+e+"\\b","i").test(s)){var n=process.pid;o[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,i)}}else o[e]=function(){};return o[e]},t.inspect=r,r.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]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=c,t.isBoolean=p,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=m,t.isRegExp=w,t.isObject=$,t.isDate=f,t.isError=b,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(98);var O=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;console.log("%s - %s",(n=[j((e=new Date).getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":"),[e.getDate(),O[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(597),t._extend=function(e,t){if(!t||!$(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}},897(e,t){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),i=n.shift(),s=n.shift();return i&&s&&(e[i]=s),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),i=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=i,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},960(e){function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,i=this._callbacks["$"+e];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var s=0;s<i.length;s++)if((n=i[s])===t||n.fn===t){i.splice(s,1);break}return 0===i.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(n){i=0;for(var s=(n=n.slice(0)).length;i<s;++i)n[i].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},965(){}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};return(()=>{"use strict";n.d(i,{default:()=>no});var e,t=n(585),s=n.n(t);class o{constructor(){}static constructFromObject(e,t){if(e){if(t=t||new o,e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links)for(const n of e.links)if(n.hasOwnProperty("rel")&&n.hasOwnProperty("href"))switch(n.rel){case"first":t.linkFirst=n.href;break;case"prev":t.linkPrev=n.href;break;case"next":t.linkNext=n.href;break;case"last":t.linkLast=n.href}e.hasOwnProperty("totalAvailableResults")&&(t.resultsTotal=e.totalAvailableResults)}return t}getFirstPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to first page : already on first page"):null===this.linkFirst?Promise.reject("No link to first page provided in previous API response"):this._getLink(this.linkFirst)}getPrevPage(){return this.isFirstPage()?Promise.reject("Cannot navigate to previous page : already on first page"):null===this.linkPrev?Promise.reject("No link to previous page provided in previous API response"):this._getLink(this.linkPrev)}getNextPage(){return this.isLastPage()?Promise.reject("Cannot navigate to next page : already on last page"):null===this.linkNext?Promise.reject("No link to next page provided in previous API response"):this._getLink(this.linkNext)}getLastPage(){return this.isLastPage()?Promise.reject("Cannot navigate to last page : already on last page"):null===this.linkLast?Promise.reject("No link to last page provided in previous API response"):this._getLink(this.linkLast)}currentPage(){return null===this.page?0:this.page}countPages(){return null===this.resultsPerPage||null===this.resultsTotal||0===this.resultsPerPage?1:Math.ceil(this.resultsTotal/this.resultsPerPage)}isFirstPage(){return 0===this.currentPage()}isLastPage(){return this.currentPage()===this.countPages()-1}populatePaginationMetadata(e,t,n){this.apiClient=e,this.page=t,this.resultsPerPage=n}_getLink(e){null===this.apiClient&&(this.apiClient=le.instance);const t=this.constructor;return this.apiClient.callApi(e,"GET",{},{},{},{},{},[],[],["application/json"],t)}}o.prototype.linkFirst=null,o.prototype.linkPrev=null,o.prototype.linkNext=null,o.prototype.linkLast=null,o.prototype.apiClient=null,o.prototype.page=null,o.prototype.resultsPerPage=null,o.prototype.resultsTotal=null;var r=new Uint8Array(16);function a(){if(!e&&!(e="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(r)}const l=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var d=[],u=0;u<256;++u)d.push((u+256).toString(16).substr(1));const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&l.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},c=function(e,t,n){var i=(e=e||{}).random||(e.rng||a)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=i[s];return t}return h(i)};var p=n(540),y=n.n(p),v=n(545),g=n.n(v),m=n(799),w=n.n(m),$=n(784),f=n.n($),b=n(548);const 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 k=T;class j{static validateMaximum(e,t){return!(null===t||e>t)}static validateMinimum(e,t){return!(null===t||e<t)}static validateExclusiveMaximum(e,t){return!(null===t||e>t)}static validateExclusiveMinimum(e,t){return!(null===t||e>t)}static validateMultipleOf(e,t){return!(null===t||e%t===0)}static validateMaxLength(e,t){return!(null===t||e.length>t)}static validateMinLength(e,t){return!(null===t||e.length<t)}static validatePattern(e,t){return!(null===t||null===e.match(t))}static validateMaxItems(e,t){return!(null===t||e.length>t)}static validateMinItems(e,t){return!(null===t||e.length<t)}static validateUniqueItems(e,t){return!(null===t||!t||e.length!==new Set(e).size)}}class O{constructor(e,t){this.name=e,this.message=t}getName(){return this.name}setName(e){this.name=e}getMessage(){return this.message}setMessage(e){this.message=e}toJson(){return{name:this.getName(),message:this.getMessage()}}}var F=new WeakSet;class C{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=F),t.add(e),this.$objectType="common.v1.config.Flag",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new C,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!j.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function P(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}C.prototype.name=void 0,C.prototype.value=!1,C.prototype.$reserved=void 0,C.prototype.$objectType=void 0,C.prototype.$unknownFields=void 0;var S=new WeakSet;class E{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=S),t.add(e),this.$objectType="common.v1.config.MapOfStringWrapper",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new E,e.hasOwnProperty("map")&&null!==e.map&&void 0!==e.map&&t.setMap(e.map),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMap(){return this.map}setMap(e){this.map=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMap()&&null!==this.getMap()?{map:P(S,this,D).call(this,this.getMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMap()&&null!==this.getMap()?{map:P(S,this,D).call(this,this.getMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"map"!==t||void 0!==this.map&&null!==this.map?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("map","undefined or null")}}function D(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function R(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}E.prototype.map=void 0,E.prototype.$reserved=void 0,E.prototype.$objectType=void 0,E.prototype.$unknownFields=void 0;var U=new WeakSet;class I{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=U),t.add(e),this.$objectType="common.v1.config.KVPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r,a;if(e){if(t=t||new I,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value)if(Array.isArray(e.value))if(0===e.value.length)t.setValue([]);else{for(r=[],i=e.value,a=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++)switch(a){case"string":case"integer":case"number":r.push(i[o]);break;case"common.v1.config.MapOfStringWrapper":s=E.constructFromObject(i[o],void 0),r.push(s);break;default:throw"Unknown list of type "+a+" in data"}t.setValue(r)}else switch(a=e.value.hasOwnProperty("$objectType")?e.value.$objectType:typeof e.value,a){case"string":case"boolean":case"number":t.setValue(e.value);break;case"object":t.setValue(new Map(Object.entries(e.value)));break;default:throw"Unknown datatype "+a+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson(!1):Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson(!1):e):R(U,this,A).call(this,this.getValue(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson():e):R(U,this,A).call(this,this.getValue())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!j.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function A(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}I.prototype.name=void 0,I.prototype.value=void 0,I.prototype.$reserved=void 0,I.prototype.$objectType=void 0,I.prototype.$unknownFields=void 0;const M={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INFO:"INFO",WARNING:"WARNING",ERROR:"ERROR",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(M).find(t=>M[t]===e);return null==t?M.$UNKNOWN:M[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case M.$UNKNOWN:case M.$REDACTED:case M.INFO:case M.WARNING:case M.ERROR:return;default:throw new Error("Invalid : must be MessageSeverity.{ $UNKNOWN|$REDACTED|INFO|WARNING|ERROR }")}}};Object.freeze(M);const N=M;var x=new WeakSet;class V{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=x),t.add(e),this.$objectType="common.v1.config.Message",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new V,e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(N.constructFromObject(e.severity)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCode(){return this.code}setCode(e){this.code=e}getMessage(){return this.message}setMessage(e){this.message=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"code"!==t||void 0!==this.code&&null!==this.code?"message"!==t||void 0!==this.message&&null!==this.message?"locale"!==t||void 0!==this.locale&&null!==this.locale?"severity"!==t||void 0!==this.severity&&null!==this.severity?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("severity","undefined or null"):new O("locale","undefined or null"):new O("message","undefined or null"):new O("code","undefined or null")}}V.prototype.code=void 0,V.prototype.message=void 0,V.prototype.locale="en_US",V.prototype.severity=void 0,V.prototype.$reserved=void 0,V.prototype.$objectType=void 0,V.prototype.$unknownFields=void 0;var L=new WeakSet;class B{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=L),t.add(e),this.$objectType="common.v1.response.ApiLink",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new B,e.hasOwnProperty("href")&&null!==e.href&&void 0!==e.href&&t.setHref(e.href),e.hasOwnProperty("rel")&&null!==e.rel&&void 0!==e.rel&&t.setRel(e.rel),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getHref(){return this.href}setHref(e){this.href=e}getRel(){return this.rel}setRel(e){this.rel=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getHref()&&null!==this.getHref()?{href:this.getHref()}:{},...void 0!==this.getRel()&&null!==this.getRel()?{rel:this.getRel()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"href"!==t||void 0!==this.href&&null!==this.href?"rel"!==t||void 0!==this.rel&&null!==this.rel?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("rel","undefined or null"):new O("href","undefined or null")}}B.prototype.href=void 0,B.prototype.rel=void 0,B.prototype.$reserved=void 0,B.prototype.$objectType=void 0,B.prototype.$unknownFields=void 0;var W,z=new WeakSet;class J{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=z),t.add(e),this.$objectType="common.v1.response.ApiResponseMetadata",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new J,e.hasOwnProperty("flags")&&null!==e.flags&&void 0!==e.flags){for(r=[],i=e.flags,o=0;o<i.length;o++)s=C.constructFromObject(i[o],void 0),r.push(s);t.setFlags(r)}if(e.hasOwnProperty("links")&&null!==e.links&&void 0!==e.links){for(r=[],i=e.links,o=0;o<i.length;o++)s=B.constructFromObject(i[o],void 0),r.push(s);t.setLinks(r)}if(e.hasOwnProperty("totalAvailableResults")&&null!==e.totalAvailableResults&&void 0!==e.totalAvailableResults&&t.setTotalAvailableResults(e.totalAvailableResults),e.hasOwnProperty("messages")&&null!==e.messages&&void 0!==e.messages){for(r=[],i=e.messages,o=0;o<i.length;o++)s=V.constructFromObject(i[o],void 0),r.push(s);t.setMessages(r)}if(e.hasOwnProperty("extraInfo")&&null!==e.extraInfo&&void 0!==e.extraInfo){for(r=[],i=e.extraInfo,o=0;o<i.length;o++)s=I.constructFromObject(i[o],void 0),r.push(s);t.setExtraInfo(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getFlags(){return this.flags}setFlags(e){this.flags=e}getLinks(){return this.links}setLinks(e){this.links=e}getTotalAvailableResults(){return this.totalAvailableResults}setTotalAvailableResults(e){this.totalAvailableResults=e}getMessages(){return this.messages}setMessages(e){this.messages=e}getExtraInfo(){return this.extraInfo}setExtraInfo(e){this.extraInfo=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getFlags()&&null!==this.getFlags()?{flags:this.getFlags().map(e=>e.toJson(!1))}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalAvailableResults()&&null!==this.getTotalAvailableResults()?{totalAvailableResults:this.getTotalAvailableResults()}:{},...void 0!==this.getMessages()&&null!==this.getMessages()?{messages:this.getMessages().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtraInfo()&&null!==this.getExtraInfo()?{extraInfo:this.getExtraInfo().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("flags"===t){if(void 0===this.flags||null===this.flags)return new O("flags","undefined or null");if(!j.validateMaxItems(this.flags,20))return new O("flags","does not satisfy required maxItems constraint: 20")}if("links"===t){if(void 0===this.links||null===this.links)return new O("links","undefined or null");if(!j.validateMaxItems(this.links,20))return new O("links","does not satisfy required maxItems constraint: 20")}if("totalAvailableResults"===t&&(void 0===this.totalAvailableResults||null===this.totalAvailableResults))return new O("totalAvailableResults","undefined or null");if("messages"===t){if(void 0===this.messages||null===this.messages)return new O("messages","undefined or null");if(!j.validateMaxItems(this.messages,20))return new O("messages","does not satisfy required maxItems constraint: 20")}if("extraInfo"===t){if(void 0===this.extraInfo||null===this.extraInfo)return new O("extraInfo","undefined or null");if(!j.validateMaxItems(this.extraInfo,20))return new O("extraInfo","does not satisfy required maxItems constraint: 20")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function _(e,t,n){G(e,t),t.set(e,n)}function G(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function q(e,t){return e.get(K(e,t))}function H(e,t,n){return e.set(K(e,t),n),n}function K(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}J.prototype.flags=void 0,J.prototype.links=void 0,J.prototype.totalAvailableResults=void 0,J.prototype.messages=void 0,J.prototype.extraInfo=void 0,J.prototype.$reserved=void 0,J.prototype.$objectType=void 0,J.prototype.$unknownFields=void 0,y()(s());var X=new WeakMap,Z=new WeakMap,Y=new WeakMap,Q=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,ie=new WeakMap,se=new WeakMap,oe=new WeakMap,re=new WeakMap,ae=new WeakSet;class le{constructor(){var e;G(this,e=ae),e.add(this),_(this,X,void 0),_(this,Z,void 0),_(this,Y,void 0),_(this,Q,void 0),_(this,ee,void 0),_(this,te,void 0),_(this,ne,void 0),_(this,ie,void 0),_(this,se,void 0),_(this,oe,void 0),_(this,re,void 0),H(re,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",H(ie,this,"undefined"==typeof self?"localhost":self.location.hostname),this.port="undefined"==typeof self?"9440":self.location.port,this.authentications={apiKeyAuthScheme:{type:"apiKey",in:"header",name:"X-ntnx-api-key"},basicAuthScheme:{type:"basic"}},this.defaultHeaders={},H(ee,this,3e4),H(te,this,3e4),H(ne,this,108e5),this.readTimeout=q(te,this),this.connectTimeout=q(ee,this),this.cache=!0,H(Z,this,null),this.maxRedirects=1,this.maxRetryAttempts=5,this.retryInterval=3e3,this.withCredentials=!1,"undefined"==typeof self&&(this.agent=new(s().agent)),this.requestAgent=null,H(oe,this,null),this.allowVersionNegotiation=!0,H(se,this,!1),this.debug=!1,H(Y,this,null),this.username=null,this.password=null,H(Q,this,!0),this.downloadDestination=null,this.loggerFile=null}set verifySsl(e){this.requestAgent=e?null:new(g().Agent)({rejectUnauthorized:e}),H(Q,this,e)}get verifySsl(){return q(Q,this)}set host(e){H(ie,this,e),H(se,this,!1),H(oe,this,null)}get host(){return q(ie,this)}set loggerFile(e){null!=e&&(("string"==typeof e||e instanceof String)&&(e=w().createWriteStream(e,{flags:"a"})),H(Y,this,new console.Console({stdout:e,stderr:e})))}addDefaultHeader(e,t){"Authorization"===e&&H(Z,this,null),this.defaultHeaders[e]=t}paramToString(e){return null==e||null==e?"":e instanceof Date?e.toJSON():e.toString()}buildUrl(e,t){if(e.match(/^\//)||(e="/"+e),void 0!==q(oe,this)&&null!==q(oe,this)&&null!==q(oe,this).match(/v\d+\.\d+(\.[a|b]\d+)?/)&&"v4.2.b1"!==q(oe,this)){K(ae,this,ke).call(this,q(re,this).INFO,null,"Changing uri",e,"to negotiated version",q(oe,this));var n=new RegExp("(?<=/[-\\w]+/)v\\d+\\.\\d+(\\.[a|b]\\d+)?(?=/.*)","i");e=e.replace(n,q(oe,this))}H(X,this,"undefined"==typeof self?this.scheme+":":self.location.protocol);let i="";""!==q(X,this)&&""!==this.host&&""!==this.port?i=q(X,this)+"//"+this.host+":"+this.port:"undefined"!=typeof self&&(i=self.origin);var s=i+e;return s.replace(/\{([\w-]+)\}/g,(e,n)=>{var i;return i=t.hasOwnProperty(n)?this.paramToString(t[n]):e,encodeURIComponent(i)})}buildCollectionParam(e,t){if(null==e)return null;switch(t){case"csv":return e.map(this.paramToString).join(",");case"ssv":return e.map(this.paramToString).join(" ");case"tsv":return e.map(this.paramToString).join("\t");case"pipes":return e.map(this.paramToString).join("|");case"multi":return e.map(this.paramToString);default:throw new Error("Unknown collection format: "+t)}}setApiKey(e){this.authentications.apiKeyAuthScheme.apiKey=null==e||"string"==typeof e||e instanceof String?e:void 0}addEtagToReservedMap(e,t){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("etag")){let i=e.headers.etag;if(void 0!==t.getData())if(Array.isArray(t.getData())&&t.getData().length>0)for(var n of t.getData())n.hasOwnProperty("$reserved")&&void 0!==n.get$Reserved()&&(n.get$Reserved().ETag=i);else t.getData().hasOwnProperty("$reserved")&&void 0!==t.getData().get$Reserved()&&(t.getData().get$Reserved().ETag=i)}return t}static getEtag(e){let t=null;return void 0!==e&&(e.hasOwnProperty("$reserved")&&void 0!==e.get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.get$Reserved(),"ETag")),null==t&&e.hasOwnProperty("data")&&e.getData().hasOwnProperty("$reserved")&&void 0!==e.getData().get$Reserved()&&(t=this.getValueForCaseInsensitiveKeyMatch(e.getData().get$Reserved(),"ETag"))),t}static getValueForCaseInsensitiveKeyMatch(e,t){if(e&&t){const n=t.toLowerCase(),i=Object.keys(e).find(e=>e.toLowerCase()===n);return i?e[i]:null}return null}getNegotiatedVersion(){return q(oe,this)}negotiateVersion(e,t){return new Promise(n=>{!0===this.allowVersionNegotiation&&!1===q(se,this)?this.callApiInternal("/api/aiops/unversioned/info","OPTIONS",{},{},{},{},null,t,[],["application/json"],Object).then(({data:t,response:i})=>{if(200===i.status&&t.hasOwnProperty("data")&&null!==t.data){const i=t.data,s="v4.2.b1";if(K(ae,this,we).call(this,K(ae,this,$e).call(this,i),K(ae,this,$e).call(this,s)))return K(ae,this,ke).call(this,q(re,this).WARN,null,"Server version",i,"is below minimum supported version",s,". Version negotiation will not be performed."),H(oe,this,null),H(se,this,!1),void n(e);H(oe,this,K(ae,this,me).call(this,"v4.2.b1",i)),H(se,this,!0),K(ae,this,ke).call(this,q(re,this).INFO,null,"Negotiated Version with server :",q(oe,this)),n(e)}else K(ae,this,ke).call(this,q(re,this).ERROR,null,"Could not fetch supported versions from server"),H(oe,this,null),H(se,this,!1),n(e)}).catch(t=>{K(ae,this,ke).call(this,q(re,this).ERROR,null,"Could not fetch supported versions from server"),H(oe,this,null),H(se,this,!1),n(e)}):n(e)})}callApi(e,t,n,i,s,o,r,a,l,d,u){return this.negotiateVersion(this,a).then(function(h){return h.callApiInternal(e,t,n,i,s,o,r,a,l,d,u)})}callApiInternal(e,t,i,o,r,a,l,d,u,h,p){var y=this.buildUrl(e,i);const v="undefined"!=typeof window&&void 0!==window.document;let g=["application/octet-stream","application/pdf","application/zip"];if(h&&h.length>0&&h.some(e=>g.includes(e))&&v&&this.downloadDestination)return new Promise((e,n)=>{const i=K(ae,this,Ce).call(this,y,t,o,r,l,d,u,h);fetch(i.url,i.options).then(t=>{if(!t.ok){const e=new Error(`HTTP error ${t.status}`);e.status=t.status,K(ae,this,ke).call(this,q(re,this).ERROR,null,"Error downloading file:",e),n(e)}if(!(this.downloadDestination instanceof WritableStream)){let e="Incompatible downloadDestination for Browser Environment, must be WritableStream";K(ae,this,ke).call(this,q(re,this).ERROR,null,e),n(e)}const i=t.body.getReader(),s=this.downloadDestination.getWriter(),o=()=>i.read().then(({done:n,value:i})=>(n&&(s.close(),K(ae,this,ke).call(this,q(re,this).INFO,null,"Finished streaming response"),e({data:{},response:t})),s.write(i).then(o)));return o()}).catch(e=>{K(ae,this,ke).call(this,q(re,this).ERROR,null,"Caught the following error :",e),n(e)})});var m=s()(t,y);if(m.oldCallback=m.callback,m.callback=function(e,t){if(t&&t.status){const e=t.status;if(e>=400&&408!==e&&429!==e&&503!==e&&504!==e&&(this._maxRetries=0),401===t.status&&this.header.Cookie&&(this.unset("Cookie"),this._maxRetries=1),429===e){let e=t.headers["retry-after"];if(e){let t=1e3*parseInt(e,10);this._retryDelays[this._retries]=t}}}this.oldCallback(e,t)},K(ae,this,pe).call(this,m,d),"GET"===t.toUpperCase()&&!1===this.cache&&(o._=(new Date).getTime()),m.query(K(ae,this,ce).call(this,o)),m.set(this.defaultHeaders).set(K(ae,this,ce).call(this,r)),!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==r["NTNX-Request-Id"]&&void 0!==r["NTNX-Request-Id"])){let e=c();m.set(K(ae,this,ce).call(this,{"NTNX-Request-Id":e}))}v||(this.downloadDestination=".",m.set(K(ae,this,ce).call(this,{"User-Agent":"Nutanix-aiops-js-client/4.2.1-beta.1"}))),this.requestAgent&&m.agent(this.requestAgent);var $={};$.response=K(ae,this,fe).call(this,this.connectTimeout,q(ee,this)),$.deadline=K(ae,this,fe).call(this,this.readTimeout,q(te,this)),m.timeout($);var f=r.hasOwnProperty("Content-Type")?r["Content-Type"]:K(ae,this,ue).call(this,u);if(f?"multipart/form-data"!=f&&m.type(f):m.header["Content-Type"]||m.type("application/json"),K(ae,this,ke).call(this,q(re,this).INFO,null,"Request URL :",t,y),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Request Headers :",void 0===m.header?"":m.header),"application/x-www-form-urlencoded"===f)m.send(K(ae,this,ce).call(this,a));else if("multipart/form-data"==f){var b=K(ae,this,ce).call(this,a);for(var T in b)b.hasOwnProperty(T)&&(K(ae,this,he).call(this,b[T])?m.attach(T,b[T]):m.field(T,b[T]))}else{if("application/octet-stream"===f&&null!=l&&"function"==typeof l.pipe){if(K(ae,this,ke).call(this,q(re,this).INFO,null,"Piping octet-stream request"),"function"==typeof l.pipe)l.pipe(m);else{let e;try{e=n(965)}catch(e){K(ae,this,ke).call(this,q(re,this).ERROR,null,"Error fetching steam/web")}l instanceof e.ReadableStream?l.pipeTo(new e.WritableStream({write(e){m.write(e)},close(){K(ae,this,ke).call(this,q(re,this).INFO,null,"READABLE STREAM CLOSED")},abort(e){K(ae,this,ke).call(this,q(re,this).ERROR,null,"READABLE STREAM ABORTED")}})):m.send(l)}return new Promise((t,n)=>{m.on("error",e=>{K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught the following error :",e),n(e)}).on("response",i=>{K(ae,this,Fe).call(this,i,e,o,p,t,n)})})}["POST","PUT","PATCH"].includes(t.toUpperCase())&&l&&m.send(l)}"Blob"==typeof p?m.responseType("blob"):"String"===p&&m.responseType("string"),K(ae,this,Te).call(this,m),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Request Body :",void 0===m._data?"":m._data);var k=r.hasOwnProperty("Accept")&&null!=r.Accept?r.Accept:h.join(", ");return k&&m.accept(k),new Promise((n,i)=>{m.buffer(!1).redirects(0).retry(this.maxRetryAttempts,this.retryInterval,[]).withCredentials(this.withCredentials).on("error",e=>{K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught the following error :",e)}).end((r,a)=>{if(r)K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught error during the request!"),K(ae,this,ke).call(this,q(re,this).ERROR,null,r),404===r.status&&(H(se,this,!1),H(oe,this,null)),null!==r.response&&void 0!==r.response?r.data=K(ae,this,ve).call(this,r.response,p):r.data=K(ae,this,ye).call(this,r),i(r);else{K(ae,this,ke).call(this,q(re,this).INFO,null,"Response Status :",a.status),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Response Headers :",a.headers);let r="";if(a.headers.hasOwnProperty("content-type")&&(r=a.headers["content-type"]),g.includes(r)){if(!v){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",t=w().createWriteStream(e);K(ae,this,Pe).call(this,a,t,e,n,i,p)}}else if(302==a.status){let e=this.downloadDestination+"/downloaded_file_"+Date.now()+".txt",o=this;K(ae,this,ke).call(this,q(re,this).INFO,null,"Redirecting to :",a.headers.location);var l=s()(t,a.headers.location);l.set(m.header),a.headers.hasOwnProperty("x-redirect-token")&&(K(ae,this,ke).call(this,q(re,this).INFO,null,"Writing X-Redirect-Token into Cookie"),l.set("Cookie",a.headers["x-redirect-token"])),this.requestAgent&&l.agent(this.requestAgent),l.redirects(0),l.withCredentials(this.withCredentials),l.buffer(!1);let r=w().createWriteStream(e);l.pipe(r),l.on("response",function(t){K(ae,o,ke).call(o,q(re,o).INFO,null,"Received response after redirection :",t.status),K(ae,o,Pe).call(o,t,r,e,n,i,p)})}else K(ae,this,Fe).call(this,a,e,o,p,n,i)}})})}static addEtagReferenceToHeader(e,t){if(null!=e&&e.hasOwnProperty("$reserved")&&e.$reserved.hasOwnProperty("ETag")){let n=e.$reserved.ETag;null!=n&&""!==n&&(t["If-Match"]=n)}}static parseDate(e){return new Date(e)}static parseQueryParam(e,t,n,i){let s=null;if(void 0!==t&&t.hasOwnProperty(n)&&(s=t[n]),null===s&&("string"==typeof e||e instanceof String)){const t=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=e.match(new RegExp(`${t}=([0-9]+)`));i&&(s=i[1])}return null===s&&(s=i),s}static convertToType(e,t){if(null==e)return e;switch(t){case"Boolean":return Boolean(e);case"Integer":return parseInt(e,10);case"Number":return parseFloat(e);case"String":return String(e);case"Date":return le.parseDate(String(e));case"Blob":return e;default:if(t===Object)return e;if("function"==typeof t)return t.constructFromObject(e);if(Array.isArray(t)){var n=t[0];return e.map(e=>le.convertToType(e,n))}if("object"==typeof t){var i,s;for(var o in t)if(t.hasOwnProperty(o)){i=o,s=t[o];break}var r={};for(var o in e)if(e.hasOwnProperty(o)){var a=le.convertToType(o,i),l=le.convertToType(e[o],s);r[a]=l}return r}return e}}static constructFromObject(e,t,n){if(Array.isArray(e))for(var i=0;i<e.length;i++)e.hasOwnProperty(i)&&(t[i]=le.convertToType(e[i],n));else for(var s in e)e.hasOwnProperty(s)&&(t[s]=le.convertToType(e[s],n))}}function de(e){return Boolean(null!=e&&e.match(/^application\/json(;.*)?$/i))}function ue(e){for(var t=0;t<e.length;t++)if(K(ae,this,de).call(this,e[t]))return e[t];return e[0]}function he(e){{let t;try{t=n(799)}catch(e){}if(t&&t.ReadStream&&e instanceof t.ReadStream)return!0}return"function"==typeof Buffer&&e instanceof Buffer||"function"==typeof b.Blob&&e instanceof b.Blob||"function"==typeof File&&e instanceof File}function ce(e){var t={};for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n]&&null!=e[n]){var i=e[n];K(ae,this,he).call(this,i)||Array.isArray(i)?t[n]=i:t[n]=this.paramToString(i)}return t}function pe(e,t){t.forEach(t=>{var n=this.authentications[t];switch(n.type){case"basic":n.username||n.password?e.auth(n.username||"",n.password||""):(this.username||this.password)&&e.auth(this.username||"",this.password||""),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(n.apiKey){var i={};n.apiKeyPrefix?i[n.name]=n.apiKeyPrefix+" "+n.apiKey:i[n.name]=n.apiKey,"header"===n.in?e.set(i):e.query(i)}K(ae,this,ke).call(this,q(re,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":n.accessToken&&e.set({Authorization:"Bearer "+n.accessToken}),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"oauth2 applied to request");break;default:throw K(ae,this,ke).call(this,q(re,this).ERROR,null,"Unknown authentication type:",n.type),new Error("Unknown authentication type: "+n.type)}})}function ye(e){var t={data:{},metadata:{}};t.data.status=e.status,t.data.message=e.message}function ve(e,t){if(null==e||null==t||204==e.status)return null;if(e.headers&&["text/event-stream","text/html","text/xml","text/csv","text/javascript","text/markdown","text/vcard"].includes(e.headers["content-type"])){(n=new t).data=new b.Blob([e.text],{type:e.headers["content-type"]});let i=new C;i.name="hasError",i.value=!1;let s=[i],o=new J;return o.flags=s,n.metadata=o,n}var n;return(null==(n=e.body)||"object"==typeof n&&void 0===n.length&&!Object.keys(n).length)&&(n=e.text),W.convertToType(n,t)}function ge(e,t,n){if(!(e instanceof o))return;const i=parseInt(this.constructor.parseQueryParam(t,n,"$page","0"),10),s=parseInt(this.constructor.parseQueryParam(t,n,"$limit","50"),10);e.populatePaginationMetadata(this,i,s)}function me(e,t){if(!e||!t)return e;let n=K(ae,this,$e).call(this,e),i=K(ae,this,$e).call(this,t);return!n.family===i.family||K(ae,this,we).call(this,n,i)?e:t}function we(e,t){if(parseInt(e.revision)!=parseInt(t.revision))return parseInt(e.revision)<parseInt(t.revision);if("released"===e.versionType)return!1;let n=e.versionType.substring(0,1),i=t.versionType.substring(0,1),s=parseInt(e.versionType.substring(1)),o="released"===t.versionType?0:parseInt(t.versionType.substring(1));return n===i?s<o:"a"===n||"released"===t.versionType}function $e(e){let t={};if("unversioned"===e)t.family="unversioned",t.versionType="released";else{let n=e.toString().split(".");"unversioned"===n[0]?(t.family="unversioned",t.versionType=n[1]):(t.family=n[0].substring(1),t.revision=n[1],2==n.length?t.versionType="released":t.versionType=n[2])}return t}function fe(e,t){return e<=0?e=t:e>q(ne,this)&&(e=q(ne,this)),e}function be(e){if(e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("set-cookie")){let t="",n=e.headers["set-cookie"];if(n.length>0){for(let e of n)e=e.split(";")[0],e.includes("=")&&(e.trim(),t=t.concat(e).concat(";"));""!==t&&(t=t.substr(0,t.length-1))}H(Z,this,t),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Retained cookie :",t)}else H(Z,this,null)}function Te(e){null!=q(Z,this)&&e.set(K(ae,this,ce).call(this,{Cookie:q(Z,this)}))}function ke(e,t,...n){if("object"==typeof e&&"key"in e&&"value"in e&&"symbol"==typeof e.value||(e=q(re,this).INFO),!K(ae,this,je).call(this,e)){n=n.map(e=>"string"==typeof e?e:t?t(e):JSON.stringify(e));let i=n.join(" ");i=(new Date).toISOString()+" "+e.key+" - "+i,void 0!==q(Y,this)&&null!==q(Y,this)&&"function"==typeof q(Y,this).log?q(Y,this).log(i):console.log(i)}}function je(e){return!this.debug&&e===q(re,this).DEBUG}function Oe(e){if("object"!=typeof e)return e;let t="\n";return e&&Object.keys(e).forEach(n=>{t+=n+"=["+e[n]+"]\n"}),"\n"===t?e:t}function Fe(e,t,n,i,s,o){try{var r=K(ae,this,ve).call(this,e,i);K(ae,this,ke).call(this,q(re,this).INFO,null,"Response Status :",e.status),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Response Headers :",e.headers),K(ae,this,be).call(this,e||{}),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Response Body :",r),204==e.status&&null==r?s({data:r,response:e}):e.ok&&null!=r?(this.addEtagToReservedMap(e,r),K(ae,this,ge).call(this,r,t,n),s({data:r,response:e})):(K(ae,this,ke).call(this,q(re,this).ERROR,null,r),o({...e.error,data:r}))}catch(e){K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Caught error while processing response!"),K(ae,this,ke).call(this,q(re,this).ERROR,null,e),e.data=K(ae,this,ye).call(this,e),o(e)}}function Ce(e,t,n,i,s,o,r,a){let l={};o.forEach(e=>{const t=this.authentications[e];switch(t.type){case"basic":let e="",i="";if(t.username||t.password?(e=t.username||"",i=t.password||""):(this.username||this.password)&&(e=this.username||"",i=this.password||""),e||i){const t=btoa(`${e}:${i}`);l.Authorization=`Basic ${t}`}K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Basic Auth applied to request");break;case"apiKey":if(t.apiKey){let e="";e=t.apiKeyPrefix?t.apiKeyPrefix+" "+t.apiKey:t.apiKey,"header"===t.in?l[t.name]="Bearer "+e:"query"===t.in&&(n[t.name]=e)}K(ae,this,ke).call(this,q(re,this).DEBUG,null,"apiKey applied to request");break;case"oauth2":t.accessToken&&(l.Authorization="Bearer "+t.accessToken),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"oauth2 applied to request");break;default:throw K(ae,this,ke).call(this,q(re,this).ERROR,null,"Unknown authentication type:",t.type),new Error("Unknown authentication type: "+t.type)}}),"GET"===t.toUpperCase()&&!1===this.cache&&(n.cache="false");const d=K(ae,this,ce).call(this,n),u=Object.keys(d).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(d[e])}`).join("&");let h=e;u&&(h+=(h.includes("?")?"&":"?")+u);const p={...this.defaultHeaders,...K(ae,this,ce).call(this,i),...l};if(!(null!==this.defaultHeaders["NTNX-Request-Id"]&&void 0!==this.defaultHeaders["NTNX-Request-Id"]||null!==i["NTNX-Request-Id"]&&void 0!==i["NTNX-Request-Id"])){let e=c();p["NTNX-Request-Id"]=e}null!=q(Z,this)&&(p.Cookie=K(ae,this,ce).call(this,{Cookie:q(Z,this)}));var y=i.hasOwnProperty("Content-Type")?i["Content-Type"]:K(ae,this,ue).call(this,r);p["Content-Type"]=y;var v=i.hasOwnProperty("Accept")&&null!=i.Accept?i.Accept:a.join(", ");return v&&(p.Accept=v),K(ae,this,ke).call(this,q(re,this).INFO,null,"Request URL :",t,e),K(ae,this,ke).call(this,q(re,this).DEBUG,K(ae,this,Oe),"Request Headers :",p),K(ae,this,ke).call(this,q(re,this).DEBUG,null,"Request Body :",s||""),{url:h,options:{method:t,headers:p,body:s,credentials:this.withCredentials?"include":"same-origin"}}}function Pe(e,t,n,i,s,o){K(ae,this,ke).call(this,q(re,this).INFO,null,"Streaming response to : ",n);try{e.on("data",e=>{t.write(e)})}catch(e){K(ae,this,ke).call(this,q(re,this).ERROR,null,"Issue while downloading file",e)}let r=new o,a="";if(void 0!==e.headers["content-disposition"]&&null!==e.headers["content-disposition"]){let t=e.headers["content-disposition"].match(/.*filename=\"(?<filename>.*)\".*/),n=f().parse(t.groups.filename);a=this.downloadDestination+"/"+n.name+"_"+Date.now()+n.ext,r.data={path:f().parse(a),$objectType:"Path"};let i=new C;i.name="hasError",i.value=!1;let s=[i],o=new J;o.flags=s,r.metadata=o}e.on("end",()=>{K(ae,this,ke).call(this,q(re,this).INFO,null,"Finished streaming response"),0!==a.length?(K(ae,this,ke).call(this,q(re,this).INFO,null,"Content-Disposition header found [",a,"] is final filename"),t.close(),w().renameSync(n,a),i({data:r,response:e})):(K(ae,this,ke).call(this,q(re,this).ERROR,null,"Content-Disposition header not found [",n,"] is final filename"),i({data:r,response:e}))}),e.on("error",e=>{K(ae,this,ke).call(this,q(re,this).ERROR,null,"Caught the following error :",e),error.data=K(ae,this,ye).call(this,error),s(e)})}function Se(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}W=le,le.instance=new le;var Ee=new WeakSet;class De{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ee),t.add(e),this.$objectType="aiops.v4.error.AppMessage",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new De,e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("severity")&&null!==e.severity&&void 0!==e.severity&&t.setSeverity(N.constructFromObject(e.severity)),e.hasOwnProperty("code")&&null!==e.code&&void 0!==e.code&&t.setCode(e.code),e.hasOwnProperty("locale")&&null!==e.locale&&void 0!==e.locale&&t.setLocale(e.locale),e.hasOwnProperty("errorGroup")&&null!==e.errorGroup&&void 0!==e.errorGroup&&t.setErrorGroup(e.errorGroup),e.hasOwnProperty("argumentsMap")&&null!==e.argumentsMap&&void 0!==e.argumentsMap&&t.setArgumentsMap(e.argumentsMap),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMessage(){return this.message}setMessage(e){this.message=e}getSeverity(){return this.severity}setSeverity(e){this.severity=e}getCode(){return this.code}setCode(e){this.code=e}getLocale(){return this.locale}setLocale(e){this.locale=e}getErrorGroup(){return this.errorGroup}setErrorGroup(e){this.errorGroup=e}getArgumentsMap(){return this.argumentsMap}setArgumentsMap(e){this.argumentsMap=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Se(Ee,this,Re).call(this,this.getArgumentsMap(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getSeverity()&&null!==this.getSeverity()?{severity:this.getSeverity()}:{},...void 0!==this.getCode()&&null!==this.getCode()?{code:this.getCode()}:{},...void 0!==this.getLocale()&&null!==this.getLocale()?{locale:this.getLocale()}:{},...void 0!==this.getErrorGroup()&&null!==this.getErrorGroup()?{errorGroup:this.getErrorGroup()}:{},...void 0!==this.getArgumentsMap()&&null!==this.getArgumentsMap()?{argumentsMap:Se(Ee,this,Re).call(this,this.getArgumentsMap())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"message"!==t||void 0!==this.message&&null!==this.message?"severity"!==t||void 0!==this.severity&&null!==this.severity?"code"!==t||void 0!==this.code&&null!==this.code?"locale"!==t||void 0!==this.locale&&null!==this.locale?"errorGroup"!==t||void 0!==this.errorGroup&&null!==this.errorGroup?"argumentsMap"!==t||void 0!==this.argumentsMap&&null!==this.argumentsMap?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("argumentsMap","undefined or null"):new O("errorGroup","undefined or null"):new O("locale","undefined or null"):new O("code","undefined or null"):new O("severity","undefined or null"):new O("message","undefined or null")}}function Re(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}De.prototype.message=void 0,De.prototype.severity=void 0,De.prototype.code=void 0,De.prototype.locale="en_US",De.prototype.errorGroup=void 0,De.prototype.argumentsMap=void 0,De.prototype.$reserved=void 0,De.prototype.$objectType=void 0,De.prototype.$unknownFields=void 0;var Ue=new WeakSet;class Ie{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ue),t.add(e),this.$objectType="aiops.v4.error.SchemaValidationErrorMessage",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ie,e.hasOwnProperty("location")&&null!==e.location&&void 0!==e.location&&t.setLocation(e.location),e.hasOwnProperty("message")&&null!==e.message&&void 0!==e.message&&t.setMessage(e.message),e.hasOwnProperty("attributePath")&&null!==e.attributePath&&void 0!==e.attributePath&&t.setAttributePath(e.attributePath),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getLocation(){return this.location}setLocation(e){this.location=e}getMessage(){return this.message}setMessage(e){this.message=e}getAttributePath(){return this.attributePath}setAttributePath(e){this.attributePath=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getLocation()&&null!==this.getLocation()?{location:this.getLocation()}:{},...void 0!==this.getMessage()&&null!==this.getMessage()?{message:this.getMessage()}:{},...void 0!==this.getAttributePath()&&null!==this.getAttributePath()?{attributePath:this.getAttributePath()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"location"!==t||void 0!==this.location&&null!==this.location?"message"!==t||void 0!==this.message&&null!==this.message?"attributePath"!==t||void 0!==this.attributePath&&null!==this.attributePath?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("attributePath","undefined or null"):new O("message","undefined or null"):new O("location","undefined or null")}}function Ae(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")}Ie.prototype.location=void 0,Ie.prototype.message=void 0,Ie.prototype.attributePath=void 0,Ie.prototype.$reserved=void 0,Ie.prototype.$objectType=void 0,Ie.prototype.$unknownFields=void 0;var Me=new WeakSet;class Ne{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Me),t.add(e),this.$objectType="aiops.v4.error.SchemaValidationError",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Ne,e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("statusCode")&&null!==e.statusCode&&void 0!==e.statusCode&&t.setStatusCode(e.statusCode),e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error&&t.setError(e.error),e.hasOwnProperty("path")&&null!==e.path&&void 0!==e.path&&t.setPath(e.path),e.hasOwnProperty("validationErrorMessages")&&null!==e.validationErrorMessages&&void 0!==e.validationErrorMessages){for(r=[],i=e.validationErrorMessages,o=0;o<i.length;o++)s=Ie.constructFromObject(i[o],void 0),r.push(s);t.setValidationErrorMessages(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}getStatusCode(){return this.statusCode}setStatusCode(e){this.statusCode=e}getError(){return this.error}setError(e){this.error=e}getPath(){return this.path}setPath(e){this.path=e}getValidationErrorMessages(){return this.validationErrorMessages}setValidationErrorMessages(e){this.validationErrorMessages=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:Ae(Me,this,xe).call(this,this.getTimestamp(),!1)}:{},...void 0!==this.getStatusCode()&&null!==this.getStatusCode()?{statusCode:this.getStatusCode()}:{},...void 0!==this.getError()&&null!==this.getError()?{error:this.getError()}:{},...void 0!==this.getPath()&&null!==this.getPath()?{path:this.getPath()}:{},...void 0!==this.getValidationErrorMessages()&&null!==this.getValidationErrorMessages()?{validationErrorMessages:this.getValidationErrorMessages().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"timestamp"!==t||void 0!==this.timestamp&&null!==this.timestamp?"statusCode"!==t||void 0!==this.statusCode&&null!==this.statusCode?"error"!==t||void 0!==this.error&&null!==this.error?"path"!==t||void 0!==this.path&&null!==this.path?"validationErrorMessages"!==t||void 0!==this.validationErrorMessages&&null!==this.validationErrorMessages?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("validationErrorMessages","undefined or null"):new O("path","undefined or null"):new O("error","undefined or null"):new O("statusCode","undefined or null"):new O("timestamp","undefined or null")}}function xe(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Ve(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ne.prototype.timestamp=void 0,Ne.prototype.statusCode=void 0,Ne.prototype.error=void 0,Ne.prototype.path=void 0,Ne.prototype.validationErrorMessages=void 0,Ne.prototype.$reserved=void 0,Ne.prototype.$objectType=void 0,Ne.prototype.$unknownFields=void 0;var Le=new WeakSet;class Be{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Le),t.add(e),this.$objectType="aiops.v4.error.ErrorResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r,a;if(e){if(t=t||new Be,e.hasOwnProperty("error")&&null!==e.error&&void 0!==e.error)if(Array.isArray(e.error))if(0===e.error.length)t.setError([]);else{for(r=[],i=e.error,a=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],o=0;o<i.length;o++){if("aiops.v4.error.AppMessage"!==a)throw"Unknown list of type "+a+" in data";s=De.constructFromObject(i[o],void 0),r.push(s)}t.setError(r)}else{if(a=e.error.hasOwnProperty("$objectType")?e.error.$objectType:typeof e.error,"aiops.v4.error.SchemaValidationError"!==a)throw"Unknown datatype "+a+" in data";t.setError(Ne.constructFromObject(e.error,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getError(){return this.error}setError(e){this.error=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson(!1):Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ve(Le,this,We).call(this,this.getError(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getError()&&null!==this.getError()?{error:void 0!==this.getError().toJson?this.getError().toJson():Array.isArray(this.getError())?this.getError().map(e=>void 0!==e.toJson?e.toJson():e):Ve(Le,this,We).call(this,this.getError())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"error"!==t||void 0!==this.error&&null!==this.error?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("error","undefined or null")}}function We(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Be.prototype.error=void 0,Be.prototype.$reserved=void 0,Be.prototype.$objectType=void 0,Be.prototype.$unknownFields=void 0;var ze=new WeakSet;class Je{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=ze),n.add(t),this.boolList=e,this.$objectType="aiops.v4.stats.BoolList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new Je,e.hasOwnProperty("boolList")&&null!==e.boolList&&void 0!==e.boolList){for(o=[],i=e.boolList,s=0;s<i.length;s++)o.push(i[s]);t.setBoolList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getBoolList(){return this.boolList}setBoolList(e){this.boolList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getBoolList()&&null!==this.getBoolList()?{boolList:this.getBoolList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["boolList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("boolList"===t){if(void 0===this.boolList||null===this.boolList)return new O("boolList","undefined or null");if(!j.validateMaxItems(this.boolList,100))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Je.prototype.boolList=void 0,Je.prototype.$reserved=void 0,Je.prototype.$objectType=void 0,Je.prototype.$unknownFields=void 0;var _e=new WeakSet;class Ge{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=_e),n.add(t),this.boolValue=e,this.$objectType="aiops.v4.stats.BoolVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ge,e.hasOwnProperty("boolValue")&&null!==e.boolValue&&void 0!==e.boolValue&&t.setBoolValue(e.boolValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getBoolValue(){return this.boolValue}setBoolValue(e){this.boolValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getBoolValue()&&null!==this.getBoolValue()?{boolValue:this.getBoolValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["boolValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("boolValue","undefined or null")}}Ge.prototype.boolValue=void 0,Ge.prototype.$reserved=void 0,Ge.prototype.$objectType=void 0,Ge.prototype.$unknownFields=void 0;var qe=new WeakSet;class He{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=qe),n.add(t),this.doubleList=e,this.$objectType="aiops.v4.stats.DoubleList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new He,e.hasOwnProperty("doubleList")&&null!==e.doubleList&&void 0!==e.doubleList){for(o=[],i=e.doubleList,s=0;s<i.length;s++)o.push(i[s]);t.setDoubleList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDoubleList(){return this.doubleList}setDoubleList(e){this.doubleList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDoubleList()&&null!==this.getDoubleList()?{doubleList:this.getDoubleList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["doubleList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("doubleList"===t){if(void 0===this.doubleList||null===this.doubleList)return new O("doubleList","undefined or null");if(!j.validateMaxItems(this.doubleList,100))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}He.prototype.doubleList=void 0,He.prototype.$reserved=void 0,He.prototype.$objectType=void 0,He.prototype.$unknownFields=void 0;var Ke=new WeakSet;class Xe{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Ke),n.add(t),this.doubleValue=e,this.$objectType="aiops.v4.stats.DoubleVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Xe,e.hasOwnProperty("doubleValue")&&null!==e.doubleValue&&void 0!==e.doubleValue&&t.setDoubleValue(e.doubleValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDoubleValue(){return this.doubleValue}setDoubleValue(e){this.doubleValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDoubleValue()&&null!==this.getDoubleValue()?{doubleValue:this.getDoubleValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["doubleValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("doubleValue","undefined or null")}}Xe.prototype.doubleValue=void 0,Xe.prototype.$reserved=void 0,Xe.prototype.$objectType=void 0,Xe.prototype.$unknownFields=void 0;var Ze=new WeakSet;class Ye{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Ze),n.add(t),this.intList=e,this.$objectType="aiops.v4.stats.IntList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new Ye,e.hasOwnProperty("intList")&&null!==e.intList&&void 0!==e.intList){for(o=[],i=e.intList,s=0;s<i.length;s++)o.push(i[s]);t.setIntList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIntList(){return this.intList}setIntList(e){this.intList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIntList()&&null!==this.getIntList()?{intList:this.getIntList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["intList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("intList"===t){if(void 0===this.intList||null===this.intList)return new O("intList","undefined or null");if(!j.validateMaxItems(this.intList,100))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Ye.prototype.intList=void 0,Ye.prototype.$reserved=void 0,Ye.prototype.$objectType=void 0,Ye.prototype.$unknownFields=void 0;var Qe=new WeakSet;class et{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=Qe),n.add(t),this.intValue=e,this.$objectType="aiops.v4.stats.IntVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new et,e.hasOwnProperty("intValue")&&null!==e.intValue&&void 0!==e.intValue&&t.setIntValue(e.intValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIntValue(){return this.intValue}setIntValue(e){this.intValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getIntValue()&&null!==this.getIntValue()?{intValue:this.getIntValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["intValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("intValue","undefined or null")}}et.prototype.intValue=void 0,et.prototype.$reserved=void 0,et.prototype.$objectType=void 0,et.prototype.$unknownFields=void 0;var tt=new WeakSet;class nt{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=tt),n.add(t),this.strList=e,this.$objectType="aiops.v4.stats.StrList",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o;if(e){if(t=t||new nt,e.hasOwnProperty("strList")&&null!==e.strList&&void 0!==e.strList){for(o=[],i=e.strList,s=0;s<i.length;s++)o.push(i[s]);t.setStrList(o)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getStrList(){return this.strList}setStrList(e){this.strList=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getStrList()&&null!==this.getStrList()?{strList:this.getStrList()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["strList"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("strList"===t){if(void 0===this.strList||null===this.strList)return new O("strList","undefined or null");if(!j.validateMaxItems(this.strList,100))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}nt.prototype.strList=void 0,nt.prototype.$reserved=void 0,nt.prototype.$objectType=void 0,nt.prototype.$unknownFields=void 0;var it=new WeakSet;class st{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=it),n.add(t),this.strValue=e,this.$objectType="aiops.v4.stats.StrVal",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new st,e.hasOwnProperty("strValue")&&null!==e.strValue&&void 0!==e.strValue&&t.setStrValue(e.strValue),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getStrValue(){return this.strValue}setStrValue(e){this.strValue=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getStrValue()&&null!==this.getStrValue()?{strValue:this.getStrValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["strValue"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("strValue","undefined or null")}}function ot(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}st.prototype.strValue=void 0,st.prototype.$reserved=void 0,st.prototype.$objectType=void 0,st.prototype.$unknownFields=void 0;var rt=new WeakSet;class at{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=rt),t.add(e),this.$objectType="aiops.v4.stats.Point",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new at,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value)switch(i=e.value.hasOwnProperty("$objectType")?e.value.$objectType:typeof e.value,i){case"aiops.v4.stats.StrVal":t.setValue(st.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.BoolVal":t.setValue(Ge.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.IntVal":t.setValue(et.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.DoubleVal":t.setValue(Xe.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.StrList":t.setValue(nt.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.BoolList":t.setValue(Je.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.IntList":t.setValue(Ye.constructFromObject(e.value,void 0));break;case"aiops.v4.stats.DoubleList":t.setValue(He.constructFromObject(e.value,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("timestamp")&&null!==e.timestamp&&void 0!==e.timestamp&&t.setTimestamp(e.timestamp),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}getTimestamp(){return this.timestamp}setTimestamp(e){this.timestamp=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!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(e=>void 0!==e.toJson?e.toJson(!1):e):ot(rt,this,lt).call(this,this.getValue(),!1)}:{},...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:ot(rt,this,dt).call(this,this.getTimestamp(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getValue()&&null!==this.getValue()?{value:void 0!==this.getValue().toJson?this.getValue().toJson():Array.isArray(this.getValue())?this.getValue().map(e=>void 0!==e.toJson?e.toJson():e):ot(rt,this,lt).call(this,this.getValue())}:{},...void 0!==this.getTimestamp()&&null!==this.getTimestamp()?{timestamp:ot(rt,this,dt).call(this,this.getTimestamp(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("timestamp","undefined or null"):new O("value","undefined or null")}}function lt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function dt(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}at.prototype.value=void 0,at.prototype.timestamp=void 0,at.prototype.$reserved=void 0,at.prototype.$objectType=void 0,at.prototype.$unknownFields=void 0;var ut=new WeakSet;class ht{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=ut),t.add(e),this.$objectType="aiops.v4.stats.TimeSeries",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new ht,e.hasOwnProperty("samplingIntervalSecs")&&null!==e.samplingIntervalSecs&&void 0!==e.samplingIntervalSecs&&t.setSamplingIntervalSecs(e.samplingIntervalSecs),e.hasOwnProperty("values")&&null!==e.values&&void 0!==e.values){for(r=[],i=e.values,o=0;o<i.length;o++)s=at.constructFromObject(i[o],void 0),r.push(s);t.setValues(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getSamplingIntervalSecs(){return this.samplingIntervalSecs}setSamplingIntervalSecs(e){this.samplingIntervalSecs=e}getValues(){return this.values}setValues(e){this.values=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getSamplingIntervalSecs()&&null!==this.getSamplingIntervalSecs()?{samplingIntervalSecs:this.getSamplingIntervalSecs()}:{},...void 0!==this.getValues()&&null!==this.getValues()?{values:this.getValues().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("samplingIntervalSecs"===t&&(void 0===this.samplingIntervalSecs||null===this.samplingIntervalSecs))return new O("samplingIntervalSecs","undefined or null");if("values"===t){if(void 0===this.values||null===this.values)return new O("values","undefined or null");if(!j.validateMaxItems(this.values,2880))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}ht.prototype.samplingIntervalSecs=void 0,ht.prototype.values=void 0,ht.prototype.$reserved=void 0,ht.prototype.$objectType=void 0,ht.prototype.$unknownFields=void 0;var ct=new WeakSet;class pt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=ct),t.add(e),this.$objectType="aiops.v4.stats.Metric",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new pt,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("timeSeries")&&null!==e.timeSeries&&void 0!==e.timeSeries&&t.setTimeSeries(ht.constructFromObject(e.timeSeries)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getTimeSeries(){return this.timeSeries}setTimeSeries(e){this.timeSeries=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getTimeSeries()&&null!==this.getTimeSeries()?{timeSeries:this.getTimeSeries().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,50))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("timeSeries","undefined or null")}}pt.prototype.name=void 0,pt.prototype.timeSeries=void 0,pt.prototype.$reserved=void 0,pt.prototype.$objectType=void 0,pt.prototype.$unknownFields=void 0;var yt=new WeakSet;class vt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=yt),t.add(e),this.$objectType="common.v1.config.TenantAwareModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new vt,e.hasOwnProperty("tenantId")&&null!==e.tenantId&&void 0!==e.tenantId&&t.setTenantId(e.tenantId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getTenantId(){return this.tenantId}setTenantId(e){this.tenantId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("tenantId"===t){if(void 0===this.tenantId||null===this.tenantId)return new O("tenantId","undefined or null");if(!j.validatePattern(this.tenantId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("tenantId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}vt.prototype.tenantId=void 0,vt.prototype.$reserved=void 0,vt.prototype.$objectType=void 0,vt.prototype.$unknownFields=void 0;var gt=new WeakSet;class mt extends vt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=gt),t.add(e),this.$objectType="common.v1.response.ExternalizableAbstractModel",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new mt,vt.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(r=[],i=e.links,o=0;o<i.length;o++)s=B.constructFromObject(i[o],void 0),r.push(s);t.setLinks(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}getLinks(){return this.links}setLinks(e){this.links=e}toJson(e){return!1===e?{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new O("extId","undefined or null");if(null==e){if(!j.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("extId","does not satisfy required pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}else if(e===k.update&&!j.validatePattern(this.extId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("extId","does not satisfy pattern: /^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/")}if("links"===t){if(void 0===this.links||null===this.links)return new O("links","undefined or null");if(!j.validateMaxItems(this.links,20))return new O("links","does not satisfy required maxItems constraint: 20")}return new O(t,"no such property exists")}}mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var wt=new WeakSet;class $t extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=wt),t.add(e),this.$objectType="aiops.v4.stats.Entity",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new $t,mt.constructFromObject(e,t,!0),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(e.entityType),e.hasOwnProperty("source")&&null!==e.source&&void 0!==e.source&&t.setSource(e.source),e.hasOwnProperty("parents")&&null!==e.parents&&void 0!==e.parents){for(r=[],i=e.parents,o=0;o<i.length;o++)s=$t.constructFromObject(i[o],void 0),r.push(s);t.setParents(r)}if(e.hasOwnProperty("metrics")&&null!==e.metrics&&void 0!==e.metrics){for(r=[],i=e.metrics,o=0;o<i.length;o++)s=pt.constructFromObject(i[o],void 0),r.push(s);t.setMetrics(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}getSource(){return this.source}setSource(e){this.source=e}getParents(){return this.parents}setParents(e){this.parents=e}getMetrics(){return this.metrics}setMetrics(e){this.metrics=e}toJson(e){return!1===e?{...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(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.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(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new O("entityType","undefined or null");if("source"===t&&(void 0===this.source||null===this.source))return new O("source","undefined or null");if("parents"===t){if(void 0===this.parents||null===this.parents)return new O("parents","undefined or null");if(!j.validateMaxItems(this.parents,5))return new O("parents","does not satisfy required maxItems constraint: 5")}if("metrics"===t){if(void 0===this.metrics||null===this.metrics)return new O("metrics","undefined or null");if(!j.validateMaxItems(this.metrics,100))return new O("metrics","does not satisfy required maxItems constraint: 100")}return new O(t,"no such property exists")}}function ft(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")}$t.prototype.entityType=void 0,$t.prototype.source=void 0,$t.prototype.parents=void 0,$t.prototype.metrics=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var bt=new WeakSet;class Tt extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=bt),t.add(e),this.$objectType="aiops.v4.stats.EntityListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Tt,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.stats.Entity"!==l)throw"Unknown list of type "+l+" in data";s=$t.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ft(bt,this,kt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ft(bt,this,kt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function kt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Tt.prototype.metadata=void 0,Tt.prototype.data=void 0,Tt.prototype.$reserved=void 0,Tt.prototype.$objectType=void 0,Tt.prototype.$unknownFields=void 0;var jt=new WeakSet;class Ot{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=jt),t.add(e),this.$objectType="aiops.v4.config.ValueRange",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ot,e.hasOwnProperty("min")&&null!==e.min&&void 0!==e.min&&t.setMin(e.min),e.hasOwnProperty("max")&&null!==e.max&&void 0!==e.max&&t.setMax(e.max),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMin(){return this.min}setMin(e){this.min=e}getMax(){return this.max}setMax(e){this.max=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("max","undefined or null"):new O("min","undefined or null")}}Ot.prototype.min=void 0,Ot.prototype.max=void 0,Ot.prototype.$reserved=void 0,Ot.prototype.$objectType=void 0,Ot.prototype.$unknownFields=void 0;const Ft={$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){let t=Object.keys(Ft).find(t=>Ft[t]===e);return null==t?Ft.$UNKNOWN:Ft[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ft.$UNKNOWN:case Ft.$REDACTED:case Ft.BOOL:case Ft.INT:case Ft.DOUBLE:case Ft.STRING:case Ft.BOOL_LIST:case Ft.INT_LIST:case Ft.DOUBLE_LIST:case Ft.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(Ft);const Ct=Ft,Pt={$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){let t=Object.keys(Pt).find(t=>Pt[t]===e);return null==t?Pt.$UNKNOWN:Pt[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Pt.$UNKNOWN:case Pt.$REDACTED:case Pt.SUM:case Pt.MIN:case Pt.MAX:case Pt.AVG:case Pt.COUNT:case Pt.LAST:return;default:throw new Error("Invalid : must be DownSamplingOperator.{ $UNKNOWN|$REDACTED|SUM|MIN|MAX|AVG|COUNT|LAST }")}}};Object.freeze(Pt);const St=Pt;var Et=new WeakSet;class Dt{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Et),t.add(e),this.$objectType="aiops.v4.config.MetricDescriptor",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Dt,e.hasOwnProperty("isAttribute")&&null!==e.isAttribute&&void 0!==e.isAttribute&&t.setIsAttribute(e.isAttribute),e.hasOwnProperty("isAttributePersistedAsTimeSeries")&&null!==e.isAttributePersistedAsTimeSeries&&void 0!==e.isAttributePersistedAsTimeSeries&&t.setIsAttributePersistedAsTimeSeries(e.isAttributePersistedAsTimeSeries),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&t.setDisplayName(e.displayName),e.hasOwnProperty("valueType")&&null!==e.valueType&&void 0!==e.valueType&&t.setValueType(Ct.constructFromObject(e.valueType)),e.hasOwnProperty("valueRange")&&null!==e.valueRange&&void 0!==e.valueRange&&t.setValueRange(Ot.constructFromObject(e.valueRange)),e.hasOwnProperty("defaultValue")&&null!==e.defaultValue&&void 0!==e.defaultValue&&t.setDefaultValue(e.defaultValue),e.hasOwnProperty("unit")&&null!==e.unit&&void 0!==e.unit&&t.setUnit(e.unit),e.hasOwnProperty("samplingIntervalSecs")&&null!==e.samplingIntervalSecs&&void 0!==e.samplingIntervalSecs&&t.setSamplingIntervalSecs(e.samplingIntervalSecs),e.hasOwnProperty("downsamplingOperator")&&null!==e.downsamplingOperator&&void 0!==e.downsamplingOperator&&t.setDownsamplingOperator(St.constructFromObject(e.downsamplingOperator)),e.hasOwnProperty("additionalProperties")&&null!==e.additionalProperties&&void 0!==e.additionalProperties){for(r=[],i=e.additionalProperties,o=0;o<i.length;o++)s=I.constructFromObject(i[o],void 0),r.push(s);t.setAdditionalProperties(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getIsAttribute(){return this.isAttribute}setIsAttribute(e){this.isAttribute=e}getIsAttributePersistedAsTimeSeries(){return this.isAttributePersistedAsTimeSeries}setIsAttributePersistedAsTimeSeries(e){this.isAttributePersistedAsTimeSeries=e}getName(){return this.name}setName(e){this.name=e}getDisplayName(){return this.displayName}setDisplayName(e){this.displayName=e}getValueType(){return this.valueType}setValueType(e){this.valueType=e}getValueRange(){return this.valueRange}setValueRange(e){this.valueRange=e}getDefaultValue(){return this.defaultValue}setDefaultValue(e){this.defaultValue=e}getUnit(){return this.unit}setUnit(e){this.unit=e}getSamplingIntervalSecs(){return this.samplingIntervalSecs}setSamplingIntervalSecs(e){this.samplingIntervalSecs=e}getDownsamplingOperator(){return this.downsamplingOperator}setDownsamplingOperator(e){this.downsamplingOperator=e}getAdditionalProperties(){return this.additionalProperties}setAdditionalProperties(e){this.additionalProperties=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("isAttribute"===t&&(void 0===this.isAttribute||null===this.isAttribute))return new O("isAttribute","undefined or null");if("isAttributePersistedAsTimeSeries"===t&&(void 0===this.isAttributePersistedAsTimeSeries||null===this.isAttributePersistedAsTimeSeries))return new O("isAttributePersistedAsTimeSeries","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,50))return new O("name","does not satisfy required maxLength constraint: 50")}if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new O("displayName","undefined or null");if(!j.validateMaxLength(this.displayName,50))return new O("displayName","does not satisfy required maxLength constraint: 50")}if("valueType"===t&&(void 0===this.valueType||null===this.valueType))return new O("valueType","undefined or null");if("valueRange"===t&&(void 0===this.valueRange||null===this.valueRange))return new O("valueRange","undefined or null");if("defaultValue"===t&&(void 0===this.defaultValue||null===this.defaultValue))return new O("defaultValue","undefined or null");if("unit"===t&&(void 0===this.unit||null===this.unit))return new O("unit","undefined or null");if("samplingIntervalSecs"===t&&(void 0===this.samplingIntervalSecs||null===this.samplingIntervalSecs))return new O("samplingIntervalSecs","undefined or null");if("downsamplingOperator"===t&&(void 0===this.downsamplingOperator||null===this.downsamplingOperator))return new O("downsamplingOperator","undefined or null");if("additionalProperties"===t){if(void 0===this.additionalProperties||null===this.additionalProperties)return new O("additionalProperties","undefined or null");if(!j.validateMaxItems(this.additionalProperties,100))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Dt.prototype.isAttribute=void 0,Dt.prototype.isAttributePersistedAsTimeSeries=void 0,Dt.prototype.name=void 0,Dt.prototype.displayName=void 0,Dt.prototype.valueType=void 0,Dt.prototype.valueRange=void 0,Dt.prototype.defaultValue=void 0,Dt.prototype.unit=void 0,Dt.prototype.samplingIntervalSecs=void 0,Dt.prototype.downsamplingOperator=void 0,Dt.prototype.additionalProperties=void 0,Dt.prototype.$reserved=void 0,Dt.prototype.$objectType=void 0,Dt.prototype.$unknownFields=void 0;var Rt=new WeakSet;class Ut extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Rt),t.add(e),this.$objectType="aiops.v4.config.EntityDescriptor",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Ut,mt.constructFromObject(e,t,!0),e.hasOwnProperty("entityType")&&null!==e.entityType&&void 0!==e.entityType&&t.setEntityType(e.entityType),e.hasOwnProperty("source")&&null!==e.source&&void 0!==e.source&&t.setSource(e.source),e.hasOwnProperty("displayName")&&null!==e.displayName&&void 0!==e.displayName&&t.setDisplayName(e.displayName),e.hasOwnProperty("parents")&&null!==e.parents&&void 0!==e.parents){for(r=[],i=e.parents,o=0;o<i.length;o++)s=Ut.constructFromObject(i[o],void 0),r.push(s);t.setParents(r)}if(e.hasOwnProperty("metrics")&&null!==e.metrics&&void 0!==e.metrics){for(r=[],i=e.metrics,o=0;o<i.length;o++)s=Dt.constructFromObject(i[o],void 0),r.push(s);t.setMetrics(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityType(){return this.entityType}setEntityType(e){this.entityType=e}getSource(){return this.source}setSource(e){this.source=e}getDisplayName(){return this.displayName}setDisplayName(e){this.displayName=e}getParents(){return this.parents}setParents(e){this.parents=e}getMetrics(){return this.metrics}setMetrics(e){this.metrics=e}toJson(e){return!1===e?{...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(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.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(e=>e.toJson(!1))}:{},...void 0!==this.getMetrics()&&null!==this.getMetrics()?{metrics:this.getMetrics().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityType"===t&&(void 0===this.entityType||null===this.entityType))return new O("entityType","undefined or null");if("source"===t&&(void 0===this.source||null===this.source))return new O("source","undefined or null");if("displayName"===t){if(void 0===this.displayName||null===this.displayName)return new O("displayName","undefined or null");if(!j.validateMaxLength(this.displayName,50))return new O("displayName","does not satisfy required maxLength constraint: 50")}if("parents"===t){if(void 0===this.parents||null===this.parents)return new O("parents","undefined or null");if(!j.validateMaxItems(this.parents,5))return new O("parents","does not satisfy required maxItems constraint: 5")}if("metrics"===t){if(void 0===this.metrics||null===this.metrics)return new O("metrics","undefined or null");if(!j.validateMaxItems(this.metrics,100))return new O("metrics","does not satisfy required maxItems constraint: 100")}return new O(t,"no such property exists")}}function It(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ut.prototype.entityType=void 0,Ut.prototype.source=void 0,Ut.prototype.displayName=void 0,Ut.prototype.parents=void 0,Ut.prototype.metrics=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var At=new WeakSet;class Mt extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=At),t.add(e),this.$objectType="aiops.v4.config.EntityDescriptorListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Mt,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.config.EntityDescriptor"!==l)throw"Unknown list of type "+l+" in data";s=Ut.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):It(At,this,Nt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):It(At,this,Nt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Nt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Mt.prototype.metadata=void 0,Mt.prototype.data=void 0,Mt.prototype.$reserved=void 0,Mt.prototype.$objectType=void 0,Mt.prototype.$unknownFields=void 0;var xt=new WeakSet;class Vt extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=xt),t.add(e),this.$objectType="aiops.v4.config.Source",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Vt,mt.constructFromObject(e,t,!0),e.hasOwnProperty("sourceName")&&null!==e.sourceName&&void 0!==e.sourceName&&t.setSourceName(e.sourceName),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getSourceName(){return this.sourceName}setSourceName(e){this.sourceName=e}toJson(e){return!1===e?{...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(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getSourceName()&&null!==this.getSourceName()?{sourceName:this.getSourceName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("sourceName"===t){if(void 0===this.sourceName||null===this.sourceName)return new O("sourceName","undefined or null");if(!j.validateMaxLength(this.sourceName,50))return new O("sourceName","does not satisfy required maxLength constraint: 50")}return new O(t,"no such property exists")}}function Lt(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Vt.prototype.sourceName=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var Bt=new WeakSet;class Wt extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Bt),t.add(e),this.$objectType="aiops.v4.config.SourceListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Wt,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.config.Source"!==l)throw"Unknown list of type "+l+" in data";s=Vt.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Lt(Bt,this,zt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Lt(Bt,this,zt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function zt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Wt.prototype.metadata=void 0,Wt.prototype.data=void 0,Wt.prototype.$reserved=void 0,Wt.prototype.$objectType=void 0,Wt.prototype.$unknownFields=void 0;var Jt=new WeakSet;class _t extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Jt),t.add(e),this.$objectType="aiops.v4.config.EntityType",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _t,mt.constructFromObject(e,t,!0),e.hasOwnProperty("entityTypeName")&&null!==e.entityTypeName&&void 0!==e.entityTypeName&&t.setEntityTypeName(e.entityTypeName),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getEntityTypeName(){return this.entityTypeName}setEntityTypeName(e){this.entityTypeName=e}toJson(e){return!1===e?{...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(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getEntityTypeName()&&null!==this.getEntityTypeName()?{entityTypeName:this.getEntityTypeName()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("entityTypeName"===t){if(void 0===this.entityTypeName||null===this.entityTypeName)return new O("entityTypeName","undefined or null");if(!j.validateMaxLength(this.entityTypeName,50))return new O("entityTypeName","does not satisfy required maxLength constraint: 50")}return new O(t,"no such property exists")}}function Gt(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")}_t.prototype.entityTypeName=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var qt=new WeakSet;class Ht extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=qt),t.add(e),this.$objectType="aiops.v4.config.EntityTypeListApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Ht,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.config.EntityType"!==l)throw"Unknown list of type "+l+" in data";s=_t.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Gt(qt,this,Kt).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Gt(qt,this,Kt).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Kt(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Ht.prototype.metadata=void 0,Ht.prototype.data=void 0,Ht.prototype.$reserved=void 0,Ht.prototype.$objectType=void 0,Ht.prototype.$unknownFields=void 0;var Xt=new WeakSet;class Zt{constructor(e,t,n){var i,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(i=this,s=Xt),s.add(i),this.vcpuCount=e,this.ramGb=t,this.hddGb=n,this.$objectType="aiops.v4.config.SimulatedVmResourceSpec",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Zt,e.hasOwnProperty("vcpuCount")&&null!==e.vcpuCount&&void 0!==e.vcpuCount&&t.setVcpuCount(e.vcpuCount),e.hasOwnProperty("ramGb")&&null!==e.ramGb&&void 0!==e.ramGb&&t.setRamGb(e.ramGb),e.hasOwnProperty("hddGb")&&null!==e.hddGb&&void 0!==e.hddGb&&t.setHddGb(e.hddGb),e.hasOwnProperty("ssdGb")&&null!==e.ssdGb&&void 0!==e.ssdGb&&t.setSsdGb(e.ssdGb),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVcpuCount(){return this.vcpuCount}setVcpuCount(e){this.vcpuCount=e}getRamGb(){return this.ramGb}setRamGb(e){this.ramGb=e}getHddGb(){return this.hddGb}setHddGb(e){this.hddGb=e}getSsdGb(){return this.ssdGb}setSsdGb(e){this.ssdGb=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vcpuCount","ramGb","hddGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("ssdGb","undefined or null"):new O("hddGb","undefined or null"):new O("ramGb","undefined or null"):new O("vcpuCount","undefined or null")}}Zt.prototype.vcpuCount=void 0,Zt.prototype.ramGb=void 0,Zt.prototype.hddGb=void 0,Zt.prototype.ssdGb=void 0,Zt.prototype.$reserved=void 0,Zt.prototype.$objectType=void 0,Zt.prototype.$unknownFields=void 0;var Yt=new WeakSet;class Qt extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Yt),t.add(e),this.$objectType="aiops.v4.config.Simulation",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Qt,mt.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("simulationSpec")&&null!==e.simulationSpec&&void 0!==e.simulationSpec&&t.setSimulationSpec(Zt.constructFromObject(e.simulationSpec)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getSimulationSpec(){return this.simulationSpec}setSimulationSpec(e){this.simulationSpec=e}toJson(e){return!1===e?{...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(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getSimulationSpec()&&null!==this.getSimulationSpec()?{simulationSpec:this.getSimulationSpec().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!j.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}return"simulationSpec"!==t||void 0!==this.simulationSpec&&null!==this.simulationSpec?new O(t,"no such property exists"):new O("simulationSpec","undefined or null")}}function en(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.name=void 0,Qt.prototype.simulationSpec=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var tn=new WeakSet;class nn extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=tn),t.add(e),this.$objectType="aiops.v4.config.CreateSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new nn,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.config.Simulation":t.setData(Qt.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):en(tn,this,sn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):en(tn,this,sn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function sn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}nn.prototype.metadata=void 0,nn.prototype.data=void 0,nn.prototype.$reserved=void 0,nn.prototype.$objectType=void 0,nn.prototype.$unknownFields=void 0;class on extends Qt{constructor(){super(),this.$objectType="aiops.v4.config.SimulationProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new on,Qt.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}function rn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var an=new WeakSet;class ln extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=an),t.add(e),this.$objectType="aiops.v4.config.ListSimulationsApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new ln,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++)switch(l){case"aiops.v4.config.Simulation":s=Qt.constructFromObject(i[r],void 0),a.push(s);break;case"aiops.v4.config.SimulationProjection":s=on.constructFromObject(i[r],void 0),a.push(s);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):rn(an,this,dn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):rn(an,this,dn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function dn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function un(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")}ln.prototype.metadata=void 0,ln.prototype.data=void 0,ln.prototype.$reserved=void 0,ln.prototype.$objectType=void 0,ln.prototype.$unknownFields=void 0;var hn=new WeakSet;class cn extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=hn),t.add(e),this.$objectType="aiops.v4.config.UpdateSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new cn,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++){if("aiops.v4.error.AppMessage"!==l)throw"Unknown list of type "+l+" in data";s=De.constructFromObject(i[r],void 0),a.push(s)}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):un(hn,this,pn).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):un(hn,this,pn).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function pn(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}cn.prototype.metadata=void 0,cn.prototype.data=void 0,cn.prototype.$reserved=void 0,cn.prototype.$objectType=void 0,cn.prototype.$unknownFields=void 0;const yn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",RF_2:"RF_2",RF_3:"RF_3",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(yn).find(t=>yn[t]===e);return null==t?yn.$UNKNOWN:yn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case yn.$UNKNOWN:case yn.$REDACTED:case yn.RF_2:case yn.RF_3:return;default:throw new Error("Invalid : must be ReplicationFactor.{ $UNKNOWN|$REDACTED|RF_2|RF_3 }")}}};Object.freeze(yn);const vn=yn;var gn=new WeakSet;class mn{constructor(e,t,n,i,s,o,r,a,l,d){var u,h;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(u=this,h=gn),h.add(u),this.replicationFactor=e,this.compressionSavingPercent=t,this.dedupSavingPercent=n,this.erasureCodingSavingPercent=i,this.overallSavingPercent=s,this.cpuOverCommitRatio=o,this.ramOverCommitRatio=r,this.cpuReservationPercentage=a,this.ramReservationPercentage=l,this.storageReservationPercentage=d,this.$objectType="aiops.v4.config.DataStoreConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new mn,e.hasOwnProperty("replicationFactor")&&null!==e.replicationFactor&&void 0!==e.replicationFactor&&t.setReplicationFactor(vn.constructFromObject(e.replicationFactor)),e.hasOwnProperty("compressionSavingPercent")&&null!==e.compressionSavingPercent&&void 0!==e.compressionSavingPercent&&t.setCompressionSavingPercent(e.compressionSavingPercent),e.hasOwnProperty("dedupSavingPercent")&&null!==e.dedupSavingPercent&&void 0!==e.dedupSavingPercent&&t.setDedupSavingPercent(e.dedupSavingPercent),e.hasOwnProperty("erasureCodingSavingPercent")&&null!==e.erasureCodingSavingPercent&&void 0!==e.erasureCodingSavingPercent&&t.setErasureCodingSavingPercent(e.erasureCodingSavingPercent),e.hasOwnProperty("overallSavingPercent")&&null!==e.overallSavingPercent&&void 0!==e.overallSavingPercent&&t.setOverallSavingPercent(e.overallSavingPercent),e.hasOwnProperty("cpuOverCommitRatio")&&null!==e.cpuOverCommitRatio&&void 0!==e.cpuOverCommitRatio&&t.setCpuOverCommitRatio(e.cpuOverCommitRatio),e.hasOwnProperty("ramOverCommitRatio")&&null!==e.ramOverCommitRatio&&void 0!==e.ramOverCommitRatio&&t.setRamOverCommitRatio(e.ramOverCommitRatio),e.hasOwnProperty("cpuReservationPercentage")&&null!==e.cpuReservationPercentage&&void 0!==e.cpuReservationPercentage&&t.setCpuReservationPercentage(e.cpuReservationPercentage),e.hasOwnProperty("ramReservationPercentage")&&null!==e.ramReservationPercentage&&void 0!==e.ramReservationPercentage&&t.setRamReservationPercentage(e.ramReservationPercentage),e.hasOwnProperty("storageReservationPercentage")&&null!==e.storageReservationPercentage&&void 0!==e.storageReservationPercentage&&t.setStorageReservationPercentage(e.storageReservationPercentage),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getReplicationFactor(){return this.replicationFactor}setReplicationFactor(e){this.replicationFactor=e}getCompressionSavingPercent(){return this.compressionSavingPercent}setCompressionSavingPercent(e){this.compressionSavingPercent=e}getDedupSavingPercent(){return this.dedupSavingPercent}setDedupSavingPercent(e){this.dedupSavingPercent=e}getErasureCodingSavingPercent(){return this.erasureCodingSavingPercent}setErasureCodingSavingPercent(e){this.erasureCodingSavingPercent=e}getOverallSavingPercent(){return this.overallSavingPercent}setOverallSavingPercent(e){this.overallSavingPercent=e}getCpuOverCommitRatio(){return this.cpuOverCommitRatio}setCpuOverCommitRatio(e){this.cpuOverCommitRatio=e}getRamOverCommitRatio(){return this.ramOverCommitRatio}setRamOverCommitRatio(e){this.ramOverCommitRatio=e}getCpuReservationPercentage(){return this.cpuReservationPercentage}setCpuReservationPercentage(e){this.cpuReservationPercentage=e}getRamReservationPercentage(){return this.ramReservationPercentage}setRamReservationPercentage(e){this.ramReservationPercentage=e}getStorageReservationPercentage(){return this.storageReservationPercentage}setStorageReservationPercentage(e){this.storageReservationPercentage=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["replicationFactor","compressionSavingPercent","dedupSavingPercent","erasureCodingSavingPercent","overallSavingPercent","cpuOverCommitRatio","ramOverCommitRatio","cpuReservationPercentage","ramReservationPercentage","storageReservationPercentage"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("storageReservationPercentage","undefined or null"):new O("ramReservationPercentage","undefined or null"):new O("cpuReservationPercentage","undefined or null"):new O("ramOverCommitRatio","undefined or null"):new O("cpuOverCommitRatio","undefined or null"):new O("overallSavingPercent","undefined or null"):new O("erasureCodingSavingPercent","undefined or null"):new O("dedupSavingPercent","undefined or null"):new O("compressionSavingPercent","undefined or null"):new O("replicationFactor","undefined or null")}}mn.prototype.replicationFactor=void 0,mn.prototype.compressionSavingPercent=25.81037,mn.prototype.dedupSavingPercent=35.864,mn.prototype.erasureCodingSavingPercent=15.16939,mn.prototype.overallSavingPercent=59.64,mn.prototype.cpuOverCommitRatio=1,mn.prototype.ramOverCommitRatio=1,mn.prototype.cpuReservationPercentage=0,mn.prototype.ramReservationPercentage=0,mn.prototype.storageReservationPercentage=0,mn.prototype.$reserved=void 0,mn.prototype.$objectType=void 0,mn.prototype.$unknownFields=void 0;const wn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",EXISTING:"EXISTING",USER_ADDED:"USER_ADDED",RECOMMENDED:"RECOMMENDED",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(wn).find(t=>wn[t]===e);return null==t?wn.$UNKNOWN:wn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case wn.$UNKNOWN:case wn.$REDACTED:case wn.EXISTING:case wn.USER_ADDED:case wn.RECOMMENDED:return;default:throw new Error("Invalid : must be NodeSource.{ $UNKNOWN|$REDACTED|EXISTING|USER_ADDED|RECOMMENDED }")}}};Object.freeze(wn);const $n=wn;var fn=new WeakSet;class bn{constructor(e,t,n,i,s){var o,r;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(o=this,r=fn),r.add(o),this.cpuGhz=e,this.ramGb=t,this.hddGb=n,this.ssdGb=i,this.nvmeGb=s,this.$objectType="aiops.v4.config.ResourceCapacity",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new bn,e.hasOwnProperty("cpuGhz")&&null!==e.cpuGhz&&void 0!==e.cpuGhz&&t.setCpuGhz(e.cpuGhz),e.hasOwnProperty("ramGb")&&null!==e.ramGb&&void 0!==e.ramGb&&t.setRamGb(e.ramGb),e.hasOwnProperty("hddGb")&&null!==e.hddGb&&void 0!==e.hddGb&&t.setHddGb(e.hddGb),e.hasOwnProperty("ssdGb")&&null!==e.ssdGb&&void 0!==e.ssdGb&&t.setSsdGb(e.ssdGb),e.hasOwnProperty("nvmeGb")&&null!==e.nvmeGb&&void 0!==e.nvmeGb&&t.setNvmeGb(e.nvmeGb),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCpuGhz(){return this.cpuGhz}setCpuGhz(e){this.cpuGhz=e}getRamGb(){return this.ramGb}setRamGb(e){this.ramGb=e}getHddGb(){return this.hddGb}setHddGb(e){this.hddGb=e}getSsdGb(){return this.ssdGb}setSsdGb(e){this.ssdGb=e}getNvmeGb(){return this.nvmeGb}setNvmeGb(e){this.nvmeGb=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["cpuGhz","ramGb","hddGb","ssdGb","nvmeGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("nvmeGb","undefined or null"):new O("ssdGb","undefined or null"):new O("hddGb","undefined or null"):new O("ramGb","undefined or null"):new O("cpuGhz","undefined or null")}}function Tn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}bn.prototype.cpuGhz=void 0,bn.prototype.ramGb=void 0,bn.prototype.hddGb=void 0,bn.prototype.ssdGb=void 0,bn.prototype.nvmeGb=void 0,bn.prototype.$reserved=void 0,bn.prototype.$objectType=void 0,bn.prototype.$unknownFields=void 0;var kn=new WeakSet;class jn{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=kn),o.add(s),this.model=e,this.nodeCount=t,this.isEnabled=n,this.nodeSource=i,this.$objectType="aiops.v4.config.NodeConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new jn,e.hasOwnProperty("model")&&null!==e.model&&void 0!==e.model&&t.setModel(e.model),e.hasOwnProperty("nodeCount")&&null!==e.nodeCount&&void 0!==e.nodeCount&&t.setNodeCount(e.nodeCount),e.hasOwnProperty("targetOnlineTime")&&null!==e.targetOnlineTime&&void 0!==e.targetOnlineTime&&t.setTargetOnlineTime(e.targetOnlineTime),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("isDisregarded")&&null!==e.isDisregarded&&void 0!==e.isDisregarded&&t.setIsDisregarded(e.isDisregarded),e.hasOwnProperty("nodeSource")&&null!==e.nodeSource&&void 0!==e.nodeSource&&t.setNodeSource($n.constructFromObject(e.nodeSource)),e.hasOwnProperty("nodeResourceCapacity")&&null!==e.nodeResourceCapacity&&void 0!==e.nodeResourceCapacity&&t.setNodeResourceCapacity(bn.constructFromObject(e.nodeResourceCapacity)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getModel(){return this.model}setModel(e){this.model=e}getNodeCount(){return this.nodeCount}setNodeCount(e){this.nodeCount=e}getTargetOnlineTime(){return this.targetOnlineTime}setTargetOnlineTime(e){this.targetOnlineTime=e}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}getIsDisregarded(){return this.isDisregarded}setIsDisregarded(e){this.isDisregarded=e}getNodeSource(){return this.nodeSource}setNodeSource(e){this.nodeSource=e}getNodeResourceCapacity(){return this.nodeResourceCapacity}setNodeResourceCapacity(e){this.nodeResourceCapacity=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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:Tn(kn,this,On).call(this,this.getTargetOnlineTime(),!1)}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getIsDisregarded()&&null!==this.getIsDisregarded()?{isDisregarded:this.getIsDisregarded()}:{},...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["model","nodeCount","isEnabled","nodeSource"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("model"===t&&(void 0===this.model||null===this.model))return new O("model","undefined or null");if("nodeCount"===t){if(void 0===this.nodeCount||null===this.nodeCount)return new O("nodeCount","undefined or null");if(!j.validateMaximum(this.nodeCount,500))return new O("nodeCount","does not satisfy required maximum constraint: 500");if(!j.validateMinimum(this.nodeCount,1))return new O("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?"isDisregarded"!==t||void 0!==this.isDisregarded&&null!==this.isDisregarded?"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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("nodeResourceCapacity","undefined or null"):new O("nodeSource","undefined or null"):new O("isDisregarded","undefined or null"):new O("isEnabled","undefined or null"):new O("targetOnlineTime","undefined or null")}}function On(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}jn.prototype.model=void 0,jn.prototype.nodeCount=void 0,jn.prototype.targetOnlineTime=void 0,jn.prototype.isEnabled=!1,jn.prototype.isDisregarded=!1,jn.prototype.nodeSource=void 0,jn.prototype.nodeResourceCapacity=void 0,jn.prototype.$reserved=void 0,jn.prototype.$objectType=void 0,jn.prototype.$unknownFields=void 0;var Fn=new WeakSet;class Cn{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Fn),t.add(e),this.$objectType="aiops.v4.config.ClusterConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Cn,e.hasOwnProperty("dataStoreConfig")&&null!==e.dataStoreConfig&&void 0!==e.dataStoreConfig&&t.setDataStoreConfig(mn.constructFromObject(e.dataStoreConfig)),e.hasOwnProperty("nodeConfigs")&&null!==e.nodeConfigs&&void 0!==e.nodeConfigs){for(r=[],i=e.nodeConfigs,o=0;o<i.length;o++)s=jn.constructFromObject(i[o],void 0),r.push(s);t.setNodeConfigs(r)}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDataStoreConfig(){return this.dataStoreConfig}setDataStoreConfig(e){this.dataStoreConfig=e}getNodeConfigs(){return this.nodeConfigs}setNodeConfigs(e){this.nodeConfigs=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getDataStoreConfig()&&null!==this.getDataStoreConfig()?{dataStoreConfig:this.getDataStoreConfig().toJson(!1)}:{},...void 0!==this.getNodeConfigs()&&null!==this.getNodeConfigs()?{nodeConfigs:this.getNodeConfigs().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("dataStoreConfig"===t&&(void 0===this.dataStoreConfig||null===this.dataStoreConfig))return new O("dataStoreConfig","undefined or null");if("nodeConfigs"===t){if(void 0===this.nodeConfigs||null===this.nodeConfigs)return new O("nodeConfigs","undefined or null");if(!j.validateMaxItems(this.nodeConfigs,50))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function Pn(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Cn.prototype.dataStoreConfig=void 0,Cn.prototype.nodeConfigs=void 0,Cn.prototype.$reserved=void 0,Cn.prototype.$objectType=void 0,Cn.prototype.$unknownFields=void 0;var Sn=new WeakSet;class En{constructor(e,t,n,i,s){var o,r;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(o=this,r=Sn),r.add(o),this.minimumRunwayDays=e,this.cpuRunwayDays=t,this.memoryRunwayDays=n,this.storageRunwayDays=i,this.runwayStartTime=s,this.$objectType="aiops.v4.config.Runway",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new En,e.hasOwnProperty("minimumRunwayDays")&&null!==e.minimumRunwayDays&&void 0!==e.minimumRunwayDays&&t.setMinimumRunwayDays(e.minimumRunwayDays),e.hasOwnProperty("cpuRunwayDays")&&null!==e.cpuRunwayDays&&void 0!==e.cpuRunwayDays&&t.setCpuRunwayDays(e.cpuRunwayDays),e.hasOwnProperty("memoryRunwayDays")&&null!==e.memoryRunwayDays&&void 0!==e.memoryRunwayDays&&t.setMemoryRunwayDays(e.memoryRunwayDays),e.hasOwnProperty("storageRunwayDays")&&null!==e.storageRunwayDays&&void 0!==e.storageRunwayDays&&t.setStorageRunwayDays(e.storageRunwayDays),e.hasOwnProperty("runwayStartTime")&&null!==e.runwayStartTime&&void 0!==e.runwayStartTime&&t.setRunwayStartTime(e.runwayStartTime),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMinimumRunwayDays(){return this.minimumRunwayDays}setMinimumRunwayDays(e){this.minimumRunwayDays=e}getCpuRunwayDays(){return this.cpuRunwayDays}setCpuRunwayDays(e){this.cpuRunwayDays=e}getMemoryRunwayDays(){return this.memoryRunwayDays}setMemoryRunwayDays(e){this.memoryRunwayDays=e}getStorageRunwayDays(){return this.storageRunwayDays}setStorageRunwayDays(e){this.storageRunwayDays=e}getRunwayStartTime(){return this.runwayStartTime}setRunwayStartTime(e){this.runwayStartTime=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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:Pn(Sn,this,Dn).call(this,this.getRunwayStartTime(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["minimumRunwayDays","cpuRunwayDays","memoryRunwayDays","storageRunwayDays","runwayStartTime"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("minimumRunwayDays"===t){if(void 0===this.minimumRunwayDays||null===this.minimumRunwayDays)return new O("minimumRunwayDays","undefined or null");if(!j.validateMaximum(this.minimumRunwayDays,366))return new O("minimumRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.minimumRunwayDays,-1))return new O("minimumRunwayDays","does not satisfy required minimum constraint: -1")}if("cpuRunwayDays"===t){if(void 0===this.cpuRunwayDays||null===this.cpuRunwayDays)return new O("cpuRunwayDays","undefined or null");if(!j.validateMaximum(this.cpuRunwayDays,366))return new O("cpuRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.cpuRunwayDays,-1))return new O("cpuRunwayDays","does not satisfy required minimum constraint: -1")}if("memoryRunwayDays"===t){if(void 0===this.memoryRunwayDays||null===this.memoryRunwayDays)return new O("memoryRunwayDays","undefined or null");if(!j.validateMaximum(this.memoryRunwayDays,366))return new O("memoryRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.memoryRunwayDays,-1))return new O("memoryRunwayDays","does not satisfy required minimum constraint: -1")}if("storageRunwayDays"===t){if(void 0===this.storageRunwayDays||null===this.storageRunwayDays)return new O("storageRunwayDays","undefined or null");if(!j.validateMaximum(this.storageRunwayDays,366))return new O("storageRunwayDays","does not satisfy required maximum constraint: 366");if(!j.validateMinimum(this.storageRunwayDays,-1))return new O("storageRunwayDays","does not satisfy required minimum constraint: -1")}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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("runwayStartTime","undefined or null")}}function Dn(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}En.prototype.minimumRunwayDays=void 0,En.prototype.cpuRunwayDays=void 0,En.prototype.memoryRunwayDays=void 0,En.prototype.storageRunwayDays=void 0,En.prototype.runwayStartTime=void 0,En.prototype.$reserved=void 0,En.prototype.$objectType=void 0,En.prototype.$unknownFields=void 0;const Rn={$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){let t=Object.keys(Rn).find(t=>Rn[t]===e);return null==t?Rn.$UNKNOWN:Rn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Rn.$UNKNOWN:case Rn.$REDACTED:case Rn.NUTANIX:case Rn.DELL:case Rn.LENOVO:case Rn.CISCO:case Rn.IBM:case Rn.HPE_DX:case Rn.AWS:case Rn.FUJITSU:case Rn.AZURE:return;default:throw new Error("Invalid : must be Vendor.{ $UNKNOWN|$REDACTED|NUTANIX|DELL|LENOVO|CISCO|IBM|HPE_DX|AWS|FUJITSU|AZURE }")}}};Object.freeze(Rn);const Un=Rn,In={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INCREASE:"INCREASE",DECREASE:"DECREASE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(In).find(t=>In[t]===e);return null==t?In.$UNKNOWN:In[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case In.$UNKNOWN:case In.$REDACTED:case In.INCREASE:case In.DECREASE:return;default:throw new Error("Invalid : must be CapacityUpdateType.{ $UNKNOWN|$REDACTED|INCREASE|DECREASE }")}}};Object.freeze(In);const An=In;var Mn=new WeakSet;class Nn{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=Mn),i.add(n),this.percentageChange=e,this.changeType=t,this.$objectType="aiops.v4.config.CapacityUpdateConfig",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Nn,e.hasOwnProperty("percentageChange")&&null!==e.percentageChange&&void 0!==e.percentageChange&&t.setPercentageChange(e.percentageChange),e.hasOwnProperty("changeType")&&null!==e.changeType&&void 0!==e.changeType&&t.setChangeType(An.constructFromObject(e.changeType)),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getPercentageChange(){return this.percentageChange}setPercentageChange(e){this.percentageChange=e}getChangeType(){return this.changeType}setChangeType(e){this.changeType=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["percentageChange","changeType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("changeType","undefined or null"):new O("percentageChange","undefined or null")}}Nn.prototype.percentageChange=void 0,Nn.prototype.changeType=void 0,Nn.prototype.$reserved=void 0,Nn.prototype.$objectType=void 0,Nn.prototype.$unknownFields=void 0;const xn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",PVS:"PVS",MCS:"MCS",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(xn).find(t=>xn[t]===e);return null==t?xn.$UNKNOWN:xn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xn.$UNKNOWN:case xn.$REDACTED:case xn.PVS:case xn.MCS:return;default:throw new Error("Invalid : must be CitrixXenProvisionType.{ $UNKNOWN|$REDACTED|PVS|MCS }")}}};Object.freeze(xn);const Vn=xn,Ln={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",XEN_APP:"XEN_APP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ln).find(t=>Ln[t]===e);return null==t?Ln.$UNKNOWN:Ln[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ln.$UNKNOWN:case Ln.$REDACTED:case Ln.XEN_APP:return;default:throw new Error("Invalid : must be CitrixXenWorkloadVendor.{ $UNKNOWN|$REDACTED|XEN_APP }")}}};Object.freeze(Ln);const Bn=Ln,Wn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",WINDOWS_2012R2:"WINDOWS_2012R2",WINDOWS_2008R2:"WINDOWS_2008R2",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Wn).find(t=>Wn[t]===e);return null==t?Wn.$UNKNOWN:Wn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Wn.$UNKNOWN:case Wn.$REDACTED:case Wn.WINDOWS_2012R2:case Wn.WINDOWS_2008R2:return;default:throw new Error("Invalid : must be XenOperatingSystem.{ $UNKNOWN|$REDACTED|WINDOWS_2012R2|WINDOWS_2008R2 }")}}};Object.freeze(Wn);const zn=Wn;var Jn=new WeakSet;class _n{constructor(e,t,n,i,s,o){var r,a;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(r=this,a=Jn),a.add(r),this.operatingSystem=e,this.systemDataGb=t,this.userCount=n,this.mcsDiffSizeGb=i,this.userProfileDataMb=s,this.pvsWriteCacheSizeGb=o,this.$objectType="aiops.v4.config.XenWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _n,e.hasOwnProperty("operatingSystem")&&null!==e.operatingSystem&&void 0!==e.operatingSystem&&t.setOperatingSystem(zn.constructFromObject(e.operatingSystem)),e.hasOwnProperty("systemDataGb")&&null!==e.systemDataGb&&void 0!==e.systemDataGb&&t.setSystemDataGb(e.systemDataGb),e.hasOwnProperty("userCount")&&null!==e.userCount&&void 0!==e.userCount&&t.setUserCount(e.userCount),e.hasOwnProperty("mcsDiffSizeGb")&&null!==e.mcsDiffSizeGb&&void 0!==e.mcsDiffSizeGb&&t.setMcsDiffSizeGb(e.mcsDiffSizeGb),e.hasOwnProperty("userProfileDataMb")&&null!==e.userProfileDataMb&&void 0!==e.userProfileDataMb&&t.setUserProfileDataMb(e.userProfileDataMb),e.hasOwnProperty("pvsWriteCacheSizeGb")&&null!==e.pvsWriteCacheSizeGb&&void 0!==e.pvsWriteCacheSizeGb&&t.setPvsWriteCacheSizeGb(e.pvsWriteCacheSizeGb),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getOperatingSystem(){return this.operatingSystem}setOperatingSystem(e){this.operatingSystem=e}getSystemDataGb(){return this.systemDataGb}setSystemDataGb(e){this.systemDataGb=e}getUserCount(){return this.userCount}setUserCount(e){this.userCount=e}getMcsDiffSizeGb(){return this.mcsDiffSizeGb}setMcsDiffSizeGb(e){this.mcsDiffSizeGb=e}getUserProfileDataMb(){return this.userProfileDataMb}setUserProfileDataMb(e){this.userProfileDataMb=e}getPvsWriteCacheSizeGb(){return this.pvsWriteCacheSizeGb}setPvsWriteCacheSizeGb(e){this.pvsWriteCacheSizeGb=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("operatingSystem"===t&&(void 0===this.operatingSystem||null===this.operatingSystem))return new O("operatingSystem","undefined or null");if("systemDataGb"===t){if(void 0===this.systemDataGb||null===this.systemDataGb)return new O("systemDataGb","undefined or null");if(!j.validateMaximum(this.systemDataGb,62e3))return new O("systemDataGb","does not satisfy required maximum constraint: 62000");if(!j.validateMinimum(this.systemDataGb,20))return new O("systemDataGb","does not satisfy required minimum constraint: 20")}if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new O("userCount","undefined or null");if(!j.validateMaximum(this.userCount,1e5))return new O("userCount","does not satisfy required maximum constraint: 100000");if(!j.validateMinimum(this.userCount,1))return new O("userCount","does not satisfy required minimum constraint: 1")}if("mcsDiffSizeGb"===t){if(void 0===this.mcsDiffSizeGb||null===this.mcsDiffSizeGb)return new O("mcsDiffSizeGb","undefined or null");if(!j.validateMaximum(this.mcsDiffSizeGb,50))return new O("mcsDiffSizeGb","does not satisfy required maximum constraint: 50");if(!j.validateMinimum(this.mcsDiffSizeGb,10))return new O("mcsDiffSizeGb","does not satisfy required minimum constraint: 10")}if("userProfileDataMb"===t){if(void 0===this.userProfileDataMb||null===this.userProfileDataMb)return new O("userProfileDataMb","undefined or null");if(!j.validateMaximum(this.userProfileDataMb,100))return new O("userProfileDataMb","does not satisfy required maximum constraint: 100");if(!j.validateMinimum(this.userProfileDataMb,20))return new O("userProfileDataMb","does not satisfy required minimum constraint: 20")}if("pvsWriteCacheSizeGb"===t){if(void 0===this.pvsWriteCacheSizeGb||null===this.pvsWriteCacheSizeGb)return new O("pvsWriteCacheSizeGb","undefined or null");if(!j.validateMaximum(this.pvsWriteCacheSizeGb,50))return new O("pvsWriteCacheSizeGb","does not satisfy required maximum constraint: 50");if(!j.validateMinimum(this.pvsWriteCacheSizeGb,10))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}_n.prototype.operatingSystem=void 0,_n.prototype.systemDataGb=void 0,_n.prototype.userCount=void 0,_n.prototype.mcsDiffSizeGb=void 0,_n.prototype.userProfileDataMb=void 0,_n.prototype.pvsWriteCacheSizeGb=void 0,_n.prototype.$reserved=void 0,_n.prototype.$objectType=void 0,_n.prototype.$unknownFields=void 0;var Gn=new WeakSet;class qn extends _n{constructor(e,t,n,i,s,o,r,a){var l,d;super(n,i,s,o,r,a),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(l=this,d=Gn),d.add(l),this.vendor=e,this.provisionType=t,this.$objectType="aiops.v4.config.CitrixXenWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new qn,_n.constructFromObject(e,t,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&t.setVendor(Bn.constructFromObject(e.vendor)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&t.setProvisionType(Vn.constructFromObject(e.provisionType)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVendor(){return this.vendor}setVendor(e){this.vendor=e}getProvisionType(){return this.provisionType}setProvisionType(e){this.provisionType=e}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb","vendor","provisionType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vendor"!==t||void 0!==this.vendor&&null!==this.vendor?"provisionType"!==t||void 0!==this.provisionType&&null!==this.provisionType?new O(t,"no such property exists"):new O("provisionType","undefined or null"):new O("vendor","undefined or null")}}qn.prototype.vendor=void 0,qn.prototype.provisionType=void 0,_n.prototype.operatingSystem=void 0,_n.prototype.systemDataGb=void 0,_n.prototype.userCount=void 0,_n.prototype.mcsDiffSizeGb=void 0,_n.prototype.userProfileDataMb=void 0,_n.prototype.pvsWriteCacheSizeGb=void 0;const Hn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VM_CLONE:"VM_CLONE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Hn).find(t=>Hn[t]===e);return null==t?Hn.$UNKNOWN:Hn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Hn.$UNKNOWN:case Hn.$REDACTED:case Hn.VM_CLONE:return;default:throw new Error("Invalid : must be MicrosoftXenProvisionType.{ $UNKNOWN|$REDACTED|VM_CLONE }")}}};Object.freeze(Hn);const Kn=Hn,Xn={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",MICROSOFT_RDSH:"MICROSOFT_RDSH",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Xn).find(t=>Xn[t]===e);return null==t?Xn.$UNKNOWN:Xn[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Xn.$UNKNOWN:case Xn.$REDACTED:case Xn.MICROSOFT_RDSH:return;default:throw new Error("Invalid : must be MicrosoftXenWorkloadVendor.{ $UNKNOWN|$REDACTED|MICROSOFT_RDSH }")}}};Object.freeze(Xn);const Zn=Xn;var Yn=new WeakSet;class Qn extends _n{constructor(e,t,n,i,s,o,r,a){var l,d;super(n,i,s,o,r,a),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(l=this,d=Yn),d.add(l),this.vendor=e,this.provisionType=t,this.$objectType="aiops.v4.config.MicrosoftXenWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Qn,_n.constructFromObject(e,t,!0),e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&t.setVendor(Zn.constructFromObject(e.vendor)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&t.setProvisionType(Kn.constructFromObject(e.provisionType)),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVendor(){return this.vendor}setVendor(e){this.vendor=e}getProvisionType(){return this.provisionType}setProvisionType(e){this.provisionType=e}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["operatingSystem","systemDataGb","userCount","mcsDiffSizeGb","userProfileDataMb","pvsWriteCacheSizeGb","vendor","provisionType"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vendor"!==t||void 0!==this.vendor&&null!==this.vendor?"provisionType"!==t||void 0!==this.provisionType&&null!==this.provisionType?new O(t,"no such property exists"):new O("provisionType","undefined or null"):new O("vendor","undefined or null")}}Qn.prototype.vendor=void 0,Qn.prototype.provisionType=void 0,_n.prototype.operatingSystem=void 0,_n.prototype.systemDataGb=void 0,_n.prototype.userCount=void 0,_n.prototype.mcsDiffSizeGb=void 0,_n.prototype.userProfileDataMb=void 0,_n.prototype.pvsWriteCacheSizeGb=void 0;var ei=new WeakSet;class ti{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=ei),o.add(s),this.dailyAverageIndexingRateGb=e,this.hotRetentionDays=t,this.coldRetentionDays=n,this.userCount=i,this.$objectType="aiops.v4.config.SplunkWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ti,e.hasOwnProperty("dailyAverageIndexingRateGb")&&null!==e.dailyAverageIndexingRateGb&&void 0!==e.dailyAverageIndexingRateGb&&t.setDailyAverageIndexingRateGb(e.dailyAverageIndexingRateGb),e.hasOwnProperty("hotRetentionDays")&&null!==e.hotRetentionDays&&void 0!==e.hotRetentionDays&&t.setHotRetentionDays(e.hotRetentionDays),e.hasOwnProperty("coldRetentionDays")&&null!==e.coldRetentionDays&&void 0!==e.coldRetentionDays&&t.setColdRetentionDays(e.coldRetentionDays),e.hasOwnProperty("userCount")&&null!==e.userCount&&void 0!==e.userCount&&t.setUserCount(e.userCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDailyAverageIndexingRateGb(){return this.dailyAverageIndexingRateGb}setDailyAverageIndexingRateGb(e){this.dailyAverageIndexingRateGb=e}getHotRetentionDays(){return this.hotRetentionDays}setHotRetentionDays(e){this.hotRetentionDays=e}getColdRetentionDays(){return this.coldRetentionDays}setColdRetentionDays(e){this.coldRetentionDays=e}getUserCount(){return this.userCount}setUserCount(e){this.userCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["dailyAverageIndexingRateGb","hotRetentionDays","coldRetentionDays","userCount"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("dailyAverageIndexingRateGb"===t){if(void 0===this.dailyAverageIndexingRateGb||null===this.dailyAverageIndexingRateGb)return new O("dailyAverageIndexingRateGb","undefined or null");if(!j.validateMaximum(this.dailyAverageIndexingRateGb,2e4))return new O("dailyAverageIndexingRateGb","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.dailyAverageIndexingRateGb,1))return new O("dailyAverageIndexingRateGb","does not satisfy required minimum constraint: 1")}if("hotRetentionDays"===t){if(void 0===this.hotRetentionDays||null===this.hotRetentionDays)return new O("hotRetentionDays","undefined or null");if(!j.validateMaximum(this.hotRetentionDays,2e4))return new O("hotRetentionDays","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.hotRetentionDays,1))return new O("hotRetentionDays","does not satisfy required minimum constraint: 1")}if("coldRetentionDays"===t){if(void 0===this.coldRetentionDays||null===this.coldRetentionDays)return new O("coldRetentionDays","undefined or null");if(!j.validateMaximum(this.coldRetentionDays,2e4))return new O("coldRetentionDays","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.coldRetentionDays,0))return new O("coldRetentionDays","does not satisfy required minimum constraint: 0")}if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new O("userCount","undefined or null");if(!j.validateMaximum(this.userCount,500))return new O("userCount","does not satisfy required maximum constraint: 500");if(!j.validateMinimum(this.userCount,0))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}ti.prototype.dailyAverageIndexingRateGb=500,ti.prototype.hotRetentionDays=7,ti.prototype.coldRetentionDays=60,ti.prototype.userCount=5,ti.prototype.$reserved=void 0,ti.prototype.$objectType=void 0,ti.prototype.$unknownFields=void 0;const ni={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",SMALL:"SMALL",MEDIUM:"MEDIUM",LARGE:"LARGE",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ni).find(t=>ni[t]===e);return null==t?ni.$UNKNOWN:ni[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ni.$UNKNOWN:case ni.$REDACTED:case ni.SMALL:case ni.MEDIUM:case ni.LARGE:return;default:throw new Error("Invalid : must be SqlProfileType.{ $UNKNOWN|$REDACTED|SMALL|MEDIUM|LARGE }")}}};Object.freeze(ni);const ii=ni,si={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",OLAP:"OLAP",OLTP:"OLTP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(si).find(t=>si[t]===e);return null==t?si.$UNKNOWN:si[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case si.$UNKNOWN:case si.$REDACTED:case si.OLAP:case si.OLTP:return;default:throw new Error("Invalid : must be SqlTransactionType.{ $UNKNOWN|$REDACTED|OLAP|OLTP }")}}};Object.freeze(si);const oi=si;var ri=new WeakSet;class ai{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=ri),o.add(s),this.dbCount=e,this.profileType=t,this.transactionType=n,this.isBusinessCritical=i,this.$objectType="aiops.v4.config.SqlWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ai,e.hasOwnProperty("dbCount")&&null!==e.dbCount&&void 0!==e.dbCount&&t.setDbCount(e.dbCount),e.hasOwnProperty("profileType")&&null!==e.profileType&&void 0!==e.profileType&&t.setProfileType(ii.constructFromObject(e.profileType)),e.hasOwnProperty("transactionType")&&null!==e.transactionType&&void 0!==e.transactionType&&t.setTransactionType(oi.constructFromObject(e.transactionType)),e.hasOwnProperty("isBusinessCritical")&&null!==e.isBusinessCritical&&void 0!==e.isBusinessCritical&&t.setIsBusinessCritical(e.isBusinessCritical),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getDbCount(){return this.dbCount}setDbCount(e){this.dbCount=e}getProfileType(){return this.profileType}setProfileType(e){this.profileType=e}getTransactionType(){return this.transactionType}setTransactionType(e){this.transactionType=e}getIsBusinessCritical(){return this.isBusinessCritical}setIsBusinessCritical(e){this.isBusinessCritical=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["dbCount","profileType","transactionType","isBusinessCritical"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("dbCount"===t){if(void 0===this.dbCount||null===this.dbCount)return new O("dbCount","undefined or null");if(!j.validateMaximum(this.dbCount,1e5))return new O("dbCount","does not satisfy required maximum constraint: 100000");if(!j.validateMinimum(this.dbCount,1))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("isBusinessCritical","undefined or null"):new O("transactionType","undefined or null"):new O("profileType","undefined or null")}}ai.prototype.dbCount=void 0,ai.prototype.profileType=void 0,ai.prototype.transactionType=void 0,ai.prototype.isBusinessCritical=!1,ai.prototype.$reserved=void 0,ai.prototype.$objectType=void 0,ai.prototype.$unknownFields=void 0;const li={$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){let t=Object.keys(li).find(t=>li[t]===e);return null==t?li.$UNKNOWN:li[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case li.$UNKNOWN:case li.$REDACTED:case li.FULL_CLONES:case li.V2V_P2V:case li.PROVISIONING_SERVICES:case li.MACHINE_CREATION_SERVICES:case li.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(li);const di=li,ui={$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){let t=Object.keys(ui).find(t=>ui[t]===e);return null==t?ui.$UNKNOWN:ui[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ui.$UNKNOWN:case ui.$REDACTED:case ui.TASK_WORKER:case ui.KNOWLEDGE_WORKER:case ui.POWER_USER:case ui.DEVELOPER:return;default:throw new Error("Invalid : must be VdiUserType.{ $UNKNOWN|$REDACTED|TASK_WORKER|KNOWLEDGE_WORKER|POWER_USER|DEVELOPER }")}}};Object.freeze(ui);const hi=ui,ci={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",VIEW:"VIEW",XEN_DESKTOP:"XEN_DESKTOP",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(ci).find(t=>ci[t]===e);return null==t?ci.$UNKNOWN:ci[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case ci.$UNKNOWN:case ci.$REDACTED:case ci.VIEW:case ci.XEN_DESKTOP:return;default:throw new Error("Invalid : must be VdiVendor.{ $UNKNOWN|$REDACTED|VIEW|XEN_DESKTOP }")}}};Object.freeze(ci);const pi=ci;var yi=new WeakSet;class vi{constructor(e,t,n,i){var s,o;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(s=this,o=yi),o.add(s),this.vendor=e,this.userType=t,this.provisionType=n,this.userCount=i,this.$objectType="aiops.v4.config.VdiWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new vi,e.hasOwnProperty("vendor")&&null!==e.vendor&&void 0!==e.vendor&&t.setVendor(pi.constructFromObject(e.vendor)),e.hasOwnProperty("userType")&&null!==e.userType&&void 0!==e.userType&&t.setUserType(hi.constructFromObject(e.userType)),e.hasOwnProperty("provisionType")&&null!==e.provisionType&&void 0!==e.provisionType&&t.setProvisionType(di.constructFromObject(e.provisionType)),e.hasOwnProperty("userCount")&&null!==e.userCount&&void 0!==e.userCount&&t.setUserCount(e.userCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVendor(){return this.vendor}setVendor(e){this.vendor=e}getUserType(){return this.userType}setUserType(e){this.userType=e}getProvisionType(){return this.provisionType}setProvisionType(e){this.provisionType=e}getUserCount(){return this.userCount}setUserCount(e){this.userCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vendor","userType","provisionType","userCount"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("vendor"===t&&(void 0===this.vendor||null===this.vendor))return new O("vendor","undefined or null");if("userType"===t&&(void 0===this.userType||null===this.userType))return new O("userType","undefined or null");if("provisionType"===t&&(void 0===this.provisionType||null===this.provisionType))return new O("provisionType","undefined or null");if("userCount"===t){if(void 0===this.userCount||null===this.userCount)return new O("userCount","undefined or null");if(!j.validateMaximum(this.userCount,1e3))return new O("userCount","does not satisfy required maximum constraint: 1000");if(!j.validateMinimum(this.userCount,1))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}vi.prototype.vendor=void 0,vi.prototype.userType=void 0,vi.prototype.provisionType=void 0,vi.prototype.userCount=void 0,vi.prototype.$reserved=void 0,vi.prototype.$objectType=void 0,vi.prototype.$unknownFields=void 0;var gi=new WeakSet;class mi{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=gi),n.add(t),this.categoryExtId=e,this.$objectType="aiops.v4.config.VmCategoryWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new mi,e.hasOwnProperty("categoryExtId")&&null!==e.categoryExtId&&void 0!==e.categoryExtId&&t.setCategoryExtId(e.categoryExtId),e.hasOwnProperty("currentVmCount")&&null!==e.currentVmCount&&void 0!==e.currentVmCount&&t.setCurrentVmCount(e.currentVmCount),e.hasOwnProperty("targetVmCount")&&null!==e.targetVmCount&&void 0!==e.targetVmCount&&t.setTargetVmCount(e.targetVmCount),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getCategoryExtId(){return this.categoryExtId}setCategoryExtId(e){this.categoryExtId=e}getCurrentVmCount(){return this.currentVmCount}setCurrentVmCount(e){this.currentVmCount=e}getTargetVmCount(){return this.targetVmCount}setTargetVmCount(e){this.targetVmCount=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getCategoryExtId()&&null!==this.getCategoryExtId()?{categoryExtId:this.getCategoryExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["categoryExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("categoryExtId"===t){if(void 0===this.categoryExtId||null===this.categoryExtId)return new O("categoryExtId","undefined or null");if(!j.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 O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("targetVmCount","undefined or null"):new O("currentVmCount","undefined or null")}}mi.prototype.categoryExtId=void 0,mi.prototype.currentVmCount=void 0,mi.prototype.targetVmCount=void 0,mi.prototype.$reserved=void 0,mi.prototype.$objectType=void 0,mi.prototype.$unknownFields=void 0;var wi=new WeakSet;class $i{constructor(e,t){var n,i;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(n=this,i=wi),i.add(n),this.vmCount=e,this.simulationExtId=t,this.$objectType="aiops.v4.config.VmWorkload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new $i,e.hasOwnProperty("vmCount")&&null!==e.vmCount&&void 0!==e.vmCount&&t.setVmCount(e.vmCount),e.hasOwnProperty("simulationExtId")&&null!==e.simulationExtId&&void 0!==e.simulationExtId&&t.setSimulationExtId(e.simulationExtId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVmCount(){return this.vmCount}setVmCount(e){this.vmCount=e}getSimulationExtId(){return this.simulationExtId}setSimulationExtId(e){this.simulationExtId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vmCount","simulationExtId"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("vmCount"===t){if(void 0===this.vmCount||null===this.vmCount)return new O("vmCount","undefined or null");if(!j.validateMaximum(this.vmCount,2e4))return new O("vmCount","does not satisfy required maximum constraint: 20000");if(!j.validateMinimum(this.vmCount,1))return new O("vmCount","does not satisfy required minimum constraint: 1")}if("simulationExtId"===t){if(void 0===this.simulationExtId||null===this.simulationExtId)return new O("simulationExtId","undefined or null");if(!j.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 O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function fi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}$i.prototype.vmCount=void 0,$i.prototype.simulationExtId=void 0,$i.prototype.$reserved=void 0,$i.prototype.$objectType=void 0,$i.prototype.$unknownFields=void 0;var bi=new WeakSet;class Ti{constructor(e,t,n){var i,s;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(i=this,s=bi),s.add(i),this.scheduleDate=e,this.isEnabled=t,this.workloadProperties=n,this.$objectType="aiops.v4.config.Workload",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Ti,e.hasOwnProperty("scheduleDate")&&null!==e.scheduleDate&&void 0!==e.scheduleDate&&t.setScheduleDate(e.scheduleDate),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("projectedResourceRequirement")&&null!==e.projectedResourceRequirement&&void 0!==e.projectedResourceRequirement&&t.setProjectedResourceRequirement(bn.constructFromObject(e.projectedResourceRequirement)),e.hasOwnProperty("workloadProperties")&&null!==e.workloadProperties&&void 0!==e.workloadProperties)switch(i=e.workloadProperties.hasOwnProperty("$objectType")?e.workloadProperties.$objectType:typeof e.workloadProperties,i){case"aiops.v4.config.SqlWorkload":t.setWorkloadProperties(ai.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.VmWorkload":t.setWorkloadProperties($i.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.VdiWorkload":t.setWorkloadProperties(vi.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.SplunkWorkload":t.setWorkloadProperties(ti.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.CitrixXenWorkload":t.setWorkloadProperties(qn.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.MicrosoftXenWorkload":t.setWorkloadProperties(Qn.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.CapacityUpdateConfig":t.setWorkloadProperties(Nn.constructFromObject(e.workloadProperties,void 0));break;case"aiops.v4.config.VmCategoryWorkload":t.setWorkloadProperties(mi.constructFromObject(e.workloadProperties,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getScheduleDate(){return this.scheduleDate}setScheduleDate(e){this.scheduleDate=e}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}getProjectedResourceRequirement(){return this.projectedResourceRequirement}setProjectedResourceRequirement(e){this.projectedResourceRequirement=e}getWorkloadProperties(){return this.workloadProperties}setWorkloadProperties(e){this.workloadProperties=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getScheduleDate()&&null!==this.getScheduleDate()?{scheduleDate:fi(bi,this,ji).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)}:{},...void 0!==this.getWorkloadProperties()&&null!==this.getWorkloadProperties()?{workloadProperties:void 0!==this.getWorkloadProperties().toJson?this.getWorkloadProperties().toJson(!1):Array.isArray(this.getWorkloadProperties())?this.getWorkloadProperties().map(e=>void 0!==e.toJson?e.toJson(!1):e):fi(bi,this,ki).call(this,this.getWorkloadProperties(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getScheduleDate()&&null!==this.getScheduleDate()?{scheduleDate:fi(bi,this,ji).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)}:{},...void 0!==this.getWorkloadProperties()&&null!==this.getWorkloadProperties()?{workloadProperties:void 0!==this.getWorkloadProperties().toJson?this.getWorkloadProperties().toJson():Array.isArray(this.getWorkloadProperties())?this.getWorkloadProperties().map(e=>void 0!==e.toJson?e.toJson():e):fi(bi,this,ki).call(this,this.getWorkloadProperties())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["scheduleDate","isEnabled","workloadProperties"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("workloadProperties","undefined or null"):new O("projectedResourceRequirement","undefined or null"):new O("isEnabled","undefined or null"):new O("scheduleDate","undefined or null")}}function ki(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ji(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}function Oi(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")}Ti.prototype.scheduleDate=void 0,Ti.prototype.isEnabled=!1,Ti.prototype.projectedResourceRequirement=void 0,Ti.prototype.workloadProperties=void 0,Ti.prototype.$reserved=void 0,Ti.prototype.$objectType=void 0,Ti.prototype.$unknownFields=void 0;var Fi=new WeakSet;class Ci extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Fi),t.add(e),this.$objectType="aiops.v4.config.Scenario",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Ci,mt.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("clusterExtId")&&null!==e.clusterExtId&&void 0!==e.clusterExtId&&t.setClusterExtId(e.clusterExtId),e.hasOwnProperty("vendors")&&null!==e.vendors&&void 0!==e.vendors){for(r=[],i=e.vendors,o=0;o<i.length;o++)s=Un.constructFromObject(i[o],void 0),r.push(s);t.setVendors(r)}if(e.hasOwnProperty("updatedTime")&&null!==e.updatedTime&&void 0!==e.updatedTime&&t.setUpdatedTime(e.updatedTime),e.hasOwnProperty("targetRunwayDays")&&null!==e.targetRunwayDays&&void 0!==e.targetRunwayDays&&t.setTargetRunwayDays(e.targetRunwayDays),e.hasOwnProperty("runway")&&null!==e.runway&&void 0!==e.runway&&t.setRunway(En.constructFromObject(e.runway)),e.hasOwnProperty("workloads")&&null!==e.workloads&&void 0!==e.workloads){for(r=[],i=e.workloads,o=0;o<i.length;o++)s=Ti.constructFromObject(i[o],void 0),r.push(s);t.setWorkloads(r)}if(e.hasOwnProperty("clusterConfig")&&null!==e.clusterConfig&&void 0!==e.clusterConfig&&t.setClusterConfig(Cn.constructFromObject(e.clusterConfig)),e.hasOwnProperty("accountId")&&null!==e.accountId&&void 0!==e.accountId&&t.setAccountId(e.accountId),e.hasOwnProperty("domainId")&&null!==e.domainId&&void 0!==e.domainId&&t.setDomainId(e.domainId),e.hasOwnProperty("providerId")&&null!==e.providerId&&void 0!==e.providerId&&t.setProviderId(e.providerId),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getClusterExtId(){return this.clusterExtId}setClusterExtId(e){this.clusterExtId=e}getVendors(){return this.vendors}setVendors(e){this.vendors=e}getUpdatedTime(){return this.updatedTime}setUpdatedTime(e){this.updatedTime=e}getTargetRunwayDays(){return this.targetRunwayDays}setTargetRunwayDays(e){this.targetRunwayDays=e}getRunway(){return this.runway}setRunway(e){this.runway=e}getWorkloads(){return this.workloads}setWorkloads(e){this.workloads=e}getClusterConfig(){return this.clusterConfig}setClusterConfig(e){this.clusterConfig=e}getAccountId(){return this.accountId}setAccountId(e){this.accountId=e}getDomainId(){return this.domainId}setDomainId(e){this.domainId=e}getProviderId(){return this.providerId}setProviderId(e){this.providerId=e}toJson(e){return!1===e?{...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:Oi(Fi,this,Pi).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(e=>e.toJson(!1))}:{},...void 0!==this.getClusterConfig()&&null!==this.getClusterConfig()?{clusterConfig:this.getClusterConfig().toJson(!1)}:{},...void 0!==this.getAccountId()&&null!==this.getAccountId()?{accountId:this.getAccountId()}:{},...void 0!==this.getDomainId()&&null!==this.getDomainId()?{domainId:this.getDomainId()}:{},...void 0!==this.getProviderId()&&null!==this.getProviderId()?{providerId:this.getProviderId()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.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(e=>e.toJson(!1))}:{},...void 0!==this.getClusterConfig()&&null!==this.getClusterConfig()?{clusterConfig:this.getClusterConfig().toJson(!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!j.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}if("clusterExtId"===t){if(void 0===this.clusterExtId||null===this.clusterExtId)return new O("clusterExtId","undefined or null");if(!j.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 O("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 O("vendors","undefined or null");if(!j.validateMaxItems(this.vendors,10))return new O("vendors","does not satisfy required maxItems constraint: 10");if(!j.validateMinItems(this.vendors,1))return new O("vendors","does not satisfy required minItems constraint: 1")}if("updatedTime"===t&&(void 0===this.updatedTime||null===this.updatedTime))return new O("updatedTime","undefined or null");if("targetRunwayDays"===t){if(void 0===this.targetRunwayDays||null===this.targetRunwayDays)return new O("targetRunwayDays","undefined or null");if(!j.validateMaximum(this.targetRunwayDays,360))return new O("targetRunwayDays","does not satisfy required maximum constraint: 360");if(!j.validateMinimum(this.targetRunwayDays,30))return new O("targetRunwayDays","does not satisfy required minimum constraint: 30")}if("runway"===t&&(void 0===this.runway||null===this.runway))return new O("runway","undefined or null");if("workloads"===t){if(void 0===this.workloads||null===this.workloads)return new O("workloads","undefined or null");if(!j.validateMaxItems(this.workloads,250))return new O("workloads","does not satisfy required maxItems constraint: 250")}if("clusterConfig"===t&&(void 0===this.clusterConfig||null===this.clusterConfig))return new O("clusterConfig","undefined or null");if("accountId"===t){if(void 0===this.accountId||null===this.accountId)return new O("accountId","undefined or null");if(!j.validatePattern(this.accountId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("accountId","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("domainId"===t){if(void 0===this.domainId||null===this.domainId)return new O("domainId","undefined or null");if(!j.validatePattern(this.domainId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("domainId","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("providerId"===t){if(void 0===this.providerId||null===this.providerId)return new O("providerId","undefined or null");if(!j.validatePattern(this.providerId,/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/))return new O("providerId","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 O(t,"no such property exists")}}function Pi(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Ci.prototype.name=void 0,Ci.prototype.clusterExtId=void 0,Ci.prototype.vendors=void 0,Ci.prototype.updatedTime=void 0,Ci.prototype.targetRunwayDays=void 0,Ci.prototype.runway=void 0,Ci.prototype.workloads=void 0,Ci.prototype.clusterConfig=void 0,Ci.prototype.accountId=void 0,Ci.prototype.domainId=void 0,Ci.prototype.providerId=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;class Si extends Ci{constructor(){super(),this.$objectType="aiops.v4.config.ScenarioProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Si,Ci.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}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")}var Di=new WeakSet;class Ri extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Di),t.add(e),this.$objectType="aiops.v4.config.ListScenariosApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,r,a,l;if(e){if(t=t||new Ri,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)if(Array.isArray(e.data))if(0===e.data.length)t.setData([]);else{for(a=[],i=e.data,l=i[0].hasOwnProperty("$objectType")?i[0].$objectType:typeof i[0],r=0;r<i.length;r++)switch(l){case"aiops.v4.config.Scenario":s=Ci.constructFromObject(i[r],void 0),a.push(s);break;case"aiops.v4.config.ScenarioProjection":s=Si.constructFromObject(i[r],void 0),a.push(s);break;default:throw"Unknown list of type "+l+" in data"}t.setData(a)}else{if(l=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,"aiops.v4.error.ErrorResponse"!==l)throw"Unknown datatype "+l+" in data";t.setData(Be.constructFromObject(e.data,void 0))}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ei(Di,this,Ui).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ei(Di,this,Ui).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Ui(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ii(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Ri.prototype.metadata=void 0,Ri.prototype.data=void 0,Ri.prototype.$reserved=void 0,Ri.prototype.$objectType=void 0,Ri.prototype.$unknownFields=void 0;var Ai=new WeakSet;class Mi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ai),t.add(e),this.$objectType="aiops.v4.config.GetScenarioReportApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Mi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"Map":t.setData(e.data);break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ii(Ai,this,Ni).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ii(Ai,this,Ni).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Ni(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}Mi.prototype.metadata=void 0,Mi.prototype.data=void 0,Mi.prototype.$reserved=void 0,Mi.prototype.$objectType=void 0,Mi.prototype.$unknownFields=void 0;var xi=new WeakSet;class Vi{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=xi),t.add(e),this.$objectType="prism.v4.config.TaskReference",this.$reserved={$fv:"v4.r2"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Vi,e.hasOwnProperty("extId")&&null!==e.extId&&void 0!==e.extId&&t.setExtId(e.extId),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getExtId(){return this.extId}setExtId(e){this.extId=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("extId"===t){if(void 0===this.extId||null===this.extId)return new O("extId","undefined or null");if(!j.validatePattern(this.extId,/^[a-zA-Z0-9\/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/))return new O("extId","does not satisfy required pattern: /^[a-zA-Z0-9/+]*={0,2}:[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/")}return"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}function Li(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Vi.prototype.extId=void 0,Vi.prototype.$reserved=void 0,Vi.prototype.$objectType=void 0,Vi.prototype.$unknownFields=void 0;var Bi=new WeakSet;class Wi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Bi),t.add(e),this.$objectType="aiops.v4.config.CreateScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Wi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Li(Bi,this,zi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Li(Bi,this,zi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function zi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Ji(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Wi.prototype.metadata=void 0,Wi.prototype.data=void 0,Wi.prototype.$reserved=void 0,Wi.prototype.$objectType=void 0,Wi.prototype.$unknownFields=void 0;var _i=new WeakSet;class Gi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=_i),t.add(e),this.$objectType="aiops.v4.config.DeleteSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Gi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&t.setData(null),i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;case"":t.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Ji(_i,this,qi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Ji(_i,this,qi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function qi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Hi(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Gi.prototype.metadata=void 0,Gi.prototype.data=void 0,Gi.prototype.$reserved=void 0,Gi.prototype.$objectType=void 0,Gi.prototype.$unknownFields=void 0;var Ki=new WeakSet;class Xi extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Ki),t.add(e),this.$objectType="aiops.v4.config.DeleteScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new Xi,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(null===e.data&&t.setData(null),i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;case"":t.setData(Void.constructFromObject(e[""],void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Hi(Ki,this,Zi).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Hi(Ki,this,Zi).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function Zi(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function Yi(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")}Xi.prototype.metadata=void 0,Xi.prototype.data=void 0,Xi.prototype.$reserved=void 0,Xi.prototype.$objectType=void 0,Xi.prototype.$unknownFields=void 0;var Qi=new WeakSet;class es extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Qi),t.add(e),this.$objectType="aiops.v4.config.GenerateRecommendationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new es,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):Yi(Qi,this,ts).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):Yi(Qi,this,ts).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ts(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}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")}es.prototype.metadata=void 0,es.prototype.data=void 0,es.prototype.$reserved=void 0,es.prototype.$objectType=void 0,es.prototype.$unknownFields=void 0;var is=new WeakSet;class ss extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=is),t.add(e),this.$objectType="aiops.v4.config.GenerateReportApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new ss,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ns(is,this,os).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ns(is,this,os).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function os(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function rs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}ss.prototype.metadata=void 0,ss.prototype.data=void 0,ss.prototype.$reserved=void 0,ss.prototype.$objectType=void 0,ss.prototype.$unknownFields=void 0;var as=new WeakSet;class ls extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=as),t.add(e),this.$objectType="aiops.v4.config.GetSimulationApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new ls,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.config.Simulation":t.setData(Qt.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):rs(as,this,ds).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):rs(as,this,ds).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ds(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function us(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")}ls.prototype.metadata=void 0,ls.prototype.data=void 0,ls.prototype.$reserved=void 0,ls.prototype.$objectType=void 0,ls.prototype.$unknownFields=void 0;var hs=new WeakSet;class cs extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=hs),t.add(e),this.$objectType="aiops.v4.config.GetScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new cs,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"aiops.v4.config.Scenario":t.setData(Ci.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):us(hs,this,ps).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):us(hs,this,ps).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ps(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function 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")}cs.prototype.metadata=void 0,cs.prototype.data=void 0,cs.prototype.$reserved=void 0,cs.prototype.$objectType=void 0,cs.prototype.$unknownFields=void 0;var vs=new WeakSet;class gs extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=vs),t.add(e),this.$objectType="aiops.v4.config.UpdateScenarioApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new gs,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ys(vs,this,ms).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ys(vs,this,ms).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function ms(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}function ws(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")}gs.prototype.metadata=void 0,gs.prototype.data=void 0,gs.prototype.$reserved=void 0,gs.prototype.$objectType=void 0,gs.prototype.$unknownFields=void 0;var $s=new WeakSet;class fs extends o{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=$s),t.add(e),this.$objectType="aiops.v4.config.GenerateRunwayApiResponse",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i;if(e){if(t=t||new fs,e.hasOwnProperty("metadata")&&o.constructFromObject(e.metadata,t),e.hasOwnProperty("metadata")&&null!==e.metadata&&void 0!==e.metadata&&t.setMetadata(J.constructFromObject(e.metadata)),e.hasOwnProperty("data")&&null!==e.data&&void 0!==e.data)switch(i=e.data.hasOwnProperty("$objectType")?e.data.$objectType:typeof e.data,i){case"prism.v4.config.TaskReference":t.setData(Vi.constructFromObject(e.data,void 0));break;case"aiops.v4.error.ErrorResponse":t.setData(Be.constructFromObject(e.data,void 0));break;default:throw"Unknown datatype "+i+" in data"}if(e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getMetadata(){return this.metadata}setMetadata(e){this.metadata=e}getData(){return this.data}setData(e){this.data=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return!1===e?{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson(!1):Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson(!1):e):ws($s,this,bs).call(this,this.getData(),!1)}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getMetadata()&&null!==this.getMetadata()?{metadata:this.getMetadata().toJson(!1)}:{},...void 0!==this.getData()&&null!==this.getData()?{data:void 0!==this.getData().toJson?this.getData().toJson():Array.isArray(this.getData())?this.getData().map(e=>void 0!==e.toJson?e.toJson():e):ws($s,this,bs).call(this,this.getData())}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"metadata"!==t||void 0!==this.metadata&&null!==this.metadata?"data"!==t||void 0!==this.data&&null!==this.data?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("data","undefined or null"):new O("metadata","undefined or null")}}function bs(e,t){return e instanceof Map?Object.fromEntries(Array.from(e,([e,n])=>[e,void 0!==n.toJson?n.toJson(t):n])):"object"==typeof e&&null!=e&&e.constructor===Object?Object.fromEntries(Array.from(Object.entries(e),e=>[e[0],void 0!==e[1].toJson?e[1].toJson(t):e[1]])):e}fs.prototype.metadata=void 0,fs.prototype.data=void 0,fs.prototype.$reserved=void 0,fs.prototype.$objectType=void 0,fs.prototype.$unknownFields=void 0;var Ts=new WeakSet;class ks{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ts),t.add(e),this.$objectType="aiops.v4.clusterMetrics.Cluster",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new ks,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("uuid")&&null!==e.uuid&&void 0!==e.uuid&&t.setUuid(e.uuid),e.hasOwnProperty("externalIpAddress")&&null!==e.externalIpAddress&&void 0!==e.externalIpAddress&&t.setExternalIpAddress(e.externalIpAddress),e.hasOwnProperty("memoryCapacityBytes")&&null!==e.memoryCapacityBytes&&void 0!==e.memoryCapacityBytes&&t.setMemoryCapacityBytes(e.memoryCapacityBytes),e.hasOwnProperty("numCpus")&&null!==e.numCpus&&void 0!==e.numCpus&&t.setNumCpus(e.numCpus),e.hasOwnProperty("hypervisorMemoryUsagePpm")&&null!==e.hypervisorMemoryUsagePpm&&void 0!==e.hypervisorMemoryUsagePpm&&t.setHypervisorMemoryUsagePpm(e.hypervisorMemoryUsagePpm),e.hasOwnProperty("hypervisorCpuUsagePpm")&&null!==e.hypervisorCpuUsagePpm&&void 0!==e.hypervisorCpuUsagePpm&&t.setHypervisorCpuUsagePpm(e.hypervisorCpuUsagePpm),e.hasOwnProperty("rf")&&null!==e.rf&&void 0!==e.rf&&t.setRf(e.rf),e.hasOwnProperty("capacityBytes")&&null!==e.capacityBytes&&void 0!==e.capacityBytes&&t.setCapacityBytes(e.capacityBytes),e.hasOwnProperty("freeBytes")&&null!==e.freeBytes&&void 0!==e.freeBytes&&t.setFreeBytes(e.freeBytes),e.hasOwnProperty("usageBytes")&&null!==e.usageBytes&&void 0!==e.usageBytes&&t.setUsageBytes(e.usageBytes),e.hasOwnProperty("savedBytes")&&null!==e.savedBytes&&void 0!==e.savedBytes&&t.setSavedBytes(e.savedBytes),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getUuid(){return this.uuid}setUuid(e){this.uuid=e}getExternalIpAddress(){return this.externalIpAddress}setExternalIpAddress(e){this.externalIpAddress=e}getMemoryCapacityBytes(){return this.memoryCapacityBytes}setMemoryCapacityBytes(e){this.memoryCapacityBytes=e}getNumCpus(){return this.numCpus}setNumCpus(e){this.numCpus=e}getHypervisorMemoryUsagePpm(){return this.hypervisorMemoryUsagePpm}setHypervisorMemoryUsagePpm(e){this.hypervisorMemoryUsagePpm=e}getHypervisorCpuUsagePpm(){return this.hypervisorCpuUsagePpm}setHypervisorCpuUsagePpm(e){this.hypervisorCpuUsagePpm=e}getRf(){return this.rf}setRf(e){this.rf=e}getCapacityBytes(){return this.capacityBytes}setCapacityBytes(e){this.capacityBytes=e}getFreeBytes(){return this.freeBytes}setFreeBytes(e){this.freeBytes=e}getUsageBytes(){return this.usageBytes}setUsageBytes(e){this.usageBytes=e}getSavedBytes(){return this.savedBytes}setSavedBytes(e){this.savedBytes=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getUuid()&&null!==this.getUuid()?{uuid:this.getUuid()}:{},...void 0!==this.getExternalIpAddress()&&null!==this.getExternalIpAddress()?{externalIpAddress:this.getExternalIpAddress()}:{},...void 0!==this.getMemoryCapacityBytes()&&null!==this.getMemoryCapacityBytes()?{memoryCapacityBytes:this.getMemoryCapacityBytes()}:{},...void 0!==this.getNumCpus()&&null!==this.getNumCpus()?{numCpus:this.getNumCpus()}:{},...void 0!==this.getHypervisorMemoryUsagePpm()&&null!==this.getHypervisorMemoryUsagePpm()?{hypervisorMemoryUsagePpm:this.getHypervisorMemoryUsagePpm()}:{},...void 0!==this.getHypervisorCpuUsagePpm()&&null!==this.getHypervisorCpuUsagePpm()?{hypervisorCpuUsagePpm:this.getHypervisorCpuUsagePpm()}:{},...void 0!==this.getRf()&&null!==this.getRf()?{rf:this.getRf()}:{},...void 0!==this.getCapacityBytes()&&null!==this.getCapacityBytes()?{capacityBytes:this.getCapacityBytes()}:{},...void 0!==this.getFreeBytes()&&null!==this.getFreeBytes()?{freeBytes:this.getFreeBytes()}:{},...void 0!==this.getUsageBytes()&&null!==this.getUsageBytes()?{usageBytes:this.getUsageBytes()}:{},...void 0!==this.getSavedBytes()&&null!==this.getSavedBytes()?{savedBytes:this.getSavedBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t&&(void 0===this.name||null===this.name))return new O("name","undefined or null");if("uuid"===t){if(void 0===this.uuid||null===this.uuid)return new O("uuid","undefined or null");if(!j.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 O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("savedBytes","undefined or null"):new O("usageBytes","undefined or null"):new O("freeBytes","undefined or null"):new O("capacityBytes","undefined or null"):new O("rf","undefined or null"):new O("hypervisorCpuUsagePpm","undefined or null"):new O("hypervisorMemoryUsagePpm","undefined or null"):new O("numCpus","undefined or null"):new O("memoryCapacityBytes","undefined or null"):new O("externalIpAddress","undefined or null")}}ks.prototype.name=void 0,ks.prototype.uuid=void 0,ks.prototype.externalIpAddress=void 0,ks.prototype.memoryCapacityBytes=void 0,ks.prototype.numCpus=void 0,ks.prototype.hypervisorMemoryUsagePpm=void 0,ks.prototype.hypervisorCpuUsagePpm=void 0,ks.prototype.rf=void 0,ks.prototype.capacityBytes=void 0,ks.prototype.freeBytes=void 0,ks.prototype.usageBytes=void 0,ks.prototype.savedBytes=void 0,ks.prototype.$reserved=void 0,ks.prototype.$objectType=void 0,ks.prototype.$unknownFields=void 0;var js=new WeakSet;class Os{constructor(e){var t,n;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t=this,n=js),n.add(t),this.value=e,this.$objectType="common.v1.config.IPv4Address",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Os,e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("prefixLength")&&null!==e.prefixLength&&void 0!==e.prefixLength&&t.setPrefixLength(e.prefixLength),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getValue(){return this.value}setValue(e){this.value=e}getPrefixLength(){return this.prefixLength}setPrefixLength(e){this.prefixLength=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},...void 0!==this.getPrefixLength()&&null!==this.getPrefixLength()?{prefixLength:this.getPrefixLength()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["value"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("value"===t){if(void 0===this.value||null===this.value)return new O("value","undefined or null");if(!j.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 O("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 O("prefixLength","undefined or null");if(!j.validateMaximum(this.prefixLength,32))return new O("prefixLength","does not satisfy required maximum constraint: 32");if(!j.validateMinimum(this.prefixLength,0))return new O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null")}}Os.prototype.value=void 0,Os.prototype.prefixLength=32,Os.prototype.$reserved=void 0,Os.prototype.$objectType=void 0,Os.prototype.$unknownFields=void 0;var Fs=new WeakSet;class Cs extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Fs),t.add(e),this.$objectType="aiops.v4.clusterMetrics.ClusterMetrics",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Cs,mt.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(Os.constructFromObject(e.externalIP)),e.hasOwnProperty("cvmIPs")&&null!==e.cvmIPs&&void 0!==e.cvmIPs){for(r=[],i=e.cvmIPs,o=0;o<i.length;o++)s=Os.constructFromObject(i[o],void 0),r.push(s);t.setCvmIPs(r)}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),!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getClusterName(){return this.clusterName}setClusterName(e){this.clusterName=e}getExternalIP(){return this.externalIP}setExternalIP(e){this.externalIP=e}getCvmIPs(){return this.cvmIPs}setCvmIPs(e){this.cvmIPs=e}getTotalMemorySizeBytes(){return this.totalMemorySizeBytes}setTotalMemorySizeBytes(e){this.totalMemorySizeBytes=e}getCurrentMemoryUsageSizeBytes(){return this.currentMemoryUsageSizeBytes}setCurrentMemoryUsageSizeBytes(e){this.currentMemoryUsageSizeBytes=e}getProvisionedMemoryUsageBytes(){return this.provisionedMemoryUsageBytes}setProvisionedMemoryUsageBytes(e){this.provisionedMemoryUsageBytes=e}getMaxVmMemorySizeBytes(){return this.maxVmMemorySizeBytes}setMaxVmMemorySizeBytes(e){this.maxVmMemorySizeBytes=e}getAvailableMemorySizeBytes(){return this.availableMemorySizeBytes}setAvailableMemorySizeBytes(e){this.availableMemorySizeBytes=e}getLargestPoweredOffVMMemory(){return this.largestPoweredOffVMMemory}setLargestPoweredOffVMMemory(e){this.largestPoweredOffVMMemory=e}getTotalVCpuCount(){return this.totalVCpuCount}setTotalVCpuCount(e){this.totalVCpuCount=e}getCurrentUsedVCpuCount(){return this.currentUsedVCpuCount}setCurrentUsedVCpuCount(e){this.currentUsedVCpuCount=e}getProvisionedVCpuCount(){return this.provisionedVCpuCount}setProvisionedVCpuCount(e){this.provisionedVCpuCount=e}getMaxVmVCpuSize(){return this.maxVmVCpuSize}setMaxVmVCpuSize(e){this.maxVmVCpuSize=e}getAvailableVCpuCount(){return this.availableVCpuCount}setAvailableVCpuCount(e){this.availableVCpuCount=e}getLargestPoweredOffVMVCpu(){return this.largestPoweredOffVMVCpu}setLargestPoweredOffVMVCpu(e){this.largestPoweredOffVMVCpu=e}getTotalCpuHz(){return this.totalCpuHz}setTotalCpuHz(e){this.totalCpuHz=e}getCurrentUsedCpuHz(){return this.currentUsedCpuHz}setCurrentUsedCpuHz(e){this.currentUsedCpuHz=e}getProvisionedCpuHz(){return this.provisionedCpuHz}setProvisionedCpuHz(e){this.provisionedCpuHz=e}getTotalStorageCapacityRawBytes(){return this.totalStorageCapacityRawBytes}setTotalStorageCapacityRawBytes(e){this.totalStorageCapacityRawBytes=e}getTotalStorageCapacityLogicalBytes(){return this.totalStorageCapacityLogicalBytes}setTotalStorageCapacityLogicalBytes(e){this.totalStorageCapacityLogicalBytes=e}getTotalStorageCapacityLogicalWithSavingsBytes(){return this.totalStorageCapacityLogicalWithSavingsBytes}setTotalStorageCapacityLogicalWithSavingsBytes(e){this.totalStorageCapacityLogicalWithSavingsBytes=e}getTotalStorageUsageBytes(){return this.totalStorageUsageBytes}setTotalStorageUsageBytes(e){this.totalStorageUsageBytes=e}getTotalStorageAvailableBytes(){return this.totalStorageAvailableBytes}setTotalStorageAvailableBytes(e){this.totalStorageAvailableBytes=e}getTotalStorageAvailableLogicalBytes(){return this.totalStorageAvailableLogicalBytes}setTotalStorageAvailableLogicalBytes(e){this.totalStorageAvailableLogicalBytes=e}toJson(e){return!1===e?{...void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{},...void 0!==this.getExternalIP()&&null!==this.getExternalIP()?{externalIP:this.getExternalIP().toJson(!1)}:{},...void 0!==this.getCvmIPs()&&null!==this.getCvmIPs()?{cvmIPs:this.getCvmIPs().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalMemorySizeBytes()&&null!==this.getTotalMemorySizeBytes()?{totalMemorySizeBytes:this.getTotalMemorySizeBytes()}:{},...void 0!==this.getCurrentMemoryUsageSizeBytes()&&null!==this.getCurrentMemoryUsageSizeBytes()?{currentMemoryUsageSizeBytes:this.getCurrentMemoryUsageSizeBytes()}:{},...void 0!==this.getProvisionedMemoryUsageBytes()&&null!==this.getProvisionedMemoryUsageBytes()?{provisionedMemoryUsageBytes:this.getProvisionedMemoryUsageBytes()}:{},...void 0!==this.getMaxVmMemorySizeBytes()&&null!==this.getMaxVmMemorySizeBytes()?{maxVmMemorySizeBytes:this.getMaxVmMemorySizeBytes()}:{},...void 0!==this.getAvailableMemorySizeBytes()&&null!==this.getAvailableMemorySizeBytes()?{availableMemorySizeBytes:this.getAvailableMemorySizeBytes()}:{},...void 0!==this.getLargestPoweredOffVMMemory()&&null!==this.getLargestPoweredOffVMMemory()?{largestPoweredOffVMMemory:this.getLargestPoweredOffVMMemory()}:{},...void 0!==this.getTotalVCpuCount()&&null!==this.getTotalVCpuCount()?{totalVCpuCount:this.getTotalVCpuCount()}:{},...void 0!==this.getCurrentUsedVCpuCount()&&null!==this.getCurrentUsedVCpuCount()?{currentUsedVCpuCount:this.getCurrentUsedVCpuCount()}:{},...void 0!==this.getProvisionedVCpuCount()&&null!==this.getProvisionedVCpuCount()?{provisionedVCpuCount:this.getProvisionedVCpuCount()}:{},...void 0!==this.getMaxVmVCpuSize()&&null!==this.getMaxVmVCpuSize()?{maxVmVCpuSize:this.getMaxVmVCpuSize()}:{},...void 0!==this.getAvailableVCpuCount()&&null!==this.getAvailableVCpuCount()?{availableVCpuCount:this.getAvailableVCpuCount()}:{},...void 0!==this.getLargestPoweredOffVMVCpu()&&null!==this.getLargestPoweredOffVMVCpu()?{largestPoweredOffVMVCpu:this.getLargestPoweredOffVMVCpu()}:{},...void 0!==this.getTotalCpuHz()&&null!==this.getTotalCpuHz()?{totalCpuHz:this.getTotalCpuHz()}:{},...void 0!==this.getCurrentUsedCpuHz()&&null!==this.getCurrentUsedCpuHz()?{currentUsedCpuHz:this.getCurrentUsedCpuHz()}:{},...void 0!==this.getProvisionedCpuHz()&&null!==this.getProvisionedCpuHz()?{provisionedCpuHz:this.getProvisionedCpuHz()}:{},...void 0!==this.getTotalStorageCapacityRawBytes()&&null!==this.getTotalStorageCapacityRawBytes()?{totalStorageCapacityRawBytes:this.getTotalStorageCapacityRawBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalBytes()&&null!==this.getTotalStorageCapacityLogicalBytes()?{totalStorageCapacityLogicalBytes:this.getTotalStorageCapacityLogicalBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalWithSavingsBytes()&&null!==this.getTotalStorageCapacityLogicalWithSavingsBytes()?{totalStorageCapacityLogicalWithSavingsBytes:this.getTotalStorageCapacityLogicalWithSavingsBytes()}:{},...void 0!==this.getTotalStorageUsageBytes()&&null!==this.getTotalStorageUsageBytes()?{totalStorageUsageBytes:this.getTotalStorageUsageBytes()}:{},...void 0!==this.getTotalStorageAvailableBytes()&&null!==this.getTotalStorageAvailableBytes()?{totalStorageAvailableBytes:this.getTotalStorageAvailableBytes()}:{},...void 0!==this.getTotalStorageAvailableLogicalBytes()&&null!==this.getTotalStorageAvailableLogicalBytes()?{totalStorageAvailableLogicalBytes:this.getTotalStorageAvailableLogicalBytes()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getClusterName()&&null!==this.getClusterName()?{clusterName:this.getClusterName()}:{},...void 0!==this.getExternalIP()&&null!==this.getExternalIP()?{externalIP:this.getExternalIP().toJson(!1)}:{},...void 0!==this.getCvmIPs()&&null!==this.getCvmIPs()?{cvmIPs:this.getCvmIPs().map(e=>e.toJson(!1))}:{},...void 0!==this.getTotalMemorySizeBytes()&&null!==this.getTotalMemorySizeBytes()?{totalMemorySizeBytes:this.getTotalMemorySizeBytes()}:{},...void 0!==this.getCurrentMemoryUsageSizeBytes()&&null!==this.getCurrentMemoryUsageSizeBytes()?{currentMemoryUsageSizeBytes:this.getCurrentMemoryUsageSizeBytes()}:{},...void 0!==this.getProvisionedMemoryUsageBytes()&&null!==this.getProvisionedMemoryUsageBytes()?{provisionedMemoryUsageBytes:this.getProvisionedMemoryUsageBytes()}:{},...void 0!==this.getMaxVmMemorySizeBytes()&&null!==this.getMaxVmMemorySizeBytes()?{maxVmMemorySizeBytes:this.getMaxVmMemorySizeBytes()}:{},...void 0!==this.getAvailableMemorySizeBytes()&&null!==this.getAvailableMemorySizeBytes()?{availableMemorySizeBytes:this.getAvailableMemorySizeBytes()}:{},...void 0!==this.getLargestPoweredOffVMMemory()&&null!==this.getLargestPoweredOffVMMemory()?{largestPoweredOffVMMemory:this.getLargestPoweredOffVMMemory()}:{},...void 0!==this.getTotalVCpuCount()&&null!==this.getTotalVCpuCount()?{totalVCpuCount:this.getTotalVCpuCount()}:{},...void 0!==this.getCurrentUsedVCpuCount()&&null!==this.getCurrentUsedVCpuCount()?{currentUsedVCpuCount:this.getCurrentUsedVCpuCount()}:{},...void 0!==this.getProvisionedVCpuCount()&&null!==this.getProvisionedVCpuCount()?{provisionedVCpuCount:this.getProvisionedVCpuCount()}:{},...void 0!==this.getMaxVmVCpuSize()&&null!==this.getMaxVmVCpuSize()?{maxVmVCpuSize:this.getMaxVmVCpuSize()}:{},...void 0!==this.getAvailableVCpuCount()&&null!==this.getAvailableVCpuCount()?{availableVCpuCount:this.getAvailableVCpuCount()}:{},...void 0!==this.getLargestPoweredOffVMVCpu()&&null!==this.getLargestPoweredOffVMVCpu()?{largestPoweredOffVMVCpu:this.getLargestPoweredOffVMVCpu()}:{},...void 0!==this.getTotalCpuHz()&&null!==this.getTotalCpuHz()?{totalCpuHz:this.getTotalCpuHz()}:{},...void 0!==this.getCurrentUsedCpuHz()&&null!==this.getCurrentUsedCpuHz()?{currentUsedCpuHz:this.getCurrentUsedCpuHz()}:{},...void 0!==this.getProvisionedCpuHz()&&null!==this.getProvisionedCpuHz()?{provisionedCpuHz:this.getProvisionedCpuHz()}:{},...void 0!==this.getTotalStorageCapacityRawBytes()&&null!==this.getTotalStorageCapacityRawBytes()?{totalStorageCapacityRawBytes:this.getTotalStorageCapacityRawBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalBytes()&&null!==this.getTotalStorageCapacityLogicalBytes()?{totalStorageCapacityLogicalBytes:this.getTotalStorageCapacityLogicalBytes()}:{},...void 0!==this.getTotalStorageCapacityLogicalWithSavingsBytes()&&null!==this.getTotalStorageCapacityLogicalWithSavingsBytes()?{totalStorageCapacityLogicalWithSavingsBytes:this.getTotalStorageCapacityLogicalWithSavingsBytes()}:{},...void 0!==this.getTotalStorageUsageBytes()&&null!==this.getTotalStorageUsageBytes()?{totalStorageUsageBytes:this.getTotalStorageUsageBytes()}:{},...void 0!==this.getTotalStorageAvailableBytes()&&null!==this.getTotalStorageAvailableBytes()?{totalStorageAvailableBytes:this.getTotalStorageAvailableBytes()}:{},...void 0!==this.getTotalStorageAvailableLogicalBytes()&&null!==this.getTotalStorageAvailableLogicalBytes()?{totalStorageAvailableLogicalBytes:this.getTotalStorageAvailableLogicalBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"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 O(t,"no such property exists"):new O("totalStorageAvailableLogicalBytes","undefined or null"):new O("totalStorageAvailableBytes","undefined or null"):new O("totalStorageUsageBytes","undefined or null"):new O("totalStorageCapacityLogicalWithSavingsBytes","undefined or null"):new O("totalStorageCapacityLogicalBytes","undefined or null"):new O("totalStorageCapacityRawBytes","undefined or null"):new O("provisionedCpuHz","undefined or null"):new O("currentUsedCpuHz","undefined or null"):new O("totalCpuHz","undefined or null"):new O("largestPoweredOffVMVCpu","undefined or null"):new O("availableVCpuCount","undefined or null"):new O("maxVmVCpuSize","undefined or null"):new O("provisionedVCpuCount","undefined or null"):new O("currentUsedVCpuCount","undefined or null"):new O("totalVCpuCount","undefined or null"):new O("largestPoweredOffVMMemory","undefined or null"):new O("availableMemorySizeBytes","undefined or null"):new O("maxVmMemorySizeBytes","undefined or null"):new O("provisionedMemoryUsageBytes","undefined or null"):new O("currentMemoryUsageSizeBytes","undefined or null"):new O("totalMemorySizeBytes","undefined or null"):new O("cvmIPs","undefined or null"):new O("externalIP","undefined or null"):new O("clusterName","undefined or null")}}Cs.prototype.clusterName=void 0,Cs.prototype.externalIP=void 0,Cs.prototype.cvmIPs=void 0,Cs.prototype.totalMemorySizeBytes=void 0,Cs.prototype.currentMemoryUsageSizeBytes=void 0,Cs.prototype.provisionedMemoryUsageBytes=void 0,Cs.prototype.maxVmMemorySizeBytes=void 0,Cs.prototype.availableMemorySizeBytes=void 0,Cs.prototype.largestPoweredOffVMMemory=void 0,Cs.prototype.totalVCpuCount=void 0,Cs.prototype.currentUsedVCpuCount=void 0,Cs.prototype.provisionedVCpuCount=void 0,Cs.prototype.maxVmVCpuSize=void 0,Cs.prototype.availableVCpuCount=void 0,Cs.prototype.largestPoweredOffVMVCpu=void 0,Cs.prototype.totalCpuHz=void 0,Cs.prototype.currentUsedCpuHz=void 0,Cs.prototype.provisionedCpuHz=void 0,Cs.prototype.totalStorageCapacityRawBytes=void 0,Cs.prototype.totalStorageCapacityLogicalBytes=void 0,Cs.prototype.totalStorageCapacityLogicalWithSavingsBytes=void 0,Cs.prototype.totalStorageUsageBytes=void 0,Cs.prototype.totalStorageAvailableBytes=void 0,Cs.prototype.totalStorageAvailableLogicalBytes=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;var Ps=new WeakSet;class Ss{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ps),t.add(e),this.$objectType="aiops.v4.clusterMetrics.Node",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Ss,e.hasOwnProperty("nodeUuid")&&null!==e.nodeUuid&&void 0!==e.nodeUuid&&t.setNodeUuid(e.nodeUuid),e.hasOwnProperty("haMemoryReservedBytes")&&null!==e.haMemoryReservedBytes&&void 0!==e.haMemoryReservedBytes&&t.setHaMemoryReservedBytes(e.haMemoryReservedBytes),e.hasOwnProperty("numCpuThreads")&&null!==e.numCpuThreads&&void 0!==e.numCpuThreads&&t.setNumCpuThreads(e.numCpuThreads),e.hasOwnProperty("capacityHz")&&null!==e.capacityHz&&void 0!==e.capacityHz&&t.setCapacityHz(e.capacityHz),e.hasOwnProperty("memorySizeBytes")&&null!==e.memorySizeBytes&&void 0!==e.memorySizeBytes&&t.setMemorySizeBytes(e.memorySizeBytes),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getNodeUuid(){return this.nodeUuid}setNodeUuid(e){this.nodeUuid=e}getHaMemoryReservedBytes(){return this.haMemoryReservedBytes}setHaMemoryReservedBytes(e){this.haMemoryReservedBytes=e}getNumCpuThreads(){return this.numCpuThreads}setNumCpuThreads(e){this.numCpuThreads=e}getCapacityHz(){return this.capacityHz}setCapacityHz(e){this.capacityHz=e}getMemorySizeBytes(){return this.memorySizeBytes}setMemorySizeBytes(e){this.memorySizeBytes=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getNodeUuid()&&null!==this.getNodeUuid()?{nodeUuid:this.getNodeUuid()}:{},...void 0!==this.getHaMemoryReservedBytes()&&null!==this.getHaMemoryReservedBytes()?{haMemoryReservedBytes:this.getHaMemoryReservedBytes()}:{},...void 0!==this.getNumCpuThreads()&&null!==this.getNumCpuThreads()?{numCpuThreads:this.getNumCpuThreads()}:{},...void 0!==this.getCapacityHz()&&null!==this.getCapacityHz()?{capacityHz:this.getCapacityHz()}:{},...void 0!==this.getMemorySizeBytes()&&null!==this.getMemorySizeBytes()?{memorySizeBytes:this.getMemorySizeBytes()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("nodeUuid"===t){if(void 0===this.nodeUuid||null===this.nodeUuid)return new O("nodeUuid","undefined or null");if(!j.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 O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("memorySizeBytes","undefined or null"):new O("capacityHz","undefined or null"):new O("numCpuThreads","undefined or null"):new O("haMemoryReservedBytes","undefined or null")}}Ss.prototype.nodeUuid=void 0,Ss.prototype.haMemoryReservedBytes=void 0,Ss.prototype.numCpuThreads=void 0,Ss.prototype.capacityHz=void 0,Ss.prototype.memorySizeBytes=void 0,Ss.prototype.$reserved=void 0,Ss.prototype.$objectType=void 0,Ss.prototype.$unknownFields=void 0;class Es extends Ss{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.NodeProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Es,Ss.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}var Ds=new WeakSet;class Rs{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ds),t.add(e),this.$objectType="aiops.v4.clusterMetrics.Vm",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Rs,e.hasOwnProperty("vmUuid")&&null!==e.vmUuid&&void 0!==e.vmUuid&&t.setVmUuid(e.vmUuid),e.hasOwnProperty("vmMemory")&&null!==e.vmMemory&&void 0!==e.vmMemory&&t.setVmMemory(e.vmMemory),e.hasOwnProperty("numVcpus")&&null!==e.numVcpus&&void 0!==e.numVcpus&&t.setNumVcpus(e.numVcpus),e.hasOwnProperty("powerState")&&null!==e.powerState&&void 0!==e.powerState&&t.setPowerState(e.powerState),e.hasOwnProperty("node")&&null!==e.node&&void 0!==e.node&&t.setNode(e.node),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVmUuid(){return this.vmUuid}setVmUuid(e){this.vmUuid=e}getVmMemory(){return this.vmMemory}setVmMemory(e){this.vmMemory=e}getNumVcpus(){return this.numVcpus}setNumVcpus(e){this.numVcpus=e}getPowerState(){return this.powerState}setPowerState(e){this.powerState=e}getNode(){return this.node}setNode(e){this.node=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getVmUuid()&&null!==this.getVmUuid()?{vmUuid:this.getVmUuid()}:{},...void 0!==this.getVmMemory()&&null!==this.getVmMemory()?{vmMemory:this.getVmMemory()}:{},...void 0!==this.getNumVcpus()&&null!==this.getNumVcpus()?{numVcpus:this.getNumVcpus()}:{},...void 0!==this.getPowerState()&&null!==this.getPowerState()?{powerState:this.getPowerState()}:{},...void 0!==this.getNode()&&null!==this.getNode()?{node:this.getNode()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("vmUuid"===t){if(void 0===this.vmUuid||null===this.vmUuid)return new O("vmUuid","undefined or null");if(!j.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 O("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 O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("node","undefined or null"):new O("powerState","undefined or null"):new O("numVcpus","undefined or null"):new O("vmMemory","undefined or null")}}Rs.prototype.vmUuid=void 0,Rs.prototype.vmMemory=void 0,Rs.prototype.numVcpus=void 0,Rs.prototype.powerState=void 0,Rs.prototype.node=void 0,Rs.prototype.$reserved=void 0,Rs.prototype.$objectType=void 0,Rs.prototype.$unknownFields=void 0;class Us extends Rs{constructor(){super(),this.$objectType="aiops.v4.clusterMetrics.VmProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Us,Rs.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}var Is=new WeakSet;class As extends ks{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Is),t.add(e),this.$objectType="aiops.v4.clusterMetrics.ClusterProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new As,ks.constructFromObject(e,t,!0),e.hasOwnProperty("vmProjection")&&null!==e.vmProjection&&void 0!==e.vmProjection){for(r=[],i=e.vmProjection,o=0;o<i.length;o++)s=Us.constructFromObject(i[o],void 0),r.push(s);t.setVmProjection(r)}if(e.hasOwnProperty("nodeProjection")&&null!==e.nodeProjection&&void 0!==e.nodeProjection){for(r=[],i=e.nodeProjection,o=0;o<i.length;o++)s=Es.constructFromObject(i[o],void 0),r.push(s);t.setNodeProjection(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getVmProjection(){return this.vmProjection}setVmProjection(e){this.vmProjection=e}getNodeProjection(){return this.nodeProjection}setNodeProjection(e){this.nodeProjection=e}toJson(e){return{...void 0!==this.getVmProjection()&&null!==this.getVmProjection()?{vmProjection:this.getVmProjection().map(e=>e.toJson(!1))}:{},...void 0!==this.getNodeProjection()&&null!==this.getNodeProjection()?{nodeProjection:this.getNodeProjection().map(e=>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(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"vmProjection"!==t||void 0!==this.vmProjection&&null!==this.vmProjection?"nodeProjection"!==t||void 0!==this.nodeProjection&&null!==this.nodeProjection?new O(t,"no such property exists"):new O("nodeProjection","undefined or null"):new O("vmProjection","undefined or null")}}As.prototype.vmProjection=void 0,As.prototype.nodeProjection=void 0,ks.prototype.name=void 0,ks.prototype.uuid=void 0,ks.prototype.externalIpAddress=void 0,ks.prototype.memoryCapacityBytes=void 0,ks.prototype.numCpus=void 0,ks.prototype.hypervisorMemoryUsagePpm=void 0,ks.prototype.hypervisorCpuUsagePpm=void 0,ks.prototype.rf=void 0,ks.prototype.capacityBytes=void 0,ks.prototype.freeBytes=void 0,ks.prototype.usageBytes=void 0,ks.prototype.savedBytes=void 0;const Ms={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",IGNORE_RUNWAY_NUTANIX:"IGNORE_RUNWAY_NUTANIX",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ms).find(t=>Ms[t]===e);return null==t?Ms.$UNKNOWN:Ms[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ms.$UNKNOWN:case Ms.$REDACTED:case Ms.IGNORE_RUNWAY_NUTANIX:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|IGNORE_RUNWAY_NUTANIX }")}}};Object.freeze(Ms);const Ns=Ms,xs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",ORIGINAL:"ORIGINAL",ONE_NODE_FAILURE:"ONE_NODE_FAILURE",BLOCK_AWARENESS:"BLOCK_AWARENESS",AUTO_DETECT:"AUTO_DETECT",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(xs).find(t=>xs[t]===e);return null==t?xs.$UNKNOWN:xs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case xs.$UNKNOWN:case xs.$REDACTED:case xs.ORIGINAL:case xs.ONE_NODE_FAILURE:case xs.BLOCK_AWARENESS:case xs.AUTO_DETECT:return;default:throw new Error("Invalid : must be CapacityType.{ $UNKNOWN|$REDACTED|ORIGINAL|ONE_NODE_FAILURE|BLOCK_AWARENESS|AUTO_DETECT }")}}};Object.freeze(xs);const Vs=xs,Ls={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",GHZ:"GHz",GB:"GB",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ls).find(t=>Ls[t]===e);return null==t?Ls.$UNKNOWN:Ls[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ls.$UNKNOWN:case Ls.$REDACTED:case Ls.GHZ:case Ls.GB:return;default:throw new Error("Invalid : must be CapacityUnit.{ $UNKNOWN|$REDACTED|GHZ|GB }")}}};Object.freeze(Ls);const Bs=Ls,Ws={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",CLUSTER:"CLUSTER",NUTANIX_VCENTER_CLUSTER:"NUTANIX_VCENTER_CLUSTER",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Ws).find(t=>Ws[t]===e);return null==t?Ws.$UNKNOWN:Ws[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Ws.$UNKNOWN:case Ws.$REDACTED:case Ws.CLUSTER:case Ws.NUTANIX_VCENTER_CLUSTER:return;default:throw new Error("Invalid : must be ClusterType.{ $UNKNOWN|$REDACTED|CLUSTER|NUTANIX_VCENTER_CLUSTER }")}}};Object.freeze(Ws);const zs=Ws;var Js=new WeakSet;class _s extends mt{constructor(){var e,t;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=Js),t.add(e),this.$objectType="aiops.v4.config.EntityDetail",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new _s,mt.constructFromObject(e,t,!0),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("isDefaultAIOpsPolicyEntity")&&null!==e.isDefaultAIOpsPolicyEntity&&void 0!==e.isDefaultAIOpsPolicyEntity&&t.setIsDefaultAIOpsPolicyEntity(e.isDefaultAIOpsPolicyEntity),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getIsDefaultAIOpsPolicyEntity(){return this.isDefaultAIOpsPolicyEntity}setIsDefaultAIOpsPolicyEntity(e){this.isDefaultAIOpsPolicyEntity=e}toJson(e){return!1===e?{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getIsDefaultAIOpsPolicyEntity()&&null!==this.getIsDefaultAIOpsPolicyEntity()?{isDefaultAIOpsPolicyEntity:this.getIsDefaultAIOpsPolicyEntity()}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getIsDefaultAIOpsPolicyEntity()&&null!==this.getIsDefaultAIOpsPolicyEntity()?{isDefaultAIOpsPolicyEntity:this.getIsDefaultAIOpsPolicyEntity()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return"name"!==t||void 0!==this.name&&null!==this.name?"isDefaultAIOpsPolicyEntity"!==t||void 0!==this.isDefaultAIOpsPolicyEntity&&null!==this.isDefaultAIOpsPolicyEntity?new O(t,"no such property exists"):new O("isDefaultAIOpsPolicyEntity","undefined or null"):new O("name","undefined or null")}}_s.prototype.name=void 0,_s.prototype.isDefaultAIOpsPolicyEntity=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;const Gs={$UNKNOWN:"$UNKNOWN",$REDACTED:"$REDACTED",INEFFICIENCY_EXCLUSION:"INEFFICIENCY_EXCLUSION",ANOMALY_EXCLUSION:"ANOMALY_EXCLUSION",constructFromObject:function(e){if("string"==typeof e||e instanceof String){let t=Object.keys(Gs).find(t=>Gs[t]===e);return null==t?Gs.$UNKNOWN:Gs[t]}throw new Error("Received object name is not an instance of String")},validate:function(e){switch(e){case Gs.$UNKNOWN:case Gs.$REDACTED:case Gs.INEFFICIENCY_EXCLUSION:case Gs.ANOMALY_EXCLUSION:return;default:throw new Error("Invalid : must be PolicyType.{ $UNKNOWN|$REDACTED|INEFFICIENCY_EXCLUSION|ANOMALY_EXCLUSION }")}}};Object.freeze(Gs);const qs=Gs;class Hs extends Zt{constructor(e,t,n){super(e,t,n),this.$objectType="aiops.v4.config.SimulatedVmResourceSpecProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Hs,Zt.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["vcpuCount","ramGb","hddGb"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}var Ks=new WeakSet;class Xs{constructor(){var e,t;(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e=this,t=Ks),t.add(e),this.$objectType="common.v1.config.KVStringPair",this.$reserved={$fv:"v1.r0"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new Xs,e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("value")&&null!==e.value&&void 0!==e.value&&t.setValue(e.value),e.hasOwnProperty("$reserved")&&(t.$reserved=e.$reserved),e.hasOwnProperty("$objectType")&&(t.$objectType=e.$objectType),e.hasOwnProperty("$unknownFields")&&(t.$unknownFields=e.$unknownFields),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getName(){return this.name}setName(e){this.name=e}getValue(){return this.value}setValue(e){this.value=e}get$Reserved(){return this.$reserved}get$ObjectType(){return this.$objectType}get$UnknownFields(){return this.$unknownFields}toJson(e){return{...void 0!==this.getName()&&null!==this.getName()?{name:this.getName()}:{},...void 0!==this.getValue()&&null!==this.getValue()?{value:this.getValue()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=[]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,128))return new O("name","does not satisfy required maxLength constraint: 128");if(!j.validateMinLength(this.name,3))return new O("name","does not satisfy required minLength constraint: 3")}return"value"!==t||void 0!==this.value&&null!==this.value?"$reserved"!==t||void 0!==this.$reserved&&null!==this.$reserved?"$objectType"!==t||void 0!==this.$objectType&&null!==this.$objectType?"$unknownFields"!==t||void 0!==this.$unknownFields&&null!==this.$unknownFields?new O(t,"no such property exists"):new O("$unknownFields","undefined or null"):new O("$objectType","undefined or null"):new O("$reserved","undefined or null"):new O("value","undefined or null")}}function Zs(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}Xs.prototype.name=void 0,Xs.prototype.value="",Xs.prototype.$reserved=void 0,Xs.prototype.$objectType=void 0,Xs.prototype.$unknownFields=void 0;var Ys=new WeakSet;class Qs extends mt{constructor(e,t){var n,i;super(),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(n=this,i=Ys),i.add(n),this.isEnabled=e,this.entities=t,this.$objectType="aiops.v4.config.XfitPolicy",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){let i,s,o,r;if(e){if(t=t||new Qs,mt.constructFromObject(e,t,!0),e.hasOwnProperty("policyType")&&null!==e.policyType&&void 0!==e.policyType&&t.setPolicyType(qs.constructFromObject(e.policyType)),e.hasOwnProperty("name")&&null!==e.name&&void 0!==e.name&&t.setName(e.name),e.hasOwnProperty("description")&&null!==e.description&&void 0!==e.description&&t.setDescription(e.description),e.hasOwnProperty("updatedTime")&&null!==e.updatedTime&&void 0!==e.updatedTime&&t.setUpdatedTime(e.updatedTime),e.hasOwnProperty("isDefault")&&null!==e.isDefault&&void 0!==e.isDefault&&t.setIsDefault(e.isDefault),e.hasOwnProperty("isEnabled")&&null!==e.isEnabled&&void 0!==e.isEnabled&&t.setIsEnabled(e.isEnabled),e.hasOwnProperty("toRemove")&&null!==e.toRemove&&void 0!==e.toRemove&&t.setToRemove(e.toRemove),e.hasOwnProperty("parameters")&&null!==e.parameters&&void 0!==e.parameters){for(r=[],i=e.parameters,o=0;o<i.length;o++)s=Xs.constructFromObject(i[o],void 0),r.push(s);t.setParameters(r)}if(e.hasOwnProperty("entities")&&null!==e.entities&&void 0!==e.entities){for(r=[],i=e.entities,o=0;o<i.length;o++)s=_s.constructFromObject(i[o],void 0),r.push(s);t.setEntities(r)}if(!n){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}getPolicyType(){return this.policyType}setPolicyType(e){this.policyType=e}getName(){return this.name}setName(e){this.name=e}getDescription(){return this.description}setDescription(e){this.description=e}getUpdatedTime(){return this.updatedTime}setUpdatedTime(e){this.updatedTime=e}getIsDefault(){return this.isDefault}setIsDefault(e){this.isDefault=e}getIsEnabled(){return this.isEnabled}setIsEnabled(e){this.isEnabled=e}getToRemove(){return this.toRemove}setToRemove(e){this.toRemove=e}getParameters(){return this.parameters}setParameters(e){this.parameters=e}getEntities(){return this.entities}setEntities(e){this.entities=e}toJson(e){return!1===e?{...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:Zs(Ys,this,eo).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.getToRemove()&&null!==this.getToRemove()?{toRemove:this.getToRemove()}:{},...void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(e=>e.toJson(!1))}:{},...void 0!==this.getEntities()&&null!==this.getEntities()?{entities:this.getEntities().map(e=>e.toJson(!1))}:{},...void 0!==this.getExtId()&&null!==this.getExtId()?{extId:this.getExtId()}:{},...void 0!==this.getLinks()&&null!==this.getLinks()?{links:this.getLinks().map(e=>e.toJson(!1))}:{},...void 0!==this.getTenantId()&&null!==this.getTenantId()?{tenantId:this.getTenantId()}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}:{...void 0!==this.getPolicyType()&&null!==this.getPolicyType()?{policyType:this.getPolicyType()}:{},...void 0!==this.getIsEnabled()&&null!==this.getIsEnabled()?{isEnabled:this.getIsEnabled()}:{},...void 0!==this.getToRemove()&&null!==this.getToRemove()?{toRemove:this.getToRemove()}:{},...void 0!==this.getParameters()&&null!==this.getParameters()?{parameters:this.getParameters().map(e=>e.toJson(!1))}:{},...void 0!==this.getEntities()&&null!==this.getEntities()?{entities:this.getEntities().map(e=>e.toJson(!1))}:{},$reserved:this.get$Reserved(),$objectType:this.get$ObjectType(),...void 0!==this.get$UnknownFields()&&null!==this.get$UnknownFields()?this.get$UnknownFields():{},$unknownFields:{}}}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["isEnabled","entities"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){if("policyType"===t&&(void 0===this.policyType||null===this.policyType))return new O("policyType","undefined or null");if("name"===t){if(void 0===this.name||null===this.name)return new O("name","undefined or null");if(!j.validateMaxLength(this.name,256))return new O("name","does not satisfy required maxLength constraint: 256");if(!j.validateMinLength(this.name,1))return new O("name","does not satisfy required minLength constraint: 1")}if("description"===t){if(void 0===this.description||null===this.description)return new O("description","undefined or null");if(!j.validateMaxLength(this.description,512))return new O("description","does not satisfy required maxLength constraint: 512");if(!j.validateMinLength(this.description,1))return new O("description","does not satisfy required minLength constraint: 1")}if("updatedTime"===t&&(void 0===this.updatedTime||null===this.updatedTime))return new O("updatedTime","undefined or null");if("isDefault"===t&&(void 0===this.isDefault||null===this.isDefault))return new O("isDefault","undefined or null");if("isEnabled"===t&&(void 0===this.isEnabled||null===this.isEnabled))return new O("isEnabled","undefined or null");if("toRemove"===t&&(void 0===this.toRemove||null===this.toRemove))return new O("toRemove","undefined or null");if("parameters"===t){if(void 0===this.parameters||null===this.parameters)return new O("parameters","undefined or null");if(!j.validateMaxItems(this.parameters,50))return new O("parameters","does not satisfy required maxItems constraint: 50")}return"entities"!==t||void 0!==this.entities&&null!==this.entities?new O(t,"no such property exists"):new O("entities","undefined or null")}}function eo(e,t){return e instanceof Date&&void 0!==t?t?e.toISOString().slice(0,10):e.toISOString():e}Qs.prototype.policyType=void 0,Qs.prototype.name=void 0,Qs.prototype.description=void 0,Qs.prototype.updatedTime=void 0,Qs.prototype.isDefault=!1,Qs.prototype.isEnabled=!0,Qs.prototype.toRemove=!1,Qs.prototype.parameters=void 0,Qs.prototype.entities=void 0,mt.prototype.extId=void 0,mt.prototype.links=void 0,vt.prototype.tenantId=void 0;class to extends Qs{constructor(e,t){super(e,t),this.$objectType="aiops.v4.config.XfitPolicyProjection",this.$reserved={$fv:"v4.r2.b1"},this.$unknownFields={}}static constructFromObject(e,t=null,n=!1){if(e&&(t=t||new to,Qs.constructFromObject(e,t,!0),!n)){t.$unknownFields={...e.$unknownFields};for(const n in e)Object.keys(t).includes(n)||Object.keys(t).includes(this.snakeToCamel(n))||"$"===n[0]&&n.endsWith("ItemDiscriminator")||(t.$unknownFields[n]=e[n])}return t}static snakeToCamel(e){return e.replace(/(_\w)/g,e=>e[1].toUpperCase())}validate(e,t){let n=[];0===arguments.length||1===arguments.length&&arguments[0]instanceof k?n=["isEnabled","entities"]:1===arguments.length?(n=arguments[0],e=null):n=arguments[1];let i=[],s=null;return n.forEach(t=>{s=this.validateProperty(t,e),s&&i.push(s)}),new Promise(function(e,t){0!==i.length?t(s):e()})}validateProperty(e,t){return new O(t,"no such property exists")}}const no={ApiClient:le,StatsApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}getEntityDescriptorsV4(e,t,...n){let i=n.length>0?n[0]:{};if(t=t||{},null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityDescriptorsV4");const s={sourceExtId:e},o={...t.hasOwnProperty("$page")?{$page:t.$page}:{},...t.hasOwnProperty("$limit")?{$limit:t.$limit}:{},...t.hasOwnProperty("$filter")?{$filter:t.$filter}:{}};let r={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=i[e])});const a={...r},l=Mt;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/sources/{sourceExtId}/entity-descriptors","GET",s,o,a,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],l)}getEntityMetricsV4(e,t,n,i,s,...o){let r=o.length>0?o[0]:{};if(s=s||{},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==i)throw new Error("Missing the required parameter '$endTime' when calling getEntityMetricsV4");const a={sourceExtId:e,extId:t},l={...s.hasOwnProperty("$page")?{$page:s.$page}:{},...s.hasOwnProperty("$limit")?{$limit:s.$limit}:{},$startTime:n,$endTime:i,...s.hasOwnProperty("$samplingInterval")?{$samplingInterval:s.$samplingInterval}:{},...s.hasOwnProperty("$statType")?{$statType:s.$statType}:{},...s.hasOwnProperty("$filter")?{$filter:s.$filter}:{},...s.hasOwnProperty("$orderby")?{$orderby:s.$orderby}:{}};let d={};Object.keys(r).forEach(e=>{this.#e.has(e.toLowerCase())||(d[e]=r[e])});const u={...d},h=Tt;return this.apiClient.callApi("/api/aiops/v4.2.b1/stats/sources/{sourceExtId}/entities/{extId}","GET",a,l,u,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],h)}getEntityTypesV4(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'sourceExtId' when calling getEntityTypesV4");const i={sourceExtId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Ht;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/sources/{sourceExtId}/entity-types","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}getSourcesV4(...e){let t=e.length>0?e[0]:{},n={};Object.keys(t).forEach(e=>{this.#e.has(e.toLowerCase())||(n[e]=t[e])});const i={...n},s=Wt;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/sources","GET",{},{},i,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],s)}},ScenariosApi:class{#e;static get ApiClient(){return le}constructor(e){this.apiClient=e||le.instance,this.#e=new Set,this.#e.add("authorization"),this.#e.add("cookie"),this.#e.add("host"),this.#e.add("user-agent")}createScenario(e,...t){let n=t.length>0?t[0]:{},i=null;if(i=e instanceof Ci&&"function"==typeof e.toJson?e.toJson():e,null==i)throw new Error("Invalid body when calling createScenario");let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s};le.addEtagReferenceToHeader(e,o);const r=Wi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios","POST",{},{},o,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],r)}createSimulation(e,...t){let n=t.length>0?t[0]:{},i=null;if(i=e instanceof Qt&&"function"==typeof e.toJson?e.toJson():e,null==i)throw new Error("Invalid body when calling createSimulation");let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s};le.addEtagReferenceToHeader(e,o);const r=nn;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations","POST",{},{},o,{},i,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],r)}deleteScenarioById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteScenarioById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Xi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}","DELETE",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}deleteSimulationById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling deleteSimulationById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Gi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations/{extId}","DELETE",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}generateRecommendation(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling generateRecommendation");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=es;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-recommendation","POST",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}generateReport(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling generateReport");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=ss;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-report","POST",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}generateRunway(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling generateRunway");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=fs;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-runway","POST",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}getScenarioById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getScenarioById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=cs;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}getScenarioReport(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'scenarioExtId' when calling getScenarioReport");const i={scenarioExtId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Mi;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{scenarioExtId}/reports","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/octet-stream","application/json"],r)}getSimulationById(e,...t){let n=t.length>0?t[0]:{};if(null==e)throw new Error("Missing the required parameter 'extId' when calling getSimulationById");const i={extId:e};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=ls;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations/{extId}","GET",i,{},o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}listScenarios(e,...t){let n=t.length>0?t[0]:{};const i={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=Ri;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios","GET",{},i,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}listSimulations(e,...t){let n=t.length>0?t[0]:{};const i={...(e=e||{}).hasOwnProperty("$page")?{$page:e.$page}:{},...e.hasOwnProperty("$limit")?{$limit:e.$limit}:{},...e.hasOwnProperty("$filter")?{$filter:e.$filter}:{},...e.hasOwnProperty("$orderby")?{$orderby:e.$orderby}:{},...e.hasOwnProperty("$select")?{$select:e.$select}:{}};let s={};Object.keys(n).forEach(e=>{this.#e.has(e.toLowerCase())||(s[e]=n[e])});const o={...s},r=ln;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations","GET",{},i,o,{},null,["apiKeyAuthScheme","basicAuthScheme"],[],["application/json"],r)}updateScenarioById(e,t,...n){let i=n.length>0?n[0]:{},s=null;if(s=t instanceof Ci&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateScenarioById");if(null==s)throw new Error("Invalid body when calling updateScenarioById");const o={extId:e};let r={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=i[e])});const a={...r};le.addEtagReferenceToHeader(t,a);const l=gs;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/scenarios/{extId}","PUT",o,{},a,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}updateSimulationById(e,t,...n){let i=n.length>0?n[0]:{},s=null;if(s=t instanceof Qt&&"function"==typeof t.toJson?t.toJson():t,null==e)throw new Error("Missing the required parameter 'extId' when calling updateSimulationById");if(null==s)throw new Error("Invalid body when calling updateSimulationById");const o={extId:e};let r={};Object.keys(i).forEach(e=>{this.#e.has(e.toLowerCase())||(r[e]=i[e])});const a={...r};le.addEtagReferenceToHeader(t,a);const l=cn;return this.apiClient.callApi("/api/aiops/v4.2.b1/config/simulations/{extId}","PUT",o,{},a,{},s,["apiKeyAuthScheme","basicAuthScheme"],["application/json"],["application/json"],l)}},Cluster:ks,ClusterMetrics:Cs,ClusterProjection:As,Node:Ss,NodeProjection:Es,Vm:Rs,VmProjection:Us,CommonClusterType:Ns,CapacityType:Vs,CapacityUnit:Bs,CapacityUpdateConfig:Nn,CapacityUpdateType:An,CitrixXenProvisionType:Vn,CitrixXenWorkload:qn,CitrixXenWorkloadVendor:Bn,ClusterConfig:Cn,ConfigClusterType:zs,CreateScenarioApiResponse:Wi,CreateSimulationApiResponse:nn,DataStoreConfig:mn,DeleteScenarioApiResponse:Xi,DeleteSimulationApiResponse:Gi,EntityDescriptor:Ut,EntityDescriptorListApiResponse:Mt,EntityDetail:_s,EntityType:_t,EntityTypeListApiResponse:Ht,GenerateRecommendationApiResponse:es,GenerateReportApiResponse:ss,GenerateRunwayApiResponse:fs,GetScenarioApiResponse:cs,GetScenarioReportApiResponse:Mi,GetSimulationApiResponse:ls,ListScenariosApiResponse:Ri,ListSimulationsApiResponse:ln,MetricDescriptor:Dt,MicrosoftXenProvisionType:Kn,MicrosoftXenWorkload:Qn,MicrosoftXenWorkloadVendor:Zn,NodeConfig:jn,NodeSource:$n,PolicyType:qs,ReplicationFactor:vn,ResourceCapacity:bn,Runway:En,Scenario:Ci,ScenarioProjection:Si,SimulatedVmResourceSpec:Zt,SimulatedVmResourceSpecProjection:Hs,Simulation:Qt,SimulationProjection:on,Source:Vt,SourceListApiResponse:Wt,SplunkWorkload:ti,SqlProfileType:ii,SqlTransactionType:oi,SqlWorkload:ai,UpdateScenarioApiResponse:gs,UpdateSimulationApiResponse:cn,ValueRange:Ot,ValueType:Ct,VdiProvisionType:di,VdiUserType:hi,VdiVendor:pi,VdiWorkload:vi,Vendor:Un,VmCategoryWorkload:mi,VmWorkload:$i,Workload:Ti,XenOperatingSystem:zn,XenWorkload:_n,XfitPolicy:Qs,XfitPolicyProjection:to,AppMessage:De,ErrorResponse:Be,SchemaValidationError:Ne,SchemaValidationErrorMessage:Ie,BoolList:Je,BoolVal:Ge,DoubleList:He,DoubleVal:Xe,Entity:$t,EntityListApiResponse:Tt,IntList:Ye,IntVal:et,Metric:pt,Point:at,StrList:nt,StrVal:st,TimeSeries:ht,Flag:C,IPv4Address:Os,KVPair:I,KVStringPair:Xs,MapOfStringWrapper:E,Message:V,MessageSeverity:N,TenantAwareModel:vt,ApiLink:B,ApiResponseMetadata:J,ExternalizableAbstractModel:mt,DownSamplingOperator:St,TaskReference:Vi}})(),i.default})());
|