@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,36 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _ReplicationFactor = _interopRequireDefault(require("./ReplicationFactor"));
|
|
8
8
|
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
9
9
|
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
10
10
|
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
12
|
-
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); }
|
|
13
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
14
|
-
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."); }
|
|
15
|
-
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; } }
|
|
16
|
-
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; }
|
|
17
|
-
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; } }
|
|
18
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
19
|
-
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; }
|
|
20
|
-
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; }
|
|
21
|
-
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; }
|
|
22
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
23
|
-
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); } }
|
|
24
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
25
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
26
|
-
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); }
|
|
11
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
27
12
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
28
13
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
29
14
|
* Nutanix AIOps APIs
|
|
30
15
|
*
|
|
31
|
-
* OpenAPI spec version: 4.
|
|
16
|
+
* OpenAPI spec version: 4.2.1-beta-1
|
|
32
17
|
*
|
|
33
18
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
34
19
|
*
|
|
35
|
-
* Open API Dev Platform Codegen version: 17.
|
|
20
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
36
21
|
*
|
|
37
22
|
* Do not edit the class manually.
|
|
38
23
|
*
|
|
@@ -40,7 +25,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
40
25
|
/**
|
|
41
26
|
* The DataStoreConfig model module.
|
|
42
27
|
* @module Ntnx/DataStoreConfig
|
|
43
|
-
* @version 4.
|
|
28
|
+
* @version 4.2.1-beta-1
|
|
44
29
|
* @class DataStoreConfig
|
|
45
30
|
*
|
|
46
31
|
* @param { ReplicationFactor } replicationFactor
|
|
@@ -64,7 +49,7 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
64
49
|
* @param { Number } storageReservationPercentage Storage reservation percentage.
|
|
65
50
|
*/
|
|
66
51
|
var _DataStoreConfig_brand = /*#__PURE__*/new WeakSet();
|
|
67
|
-
|
|
52
|
+
class DataStoreConfig {
|
|
68
53
|
/**
|
|
69
54
|
* Constructs a new <code>DataStoreConfig</code>.
|
|
70
55
|
* The data store configuration. For example, compression saving percentage, CPU over-commit ratio and so on.
|
|
@@ -90,8 +75,7 @@ var DataStoreConfig = exports["default"] = /*#__PURE__*/function () {
|
|
|
90
75
|
*
|
|
91
76
|
* @param { Number } storageReservationPercentage Storage reservation percentage.
|
|
92
77
|
*/
|
|
93
|
-
|
|
94
|
-
_classCallCheck(this, DataStoreConfig);
|
|
78
|
+
constructor(replicationFactor, compressionSavingPercent, dedupSavingPercent, erasureCodingSavingPercent, overallSavingPercent, cpuOverCommitRatio, ramOverCommitRatio, cpuReservationPercentage, ramReservationPercentage, storageReservationPercentage) {
|
|
95
79
|
/*
|
|
96
80
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
97
81
|
* @param {Object} obj
|
|
@@ -112,7 +96,7 @@ var DataStoreConfig = exports["default"] = /*#__PURE__*/function () {
|
|
|
112
96
|
this.$objectType = "aiops.v4.config.DataStoreConfig";
|
|
113
97
|
/** @type {object<string, any>} */
|
|
114
98
|
this.$reserved = {
|
|
115
|
-
'$fv': "v4.
|
|
99
|
+
'$fv': "v4.r2.b1"
|
|
116
100
|
};
|
|
117
101
|
/** @type {object<string, any>} */
|
|
118
102
|
this.$unknownFields = {};
|
|
@@ -126,467 +110,426 @@ var DataStoreConfig = exports["default"] = /*#__PURE__*/function () {
|
|
|
126
110
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
127
111
|
* @return {module:Ntnx/DataStoreConfig} The populated <code>DataStoreConfig</code> instance.
|
|
128
112
|
*/
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
113
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
114
|
+
let items, item, i, itemArr, discriminator;
|
|
115
|
+
if (data) {
|
|
116
|
+
obj = obj || new DataStoreConfig();
|
|
117
|
+
if (data.hasOwnProperty('replicationFactor') && data.replicationFactor !== null && data.replicationFactor !== undefined) {
|
|
118
|
+
obj.setReplicationFactor(_ReplicationFactor.default.constructFromObject(data['replicationFactor']));
|
|
119
|
+
}
|
|
120
|
+
if (data.hasOwnProperty('compressionSavingPercent') && data.compressionSavingPercent !== null && data.compressionSavingPercent !== undefined) {
|
|
121
|
+
obj.setCompressionSavingPercent(data['compressionSavingPercent']);
|
|
122
|
+
}
|
|
123
|
+
if (data.hasOwnProperty('dedupSavingPercent') && data.dedupSavingPercent !== null && data.dedupSavingPercent !== undefined) {
|
|
124
|
+
obj.setDedupSavingPercent(data['dedupSavingPercent']);
|
|
125
|
+
}
|
|
126
|
+
if (data.hasOwnProperty('erasureCodingSavingPercent') && data.erasureCodingSavingPercent !== null && data.erasureCodingSavingPercent !== undefined) {
|
|
127
|
+
obj.setErasureCodingSavingPercent(data['erasureCodingSavingPercent']);
|
|
128
|
+
}
|
|
129
|
+
if (data.hasOwnProperty('overallSavingPercent') && data.overallSavingPercent !== null && data.overallSavingPercent !== undefined) {
|
|
130
|
+
obj.setOverallSavingPercent(data['overallSavingPercent']);
|
|
131
|
+
}
|
|
132
|
+
if (data.hasOwnProperty('cpuOverCommitRatio') && data.cpuOverCommitRatio !== null && data.cpuOverCommitRatio !== undefined) {
|
|
133
|
+
obj.setCpuOverCommitRatio(data['cpuOverCommitRatio']);
|
|
134
|
+
}
|
|
135
|
+
if (data.hasOwnProperty('ramOverCommitRatio') && data.ramOverCommitRatio !== null && data.ramOverCommitRatio !== undefined) {
|
|
136
|
+
obj.setRamOverCommitRatio(data['ramOverCommitRatio']);
|
|
137
|
+
}
|
|
138
|
+
if (data.hasOwnProperty('cpuReservationPercentage') && data.cpuReservationPercentage !== null && data.cpuReservationPercentage !== undefined) {
|
|
139
|
+
obj.setCpuReservationPercentage(data['cpuReservationPercentage']);
|
|
140
|
+
}
|
|
141
|
+
if (data.hasOwnProperty('ramReservationPercentage') && data.ramReservationPercentage !== null && data.ramReservationPercentage !== undefined) {
|
|
142
|
+
obj.setRamReservationPercentage(data['ramReservationPercentage']);
|
|
143
|
+
}
|
|
144
|
+
if (data.hasOwnProperty('storageReservationPercentage') && data.storageReservationPercentage !== null && data.storageReservationPercentage !== undefined) {
|
|
145
|
+
obj.setStorageReservationPercentage(data['storageReservationPercentage']);
|
|
146
|
+
}
|
|
147
|
+
if (data.hasOwnProperty('$reserved')) {
|
|
148
|
+
obj.$reserved = data['$reserved'];
|
|
149
|
+
}
|
|
150
|
+
if (data.hasOwnProperty('$objectType')) {
|
|
151
|
+
obj.$objectType = data['$objectType'];
|
|
152
|
+
}
|
|
153
|
+
if (data.hasOwnProperty('$unknownFields')) {
|
|
154
|
+
obj.$unknownFields = data['$unknownFields'];
|
|
155
|
+
}
|
|
156
|
+
if (!callFromChild) {
|
|
157
|
+
obj.$unknownFields = {
|
|
158
|
+
...data.$unknownFields
|
|
159
|
+
};
|
|
160
|
+
for (const property in data) {
|
|
161
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
162
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
163
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
164
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
165
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
166
|
+
obj.$unknownFields[property] = data[property];
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
137
170
|
}
|
|
171
|
+
return obj;
|
|
172
|
+
}
|
|
138
173
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
174
|
+
/**
|
|
175
|
+
* Converts a given snake_case string to camelCase.
|
|
176
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
177
|
+
* @returns {string} - The converted string in camelCase format.
|
|
178
|
+
*/
|
|
179
|
+
static snakeToCamel(snakeStr) {
|
|
180
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
181
|
+
}
|
|
147
182
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
value: function getCompressionSavingPercent() {
|
|
155
|
-
return this.compressionSavingPercent;
|
|
156
|
-
}
|
|
183
|
+
/**
|
|
184
|
+
* @return {ReplicationFactor}
|
|
185
|
+
*/
|
|
186
|
+
getReplicationFactor() {
|
|
187
|
+
return this.replicationFactor;
|
|
188
|
+
}
|
|
157
189
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
value: function setCompressionSavingPercent(compressionSavingPercent) {
|
|
165
|
-
this.compressionSavingPercent = compressionSavingPercent;
|
|
166
|
-
}
|
|
190
|
+
/**
|
|
191
|
+
* @param {ReplicationFactor} replicationFactor
|
|
192
|
+
*/
|
|
193
|
+
setReplicationFactor(replicationFactor) {
|
|
194
|
+
this.replicationFactor = replicationFactor;
|
|
195
|
+
}
|
|
167
196
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
return this.dedupSavingPercent;
|
|
176
|
-
}
|
|
197
|
+
/**
|
|
198
|
+
* Returns Compression saving percentage of the cluster resources.
|
|
199
|
+
* @return {Number}
|
|
200
|
+
*/
|
|
201
|
+
getCompressionSavingPercent() {
|
|
202
|
+
return this.compressionSavingPercent;
|
|
203
|
+
}
|
|
177
204
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
this.dedupSavingPercent = dedupSavingPercent;
|
|
186
|
-
}
|
|
205
|
+
/**
|
|
206
|
+
* Sets Compression saving percentage of the cluster resources.
|
|
207
|
+
* @param {Number} compressionSavingPercent Compression saving percentage of the cluster resources.
|
|
208
|
+
*/
|
|
209
|
+
setCompressionSavingPercent(compressionSavingPercent) {
|
|
210
|
+
this.compressionSavingPercent = compressionSavingPercent;
|
|
211
|
+
}
|
|
187
212
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return this.erasureCodingSavingPercent;
|
|
196
|
-
}
|
|
213
|
+
/**
|
|
214
|
+
* Returns De-dupe saving percentage of the cluster resources.
|
|
215
|
+
* @return {Number}
|
|
216
|
+
*/
|
|
217
|
+
getDedupSavingPercent() {
|
|
218
|
+
return this.dedupSavingPercent;
|
|
219
|
+
}
|
|
197
220
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
this.erasureCodingSavingPercent = erasureCodingSavingPercent;
|
|
206
|
-
}
|
|
221
|
+
/**
|
|
222
|
+
* Sets De-dupe saving percentage of the cluster resources.
|
|
223
|
+
* @param {Number} dedupSavingPercent De-dupe saving percentage of the cluster resources.
|
|
224
|
+
*/
|
|
225
|
+
setDedupSavingPercent(dedupSavingPercent) {
|
|
226
|
+
this.dedupSavingPercent = dedupSavingPercent;
|
|
227
|
+
}
|
|
207
228
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
return this.overallSavingPercent;
|
|
216
|
-
}
|
|
229
|
+
/**
|
|
230
|
+
* Returns Erasure coding saving percentage of the cluster resources.
|
|
231
|
+
* @return {Number}
|
|
232
|
+
*/
|
|
233
|
+
getErasureCodingSavingPercent() {
|
|
234
|
+
return this.erasureCodingSavingPercent;
|
|
235
|
+
}
|
|
217
236
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
this.overallSavingPercent = overallSavingPercent;
|
|
226
|
-
}
|
|
237
|
+
/**
|
|
238
|
+
* Sets Erasure coding saving percentage of the cluster resources.
|
|
239
|
+
* @param {Number} erasureCodingSavingPercent Erasure coding saving percentage of the cluster resources.
|
|
240
|
+
*/
|
|
241
|
+
setErasureCodingSavingPercent(erasureCodingSavingPercent) {
|
|
242
|
+
this.erasureCodingSavingPercent = erasureCodingSavingPercent;
|
|
243
|
+
}
|
|
227
244
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
return this.cpuOverCommitRatio;
|
|
236
|
-
}
|
|
245
|
+
/**
|
|
246
|
+
* Returns Overall saving percentage of the cluster resources.
|
|
247
|
+
* @return {Number}
|
|
248
|
+
*/
|
|
249
|
+
getOverallSavingPercent() {
|
|
250
|
+
return this.overallSavingPercent;
|
|
251
|
+
}
|
|
237
252
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
this.cpuOverCommitRatio = cpuOverCommitRatio;
|
|
246
|
-
}
|
|
253
|
+
/**
|
|
254
|
+
* Sets Overall saving percentage of the cluster resources.
|
|
255
|
+
* @param {Number} overallSavingPercent Overall saving percentage of the cluster resources.
|
|
256
|
+
*/
|
|
257
|
+
setOverallSavingPercent(overallSavingPercent) {
|
|
258
|
+
this.overallSavingPercent = overallSavingPercent;
|
|
259
|
+
}
|
|
247
260
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
return this.ramOverCommitRatio;
|
|
256
|
-
}
|
|
261
|
+
/**
|
|
262
|
+
* Returns CPU overcommit ratio.
|
|
263
|
+
* @return {Number}
|
|
264
|
+
*/
|
|
265
|
+
getCpuOverCommitRatio() {
|
|
266
|
+
return this.cpuOverCommitRatio;
|
|
267
|
+
}
|
|
257
268
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
this.ramOverCommitRatio = ramOverCommitRatio;
|
|
266
|
-
}
|
|
269
|
+
/**
|
|
270
|
+
* Sets CPU overcommit ratio.
|
|
271
|
+
* @param {Number} cpuOverCommitRatio CPU overcommit ratio.
|
|
272
|
+
*/
|
|
273
|
+
setCpuOverCommitRatio(cpuOverCommitRatio) {
|
|
274
|
+
this.cpuOverCommitRatio = cpuOverCommitRatio;
|
|
275
|
+
}
|
|
267
276
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
return this.cpuReservationPercentage;
|
|
276
|
-
}
|
|
277
|
+
/**
|
|
278
|
+
* Returns RAM overcommit ratio.
|
|
279
|
+
* @return {Number}
|
|
280
|
+
*/
|
|
281
|
+
getRamOverCommitRatio() {
|
|
282
|
+
return this.ramOverCommitRatio;
|
|
283
|
+
}
|
|
277
284
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
this.cpuReservationPercentage = cpuReservationPercentage;
|
|
286
|
-
}
|
|
285
|
+
/**
|
|
286
|
+
* Sets RAM overcommit ratio.
|
|
287
|
+
* @param {Number} ramOverCommitRatio RAM overcommit ratio.
|
|
288
|
+
*/
|
|
289
|
+
setRamOverCommitRatio(ramOverCommitRatio) {
|
|
290
|
+
this.ramOverCommitRatio = ramOverCommitRatio;
|
|
291
|
+
}
|
|
287
292
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
return this.ramReservationPercentage;
|
|
296
|
-
}
|
|
293
|
+
/**
|
|
294
|
+
* Returns CPU reservation percentage.
|
|
295
|
+
* @return {Number}
|
|
296
|
+
*/
|
|
297
|
+
getCpuReservationPercentage() {
|
|
298
|
+
return this.cpuReservationPercentage;
|
|
299
|
+
}
|
|
297
300
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
this.ramReservationPercentage = ramReservationPercentage;
|
|
306
|
-
}
|
|
301
|
+
/**
|
|
302
|
+
* Sets CPU reservation percentage.
|
|
303
|
+
* @param {Number} cpuReservationPercentage CPU reservation percentage.
|
|
304
|
+
*/
|
|
305
|
+
setCpuReservationPercentage(cpuReservationPercentage) {
|
|
306
|
+
this.cpuReservationPercentage = cpuReservationPercentage;
|
|
307
|
+
}
|
|
307
308
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
return this.storageReservationPercentage;
|
|
316
|
-
}
|
|
309
|
+
/**
|
|
310
|
+
* Returns RAM reservation percentage.
|
|
311
|
+
* @return {Number}
|
|
312
|
+
*/
|
|
313
|
+
getRamReservationPercentage() {
|
|
314
|
+
return this.ramReservationPercentage;
|
|
315
|
+
}
|
|
317
316
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
317
|
+
/**
|
|
318
|
+
* Sets RAM reservation percentage.
|
|
319
|
+
* @param {Number} ramReservationPercentage RAM reservation percentage.
|
|
320
|
+
*/
|
|
321
|
+
setRamReservationPercentage(ramReservationPercentage) {
|
|
322
|
+
this.ramReservationPercentage = ramReservationPercentage;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Returns Storage reservation percentage.
|
|
327
|
+
* @return {Number}
|
|
328
|
+
*/
|
|
329
|
+
getStorageReservationPercentage() {
|
|
330
|
+
return this.storageReservationPercentage;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Sets Storage reservation percentage.
|
|
335
|
+
* @param {Number} storageReservationPercentage Storage reservation percentage.
|
|
336
|
+
*/
|
|
337
|
+
setStorageReservationPercentage(storageReservationPercentage) {
|
|
338
|
+
this.storageReservationPercentage = storageReservationPercentage;
|
|
339
|
+
}
|
|
340
|
+
get$Reserved() {
|
|
341
|
+
return this.$reserved;
|
|
342
|
+
}
|
|
343
|
+
get$ObjectType() {
|
|
344
|
+
return this.$objectType;
|
|
345
|
+
}
|
|
346
|
+
get$UnknownFields() {
|
|
347
|
+
return this.$unknownFields;
|
|
348
|
+
}
|
|
349
|
+
toJson(forMutation) {
|
|
350
|
+
if (forMutation === false) {
|
|
351
|
+
return {
|
|
352
|
+
...(typeof this.getReplicationFactor() !== 'undefined' && this.getReplicationFactor() !== null ? {
|
|
347
353
|
'replicationFactor': this.getReplicationFactor()
|
|
348
|
-
} : {}),
|
|
354
|
+
} : {}),
|
|
355
|
+
...(typeof this.getCompressionSavingPercent() !== 'undefined' && this.getCompressionSavingPercent() !== null ? {
|
|
349
356
|
'compressionSavingPercent': this.getCompressionSavingPercent()
|
|
350
|
-
} : {}),
|
|
357
|
+
} : {}),
|
|
358
|
+
...(typeof this.getDedupSavingPercent() !== 'undefined' && this.getDedupSavingPercent() !== null ? {
|
|
351
359
|
'dedupSavingPercent': this.getDedupSavingPercent()
|
|
352
|
-
} : {}),
|
|
360
|
+
} : {}),
|
|
361
|
+
...(typeof this.getErasureCodingSavingPercent() !== 'undefined' && this.getErasureCodingSavingPercent() !== null ? {
|
|
353
362
|
'erasureCodingSavingPercent': this.getErasureCodingSavingPercent()
|
|
354
|
-
} : {}),
|
|
363
|
+
} : {}),
|
|
364
|
+
...(typeof this.getOverallSavingPercent() !== 'undefined' && this.getOverallSavingPercent() !== null ? {
|
|
355
365
|
'overallSavingPercent': this.getOverallSavingPercent()
|
|
356
|
-
} : {}),
|
|
366
|
+
} : {}),
|
|
367
|
+
...(typeof this.getCpuOverCommitRatio() !== 'undefined' && this.getCpuOverCommitRatio() !== null ? {
|
|
357
368
|
'cpuOverCommitRatio': this.getCpuOverCommitRatio()
|
|
358
|
-
} : {}),
|
|
369
|
+
} : {}),
|
|
370
|
+
...(typeof this.getRamOverCommitRatio() !== 'undefined' && this.getRamOverCommitRatio() !== null ? {
|
|
359
371
|
'ramOverCommitRatio': this.getRamOverCommitRatio()
|
|
360
|
-
} : {}),
|
|
372
|
+
} : {}),
|
|
373
|
+
...(typeof this.getCpuReservationPercentage() !== 'undefined' && this.getCpuReservationPercentage() !== null ? {
|
|
361
374
|
'cpuReservationPercentage': this.getCpuReservationPercentage()
|
|
362
|
-
} : {}),
|
|
375
|
+
} : {}),
|
|
376
|
+
...(typeof this.getRamReservationPercentage() !== 'undefined' && this.getRamReservationPercentage() !== null ? {
|
|
363
377
|
'ramReservationPercentage': this.getRamReservationPercentage()
|
|
364
|
-
} : {}),
|
|
378
|
+
} : {}),
|
|
379
|
+
...(typeof this.getStorageReservationPercentage() !== 'undefined' && this.getStorageReservationPercentage() !== null ? {
|
|
365
380
|
'storageReservationPercentage': this.getStorageReservationPercentage()
|
|
366
|
-
} : {}),
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
|
|
381
|
+
} : {}),
|
|
382
|
+
'$reserved': this.get$Reserved(),
|
|
383
|
+
'$objectType': this.get$ObjectType(),
|
|
384
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
385
|
+
'$unknownFields': {}
|
|
386
|
+
};
|
|
387
|
+
}
|
|
388
|
+
return {
|
|
389
|
+
...(typeof this.getReplicationFactor() !== 'undefined' && this.getReplicationFactor() !== null ? {
|
|
373
390
|
'replicationFactor': this.getReplicationFactor()
|
|
374
|
-
} : {}),
|
|
391
|
+
} : {}),
|
|
392
|
+
...(typeof this.getCompressionSavingPercent() !== 'undefined' && this.getCompressionSavingPercent() !== null ? {
|
|
375
393
|
'compressionSavingPercent': this.getCompressionSavingPercent()
|
|
376
|
-
} : {}),
|
|
394
|
+
} : {}),
|
|
395
|
+
...(typeof this.getDedupSavingPercent() !== 'undefined' && this.getDedupSavingPercent() !== null ? {
|
|
377
396
|
'dedupSavingPercent': this.getDedupSavingPercent()
|
|
378
|
-
} : {}),
|
|
397
|
+
} : {}),
|
|
398
|
+
...(typeof this.getErasureCodingSavingPercent() !== 'undefined' && this.getErasureCodingSavingPercent() !== null ? {
|
|
379
399
|
'erasureCodingSavingPercent': this.getErasureCodingSavingPercent()
|
|
380
|
-
} : {}),
|
|
400
|
+
} : {}),
|
|
401
|
+
...(typeof this.getOverallSavingPercent() !== 'undefined' && this.getOverallSavingPercent() !== null ? {
|
|
381
402
|
'overallSavingPercent': this.getOverallSavingPercent()
|
|
382
|
-
} : {}),
|
|
403
|
+
} : {}),
|
|
404
|
+
...(typeof this.getCpuOverCommitRatio() !== 'undefined' && this.getCpuOverCommitRatio() !== null ? {
|
|
383
405
|
'cpuOverCommitRatio': this.getCpuOverCommitRatio()
|
|
384
|
-
} : {}),
|
|
406
|
+
} : {}),
|
|
407
|
+
...(typeof this.getRamOverCommitRatio() !== 'undefined' && this.getRamOverCommitRatio() !== null ? {
|
|
385
408
|
'ramOverCommitRatio': this.getRamOverCommitRatio()
|
|
386
|
-
} : {}),
|
|
409
|
+
} : {}),
|
|
410
|
+
...(typeof this.getCpuReservationPercentage() !== 'undefined' && this.getCpuReservationPercentage() !== null ? {
|
|
387
411
|
'cpuReservationPercentage': this.getCpuReservationPercentage()
|
|
388
|
-
} : {}),
|
|
412
|
+
} : {}),
|
|
413
|
+
...(typeof this.getRamReservationPercentage() !== 'undefined' && this.getRamReservationPercentage() !== null ? {
|
|
389
414
|
'ramReservationPercentage': this.getRamReservationPercentage()
|
|
390
|
-
} : {}),
|
|
415
|
+
} : {}),
|
|
416
|
+
...(typeof this.getStorageReservationPercentage() !== 'undefined' && this.getStorageReservationPercentage() !== null ? {
|
|
391
417
|
'storageReservationPercentage': this.getStorageReservationPercentage()
|
|
392
|
-
} : {}),
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
}
|
|
418
|
+
} : {}),
|
|
419
|
+
'$reserved': this.get$Reserved(),
|
|
420
|
+
'$objectType': this.get$ObjectType(),
|
|
421
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
422
|
+
'$unknownFields': {}
|
|
423
|
+
};
|
|
424
|
+
}
|
|
425
|
+
validate(scope, properties) {
|
|
426
|
+
let propList = [];
|
|
427
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
428
|
+
//cases validate() and validate(scope)
|
|
429
|
+
propList = ["replicationFactor", "compressionSavingPercent", "dedupSavingPercent", "erasureCodingSavingPercent", "overallSavingPercent", "cpuOverCommitRatio", "ramOverCommitRatio", "cpuReservationPercentage", "ramReservationPercentage", "storageReservationPercentage"];
|
|
430
|
+
} else if (arguments.length === 1) {
|
|
431
|
+
//case validate(properties)
|
|
432
|
+
propList = arguments[0];
|
|
433
|
+
scope = null;
|
|
434
|
+
} else {
|
|
435
|
+
//case validate(scope, properties)
|
|
436
|
+
propList = arguments[1];
|
|
397
437
|
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
//cases validate() and validate(scope)
|
|
405
|
-
propList = ["replicationFactor", "compressionSavingPercent", "dedupSavingPercent", "erasureCodingSavingPercent", "overallSavingPercent", "cpuOverCommitRatio", "ramOverCommitRatio", "cpuReservationPercentage", "ramReservationPercentage", "storageReservationPercentage"];
|
|
406
|
-
} else if (arguments.length === 1) {
|
|
407
|
-
//case validate(properties)
|
|
408
|
-
propList = arguments[0];
|
|
409
|
-
scope = null;
|
|
410
|
-
} else {
|
|
411
|
-
//case validate(scope, properties)
|
|
412
|
-
propList = arguments[1];
|
|
438
|
+
let res = [];
|
|
439
|
+
let err = null;
|
|
440
|
+
propList.forEach(property => {
|
|
441
|
+
err = this.validateProperty(property, scope);
|
|
442
|
+
if (err) {
|
|
443
|
+
res.push(err);
|
|
413
444
|
}
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
err
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
421
|
-
});
|
|
422
|
-
return new Promise(function (resolve, reject) {
|
|
423
|
-
if (res.length !== 0) {
|
|
424
|
-
reject(err);
|
|
425
|
-
} else {
|
|
426
|
-
resolve();
|
|
427
|
-
}
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
}, {
|
|
431
|
-
key: "validateProperty",
|
|
432
|
-
value: function validateProperty(scope, property) {
|
|
433
|
-
if (property === "replicationFactor") {
|
|
434
|
-
if (typeof this.replicationFactor === 'undefined' || this.replicationFactor === null) {
|
|
435
|
-
return new _ValidationError["default"]("replicationFactor", "undefined or null");
|
|
436
|
-
}
|
|
445
|
+
});
|
|
446
|
+
return new Promise(function (resolve, reject) {
|
|
447
|
+
if (res.length !== 0) {
|
|
448
|
+
reject(err);
|
|
449
|
+
} else {
|
|
450
|
+
resolve();
|
|
437
451
|
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
validateProperty(scope, property) {
|
|
455
|
+
if (property === "replicationFactor") {
|
|
456
|
+
if (typeof this.replicationFactor === 'undefined' || this.replicationFactor === null) {
|
|
457
|
+
return new _ValidationError.default("replicationFactor", "undefined or null");
|
|
442
458
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
459
|
+
}
|
|
460
|
+
if (property === "compressionSavingPercent") {
|
|
461
|
+
if (typeof this.compressionSavingPercent === 'undefined' || this.compressionSavingPercent === null) {
|
|
462
|
+
return new _ValidationError.default("compressionSavingPercent", "undefined or null");
|
|
447
463
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
464
|
+
}
|
|
465
|
+
if (property === "dedupSavingPercent") {
|
|
466
|
+
if (typeof this.dedupSavingPercent === 'undefined' || this.dedupSavingPercent === null) {
|
|
467
|
+
return new _ValidationError.default("dedupSavingPercent", "undefined or null");
|
|
452
468
|
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
469
|
+
}
|
|
470
|
+
if (property === "erasureCodingSavingPercent") {
|
|
471
|
+
if (typeof this.erasureCodingSavingPercent === 'undefined' || this.erasureCodingSavingPercent === null) {
|
|
472
|
+
return new _ValidationError.default("erasureCodingSavingPercent", "undefined or null");
|
|
457
473
|
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
474
|
+
}
|
|
475
|
+
if (property === "overallSavingPercent") {
|
|
476
|
+
if (typeof this.overallSavingPercent === 'undefined' || this.overallSavingPercent === null) {
|
|
477
|
+
return new _ValidationError.default("overallSavingPercent", "undefined or null");
|
|
462
478
|
}
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
479
|
+
}
|
|
480
|
+
if (property === "cpuOverCommitRatio") {
|
|
481
|
+
if (typeof this.cpuOverCommitRatio === 'undefined' || this.cpuOverCommitRatio === null) {
|
|
482
|
+
return new _ValidationError.default("cpuOverCommitRatio", "undefined or null");
|
|
467
483
|
}
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
484
|
+
}
|
|
485
|
+
if (property === "ramOverCommitRatio") {
|
|
486
|
+
if (typeof this.ramOverCommitRatio === 'undefined' || this.ramOverCommitRatio === null) {
|
|
487
|
+
return new _ValidationError.default("ramOverCommitRatio", "undefined or null");
|
|
472
488
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
489
|
+
}
|
|
490
|
+
if (property === "cpuReservationPercentage") {
|
|
491
|
+
if (typeof this.cpuReservationPercentage === 'undefined' || this.cpuReservationPercentage === null) {
|
|
492
|
+
return new _ValidationError.default("cpuReservationPercentage", "undefined or null");
|
|
477
493
|
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
494
|
+
}
|
|
495
|
+
if (property === "ramReservationPercentage") {
|
|
496
|
+
if (typeof this.ramReservationPercentage === 'undefined' || this.ramReservationPercentage === null) {
|
|
497
|
+
return new _ValidationError.default("ramReservationPercentage", "undefined or null");
|
|
482
498
|
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
499
|
+
}
|
|
500
|
+
if (property === "storageReservationPercentage") {
|
|
501
|
+
if (typeof this.storageReservationPercentage === 'undefined' || this.storageReservationPercentage === null) {
|
|
502
|
+
return new _ValidationError.default("storageReservationPercentage", "undefined or null");
|
|
487
503
|
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
504
|
+
}
|
|
505
|
+
if (property === "$reserved") {
|
|
506
|
+
if (typeof this.$reserved === 'undefined' || this.$reserved === null) {
|
|
507
|
+
return new _ValidationError.default("$reserved", "undefined or null");
|
|
492
508
|
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
509
|
+
}
|
|
510
|
+
if (property === "$objectType") {
|
|
511
|
+
if (typeof this.$objectType === 'undefined' || this.$objectType === null) {
|
|
512
|
+
return new _ValidationError.default("$objectType", "undefined or null");
|
|
497
513
|
}
|
|
498
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
499
514
|
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
504
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
505
|
-
var items, item, i, itemArr, discriminator;
|
|
506
|
-
if (data) {
|
|
507
|
-
obj = obj || new DataStoreConfig();
|
|
508
|
-
if (data.hasOwnProperty('replicationFactor') && data.replicationFactor !== null && data.replicationFactor !== undefined) {
|
|
509
|
-
obj.setReplicationFactor(_ReplicationFactor["default"].constructFromObject(data['replicationFactor']));
|
|
510
|
-
}
|
|
511
|
-
if (data.hasOwnProperty('compressionSavingPercent') && data.compressionSavingPercent !== null && data.compressionSavingPercent !== undefined) {
|
|
512
|
-
obj.setCompressionSavingPercent(data['compressionSavingPercent']);
|
|
513
|
-
}
|
|
514
|
-
if (data.hasOwnProperty('dedupSavingPercent') && data.dedupSavingPercent !== null && data.dedupSavingPercent !== undefined) {
|
|
515
|
-
obj.setDedupSavingPercent(data['dedupSavingPercent']);
|
|
516
|
-
}
|
|
517
|
-
if (data.hasOwnProperty('erasureCodingSavingPercent') && data.erasureCodingSavingPercent !== null && data.erasureCodingSavingPercent !== undefined) {
|
|
518
|
-
obj.setErasureCodingSavingPercent(data['erasureCodingSavingPercent']);
|
|
519
|
-
}
|
|
520
|
-
if (data.hasOwnProperty('overallSavingPercent') && data.overallSavingPercent !== null && data.overallSavingPercent !== undefined) {
|
|
521
|
-
obj.setOverallSavingPercent(data['overallSavingPercent']);
|
|
522
|
-
}
|
|
523
|
-
if (data.hasOwnProperty('cpuOverCommitRatio') && data.cpuOverCommitRatio !== null && data.cpuOverCommitRatio !== undefined) {
|
|
524
|
-
obj.setCpuOverCommitRatio(data['cpuOverCommitRatio']);
|
|
525
|
-
}
|
|
526
|
-
if (data.hasOwnProperty('ramOverCommitRatio') && data.ramOverCommitRatio !== null && data.ramOverCommitRatio !== undefined) {
|
|
527
|
-
obj.setRamOverCommitRatio(data['ramOverCommitRatio']);
|
|
528
|
-
}
|
|
529
|
-
if (data.hasOwnProperty('cpuReservationPercentage') && data.cpuReservationPercentage !== null && data.cpuReservationPercentage !== undefined) {
|
|
530
|
-
obj.setCpuReservationPercentage(data['cpuReservationPercentage']);
|
|
531
|
-
}
|
|
532
|
-
if (data.hasOwnProperty('ramReservationPercentage') && data.ramReservationPercentage !== null && data.ramReservationPercentage !== undefined) {
|
|
533
|
-
obj.setRamReservationPercentage(data['ramReservationPercentage']);
|
|
534
|
-
}
|
|
535
|
-
if (data.hasOwnProperty('storageReservationPercentage') && data.storageReservationPercentage !== null && data.storageReservationPercentage !== undefined) {
|
|
536
|
-
obj.setStorageReservationPercentage(data['storageReservationPercentage']);
|
|
537
|
-
}
|
|
538
|
-
if (data.hasOwnProperty('$reserved')) {
|
|
539
|
-
obj.$reserved = data['$reserved'];
|
|
540
|
-
}
|
|
541
|
-
if (data.hasOwnProperty('$objectType')) {
|
|
542
|
-
obj.$objectType = data['$objectType'];
|
|
543
|
-
}
|
|
544
|
-
if (data.hasOwnProperty('$unknownFields')) {
|
|
545
|
-
obj.$unknownFields = data['$unknownFields'];
|
|
546
|
-
}
|
|
547
|
-
if (!callFromChild) {
|
|
548
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
549
|
-
for (var property in data) {
|
|
550
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
551
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
552
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
553
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
554
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
555
|
-
obj.$unknownFields[property] = data[property];
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
515
|
+
if (property === "$unknownFields") {
|
|
516
|
+
if (typeof this.$unknownFields === 'undefined' || this.$unknownFields === null) {
|
|
517
|
+
return new _ValidationError.default("$unknownFields", "undefined or null");
|
|
559
518
|
}
|
|
560
|
-
return obj;
|
|
561
519
|
}
|
|
520
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
521
|
+
}
|
|
522
|
+
}
|
|
562
523
|
|
|
563
|
-
/**
|
|
564
|
-
* Converts a given snake_case string to camelCase.
|
|
565
|
-
* @param {string} snakeStr - The input string in snake_case format.
|
|
566
|
-
* @returns {string} - The converted string in camelCase format.
|
|
567
|
-
*/
|
|
568
|
-
}, {
|
|
569
|
-
key: "snakeToCamel",
|
|
570
|
-
value: function snakeToCamel(snakeStr) {
|
|
571
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
572
|
-
return match[1].toUpperCase();
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
}]);
|
|
576
|
-
}();
|
|
577
524
|
/**
|
|
578
525
|
* @memberof DataStoreConfig
|
|
579
526
|
*/
|
|
527
|
+
exports.default = DataStoreConfig;
|
|
580
528
|
function _toJsonMapType(obj, forMutation) {
|
|
581
529
|
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) {
|
|
530
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
531
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
532
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
590
533
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
591
534
|
}));
|
|
592
535
|
}
|