@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _ValueRange = _interopRequireDefault(require("./ValueRange"));
|
|
8
8
|
var _ValueType = _interopRequireDefault(require("./ValueType"));
|
|
9
9
|
var _KVPair = _interopRequireDefault(require("../../../common/v1/config/KVPair"));
|
|
@@ -11,31 +11,16 @@ var _DownSamplingOperator = _interopRequireDefault(require("../../../common/v1/s
|
|
|
11
11
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
12
12
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
13
13
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
14
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
15
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
16
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
17
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
18
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
19
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
20
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
21
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
22
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
25
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
26
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
27
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
28
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
29
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
30
15
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
31
16
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
32
17
|
* Nutanix AIOps APIs
|
|
33
18
|
*
|
|
34
|
-
* OpenAPI spec version: 4.
|
|
19
|
+
* OpenAPI spec version: 4.2.1-beta-1
|
|
35
20
|
*
|
|
36
21
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
37
22
|
*
|
|
38
|
-
* Open API Dev Platform Codegen version: 17.
|
|
23
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
39
24
|
*
|
|
40
25
|
* Do not edit the class manually.
|
|
41
26
|
*
|
|
@@ -43,17 +28,16 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
43
28
|
/**
|
|
44
29
|
* The MetricDescriptor model module.
|
|
45
30
|
* @module Ntnx/MetricDescriptor
|
|
46
|
-
* @version 4.
|
|
31
|
+
* @version 4.2.1-beta-1
|
|
47
32
|
* @class MetricDescriptor
|
|
48
33
|
*/
|
|
49
34
|
var _MetricDescriptor_brand = /*#__PURE__*/new WeakSet();
|
|
50
|
-
|
|
35
|
+
class MetricDescriptor {
|
|
51
36
|
/**
|
|
52
37
|
* Constructs a new <code>MetricDescriptor</code>.
|
|
53
38
|
* @alias module:Ntnx/MetricDescriptor
|
|
54
39
|
*/
|
|
55
|
-
|
|
56
|
-
_classCallCheck(this, MetricDescriptor);
|
|
40
|
+
constructor() {
|
|
57
41
|
/*
|
|
58
42
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
59
43
|
* @param {Object} obj
|
|
@@ -64,7 +48,7 @@ var MetricDescriptor = exports["default"] = /*#__PURE__*/function () {
|
|
|
64
48
|
this.$objectType = "aiops.v4.config.MetricDescriptor";
|
|
65
49
|
/** @type {object<string, any>} */
|
|
66
50
|
this.$reserved = {
|
|
67
|
-
'$fv': "v4.
|
|
51
|
+
'$fv': "v4.r2.b1"
|
|
68
52
|
};
|
|
69
53
|
/** @type {object<string, any>} */
|
|
70
54
|
this.$unknownFields = {};
|
|
@@ -78,515 +62,468 @@ var MetricDescriptor = exports["default"] = /*#__PURE__*/function () {
|
|
|
78
62
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
79
63
|
* @return {module:Ntnx/MetricDescriptor} The populated <code>MetricDescriptor</code> instance.
|
|
80
64
|
*/
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
65
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
66
|
+
let items, item, i, itemArr, discriminator;
|
|
67
|
+
if (data) {
|
|
68
|
+
obj = obj || new MetricDescriptor();
|
|
69
|
+
if (data.hasOwnProperty('isAttribute') && data.isAttribute !== null && data.isAttribute !== undefined) {
|
|
70
|
+
obj.setIsAttribute(data['isAttribute']);
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('isAttributePersistedAsTimeSeries') && data.isAttributePersistedAsTimeSeries !== null && data.isAttributePersistedAsTimeSeries !== undefined) {
|
|
73
|
+
obj.setIsAttributePersistedAsTimeSeries(data['isAttributePersistedAsTimeSeries']);
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
76
|
+
obj.setName(data['name']);
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('displayName') && data.displayName !== null && data.displayName !== undefined) {
|
|
79
|
+
obj.setDisplayName(data['displayName']);
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('valueType') && data.valueType !== null && data.valueType !== undefined) {
|
|
82
|
+
obj.setValueType(_ValueType.default.constructFromObject(data['valueType']));
|
|
83
|
+
}
|
|
84
|
+
if (data.hasOwnProperty('valueRange') && data.valueRange !== null && data.valueRange !== undefined) {
|
|
85
|
+
obj.setValueRange(_ValueRange.default.constructFromObject(data['valueRange']));
|
|
86
|
+
}
|
|
87
|
+
if (data.hasOwnProperty('defaultValue') && data.defaultValue !== null && data.defaultValue !== undefined) {
|
|
88
|
+
obj.setDefaultValue(data['defaultValue']);
|
|
89
|
+
}
|
|
90
|
+
if (data.hasOwnProperty('unit') && data.unit !== null && data.unit !== undefined) {
|
|
91
|
+
obj.setUnit(data['unit']);
|
|
92
|
+
}
|
|
93
|
+
if (data.hasOwnProperty('samplingIntervalSecs') && data.samplingIntervalSecs !== null && data.samplingIntervalSecs !== undefined) {
|
|
94
|
+
obj.setSamplingIntervalSecs(data['samplingIntervalSecs']);
|
|
95
|
+
}
|
|
96
|
+
if (data.hasOwnProperty('downsamplingOperator') && data.downsamplingOperator !== null && data.downsamplingOperator !== undefined) {
|
|
97
|
+
obj.setDownsamplingOperator(_DownSamplingOperator.default.constructFromObject(data['downsamplingOperator']));
|
|
98
|
+
}
|
|
99
|
+
if (data.hasOwnProperty('additionalProperties') && data.additionalProperties !== null && data.additionalProperties !== undefined) {
|
|
100
|
+
itemArr = [];
|
|
101
|
+
items = data.additionalProperties;
|
|
102
|
+
for (i = 0; i < items.length; i++) {
|
|
103
|
+
item = _KVPair.default.constructFromObject(items[i], undefined);
|
|
104
|
+
itemArr.push(item);
|
|
105
|
+
}
|
|
106
|
+
obj.setAdditionalProperties(itemArr);
|
|
107
|
+
}
|
|
108
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
109
|
+
obj.$reserved = data['$reserved'];
|
|
110
|
+
}
|
|
111
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
112
|
+
obj.$objectType = data['$objectType'];
|
|
113
|
+
}
|
|
114
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
115
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
116
|
+
}
|
|
117
|
+
if (!callFromChild) {
|
|
118
|
+
obj.$unknownFields = {
|
|
119
|
+
...data.$unknownFields
|
|
120
|
+
};
|
|
121
|
+
for (const property in data) {
|
|
122
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
123
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
124
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
125
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
126
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
127
|
+
obj.$unknownFields[property] = data[property];
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
90
131
|
}
|
|
132
|
+
return obj;
|
|
133
|
+
}
|
|
91
134
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
135
|
+
/**
|
|
136
|
+
* Converts a given snake_case string to camelCase.
|
|
137
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
138
|
+
* @returns {string} - The converted string in camelCase format.
|
|
139
|
+
*/
|
|
140
|
+
static snakeToCamel(snakeStr) {
|
|
141
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
142
|
+
}
|
|
101
143
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
return this.isAttributePersistedAsTimeSeries;
|
|
110
|
-
}
|
|
144
|
+
/**
|
|
145
|
+
* Returns Indicates whether it is an attribute or not.
|
|
146
|
+
* @return {boolean}
|
|
147
|
+
*/
|
|
148
|
+
getIsAttribute() {
|
|
149
|
+
return this.isAttribute;
|
|
150
|
+
}
|
|
111
151
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
this.isAttributePersistedAsTimeSeries = isAttributePersistedAsTimeSeries;
|
|
120
|
-
}
|
|
152
|
+
/**
|
|
153
|
+
* Sets Indicates whether it is an attribute or not.
|
|
154
|
+
* @param {boolean} isAttribute Indicates whether it is an attribute or not.
|
|
155
|
+
*/
|
|
156
|
+
setIsAttribute(isAttribute) {
|
|
157
|
+
this.isAttribute = isAttribute;
|
|
158
|
+
}
|
|
121
159
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
return this.name;
|
|
130
|
-
}
|
|
160
|
+
/**
|
|
161
|
+
* Returns Indicator to specify whether the attribute should be persisted as time series data or not.
|
|
162
|
+
* @return {boolean}
|
|
163
|
+
*/
|
|
164
|
+
getIsAttributePersistedAsTimeSeries() {
|
|
165
|
+
return this.isAttributePersistedAsTimeSeries;
|
|
166
|
+
}
|
|
131
167
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
this.name = name;
|
|
140
|
-
}
|
|
168
|
+
/**
|
|
169
|
+
* Sets Indicator to specify whether the attribute should be persisted as time series data or not.
|
|
170
|
+
* @param {boolean} isAttributePersistedAsTimeSeries Indicator to specify whether the attribute should be persisted as time series data or not.
|
|
171
|
+
*/
|
|
172
|
+
setIsAttributePersistedAsTimeSeries(isAttributePersistedAsTimeSeries) {
|
|
173
|
+
this.isAttributePersistedAsTimeSeries = isAttributePersistedAsTimeSeries;
|
|
174
|
+
}
|
|
141
175
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
return this.displayName;
|
|
150
|
-
}
|
|
176
|
+
/**
|
|
177
|
+
* Returns Name of the metric.
|
|
178
|
+
* @return {string}
|
|
179
|
+
*/
|
|
180
|
+
getName() {
|
|
181
|
+
return this.name;
|
|
182
|
+
}
|
|
151
183
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
this.displayName = displayName;
|
|
160
|
-
}
|
|
184
|
+
/**
|
|
185
|
+
* Sets Name of the metric.
|
|
186
|
+
* @param {string} name Name of the metric.
|
|
187
|
+
*/
|
|
188
|
+
setName(name) {
|
|
189
|
+
this.name = name;
|
|
190
|
+
}
|
|
161
191
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
192
|
+
/**
|
|
193
|
+
* Returns Readable name for the entity.
|
|
194
|
+
* @return {string}
|
|
195
|
+
*/
|
|
196
|
+
getDisplayName() {
|
|
197
|
+
return this.displayName;
|
|
198
|
+
}
|
|
170
199
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
200
|
+
/**
|
|
201
|
+
* Sets Readable name for the entity.
|
|
202
|
+
* @param {string} displayName Readable name for the entity.
|
|
203
|
+
*/
|
|
204
|
+
setDisplayName(displayName) {
|
|
205
|
+
this.displayName = displayName;
|
|
206
|
+
}
|
|
179
207
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
return this.valueRange;
|
|
187
|
-
}
|
|
208
|
+
/**
|
|
209
|
+
* @return {ValueType}
|
|
210
|
+
*/
|
|
211
|
+
getValueType() {
|
|
212
|
+
return this.valueType;
|
|
213
|
+
}
|
|
188
214
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
this.valueRange = valueRange;
|
|
196
|
-
}
|
|
215
|
+
/**
|
|
216
|
+
* @param {ValueType} valueType
|
|
217
|
+
*/
|
|
218
|
+
setValueType(valueType) {
|
|
219
|
+
this.valueType = valueType;
|
|
220
|
+
}
|
|
197
221
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
value: function getDefaultValue() {
|
|
205
|
-
return this.defaultValue;
|
|
206
|
-
}
|
|
222
|
+
/**
|
|
223
|
+
* @return {ValueRange}
|
|
224
|
+
*/
|
|
225
|
+
getValueRange() {
|
|
226
|
+
return this.valueRange;
|
|
227
|
+
}
|
|
207
228
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
value: function setDefaultValue(defaultValue) {
|
|
215
|
-
this.defaultValue = defaultValue;
|
|
216
|
-
}
|
|
229
|
+
/**
|
|
230
|
+
* @param {ValueRange} valueRange
|
|
231
|
+
*/
|
|
232
|
+
setValueRange(valueRange) {
|
|
233
|
+
this.valueRange = valueRange;
|
|
234
|
+
}
|
|
217
235
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
return this.unit;
|
|
226
|
-
}
|
|
236
|
+
/**
|
|
237
|
+
* Returns Default value of the metric.
|
|
238
|
+
* @return {string}
|
|
239
|
+
*/
|
|
240
|
+
getDefaultValue() {
|
|
241
|
+
return this.defaultValue;
|
|
242
|
+
}
|
|
227
243
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
this.unit = unit;
|
|
236
|
-
}
|
|
244
|
+
/**
|
|
245
|
+
* Sets Default value of the metric.
|
|
246
|
+
* @param {string} defaultValue Default value of the metric.
|
|
247
|
+
*/
|
|
248
|
+
setDefaultValue(defaultValue) {
|
|
249
|
+
this.defaultValue = defaultValue;
|
|
250
|
+
}
|
|
237
251
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
return this.samplingIntervalSecs;
|
|
246
|
-
}
|
|
252
|
+
/**
|
|
253
|
+
* Returns Unit for the metric.
|
|
254
|
+
* @return {string}
|
|
255
|
+
*/
|
|
256
|
+
getUnit() {
|
|
257
|
+
return this.unit;
|
|
258
|
+
}
|
|
247
259
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
this.samplingIntervalSecs = samplingIntervalSecs;
|
|
256
|
-
}
|
|
260
|
+
/**
|
|
261
|
+
* Sets Unit for the metric.
|
|
262
|
+
* @param {string} unit Unit for the metric.
|
|
263
|
+
*/
|
|
264
|
+
setUnit(unit) {
|
|
265
|
+
this.unit = unit;
|
|
266
|
+
}
|
|
257
267
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
268
|
+
/**
|
|
269
|
+
* Returns The interval value is used to resample the queried time series data by using down_sampling_operator operator. The default is 86400 seconds.
|
|
270
|
+
* @return {Number}
|
|
271
|
+
*/
|
|
272
|
+
getSamplingIntervalSecs() {
|
|
273
|
+
return this.samplingIntervalSecs;
|
|
274
|
+
}
|
|
266
275
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
276
|
+
/**
|
|
277
|
+
* Sets The interval value is used to resample the queried time series data by using down_sampling_operator operator. The default is 86400 seconds.
|
|
278
|
+
* @param {Number} samplingIntervalSecs The interval value is used to resample the queried time series data by using down_sampling_operator operator. The default is 86400 seconds.
|
|
279
|
+
*/
|
|
280
|
+
setSamplingIntervalSecs(samplingIntervalSecs) {
|
|
281
|
+
this.samplingIntervalSecs = samplingIntervalSecs;
|
|
282
|
+
}
|
|
275
283
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
value: function getAdditionalProperties() {
|
|
283
|
-
return this.additionalProperties;
|
|
284
|
-
}
|
|
284
|
+
/**
|
|
285
|
+
* @return {DownSamplingOperator}
|
|
286
|
+
*/
|
|
287
|
+
getDownsamplingOperator() {
|
|
288
|
+
return this.downsamplingOperator;
|
|
289
|
+
}
|
|
285
290
|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
291
|
+
/**
|
|
292
|
+
* @param {DownSamplingOperator} downsamplingOperator
|
|
293
|
+
*/
|
|
294
|
+
setDownsamplingOperator(downsamplingOperator) {
|
|
295
|
+
this.downsamplingOperator = downsamplingOperator;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Returns Additional properties for metric descriptor definition. Like anomaly metric, alert metric and search UI metric.
|
|
300
|
+
* @return {KVPair[]}
|
|
301
|
+
*/
|
|
302
|
+
getAdditionalProperties() {
|
|
303
|
+
return this.additionalProperties;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Sets Additional properties for metric descriptor definition. Like anomaly metric, alert metric and search UI metric.
|
|
308
|
+
* @param {KVPair[]} additionalProperties Additional properties for metric descriptor definition. Like anomaly metric, alert metric and search UI metric.
|
|
309
|
+
*/
|
|
310
|
+
setAdditionalProperties(additionalProperties) {
|
|
311
|
+
this.additionalProperties = additionalProperties;
|
|
312
|
+
}
|
|
313
|
+
get$Reserved() {
|
|
314
|
+
return this.$reserved;
|
|
315
|
+
}
|
|
316
|
+
get$ObjectType() {
|
|
317
|
+
return this.$objectType;
|
|
318
|
+
}
|
|
319
|
+
get$UnknownFields() {
|
|
320
|
+
return this.$unknownFields;
|
|
321
|
+
}
|
|
322
|
+
toJson(forMutation) {
|
|
323
|
+
if (forMutation === false) {
|
|
324
|
+
return {
|
|
325
|
+
...(typeof this.getIsAttribute() !== 'undefined' && this.getIsAttribute() !== null ? {
|
|
315
326
|
'isAttribute': this.getIsAttribute()
|
|
316
|
-
} : {}),
|
|
327
|
+
} : {}),
|
|
328
|
+
...(typeof this.getIsAttributePersistedAsTimeSeries() !== 'undefined' && this.getIsAttributePersistedAsTimeSeries() !== null ? {
|
|
317
329
|
'isAttributePersistedAsTimeSeries': this.getIsAttributePersistedAsTimeSeries()
|
|
318
|
-
} : {}),
|
|
330
|
+
} : {}),
|
|
331
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
319
332
|
'name': this.getName()
|
|
320
|
-
} : {}),
|
|
333
|
+
} : {}),
|
|
334
|
+
...(typeof this.getDisplayName() !== 'undefined' && this.getDisplayName() !== null ? {
|
|
321
335
|
'displayName': this.getDisplayName()
|
|
322
|
-
} : {}),
|
|
336
|
+
} : {}),
|
|
337
|
+
...(typeof this.getValueType() !== 'undefined' && this.getValueType() !== null ? {
|
|
323
338
|
'valueType': this.getValueType()
|
|
324
|
-
} : {}),
|
|
339
|
+
} : {}),
|
|
340
|
+
...(typeof this.getValueRange() !== 'undefined' && this.getValueRange() !== null ? {
|
|
325
341
|
'valueRange': this.getValueRange().toJson(false)
|
|
326
|
-
} : {}),
|
|
342
|
+
} : {}),
|
|
343
|
+
...(typeof this.getDefaultValue() !== 'undefined' && this.getDefaultValue() !== null ? {
|
|
327
344
|
'defaultValue': this.getDefaultValue()
|
|
328
|
-
} : {}),
|
|
345
|
+
} : {}),
|
|
346
|
+
...(typeof this.getUnit() !== 'undefined' && this.getUnit() !== null ? {
|
|
329
347
|
'unit': this.getUnit()
|
|
330
|
-
} : {}),
|
|
348
|
+
} : {}),
|
|
349
|
+
...(typeof this.getSamplingIntervalSecs() !== 'undefined' && this.getSamplingIntervalSecs() !== null ? {
|
|
331
350
|
'samplingIntervalSecs': this.getSamplingIntervalSecs()
|
|
332
|
-
} : {}),
|
|
351
|
+
} : {}),
|
|
352
|
+
...(typeof this.getDownsamplingOperator() !== 'undefined' && this.getDownsamplingOperator() !== null ? {
|
|
333
353
|
'downsamplingOperator': this.getDownsamplingOperator()
|
|
334
|
-
} : {}),
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
354
|
+
} : {}),
|
|
355
|
+
...(typeof this.getAdditionalProperties() !== 'undefined' && this.getAdditionalProperties() !== null ? {
|
|
356
|
+
'additionalProperties': this.getAdditionalProperties().map(item => item.toJson(false))
|
|
357
|
+
} : {}),
|
|
358
|
+
'$reserved': this.get$Reserved(),
|
|
359
|
+
'$objectType': this.get$ObjectType(),
|
|
360
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
361
|
+
'$unknownFields': {}
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
return {
|
|
365
|
+
...(typeof this.getIsAttribute() !== 'undefined' && this.getIsAttribute() !== null ? {
|
|
345
366
|
'isAttribute': this.getIsAttribute()
|
|
346
|
-
} : {}),
|
|
367
|
+
} : {}),
|
|
368
|
+
...(typeof this.getIsAttributePersistedAsTimeSeries() !== 'undefined' && this.getIsAttributePersistedAsTimeSeries() !== null ? {
|
|
347
369
|
'isAttributePersistedAsTimeSeries': this.getIsAttributePersistedAsTimeSeries()
|
|
348
|
-
} : {}),
|
|
370
|
+
} : {}),
|
|
371
|
+
...(typeof this.getName() !== 'undefined' && this.getName() !== null ? {
|
|
349
372
|
'name': this.getName()
|
|
350
|
-
} : {}),
|
|
373
|
+
} : {}),
|
|
374
|
+
...(typeof this.getDisplayName() !== 'undefined' && this.getDisplayName() !== null ? {
|
|
351
375
|
'displayName': this.getDisplayName()
|
|
352
|
-
} : {}),
|
|
376
|
+
} : {}),
|
|
377
|
+
...(typeof this.getValueType() !== 'undefined' && this.getValueType() !== null ? {
|
|
353
378
|
'valueType': this.getValueType()
|
|
354
|
-
} : {}),
|
|
379
|
+
} : {}),
|
|
380
|
+
...(typeof this.getValueRange() !== 'undefined' && this.getValueRange() !== null ? {
|
|
355
381
|
'valueRange': this.getValueRange().toJson(false)
|
|
356
|
-
} : {}),
|
|
382
|
+
} : {}),
|
|
383
|
+
...(typeof this.getDefaultValue() !== 'undefined' && this.getDefaultValue() !== null ? {
|
|
357
384
|
'defaultValue': this.getDefaultValue()
|
|
358
|
-
} : {}),
|
|
385
|
+
} : {}),
|
|
386
|
+
...(typeof this.getUnit() !== 'undefined' && this.getUnit() !== null ? {
|
|
359
387
|
'unit': this.getUnit()
|
|
360
|
-
} : {}),
|
|
388
|
+
} : {}),
|
|
389
|
+
...(typeof this.getSamplingIntervalSecs() !== 'undefined' && this.getSamplingIntervalSecs() !== null ? {
|
|
361
390
|
'samplingIntervalSecs': this.getSamplingIntervalSecs()
|
|
362
|
-
} : {}),
|
|
391
|
+
} : {}),
|
|
392
|
+
...(typeof this.getDownsamplingOperator() !== 'undefined' && this.getDownsamplingOperator() !== null ? {
|
|
363
393
|
'downsamplingOperator': this.getDownsamplingOperator()
|
|
364
|
-
} : {}),
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
394
|
+
} : {}),
|
|
395
|
+
...(typeof this.getAdditionalProperties() !== 'undefined' && this.getAdditionalProperties() !== null ? {
|
|
396
|
+
'additionalProperties': this.getAdditionalProperties().map(item => item.toJson(false))
|
|
397
|
+
} : {}),
|
|
398
|
+
'$reserved': this.get$Reserved(),
|
|
399
|
+
'$objectType': this.get$ObjectType(),
|
|
400
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
401
|
+
'$unknownFields': {}
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
validate(scope, properties) {
|
|
405
|
+
let propList = [];
|
|
406
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
407
|
+
//cases validate() and validate(scope)
|
|
408
|
+
propList = [];
|
|
409
|
+
} else if (arguments.length === 1) {
|
|
410
|
+
//case validate(properties)
|
|
411
|
+
propList = arguments[0];
|
|
412
|
+
scope = null;
|
|
413
|
+
} else {
|
|
414
|
+
//case validate(scope, properties)
|
|
415
|
+
propList = arguments[1];
|
|
373
416
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
scope = null;
|
|
417
|
+
let res = [];
|
|
418
|
+
let err = null;
|
|
419
|
+
propList.forEach(property => {
|
|
420
|
+
err = this.validateProperty(property, scope);
|
|
421
|
+
if (err) {
|
|
422
|
+
res.push(err);
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
return new Promise(function (resolve, reject) {
|
|
426
|
+
if (res.length !== 0) {
|
|
427
|
+
reject(err);
|
|
386
428
|
} else {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
return new Promise(function (resolve, reject) {
|
|
399
|
-
if (res.length !== 0) {
|
|
400
|
-
reject(err);
|
|
401
|
-
} else {
|
|
402
|
-
resolve();
|
|
403
|
-
}
|
|
404
|
-
});
|
|
429
|
+
resolve();
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
validateProperty(scope, property) {
|
|
434
|
+
if (property === "isAttribute") {
|
|
435
|
+
if (typeof this.isAttribute === 'undefined' || this.isAttribute === null) {
|
|
436
|
+
return new _ValidationError.default("isAttribute", "undefined or null");
|
|
437
|
+
}
|
|
405
438
|
}
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
if (property === "isAttribute") {
|
|
410
|
-
if (typeof this.isAttribute === 'undefined' || this.isAttribute === null) {
|
|
411
|
-
return new _ValidationError["default"]("isAttribute", "undefined or null");
|
|
412
|
-
}
|
|
439
|
+
if (property === "isAttributePersistedAsTimeSeries") {
|
|
440
|
+
if (typeof this.isAttributePersistedAsTimeSeries === 'undefined' || this.isAttributePersistedAsTimeSeries === null) {
|
|
441
|
+
return new _ValidationError.default("isAttributePersistedAsTimeSeries", "undefined or null");
|
|
413
442
|
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
443
|
+
}
|
|
444
|
+
if (property === "name") {
|
|
445
|
+
if (typeof this.name === 'undefined' || this.name === null) {
|
|
446
|
+
return new _ValidationError.default("name", "undefined or null");
|
|
418
447
|
}
|
|
419
|
-
if (
|
|
420
|
-
|
|
421
|
-
return new _ValidationError["default"]("name", "undefined or null");
|
|
422
|
-
}
|
|
423
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.name, 50)) {
|
|
424
|
-
return new _ValidationError["default"]("name", "does not satisfy required maxLength constraint: 50");
|
|
425
|
-
}
|
|
448
|
+
if (!_ValidationUtils.default.validateMaxLength(this.name, 50)) {
|
|
449
|
+
return new _ValidationError.default("name", "does not satisfy required maxLength constraint: 50");
|
|
426
450
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
if (!_ValidationUtils["default"].validateMaxLength(this.displayName, 50)) {
|
|
432
|
-
return new _ValidationError["default"]("displayName", "does not satisfy required maxLength constraint: 50");
|
|
433
|
-
}
|
|
451
|
+
}
|
|
452
|
+
if (property === "displayName") {
|
|
453
|
+
if (typeof this.displayName === 'undefined' || this.displayName === null) {
|
|
454
|
+
return new _ValidationError.default("displayName", "undefined or null");
|
|
434
455
|
}
|
|
435
|
-
if (
|
|
436
|
-
|
|
437
|
-
return new _ValidationError["default"]("valueType", "undefined or null");
|
|
438
|
-
}
|
|
456
|
+
if (!_ValidationUtils.default.validateMaxLength(this.displayName, 50)) {
|
|
457
|
+
return new _ValidationError.default("displayName", "does not satisfy required maxLength constraint: 50");
|
|
439
458
|
}
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
459
|
+
}
|
|
460
|
+
if (property === "valueType") {
|
|
461
|
+
if (typeof this.valueType === 'undefined' || this.valueType === null) {
|
|
462
|
+
return new _ValidationError.default("valueType", "undefined or null");
|
|
444
463
|
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
464
|
+
}
|
|
465
|
+
if (property === "valueRange") {
|
|
466
|
+
if (typeof this.valueRange === 'undefined' || this.valueRange === null) {
|
|
467
|
+
return new _ValidationError.default("valueRange", "undefined or null");
|
|
449
468
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
469
|
+
}
|
|
470
|
+
if (property === "defaultValue") {
|
|
471
|
+
if (typeof this.defaultValue === 'undefined' || this.defaultValue === null) {
|
|
472
|
+
return new _ValidationError.default("defaultValue", "undefined or null");
|
|
454
473
|
}
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
474
|
+
}
|
|
475
|
+
if (property === "unit") {
|
|
476
|
+
if (typeof this.unit === 'undefined' || this.unit === null) {
|
|
477
|
+
return new _ValidationError.default("unit", "undefined or null");
|
|
459
478
|
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
479
|
+
}
|
|
480
|
+
if (property === "samplingIntervalSecs") {
|
|
481
|
+
if (typeof this.samplingIntervalSecs === 'undefined' || this.samplingIntervalSecs === null) {
|
|
482
|
+
return new _ValidationError.default("samplingIntervalSecs", "undefined or null");
|
|
464
483
|
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
if (!_ValidationUtils["default"].validateMaxItems(this.additionalProperties, 100)) {
|
|
470
|
-
return new _ValidationError["default"]("additionalProperties", "does not satisfy required maxItems constraint: 100");
|
|
471
|
-
}
|
|
484
|
+
}
|
|
485
|
+
if (property === "downsamplingOperator") {
|
|
486
|
+
if (typeof this.downsamplingOperator === 'undefined' || this.downsamplingOperator === null) {
|
|
487
|
+
return new _ValidationError.default("downsamplingOperator", "undefined or null");
|
|
472
488
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
489
|
+
}
|
|
490
|
+
if (property === "additionalProperties") {
|
|
491
|
+
if (typeof this.additionalProperties === 'undefined' || this.additionalProperties === null) {
|
|
492
|
+
return new _ValidationError.default("additionalProperties", "undefined or null");
|
|
477
493
|
}
|
|
478
|
-
if (
|
|
479
|
-
|
|
480
|
-
return new _ValidationError["default"]("$objectType", "undefined or null");
|
|
481
|
-
}
|
|
494
|
+
if (!_ValidationUtils.default.validateMaxItems(this.additionalProperties, 100)) {
|
|
495
|
+
return new _ValidationError.default("additionalProperties", "does not satisfy required maxItems constraint: 100");
|
|
482
496
|
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
497
|
+
}
|
|
498
|
+
if (property === "$reserved") {
|
|
499
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
500
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
487
501
|
}
|
|
488
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
489
502
|
}
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
494
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
495
|
-
var items, item, i, itemArr, discriminator;
|
|
496
|
-
if (data) {
|
|
497
|
-
obj = obj || new MetricDescriptor();
|
|
498
|
-
if (data.hasOwnProperty('isAttribute') && data.isAttribute !== null && data.isAttribute !== undefined) {
|
|
499
|
-
obj.setIsAttribute(data['isAttribute']);
|
|
500
|
-
}
|
|
501
|
-
if (data.hasOwnProperty('isAttributePersistedAsTimeSeries') && data.isAttributePersistedAsTimeSeries !== null && data.isAttributePersistedAsTimeSeries !== undefined) {
|
|
502
|
-
obj.setIsAttributePersistedAsTimeSeries(data['isAttributePersistedAsTimeSeries']);
|
|
503
|
-
}
|
|
504
|
-
if (data.hasOwnProperty('name') && data.name !== null && data.name !== undefined) {
|
|
505
|
-
obj.setName(data['name']);
|
|
506
|
-
}
|
|
507
|
-
if (data.hasOwnProperty('displayName') && data.displayName !== null && data.displayName !== undefined) {
|
|
508
|
-
obj.setDisplayName(data['displayName']);
|
|
509
|
-
}
|
|
510
|
-
if (data.hasOwnProperty('valueType') && data.valueType !== null && data.valueType !== undefined) {
|
|
511
|
-
obj.setValueType(_ValueType["default"].constructFromObject(data['valueType']));
|
|
512
|
-
}
|
|
513
|
-
if (data.hasOwnProperty('valueRange') && data.valueRange !== null && data.valueRange !== undefined) {
|
|
514
|
-
obj.setValueRange(_ValueRange["default"].constructFromObject(data['valueRange']));
|
|
515
|
-
}
|
|
516
|
-
if (data.hasOwnProperty('defaultValue') && data.defaultValue !== null && data.defaultValue !== undefined) {
|
|
517
|
-
obj.setDefaultValue(data['defaultValue']);
|
|
518
|
-
}
|
|
519
|
-
if (data.hasOwnProperty('unit') && data.unit !== null && data.unit !== undefined) {
|
|
520
|
-
obj.setUnit(data['unit']);
|
|
521
|
-
}
|
|
522
|
-
if (data.hasOwnProperty('samplingIntervalSecs') && data.samplingIntervalSecs !== null && data.samplingIntervalSecs !== undefined) {
|
|
523
|
-
obj.setSamplingIntervalSecs(data['samplingIntervalSecs']);
|
|
524
|
-
}
|
|
525
|
-
if (data.hasOwnProperty('downsamplingOperator') && data.downsamplingOperator !== null && data.downsamplingOperator !== undefined) {
|
|
526
|
-
obj.setDownsamplingOperator(_DownSamplingOperator["default"].constructFromObject(data['downsamplingOperator']));
|
|
527
|
-
}
|
|
528
|
-
if (data.hasOwnProperty('additionalProperties') && data.additionalProperties !== null && data.additionalProperties !== undefined) {
|
|
529
|
-
itemArr = [];
|
|
530
|
-
items = data.additionalProperties;
|
|
531
|
-
for (i = 0; i < items.length; i++) {
|
|
532
|
-
item = _KVPair["default"].constructFromObject(items[i], undefined);
|
|
533
|
-
itemArr.push(item);
|
|
534
|
-
}
|
|
535
|
-
obj.setAdditionalProperties(itemArr);
|
|
536
|
-
}
|
|
537
|
-
if (data.hasOwnProperty('$reserved')) {
|
|
538
|
-
obj.$reserved = data['$reserved'];
|
|
539
|
-
}
|
|
540
|
-
if (data.hasOwnProperty('$objectType')) {
|
|
541
|
-
obj.$objectType = data['$objectType'];
|
|
542
|
-
}
|
|
543
|
-
if (data.hasOwnProperty('$unknownFields')) {
|
|
544
|
-
obj.$unknownFields = data['$unknownFields'];
|
|
545
|
-
}
|
|
546
|
-
if (!callFromChild) {
|
|
547
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
548
|
-
for (var property in data) {
|
|
549
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
550
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
551
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
552
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
553
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
554
|
-
obj.$unknownFields[property] = data[property];
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
}
|
|
503
|
+
if (property === "$objectType") {
|
|
504
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
505
|
+
return new _ValidationError.default("$objectType", "undefined or null");
|
|
558
506
|
}
|
|
559
|
-
return obj;
|
|
560
507
|
}
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
* @returns {string} - The converted string in camelCase format.
|
|
566
|
-
*/
|
|
567
|
-
}, {
|
|
568
|
-
key: "snakeToCamel",
|
|
569
|
-
value: function snakeToCamel(snakeStr) {
|
|
570
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
571
|
-
return match[1].toUpperCase();
|
|
572
|
-
});
|
|
508
|
+
if (property === "$unknownFields") {
|
|
509
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
510
|
+
return new _ValidationError.default("$unknownFields", "undefined or null");
|
|
511
|
+
}
|
|
573
512
|
}
|
|
574
|
-
|
|
575
|
-
}
|
|
513
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
|
|
576
517
|
/**
|
|
577
518
|
* Indicates whether it is an attribute or not.
|
|
578
519
|
* @memberof MetricDescriptor
|
|
579
520
|
*/
|
|
521
|
+
exports.default = MetricDescriptor;
|
|
580
522
|
function _toJsonMapType(obj, forMutation) {
|
|
581
523
|
if (obj instanceof Map) {
|
|
582
|
-
return Object.fromEntries(Array.from(obj,
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
v = _ref2[1];
|
|
586
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
587
|
-
}));
|
|
588
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
589
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
524
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
525
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
526
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
590
527
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
591
528
|
}));
|
|
592
529
|
}
|