@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 _IPv4Address = _interopRequireDefault(require("../../../common/v1/config/IPv4Address"));
|
|
8
8
|
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
9
9
|
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
@@ -11,38 +11,16 @@ var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../comm
|
|
|
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); }
|
|
30
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
31
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
32
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
33
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
34
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
35
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
36
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
37
15
|
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
38
16
|
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
39
17
|
* Nutanix AIOps APIs
|
|
40
18
|
*
|
|
41
|
-
* OpenAPI spec version: 4.
|
|
19
|
+
* OpenAPI spec version: 4.2.1-beta-1
|
|
42
20
|
*
|
|
43
21
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
44
22
|
*
|
|
45
|
-
* Open API Dev Platform Codegen version: 17.
|
|
23
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
46
24
|
*
|
|
47
25
|
* Do not edit the class manually.
|
|
48
26
|
*
|
|
@@ -50,36 +28,33 @@ function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("C
|
|
|
50
28
|
/**
|
|
51
29
|
* The ClusterMetrics model module.
|
|
52
30
|
* @module Ntnx/ClusterMetrics
|
|
53
|
-
* @version 4.
|
|
31
|
+
* @version 4.2.1-beta-1
|
|
54
32
|
* @class ClusterMetrics
|
|
55
33
|
* @extends ExternalizableAbstractModel
|
|
56
34
|
*/
|
|
57
35
|
var _ClusterMetrics_brand = /*#__PURE__*/new WeakSet();
|
|
58
|
-
|
|
36
|
+
class ClusterMetrics extends _ExternalizableAbstractModel.default {
|
|
59
37
|
/**
|
|
60
38
|
* Constructs a new <code>ClusterMetrics</code>.
|
|
61
39
|
* @alias module:Ntnx/ClusterMetrics
|
|
62
40
|
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
63
41
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
_classCallCheck(this, ClusterMetrics);
|
|
67
|
-
_this = _callSuper(this, ClusterMetrics);
|
|
42
|
+
constructor() {
|
|
43
|
+
super();
|
|
68
44
|
/*
|
|
69
45
|
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
70
46
|
* @param {Object} obj
|
|
71
47
|
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
72
48
|
* Otherwise, just returns the input object.
|
|
73
49
|
*/
|
|
74
|
-
_classPrivateMethodInitSpec(
|
|
75
|
-
|
|
50
|
+
_classPrivateMethodInitSpec(this, _ClusterMetrics_brand);
|
|
51
|
+
this.$objectType = "aiops.v4.clusterMetrics.ClusterMetrics";
|
|
76
52
|
/** @type {object<string, any>} */
|
|
77
|
-
|
|
78
|
-
'$fv': "v4.
|
|
53
|
+
this.$reserved = {
|
|
54
|
+
'$fv': "v4.r2.b1"
|
|
79
55
|
};
|
|
80
56
|
/** @type {object<string, any>} */
|
|
81
|
-
|
|
82
|
-
return _this;
|
|
57
|
+
this.$unknownFields = {};
|
|
83
58
|
}
|
|
84
59
|
|
|
85
60
|
/**
|
|
@@ -90,897 +65,830 @@ var ClusterMetrics = exports["default"] = /*#__PURE__*/function (_Externalizable
|
|
|
90
65
|
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
91
66
|
* @return {module:Ntnx/ClusterMetrics} The populated <code>ClusterMetrics</code> instance.
|
|
92
67
|
*/
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
68
|
+
static constructFromObject(data, obj = null, callFromChild = false) {
|
|
69
|
+
let items, item, i, itemArr, discriminator;
|
|
70
|
+
if (data) {
|
|
71
|
+
obj = obj || new ClusterMetrics();
|
|
72
|
+
_ExternalizableAbstractModel.default.constructFromObject(data, obj, true);
|
|
73
|
+
if (data.hasOwnProperty('clusterName') && data.clusterName !== null && data.clusterName !== undefined) {
|
|
74
|
+
obj.setClusterName(data['clusterName']);
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('externalIP') && data.externalIP !== null && data.externalIP !== undefined) {
|
|
77
|
+
obj.setExternalIP(_IPv4Address.default.constructFromObject(data['externalIP']));
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('cvmIPs') && data.cvmIPs !== null && data.cvmIPs !== undefined) {
|
|
80
|
+
itemArr = [];
|
|
81
|
+
items = data.cvmIPs;
|
|
82
|
+
for (i = 0; i < items.length; i++) {
|
|
83
|
+
item = _IPv4Address.default.constructFromObject(items[i], undefined);
|
|
84
|
+
itemArr.push(item);
|
|
85
|
+
}
|
|
86
|
+
obj.setCvmIPs(itemArr);
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('totalMemorySizeBytes') && data.totalMemorySizeBytes !== null && data.totalMemorySizeBytes !== undefined) {
|
|
89
|
+
obj.setTotalMemorySizeBytes(data['totalMemorySizeBytes']);
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('currentMemoryUsageSizeBytes') && data.currentMemoryUsageSizeBytes !== null && data.currentMemoryUsageSizeBytes !== undefined) {
|
|
92
|
+
obj.setCurrentMemoryUsageSizeBytes(data['currentMemoryUsageSizeBytes']);
|
|
93
|
+
}
|
|
94
|
+
if (data.hasOwnProperty('provisionedMemoryUsageBytes') && data.provisionedMemoryUsageBytes !== null && data.provisionedMemoryUsageBytes !== undefined) {
|
|
95
|
+
obj.setProvisionedMemoryUsageBytes(data['provisionedMemoryUsageBytes']);
|
|
96
|
+
}
|
|
97
|
+
if (data.hasOwnProperty('maxVmMemorySizeBytes') && data.maxVmMemorySizeBytes !== null && data.maxVmMemorySizeBytes !== undefined) {
|
|
98
|
+
obj.setMaxVmMemorySizeBytes(data['maxVmMemorySizeBytes']);
|
|
99
|
+
}
|
|
100
|
+
if (data.hasOwnProperty('availableMemorySizeBytes') && data.availableMemorySizeBytes !== null && data.availableMemorySizeBytes !== undefined) {
|
|
101
|
+
obj.setAvailableMemorySizeBytes(data['availableMemorySizeBytes']);
|
|
102
|
+
}
|
|
103
|
+
if (data.hasOwnProperty('largestPoweredOffVMMemory') && data.largestPoweredOffVMMemory !== null && data.largestPoweredOffVMMemory !== undefined) {
|
|
104
|
+
obj.setLargestPoweredOffVMMemory(data['largestPoweredOffVMMemory']);
|
|
105
|
+
}
|
|
106
|
+
if (data.hasOwnProperty('totalVCpuCount') && data.totalVCpuCount !== null && data.totalVCpuCount !== undefined) {
|
|
107
|
+
obj.setTotalVCpuCount(data['totalVCpuCount']);
|
|
108
|
+
}
|
|
109
|
+
if (data.hasOwnProperty('currentUsedVCpuCount') && data.currentUsedVCpuCount !== null && data.currentUsedVCpuCount !== undefined) {
|
|
110
|
+
obj.setCurrentUsedVCpuCount(data['currentUsedVCpuCount']);
|
|
111
|
+
}
|
|
112
|
+
if (data.hasOwnProperty('provisionedVCpuCount') && data.provisionedVCpuCount !== null && data.provisionedVCpuCount !== undefined) {
|
|
113
|
+
obj.setProvisionedVCpuCount(data['provisionedVCpuCount']);
|
|
114
|
+
}
|
|
115
|
+
if (data.hasOwnProperty('maxVmVCpuSize') && data.maxVmVCpuSize !== null && data.maxVmVCpuSize !== undefined) {
|
|
116
|
+
obj.setMaxVmVCpuSize(data['maxVmVCpuSize']);
|
|
117
|
+
}
|
|
118
|
+
if (data.hasOwnProperty('availableVCpuCount') && data.availableVCpuCount !== null && data.availableVCpuCount !== undefined) {
|
|
119
|
+
obj.setAvailableVCpuCount(data['availableVCpuCount']);
|
|
120
|
+
}
|
|
121
|
+
if (data.hasOwnProperty('largestPoweredOffVMVCpu') && data.largestPoweredOffVMVCpu !== null && data.largestPoweredOffVMVCpu !== undefined) {
|
|
122
|
+
obj.setLargestPoweredOffVMVCpu(data['largestPoweredOffVMVCpu']);
|
|
123
|
+
}
|
|
124
|
+
if (data.hasOwnProperty('totalCpuHz') && data.totalCpuHz !== null && data.totalCpuHz !== undefined) {
|
|
125
|
+
obj.setTotalCpuHz(data['totalCpuHz']);
|
|
126
|
+
}
|
|
127
|
+
if (data.hasOwnProperty('currentUsedCpuHz') && data.currentUsedCpuHz !== null && data.currentUsedCpuHz !== undefined) {
|
|
128
|
+
obj.setCurrentUsedCpuHz(data['currentUsedCpuHz']);
|
|
129
|
+
}
|
|
130
|
+
if (data.hasOwnProperty('provisionedCpuHz') && data.provisionedCpuHz !== null && data.provisionedCpuHz !== undefined) {
|
|
131
|
+
obj.setProvisionedCpuHz(data['provisionedCpuHz']);
|
|
132
|
+
}
|
|
133
|
+
if (data.hasOwnProperty('totalStorageCapacityRawBytes') && data.totalStorageCapacityRawBytes !== null && data.totalStorageCapacityRawBytes !== undefined) {
|
|
134
|
+
obj.setTotalStorageCapacityRawBytes(data['totalStorageCapacityRawBytes']);
|
|
135
|
+
}
|
|
136
|
+
if (data.hasOwnProperty('totalStorageCapacityLogicalBytes') && data.totalStorageCapacityLogicalBytes !== null && data.totalStorageCapacityLogicalBytes !== undefined) {
|
|
137
|
+
obj.setTotalStorageCapacityLogicalBytes(data['totalStorageCapacityLogicalBytes']);
|
|
138
|
+
}
|
|
139
|
+
if (data.hasOwnProperty('totalStorageCapacityLogicalWithSavingsBytes') && data.totalStorageCapacityLogicalWithSavingsBytes !== null && data.totalStorageCapacityLogicalWithSavingsBytes !== undefined) {
|
|
140
|
+
obj.setTotalStorageCapacityLogicalWithSavingsBytes(data['totalStorageCapacityLogicalWithSavingsBytes']);
|
|
141
|
+
}
|
|
142
|
+
if (data.hasOwnProperty('totalStorageUsageBytes') && data.totalStorageUsageBytes !== null && data.totalStorageUsageBytes !== undefined) {
|
|
143
|
+
obj.setTotalStorageUsageBytes(data['totalStorageUsageBytes']);
|
|
144
|
+
}
|
|
145
|
+
if (data.hasOwnProperty('totalStorageAvailableBytes') && data.totalStorageAvailableBytes !== null && data.totalStorageAvailableBytes !== undefined) {
|
|
146
|
+
obj.setTotalStorageAvailableBytes(data['totalStorageAvailableBytes']);
|
|
147
|
+
}
|
|
148
|
+
if (data.hasOwnProperty('totalStorageAvailableLogicalBytes') && data.totalStorageAvailableLogicalBytes !== null && data.totalStorageAvailableLogicalBytes !== undefined) {
|
|
149
|
+
obj.setTotalStorageAvailableLogicalBytes(data['totalStorageAvailableLogicalBytes']);
|
|
150
|
+
}
|
|
151
|
+
if (!callFromChild) {
|
|
152
|
+
obj.$unknownFields = {
|
|
153
|
+
...data.$unknownFields
|
|
154
|
+
};
|
|
155
|
+
for (const property in data) {
|
|
156
|
+
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
157
|
+
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
158
|
+
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
159
|
+
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
160
|
+
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
161
|
+
obj.$unknownFields[property] = data[property];
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
103
165
|
}
|
|
166
|
+
return obj;
|
|
167
|
+
}
|
|
104
168
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
169
|
+
/**
|
|
170
|
+
* Converts a given snake_case string to camelCase.
|
|
171
|
+
* @param {string} snakeStr - The input string in snake_case format.
|
|
172
|
+
* @returns {string} - The converted string in camelCase format.
|
|
173
|
+
*/
|
|
174
|
+
static snakeToCamel(snakeStr) {
|
|
175
|
+
return snakeStr.replace(/(_\w)/g, match => match[1].toUpperCase());
|
|
176
|
+
}
|
|
114
177
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
178
|
+
/**
|
|
179
|
+
* Returns Name of the cluster
|
|
180
|
+
* @return {string}
|
|
181
|
+
*/
|
|
182
|
+
getClusterName() {
|
|
183
|
+
return this.clusterName;
|
|
184
|
+
}
|
|
123
185
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
186
|
+
/**
|
|
187
|
+
* Sets Name of the cluster
|
|
188
|
+
* @param {string} clusterName Name of the cluster
|
|
189
|
+
*/
|
|
190
|
+
setClusterName(clusterName) {
|
|
191
|
+
this.clusterName = clusterName;
|
|
192
|
+
}
|
|
132
193
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
value: function getCvmIPs() {
|
|
140
|
-
return this.cvmIPs;
|
|
141
|
-
}
|
|
194
|
+
/**
|
|
195
|
+
* @return {IPv4Address}
|
|
196
|
+
*/
|
|
197
|
+
getExternalIP() {
|
|
198
|
+
return this.externalIP;
|
|
199
|
+
}
|
|
142
200
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
value: function setCvmIPs(cvmIPs) {
|
|
150
|
-
this.cvmIPs = cvmIPs;
|
|
151
|
-
}
|
|
201
|
+
/**
|
|
202
|
+
* @param {IPv4Address} externalIP
|
|
203
|
+
*/
|
|
204
|
+
setExternalIP(externalIP) {
|
|
205
|
+
this.externalIP = externalIP;
|
|
206
|
+
}
|
|
152
207
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
return this.totalMemorySizeBytes;
|
|
161
|
-
}
|
|
208
|
+
/**
|
|
209
|
+
* Returns CVM IPs of the nodes in the cluster
|
|
210
|
+
* @return {IPv4Address[]}
|
|
211
|
+
*/
|
|
212
|
+
getCvmIPs() {
|
|
213
|
+
return this.cvmIPs;
|
|
214
|
+
}
|
|
162
215
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
this.totalMemorySizeBytes = totalMemorySizeBytes;
|
|
171
|
-
}
|
|
216
|
+
/**
|
|
217
|
+
* Sets CVM IPs of the nodes in the cluster
|
|
218
|
+
* @param {IPv4Address[]} cvmIPs CVM IPs of the nodes in the cluster
|
|
219
|
+
*/
|
|
220
|
+
setCvmIPs(cvmIPs) {
|
|
221
|
+
this.cvmIPs = cvmIPs;
|
|
222
|
+
}
|
|
172
223
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
return this.currentMemoryUsageSizeBytes;
|
|
181
|
-
}
|
|
224
|
+
/**
|
|
225
|
+
* Returns Total memory size in bytes in the cluster
|
|
226
|
+
* @return {Number}
|
|
227
|
+
*/
|
|
228
|
+
getTotalMemorySizeBytes() {
|
|
229
|
+
return this.totalMemorySizeBytes;
|
|
230
|
+
}
|
|
182
231
|
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
this.currentMemoryUsageSizeBytes = currentMemoryUsageSizeBytes;
|
|
191
|
-
}
|
|
232
|
+
/**
|
|
233
|
+
* Sets Total memory size in bytes in the cluster
|
|
234
|
+
* @param {Number} totalMemorySizeBytes Total memory size in bytes in the cluster
|
|
235
|
+
*/
|
|
236
|
+
setTotalMemorySizeBytes(totalMemorySizeBytes) {
|
|
237
|
+
this.totalMemorySizeBytes = totalMemorySizeBytes;
|
|
238
|
+
}
|
|
192
239
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
return this.provisionedMemoryUsageBytes;
|
|
201
|
-
}
|
|
240
|
+
/**
|
|
241
|
+
* Returns Total memory size in bytes currently being used by the active VMs
|
|
242
|
+
* @return {Number}
|
|
243
|
+
*/
|
|
244
|
+
getCurrentMemoryUsageSizeBytes() {
|
|
245
|
+
return this.currentMemoryUsageSizeBytes;
|
|
246
|
+
}
|
|
202
247
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
this.provisionedMemoryUsageBytes = provisionedMemoryUsageBytes;
|
|
211
|
-
}
|
|
248
|
+
/**
|
|
249
|
+
* Sets Total memory size in bytes currently being used by the active VMs
|
|
250
|
+
* @param {Number} currentMemoryUsageSizeBytes Total memory size in bytes currently being used by the active VMs
|
|
251
|
+
*/
|
|
252
|
+
setCurrentMemoryUsageSizeBytes(currentMemoryUsageSizeBytes) {
|
|
253
|
+
this.currentMemoryUsageSizeBytes = currentMemoryUsageSizeBytes;
|
|
254
|
+
}
|
|
212
255
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
return this.maxVmMemorySizeBytes;
|
|
221
|
-
}
|
|
256
|
+
/**
|
|
257
|
+
* Returns Total memory size in bytes provisioned for all the VMs
|
|
258
|
+
* @return {Number}
|
|
259
|
+
*/
|
|
260
|
+
getProvisionedMemoryUsageBytes() {
|
|
261
|
+
return this.provisionedMemoryUsageBytes;
|
|
262
|
+
}
|
|
222
263
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
this.maxVmMemorySizeBytes = maxVmMemorySizeBytes;
|
|
231
|
-
}
|
|
264
|
+
/**
|
|
265
|
+
* Sets Total memory size in bytes provisioned for all the VMs
|
|
266
|
+
* @param {Number} provisionedMemoryUsageBytes Total memory size in bytes provisioned for all the VMs
|
|
267
|
+
*/
|
|
268
|
+
setProvisionedMemoryUsageBytes(provisionedMemoryUsageBytes) {
|
|
269
|
+
this.provisionedMemoryUsageBytes = provisionedMemoryUsageBytes;
|
|
270
|
+
}
|
|
232
271
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
return this.availableMemorySizeBytes;
|
|
241
|
-
}
|
|
272
|
+
/**
|
|
273
|
+
* Returns Largest possible memory size in bytes for the next VM that can be added
|
|
274
|
+
* @return {Number}
|
|
275
|
+
*/
|
|
276
|
+
getMaxVmMemorySizeBytes() {
|
|
277
|
+
return this.maxVmMemorySizeBytes;
|
|
278
|
+
}
|
|
242
279
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
this.availableMemorySizeBytes = availableMemorySizeBytes;
|
|
251
|
-
}
|
|
280
|
+
/**
|
|
281
|
+
* Sets Largest possible memory size in bytes for the next VM that can be added
|
|
282
|
+
* @param {Number} maxVmMemorySizeBytes Largest possible memory size in bytes for the next VM that can be added
|
|
283
|
+
*/
|
|
284
|
+
setMaxVmMemorySizeBytes(maxVmMemorySizeBytes) {
|
|
285
|
+
this.maxVmMemorySizeBytes = maxVmMemorySizeBytes;
|
|
286
|
+
}
|
|
252
287
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
return this.largestPoweredOffVMMemory;
|
|
261
|
-
}
|
|
288
|
+
/**
|
|
289
|
+
* Returns Total amount of available memory in bytes for deploying new VMs
|
|
290
|
+
* @return {Number}
|
|
291
|
+
*/
|
|
292
|
+
getAvailableMemorySizeBytes() {
|
|
293
|
+
return this.availableMemorySizeBytes;
|
|
294
|
+
}
|
|
262
295
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
this.largestPoweredOffVMMemory = largestPoweredOffVMMemory;
|
|
271
|
-
}
|
|
296
|
+
/**
|
|
297
|
+
* Sets Total amount of available memory in bytes for deploying new VMs
|
|
298
|
+
* @param {Number} availableMemorySizeBytes Total amount of available memory in bytes for deploying new VMs
|
|
299
|
+
*/
|
|
300
|
+
setAvailableMemorySizeBytes(availableMemorySizeBytes) {
|
|
301
|
+
this.availableMemorySizeBytes = availableMemorySizeBytes;
|
|
302
|
+
}
|
|
272
303
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
return this.totalVCpuCount;
|
|
281
|
-
}
|
|
304
|
+
/**
|
|
305
|
+
* Returns Powered OFF VM with the largest memory size
|
|
306
|
+
* @return {Number}
|
|
307
|
+
*/
|
|
308
|
+
getLargestPoweredOffVMMemory() {
|
|
309
|
+
return this.largestPoweredOffVMMemory;
|
|
310
|
+
}
|
|
282
311
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
this.totalVCpuCount = totalVCpuCount;
|
|
291
|
-
}
|
|
312
|
+
/**
|
|
313
|
+
* Sets Powered OFF VM with the largest memory size
|
|
314
|
+
* @param {Number} largestPoweredOffVMMemory Powered OFF VM with the largest memory size
|
|
315
|
+
*/
|
|
316
|
+
setLargestPoweredOffVMMemory(largestPoweredOffVMMemory) {
|
|
317
|
+
this.largestPoweredOffVMMemory = largestPoweredOffVMMemory;
|
|
318
|
+
}
|
|
292
319
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
return this.currentUsedVCpuCount;
|
|
301
|
-
}
|
|
320
|
+
/**
|
|
321
|
+
* Returns Total number of vCPUs in the cluster
|
|
322
|
+
* @return {Number}
|
|
323
|
+
*/
|
|
324
|
+
getTotalVCpuCount() {
|
|
325
|
+
return this.totalVCpuCount;
|
|
326
|
+
}
|
|
302
327
|
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
this.currentUsedVCpuCount = currentUsedVCpuCount;
|
|
311
|
-
}
|
|
328
|
+
/**
|
|
329
|
+
* Sets Total number of vCPUs in the cluster
|
|
330
|
+
* @param {Number} totalVCpuCount Total number of vCPUs in the cluster
|
|
331
|
+
*/
|
|
332
|
+
setTotalVCpuCount(totalVCpuCount) {
|
|
333
|
+
this.totalVCpuCount = totalVCpuCount;
|
|
334
|
+
}
|
|
312
335
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
return this.provisionedVCpuCount;
|
|
321
|
-
}
|
|
336
|
+
/**
|
|
337
|
+
* Returns Total number of vCPUs currently being used by the active VMs
|
|
338
|
+
* @return {Number}
|
|
339
|
+
*/
|
|
340
|
+
getCurrentUsedVCpuCount() {
|
|
341
|
+
return this.currentUsedVCpuCount;
|
|
342
|
+
}
|
|
322
343
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
this.provisionedVCpuCount = provisionedVCpuCount;
|
|
331
|
-
}
|
|
344
|
+
/**
|
|
345
|
+
* Sets Total number of vCPUs currently being used by the active VMs
|
|
346
|
+
* @param {Number} currentUsedVCpuCount Total number of vCPUs currently being used by the active VMs
|
|
347
|
+
*/
|
|
348
|
+
setCurrentUsedVCpuCount(currentUsedVCpuCount) {
|
|
349
|
+
this.currentUsedVCpuCount = currentUsedVCpuCount;
|
|
350
|
+
}
|
|
332
351
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
return this.maxVmVCpuSize;
|
|
341
|
-
}
|
|
352
|
+
/**
|
|
353
|
+
* Returns Total number of vCPUs provisioned for all the VMs
|
|
354
|
+
* @return {Number}
|
|
355
|
+
*/
|
|
356
|
+
getProvisionedVCpuCount() {
|
|
357
|
+
return this.provisionedVCpuCount;
|
|
358
|
+
}
|
|
342
359
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
this.maxVmVCpuSize = maxVmVCpuSize;
|
|
351
|
-
}
|
|
360
|
+
/**
|
|
361
|
+
* Sets Total number of vCPUs provisioned for all the VMs
|
|
362
|
+
* @param {Number} provisionedVCpuCount Total number of vCPUs provisioned for all the VMs
|
|
363
|
+
*/
|
|
364
|
+
setProvisionedVCpuCount(provisionedVCpuCount) {
|
|
365
|
+
this.provisionedVCpuCount = provisionedVCpuCount;
|
|
366
|
+
}
|
|
352
367
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
return this.availableVCpuCount;
|
|
361
|
-
}
|
|
368
|
+
/**
|
|
369
|
+
* Returns Largest possible VM size in vCPUs for the next VM that can be added
|
|
370
|
+
* @return {Number}
|
|
371
|
+
*/
|
|
372
|
+
getMaxVmVCpuSize() {
|
|
373
|
+
return this.maxVmVCpuSize;
|
|
374
|
+
}
|
|
362
375
|
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
this.availableVCpuCount = availableVCpuCount;
|
|
371
|
-
}
|
|
376
|
+
/**
|
|
377
|
+
* Sets Largest possible VM size in vCPUs for the next VM that can be added
|
|
378
|
+
* @param {Number} maxVmVCpuSize Largest possible VM size in vCPUs for the next VM that can be added
|
|
379
|
+
*/
|
|
380
|
+
setMaxVmVCpuSize(maxVmVCpuSize) {
|
|
381
|
+
this.maxVmVCpuSize = maxVmVCpuSize;
|
|
382
|
+
}
|
|
372
383
|
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
return this.largestPoweredOffVMVCpu;
|
|
381
|
-
}
|
|
384
|
+
/**
|
|
385
|
+
* Returns Total number of available VMs for deploying new VMs
|
|
386
|
+
* @return {Number}
|
|
387
|
+
*/
|
|
388
|
+
getAvailableVCpuCount() {
|
|
389
|
+
return this.availableVCpuCount;
|
|
390
|
+
}
|
|
382
391
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
this.largestPoweredOffVMVCpu = largestPoweredOffVMVCpu;
|
|
391
|
-
}
|
|
392
|
+
/**
|
|
393
|
+
* Sets Total number of available VMs for deploying new VMs
|
|
394
|
+
* @param {Number} availableVCpuCount Total number of available VMs for deploying new VMs
|
|
395
|
+
*/
|
|
396
|
+
setAvailableVCpuCount(availableVCpuCount) {
|
|
397
|
+
this.availableVCpuCount = availableVCpuCount;
|
|
398
|
+
}
|
|
392
399
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
return this.totalCpuHz;
|
|
401
|
-
}
|
|
400
|
+
/**
|
|
401
|
+
* Returns Largest powered OFF VM in terms of vCPU count
|
|
402
|
+
* @return {Number}
|
|
403
|
+
*/
|
|
404
|
+
getLargestPoweredOffVMVCpu() {
|
|
405
|
+
return this.largestPoweredOffVMVCpu;
|
|
406
|
+
}
|
|
402
407
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
this.totalCpuHz = totalCpuHz;
|
|
411
|
-
}
|
|
408
|
+
/**
|
|
409
|
+
* Sets Largest powered OFF VM in terms of vCPU count
|
|
410
|
+
* @param {Number} largestPoweredOffVMVCpu Largest powered OFF VM in terms of vCPU count
|
|
411
|
+
*/
|
|
412
|
+
setLargestPoweredOffVMVCpu(largestPoweredOffVMVCpu) {
|
|
413
|
+
this.largestPoweredOffVMVCpu = largestPoweredOffVMVCpu;
|
|
414
|
+
}
|
|
412
415
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
return this.currentUsedCpuHz;
|
|
421
|
-
}
|
|
416
|
+
/**
|
|
417
|
+
* Returns Total amount of CPU in hertz in the cluster
|
|
418
|
+
* @return {Number}
|
|
419
|
+
*/
|
|
420
|
+
getTotalCpuHz() {
|
|
421
|
+
return this.totalCpuHz;
|
|
422
|
+
}
|
|
422
423
|
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
this.currentUsedCpuHz = currentUsedCpuHz;
|
|
431
|
-
}
|
|
424
|
+
/**
|
|
425
|
+
* Sets Total amount of CPU in hertz in the cluster
|
|
426
|
+
* @param {Number} totalCpuHz Total amount of CPU in hertz in the cluster
|
|
427
|
+
*/
|
|
428
|
+
setTotalCpuHz(totalCpuHz) {
|
|
429
|
+
this.totalCpuHz = totalCpuHz;
|
|
430
|
+
}
|
|
432
431
|
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
return this.provisionedCpuHz;
|
|
441
|
-
}
|
|
432
|
+
/**
|
|
433
|
+
* Returns Total amount of CPU in hertz currently being used by the active VMs
|
|
434
|
+
* @return {Number}
|
|
435
|
+
*/
|
|
436
|
+
getCurrentUsedCpuHz() {
|
|
437
|
+
return this.currentUsedCpuHz;
|
|
438
|
+
}
|
|
442
439
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
this.provisionedCpuHz = provisionedCpuHz;
|
|
451
|
-
}
|
|
440
|
+
/**
|
|
441
|
+
* Sets Total amount of CPU in hertz currently being used by the active VMs
|
|
442
|
+
* @param {Number} currentUsedCpuHz Total amount of CPU in hertz currently being used by the active VMs
|
|
443
|
+
*/
|
|
444
|
+
setCurrentUsedCpuHz(currentUsedCpuHz) {
|
|
445
|
+
this.currentUsedCpuHz = currentUsedCpuHz;
|
|
446
|
+
}
|
|
452
447
|
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
return this.totalStorageCapacityRawBytes;
|
|
461
|
-
}
|
|
448
|
+
/**
|
|
449
|
+
* Returns Total amount of CPU in hertz provisioned for all the VMs
|
|
450
|
+
* @return {Number}
|
|
451
|
+
*/
|
|
452
|
+
getProvisionedCpuHz() {
|
|
453
|
+
return this.provisionedCpuHz;
|
|
454
|
+
}
|
|
462
455
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
this.totalStorageCapacityRawBytes = totalStorageCapacityRawBytes;
|
|
471
|
-
}
|
|
456
|
+
/**
|
|
457
|
+
* Sets Total amount of CPU in hertz provisioned for all the VMs
|
|
458
|
+
* @param {Number} provisionedCpuHz Total amount of CPU in hertz provisioned for all the VMs
|
|
459
|
+
*/
|
|
460
|
+
setProvisionedCpuHz(provisionedCpuHz) {
|
|
461
|
+
this.provisionedCpuHz = provisionedCpuHz;
|
|
462
|
+
}
|
|
472
463
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
return this.totalStorageCapacityLogicalBytes;
|
|
481
|
-
}
|
|
464
|
+
/**
|
|
465
|
+
* Returns Total storage in bytes capacity in the cluster
|
|
466
|
+
* @return {Number}
|
|
467
|
+
*/
|
|
468
|
+
getTotalStorageCapacityRawBytes() {
|
|
469
|
+
return this.totalStorageCapacityRawBytes;
|
|
470
|
+
}
|
|
482
471
|
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
this.totalStorageCapacityLogicalBytes = totalStorageCapacityLogicalBytes;
|
|
491
|
-
}
|
|
472
|
+
/**
|
|
473
|
+
* Sets Total storage in bytes capacity in the cluster
|
|
474
|
+
* @param {Number} totalStorageCapacityRawBytes Total storage in bytes capacity in the cluster
|
|
475
|
+
*/
|
|
476
|
+
setTotalStorageCapacityRawBytes(totalStorageCapacityRawBytes) {
|
|
477
|
+
this.totalStorageCapacityRawBytes = totalStorageCapacityRawBytes;
|
|
478
|
+
}
|
|
492
479
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
return this.totalStorageCapacityLogicalWithSavingsBytes;
|
|
501
|
-
}
|
|
480
|
+
/**
|
|
481
|
+
* Returns Total logical storage in bytes capacity after considering RF
|
|
482
|
+
* @return {Number}
|
|
483
|
+
*/
|
|
484
|
+
getTotalStorageCapacityLogicalBytes() {
|
|
485
|
+
return this.totalStorageCapacityLogicalBytes;
|
|
486
|
+
}
|
|
502
487
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
this.totalStorageCapacityLogicalWithSavingsBytes = totalStorageCapacityLogicalWithSavingsBytes;
|
|
511
|
-
}
|
|
488
|
+
/**
|
|
489
|
+
* Sets Total logical storage in bytes capacity after considering RF
|
|
490
|
+
* @param {Number} totalStorageCapacityLogicalBytes Total logical storage in bytes capacity after considering RF
|
|
491
|
+
*/
|
|
492
|
+
setTotalStorageCapacityLogicalBytes(totalStorageCapacityLogicalBytes) {
|
|
493
|
+
this.totalStorageCapacityLogicalBytes = totalStorageCapacityLogicalBytes;
|
|
494
|
+
}
|
|
512
495
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
return this.totalStorageUsageBytes;
|
|
521
|
-
}
|
|
496
|
+
/**
|
|
497
|
+
* Returns Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
|
|
498
|
+
* @return {Number}
|
|
499
|
+
*/
|
|
500
|
+
getTotalStorageCapacityLogicalWithSavingsBytes() {
|
|
501
|
+
return this.totalStorageCapacityLogicalWithSavingsBytes;
|
|
502
|
+
}
|
|
522
503
|
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
this.totalStorageUsageBytes = totalStorageUsageBytes;
|
|
531
|
-
}
|
|
504
|
+
/**
|
|
505
|
+
* Sets Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
|
|
506
|
+
* @param {Number} totalStorageCapacityLogicalWithSavingsBytes Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
|
|
507
|
+
*/
|
|
508
|
+
setTotalStorageCapacityLogicalWithSavingsBytes(totalStorageCapacityLogicalWithSavingsBytes) {
|
|
509
|
+
this.totalStorageCapacityLogicalWithSavingsBytes = totalStorageCapacityLogicalWithSavingsBytes;
|
|
510
|
+
}
|
|
532
511
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
return this.totalStorageAvailableBytes;
|
|
541
|
-
}
|
|
512
|
+
/**
|
|
513
|
+
* Returns Total raw storage usage by the cluster
|
|
514
|
+
* @return {Number}
|
|
515
|
+
*/
|
|
516
|
+
getTotalStorageUsageBytes() {
|
|
517
|
+
return this.totalStorageUsageBytes;
|
|
518
|
+
}
|
|
542
519
|
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
this.totalStorageAvailableBytes = totalStorageAvailableBytes;
|
|
551
|
-
}
|
|
520
|
+
/**
|
|
521
|
+
* Sets Total raw storage usage by the cluster
|
|
522
|
+
* @param {Number} totalStorageUsageBytes Total raw storage usage by the cluster
|
|
523
|
+
*/
|
|
524
|
+
setTotalStorageUsageBytes(totalStorageUsageBytes) {
|
|
525
|
+
this.totalStorageUsageBytes = totalStorageUsageBytes;
|
|
526
|
+
}
|
|
552
527
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
return this.totalStorageAvailableLogicalBytes;
|
|
561
|
-
}
|
|
528
|
+
/**
|
|
529
|
+
* Returns Total raw storage bytes still available in the cluster
|
|
530
|
+
* @return {Number}
|
|
531
|
+
*/
|
|
532
|
+
getTotalStorageAvailableBytes() {
|
|
533
|
+
return this.totalStorageAvailableBytes;
|
|
534
|
+
}
|
|
562
535
|
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
536
|
+
/**
|
|
537
|
+
* Sets Total raw storage bytes still available in the cluster
|
|
538
|
+
* @param {Number} totalStorageAvailableBytes Total raw storage bytes still available in the cluster
|
|
539
|
+
*/
|
|
540
|
+
setTotalStorageAvailableBytes(totalStorageAvailableBytes) {
|
|
541
|
+
this.totalStorageAvailableBytes = totalStorageAvailableBytes;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Returns Total logical storage bytes still available in the cluster
|
|
546
|
+
* @return {Number}
|
|
547
|
+
*/
|
|
548
|
+
getTotalStorageAvailableLogicalBytes() {
|
|
549
|
+
return this.totalStorageAvailableLogicalBytes;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Sets Total logical storage bytes still available in the cluster
|
|
554
|
+
* @param {Number} totalStorageAvailableLogicalBytes Total logical storage bytes still available in the cluster
|
|
555
|
+
*/
|
|
556
|
+
setTotalStorageAvailableLogicalBytes(totalStorageAvailableLogicalBytes) {
|
|
557
|
+
this.totalStorageAvailableLogicalBytes = totalStorageAvailableLogicalBytes;
|
|
558
|
+
}
|
|
559
|
+
toJson(forMutation) {
|
|
560
|
+
if (forMutation === false) {
|
|
561
|
+
return {
|
|
562
|
+
...(typeof this.getClusterName() !== 'undefined' && this.getClusterName() !== null ? {
|
|
577
563
|
'clusterName': this.getClusterName()
|
|
578
|
-
} : {}),
|
|
564
|
+
} : {}),
|
|
565
|
+
...(typeof this.getExternalIP() !== 'undefined' && this.getExternalIP() !== null ? {
|
|
579
566
|
'externalIP': this.getExternalIP().toJson(false)
|
|
580
|
-
} : {}),
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
567
|
+
} : {}),
|
|
568
|
+
...(typeof this.getCvmIPs() !== 'undefined' && this.getCvmIPs() !== null ? {
|
|
569
|
+
'cvmIPs': this.getCvmIPs().map(item => item.toJson(false))
|
|
570
|
+
} : {}),
|
|
571
|
+
...(typeof this.getTotalMemorySizeBytes() !== 'undefined' && this.getTotalMemorySizeBytes() !== null ? {
|
|
585
572
|
'totalMemorySizeBytes': this.getTotalMemorySizeBytes()
|
|
586
|
-
} : {}),
|
|
573
|
+
} : {}),
|
|
574
|
+
...(typeof this.getCurrentMemoryUsageSizeBytes() !== 'undefined' && this.getCurrentMemoryUsageSizeBytes() !== null ? {
|
|
587
575
|
'currentMemoryUsageSizeBytes': this.getCurrentMemoryUsageSizeBytes()
|
|
588
|
-
} : {}),
|
|
576
|
+
} : {}),
|
|
577
|
+
...(typeof this.getProvisionedMemoryUsageBytes() !== 'undefined' && this.getProvisionedMemoryUsageBytes() !== null ? {
|
|
589
578
|
'provisionedMemoryUsageBytes': this.getProvisionedMemoryUsageBytes()
|
|
590
|
-
} : {}),
|
|
579
|
+
} : {}),
|
|
580
|
+
...(typeof this.getMaxVmMemorySizeBytes() !== 'undefined' && this.getMaxVmMemorySizeBytes() !== null ? {
|
|
591
581
|
'maxVmMemorySizeBytes': this.getMaxVmMemorySizeBytes()
|
|
592
|
-
} : {}),
|
|
582
|
+
} : {}),
|
|
583
|
+
...(typeof this.getAvailableMemorySizeBytes() !== 'undefined' && this.getAvailableMemorySizeBytes() !== null ? {
|
|
593
584
|
'availableMemorySizeBytes': this.getAvailableMemorySizeBytes()
|
|
594
|
-
} : {}),
|
|
585
|
+
} : {}),
|
|
586
|
+
...(typeof this.getLargestPoweredOffVMMemory() !== 'undefined' && this.getLargestPoweredOffVMMemory() !== null ? {
|
|
595
587
|
'largestPoweredOffVMMemory': this.getLargestPoweredOffVMMemory()
|
|
596
|
-
} : {}),
|
|
588
|
+
} : {}),
|
|
589
|
+
...(typeof this.getTotalVCpuCount() !== 'undefined' && this.getTotalVCpuCount() !== null ? {
|
|
597
590
|
'totalVCpuCount': this.getTotalVCpuCount()
|
|
598
|
-
} : {}),
|
|
591
|
+
} : {}),
|
|
592
|
+
...(typeof this.getCurrentUsedVCpuCount() !== 'undefined' && this.getCurrentUsedVCpuCount() !== null ? {
|
|
599
593
|
'currentUsedVCpuCount': this.getCurrentUsedVCpuCount()
|
|
600
|
-
} : {}),
|
|
594
|
+
} : {}),
|
|
595
|
+
...(typeof this.getProvisionedVCpuCount() !== 'undefined' && this.getProvisionedVCpuCount() !== null ? {
|
|
601
596
|
'provisionedVCpuCount': this.getProvisionedVCpuCount()
|
|
602
|
-
} : {}),
|
|
597
|
+
} : {}),
|
|
598
|
+
...(typeof this.getMaxVmVCpuSize() !== 'undefined' && this.getMaxVmVCpuSize() !== null ? {
|
|
603
599
|
'maxVmVCpuSize': this.getMaxVmVCpuSize()
|
|
604
|
-
} : {}),
|
|
600
|
+
} : {}),
|
|
601
|
+
...(typeof this.getAvailableVCpuCount() !== 'undefined' && this.getAvailableVCpuCount() !== null ? {
|
|
605
602
|
'availableVCpuCount': this.getAvailableVCpuCount()
|
|
606
|
-
} : {}),
|
|
603
|
+
} : {}),
|
|
604
|
+
...(typeof this.getLargestPoweredOffVMVCpu() !== 'undefined' && this.getLargestPoweredOffVMVCpu() !== null ? {
|
|
607
605
|
'largestPoweredOffVMVCpu': this.getLargestPoweredOffVMVCpu()
|
|
608
|
-
} : {}),
|
|
606
|
+
} : {}),
|
|
607
|
+
...(typeof this.getTotalCpuHz() !== 'undefined' && this.getTotalCpuHz() !== null ? {
|
|
609
608
|
'totalCpuHz': this.getTotalCpuHz()
|
|
610
|
-
} : {}),
|
|
609
|
+
} : {}),
|
|
610
|
+
...(typeof this.getCurrentUsedCpuHz() !== 'undefined' && this.getCurrentUsedCpuHz() !== null ? {
|
|
611
611
|
'currentUsedCpuHz': this.getCurrentUsedCpuHz()
|
|
612
|
-
} : {}),
|
|
612
|
+
} : {}),
|
|
613
|
+
...(typeof this.getProvisionedCpuHz() !== 'undefined' && this.getProvisionedCpuHz() !== null ? {
|
|
613
614
|
'provisionedCpuHz': this.getProvisionedCpuHz()
|
|
614
|
-
} : {}),
|
|
615
|
+
} : {}),
|
|
616
|
+
...(typeof this.getTotalStorageCapacityRawBytes() !== 'undefined' && this.getTotalStorageCapacityRawBytes() !== null ? {
|
|
615
617
|
'totalStorageCapacityRawBytes': this.getTotalStorageCapacityRawBytes()
|
|
616
|
-
} : {}),
|
|
618
|
+
} : {}),
|
|
619
|
+
...(typeof this.getTotalStorageCapacityLogicalBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalBytes() !== null ? {
|
|
617
620
|
'totalStorageCapacityLogicalBytes': this.getTotalStorageCapacityLogicalBytes()
|
|
618
|
-
} : {}),
|
|
621
|
+
} : {}),
|
|
622
|
+
...(typeof this.getTotalStorageCapacityLogicalWithSavingsBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalWithSavingsBytes() !== null ? {
|
|
619
623
|
'totalStorageCapacityLogicalWithSavingsBytes': this.getTotalStorageCapacityLogicalWithSavingsBytes()
|
|
620
|
-
} : {}),
|
|
624
|
+
} : {}),
|
|
625
|
+
...(typeof this.getTotalStorageUsageBytes() !== 'undefined' && this.getTotalStorageUsageBytes() !== null ? {
|
|
621
626
|
'totalStorageUsageBytes': this.getTotalStorageUsageBytes()
|
|
622
|
-
} : {}),
|
|
627
|
+
} : {}),
|
|
628
|
+
...(typeof this.getTotalStorageAvailableBytes() !== 'undefined' && this.getTotalStorageAvailableBytes() !== null ? {
|
|
623
629
|
'totalStorageAvailableBytes': this.getTotalStorageAvailableBytes()
|
|
624
|
-
} : {}),
|
|
630
|
+
} : {}),
|
|
631
|
+
...(typeof this.getTotalStorageAvailableLogicalBytes() !== 'undefined' && this.getTotalStorageAvailableLogicalBytes() !== null ? {
|
|
625
632
|
'totalStorageAvailableLogicalBytes': this.getTotalStorageAvailableLogicalBytes()
|
|
626
|
-
} : {}),
|
|
633
|
+
} : {}),
|
|
634
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
627
635
|
'extId': this.getExtId()
|
|
628
|
-
} : {}),
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
636
|
+
} : {}),
|
|
637
|
+
...(typeof this.getLinks() !== 'undefined' && this.getLinks() !== null ? {
|
|
638
|
+
'links': this.getLinks().map(item => item.toJson(false))
|
|
639
|
+
} : {}),
|
|
640
|
+
...(typeof this.getTenantId() !== 'undefined' && this.getTenantId() !== null ? {
|
|
633
641
|
'tenantId': this.getTenantId()
|
|
634
|
-
} : {}),
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
|
|
642
|
+
} : {}),
|
|
643
|
+
'$reserved': this.get$Reserved(),
|
|
644
|
+
'$objectType': this.get$ObjectType(),
|
|
645
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
646
|
+
'$unknownFields': {}
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
return {
|
|
650
|
+
...(typeof this.getClusterName() !== 'undefined' && this.getClusterName() !== null ? {
|
|
641
651
|
'clusterName': this.getClusterName()
|
|
642
|
-
} : {}),
|
|
652
|
+
} : {}),
|
|
653
|
+
...(typeof this.getExternalIP() !== 'undefined' && this.getExternalIP() !== null ? {
|
|
643
654
|
'externalIP': this.getExternalIP().toJson(false)
|
|
644
|
-
} : {}),
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
655
|
+
} : {}),
|
|
656
|
+
...(typeof this.getCvmIPs() !== 'undefined' && this.getCvmIPs() !== null ? {
|
|
657
|
+
'cvmIPs': this.getCvmIPs().map(item => item.toJson(false))
|
|
658
|
+
} : {}),
|
|
659
|
+
...(typeof this.getTotalMemorySizeBytes() !== 'undefined' && this.getTotalMemorySizeBytes() !== null ? {
|
|
649
660
|
'totalMemorySizeBytes': this.getTotalMemorySizeBytes()
|
|
650
|
-
} : {}),
|
|
661
|
+
} : {}),
|
|
662
|
+
...(typeof this.getCurrentMemoryUsageSizeBytes() !== 'undefined' && this.getCurrentMemoryUsageSizeBytes() !== null ? {
|
|
651
663
|
'currentMemoryUsageSizeBytes': this.getCurrentMemoryUsageSizeBytes()
|
|
652
|
-
} : {}),
|
|
664
|
+
} : {}),
|
|
665
|
+
...(typeof this.getProvisionedMemoryUsageBytes() !== 'undefined' && this.getProvisionedMemoryUsageBytes() !== null ? {
|
|
653
666
|
'provisionedMemoryUsageBytes': this.getProvisionedMemoryUsageBytes()
|
|
654
|
-
} : {}),
|
|
667
|
+
} : {}),
|
|
668
|
+
...(typeof this.getMaxVmMemorySizeBytes() !== 'undefined' && this.getMaxVmMemorySizeBytes() !== null ? {
|
|
655
669
|
'maxVmMemorySizeBytes': this.getMaxVmMemorySizeBytes()
|
|
656
|
-
} : {}),
|
|
670
|
+
} : {}),
|
|
671
|
+
...(typeof this.getAvailableMemorySizeBytes() !== 'undefined' && this.getAvailableMemorySizeBytes() !== null ? {
|
|
657
672
|
'availableMemorySizeBytes': this.getAvailableMemorySizeBytes()
|
|
658
|
-
} : {}),
|
|
673
|
+
} : {}),
|
|
674
|
+
...(typeof this.getLargestPoweredOffVMMemory() !== 'undefined' && this.getLargestPoweredOffVMMemory() !== null ? {
|
|
659
675
|
'largestPoweredOffVMMemory': this.getLargestPoweredOffVMMemory()
|
|
660
|
-
} : {}),
|
|
676
|
+
} : {}),
|
|
677
|
+
...(typeof this.getTotalVCpuCount() !== 'undefined' && this.getTotalVCpuCount() !== null ? {
|
|
661
678
|
'totalVCpuCount': this.getTotalVCpuCount()
|
|
662
|
-
} : {}),
|
|
679
|
+
} : {}),
|
|
680
|
+
...(typeof this.getCurrentUsedVCpuCount() !== 'undefined' && this.getCurrentUsedVCpuCount() !== null ? {
|
|
663
681
|
'currentUsedVCpuCount': this.getCurrentUsedVCpuCount()
|
|
664
|
-
} : {}),
|
|
682
|
+
} : {}),
|
|
683
|
+
...(typeof this.getProvisionedVCpuCount() !== 'undefined' && this.getProvisionedVCpuCount() !== null ? {
|
|
665
684
|
'provisionedVCpuCount': this.getProvisionedVCpuCount()
|
|
666
|
-
} : {}),
|
|
685
|
+
} : {}),
|
|
686
|
+
...(typeof this.getMaxVmVCpuSize() !== 'undefined' && this.getMaxVmVCpuSize() !== null ? {
|
|
667
687
|
'maxVmVCpuSize': this.getMaxVmVCpuSize()
|
|
668
|
-
} : {}),
|
|
688
|
+
} : {}),
|
|
689
|
+
...(typeof this.getAvailableVCpuCount() !== 'undefined' && this.getAvailableVCpuCount() !== null ? {
|
|
669
690
|
'availableVCpuCount': this.getAvailableVCpuCount()
|
|
670
|
-
} : {}),
|
|
691
|
+
} : {}),
|
|
692
|
+
...(typeof this.getLargestPoweredOffVMVCpu() !== 'undefined' && this.getLargestPoweredOffVMVCpu() !== null ? {
|
|
671
693
|
'largestPoweredOffVMVCpu': this.getLargestPoweredOffVMVCpu()
|
|
672
|
-
} : {}),
|
|
694
|
+
} : {}),
|
|
695
|
+
...(typeof this.getTotalCpuHz() !== 'undefined' && this.getTotalCpuHz() !== null ? {
|
|
673
696
|
'totalCpuHz': this.getTotalCpuHz()
|
|
674
|
-
} : {}),
|
|
697
|
+
} : {}),
|
|
698
|
+
...(typeof this.getCurrentUsedCpuHz() !== 'undefined' && this.getCurrentUsedCpuHz() !== null ? {
|
|
675
699
|
'currentUsedCpuHz': this.getCurrentUsedCpuHz()
|
|
676
|
-
} : {}),
|
|
700
|
+
} : {}),
|
|
701
|
+
...(typeof this.getProvisionedCpuHz() !== 'undefined' && this.getProvisionedCpuHz() !== null ? {
|
|
677
702
|
'provisionedCpuHz': this.getProvisionedCpuHz()
|
|
678
|
-
} : {}),
|
|
703
|
+
} : {}),
|
|
704
|
+
...(typeof this.getTotalStorageCapacityRawBytes() !== 'undefined' && this.getTotalStorageCapacityRawBytes() !== null ? {
|
|
679
705
|
'totalStorageCapacityRawBytes': this.getTotalStorageCapacityRawBytes()
|
|
680
|
-
} : {}),
|
|
706
|
+
} : {}),
|
|
707
|
+
...(typeof this.getTotalStorageCapacityLogicalBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalBytes() !== null ? {
|
|
681
708
|
'totalStorageCapacityLogicalBytes': this.getTotalStorageCapacityLogicalBytes()
|
|
682
|
-
} : {}),
|
|
709
|
+
} : {}),
|
|
710
|
+
...(typeof this.getTotalStorageCapacityLogicalWithSavingsBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalWithSavingsBytes() !== null ? {
|
|
683
711
|
'totalStorageCapacityLogicalWithSavingsBytes': this.getTotalStorageCapacityLogicalWithSavingsBytes()
|
|
684
|
-
} : {}),
|
|
712
|
+
} : {}),
|
|
713
|
+
...(typeof this.getTotalStorageUsageBytes() !== 'undefined' && this.getTotalStorageUsageBytes() !== null ? {
|
|
685
714
|
'totalStorageUsageBytes': this.getTotalStorageUsageBytes()
|
|
686
|
-
} : {}),
|
|
715
|
+
} : {}),
|
|
716
|
+
...(typeof this.getTotalStorageAvailableBytes() !== 'undefined' && this.getTotalStorageAvailableBytes() !== null ? {
|
|
687
717
|
'totalStorageAvailableBytes': this.getTotalStorageAvailableBytes()
|
|
688
|
-
} : {}),
|
|
718
|
+
} : {}),
|
|
719
|
+
...(typeof this.getTotalStorageAvailableLogicalBytes() !== 'undefined' && this.getTotalStorageAvailableLogicalBytes() !== null ? {
|
|
689
720
|
'totalStorageAvailableLogicalBytes': this.getTotalStorageAvailableLogicalBytes()
|
|
690
|
-
} : {}),
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
}
|
|
721
|
+
} : {}),
|
|
722
|
+
'$reserved': this.get$Reserved(),
|
|
723
|
+
'$objectType': this.get$ObjectType(),
|
|
724
|
+
...(typeof this.get$UnknownFields() !== 'undefined' && this.get$UnknownFields() !== null ? this.get$UnknownFields() : {}),
|
|
725
|
+
'$unknownFields': {}
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
validate(scope, properties) {
|
|
729
|
+
let propList = [];
|
|
730
|
+
if (arguments.length === 0 || arguments.length === 1 && arguments[0] instanceof _ValidationScopes.default) {
|
|
731
|
+
//cases validate() and validate(scope)
|
|
732
|
+
propList = [];
|
|
733
|
+
} else if (arguments.length === 1) {
|
|
734
|
+
//case validate(properties)
|
|
735
|
+
propList = arguments[0];
|
|
736
|
+
scope = null;
|
|
737
|
+
} else {
|
|
738
|
+
//case validate(scope, properties)
|
|
739
|
+
propList = arguments[1];
|
|
695
740
|
}
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
//cases validate() and validate(scope)
|
|
703
|
-
propList = [];
|
|
704
|
-
} else if (arguments.length === 1) {
|
|
705
|
-
//case validate(properties)
|
|
706
|
-
propList = arguments[0];
|
|
707
|
-
scope = null;
|
|
708
|
-
} else {
|
|
709
|
-
//case validate(scope, properties)
|
|
710
|
-
propList = arguments[1];
|
|
741
|
+
let res = [];
|
|
742
|
+
let err = null;
|
|
743
|
+
propList.forEach(property => {
|
|
744
|
+
err = this.validateProperty(property, scope);
|
|
745
|
+
if (err) {
|
|
746
|
+
res.push(err);
|
|
711
747
|
}
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
err
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
719
|
-
});
|
|
720
|
-
return new Promise(function (resolve, reject) {
|
|
721
|
-
if (res.length !== 0) {
|
|
722
|
-
reject(err);
|
|
723
|
-
} else {
|
|
724
|
-
resolve();
|
|
725
|
-
}
|
|
726
|
-
});
|
|
727
|
-
}
|
|
728
|
-
}, {
|
|
729
|
-
key: "validateProperty",
|
|
730
|
-
value: function validateProperty(scope, property) {
|
|
731
|
-
if (property === "clusterName") {
|
|
732
|
-
if (typeof this.clusterName === 'undefined' || this.clusterName === null) {
|
|
733
|
-
return new _ValidationError["default"]("clusterName", "undefined or null");
|
|
734
|
-
}
|
|
748
|
+
});
|
|
749
|
+
return new Promise(function (resolve, reject) {
|
|
750
|
+
if (res.length !== 0) {
|
|
751
|
+
reject(err);
|
|
752
|
+
} else {
|
|
753
|
+
resolve();
|
|
735
754
|
}
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
validateProperty(scope, property) {
|
|
758
|
+
if (property === "clusterName") {
|
|
759
|
+
if (typeof this.clusterName === 'undefined' || this.clusterName === null) {
|
|
760
|
+
return new _ValidationError.default("clusterName", "undefined or null");
|
|
740
761
|
}
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
762
|
+
}
|
|
763
|
+
if (property === "externalIP") {
|
|
764
|
+
if (typeof this.externalIP === 'undefined' || this.externalIP === null) {
|
|
765
|
+
return new _ValidationError.default("externalIP", "undefined or null");
|
|
745
766
|
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
767
|
+
}
|
|
768
|
+
if (property === "cvmIPs") {
|
|
769
|
+
if (typeof this.cvmIPs === 'undefined' || this.cvmIPs === null) {
|
|
770
|
+
return new _ValidationError.default("cvmIPs", "undefined or null");
|
|
750
771
|
}
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
772
|
+
}
|
|
773
|
+
if (property === "totalMemorySizeBytes") {
|
|
774
|
+
if (typeof this.totalMemorySizeBytes === 'undefined' || this.totalMemorySizeBytes === null) {
|
|
775
|
+
return new _ValidationError.default("totalMemorySizeBytes", "undefined or null");
|
|
755
776
|
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
777
|
+
}
|
|
778
|
+
if (property === "currentMemoryUsageSizeBytes") {
|
|
779
|
+
if (typeof this.currentMemoryUsageSizeBytes === 'undefined' || this.currentMemoryUsageSizeBytes === null) {
|
|
780
|
+
return new _ValidationError.default("currentMemoryUsageSizeBytes", "undefined or null");
|
|
760
781
|
}
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
782
|
+
}
|
|
783
|
+
if (property === "provisionedMemoryUsageBytes") {
|
|
784
|
+
if (typeof this.provisionedMemoryUsageBytes === 'undefined' || this.provisionedMemoryUsageBytes === null) {
|
|
785
|
+
return new _ValidationError.default("provisionedMemoryUsageBytes", "undefined or null");
|
|
765
786
|
}
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
787
|
+
}
|
|
788
|
+
if (property === "maxVmMemorySizeBytes") {
|
|
789
|
+
if (typeof this.maxVmMemorySizeBytes === 'undefined' || this.maxVmMemorySizeBytes === null) {
|
|
790
|
+
return new _ValidationError.default("maxVmMemorySizeBytes", "undefined or null");
|
|
770
791
|
}
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
792
|
+
}
|
|
793
|
+
if (property === "availableMemorySizeBytes") {
|
|
794
|
+
if (typeof this.availableMemorySizeBytes === 'undefined' || this.availableMemorySizeBytes === null) {
|
|
795
|
+
return new _ValidationError.default("availableMemorySizeBytes", "undefined or null");
|
|
775
796
|
}
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
797
|
+
}
|
|
798
|
+
if (property === "largestPoweredOffVMMemory") {
|
|
799
|
+
if (typeof this.largestPoweredOffVMMemory === 'undefined' || this.largestPoweredOffVMMemory === null) {
|
|
800
|
+
return new _ValidationError.default("largestPoweredOffVMMemory", "undefined or null");
|
|
780
801
|
}
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
802
|
+
}
|
|
803
|
+
if (property === "totalVCpuCount") {
|
|
804
|
+
if (typeof this.totalVCpuCount === 'undefined' || this.totalVCpuCount === null) {
|
|
805
|
+
return new _ValidationError.default("totalVCpuCount", "undefined or null");
|
|
785
806
|
}
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
807
|
+
}
|
|
808
|
+
if (property === "currentUsedVCpuCount") {
|
|
809
|
+
if (typeof this.currentUsedVCpuCount === 'undefined' || this.currentUsedVCpuCount === null) {
|
|
810
|
+
return new _ValidationError.default("currentUsedVCpuCount", "undefined or null");
|
|
790
811
|
}
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
812
|
+
}
|
|
813
|
+
if (property === "provisionedVCpuCount") {
|
|
814
|
+
if (typeof this.provisionedVCpuCount === 'undefined' || this.provisionedVCpuCount === null) {
|
|
815
|
+
return new _ValidationError.default("provisionedVCpuCount", "undefined or null");
|
|
795
816
|
}
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
817
|
+
}
|
|
818
|
+
if (property === "maxVmVCpuSize") {
|
|
819
|
+
if (typeof this.maxVmVCpuSize === 'undefined' || this.maxVmVCpuSize === null) {
|
|
820
|
+
return new _ValidationError.default("maxVmVCpuSize", "undefined or null");
|
|
800
821
|
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
822
|
+
}
|
|
823
|
+
if (property === "availableVCpuCount") {
|
|
824
|
+
if (typeof this.availableVCpuCount === 'undefined' || this.availableVCpuCount === null) {
|
|
825
|
+
return new _ValidationError.default("availableVCpuCount", "undefined or null");
|
|
805
826
|
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
827
|
+
}
|
|
828
|
+
if (property === "largestPoweredOffVMVCpu") {
|
|
829
|
+
if (typeof this.largestPoweredOffVMVCpu === 'undefined' || this.largestPoweredOffVMVCpu === null) {
|
|
830
|
+
return new _ValidationError.default("largestPoweredOffVMVCpu", "undefined or null");
|
|
810
831
|
}
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
832
|
+
}
|
|
833
|
+
if (property === "totalCpuHz") {
|
|
834
|
+
if (typeof this.totalCpuHz === 'undefined' || this.totalCpuHz === null) {
|
|
835
|
+
return new _ValidationError.default("totalCpuHz", "undefined or null");
|
|
815
836
|
}
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
837
|
+
}
|
|
838
|
+
if (property === "currentUsedCpuHz") {
|
|
839
|
+
if (typeof this.currentUsedCpuHz === 'undefined' || this.currentUsedCpuHz === null) {
|
|
840
|
+
return new _ValidationError.default("currentUsedCpuHz", "undefined or null");
|
|
820
841
|
}
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
842
|
+
}
|
|
843
|
+
if (property === "provisionedCpuHz") {
|
|
844
|
+
if (typeof this.provisionedCpuHz === 'undefined' || this.provisionedCpuHz === null) {
|
|
845
|
+
return new _ValidationError.default("provisionedCpuHz", "undefined or null");
|
|
825
846
|
}
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
847
|
+
}
|
|
848
|
+
if (property === "totalStorageCapacityRawBytes") {
|
|
849
|
+
if (typeof this.totalStorageCapacityRawBytes === 'undefined' || this.totalStorageCapacityRawBytes === null) {
|
|
850
|
+
return new _ValidationError.default("totalStorageCapacityRawBytes", "undefined or null");
|
|
830
851
|
}
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
852
|
+
}
|
|
853
|
+
if (property === "totalStorageCapacityLogicalBytes") {
|
|
854
|
+
if (typeof this.totalStorageCapacityLogicalBytes === 'undefined' || this.totalStorageCapacityLogicalBytes === null) {
|
|
855
|
+
return new _ValidationError.default("totalStorageCapacityLogicalBytes", "undefined or null");
|
|
835
856
|
}
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
857
|
+
}
|
|
858
|
+
if (property === "totalStorageCapacityLogicalWithSavingsBytes") {
|
|
859
|
+
if (typeof this.totalStorageCapacityLogicalWithSavingsBytes === 'undefined' || this.totalStorageCapacityLogicalWithSavingsBytes === null) {
|
|
860
|
+
return new _ValidationError.default("totalStorageCapacityLogicalWithSavingsBytes", "undefined or null");
|
|
840
861
|
}
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
862
|
+
}
|
|
863
|
+
if (property === "totalStorageUsageBytes") {
|
|
864
|
+
if (typeof this.totalStorageUsageBytes === 'undefined' || this.totalStorageUsageBytes === null) {
|
|
865
|
+
return new _ValidationError.default("totalStorageUsageBytes", "undefined or null");
|
|
845
866
|
}
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
867
|
+
}
|
|
868
|
+
if (property === "totalStorageAvailableBytes") {
|
|
869
|
+
if (typeof this.totalStorageAvailableBytes === 'undefined' || this.totalStorageAvailableBytes === null) {
|
|
870
|
+
return new _ValidationError.default("totalStorageAvailableBytes", "undefined or null");
|
|
850
871
|
}
|
|
851
|
-
return new _ValidationError["default"](property, "no such property exists");
|
|
852
872
|
}
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
var obj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
857
|
-
var callFromChild = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
858
|
-
var items, item, i, itemArr, discriminator;
|
|
859
|
-
if (data) {
|
|
860
|
-
obj = obj || new ClusterMetrics();
|
|
861
|
-
_ExternalizableAbstractModel["default"].constructFromObject(data, obj, true);
|
|
862
|
-
if (data.hasOwnProperty('clusterName') && data.clusterName !== null && data.clusterName !== undefined) {
|
|
863
|
-
obj.setClusterName(data['clusterName']);
|
|
864
|
-
}
|
|
865
|
-
if (data.hasOwnProperty('externalIP') && data.externalIP !== null && data.externalIP !== undefined) {
|
|
866
|
-
obj.setExternalIP(_IPv4Address["default"].constructFromObject(data['externalIP']));
|
|
867
|
-
}
|
|
868
|
-
if (data.hasOwnProperty('cvmIPs') && data.cvmIPs !== null && data.cvmIPs !== undefined) {
|
|
869
|
-
itemArr = [];
|
|
870
|
-
items = data.cvmIPs;
|
|
871
|
-
for (i = 0; i < items.length; i++) {
|
|
872
|
-
item = _IPv4Address["default"].constructFromObject(items[i], undefined);
|
|
873
|
-
itemArr.push(item);
|
|
874
|
-
}
|
|
875
|
-
obj.setCvmIPs(itemArr);
|
|
876
|
-
}
|
|
877
|
-
if (data.hasOwnProperty('totalMemorySizeBytes') && data.totalMemorySizeBytes !== null && data.totalMemorySizeBytes !== undefined) {
|
|
878
|
-
obj.setTotalMemorySizeBytes(data['totalMemorySizeBytes']);
|
|
879
|
-
}
|
|
880
|
-
if (data.hasOwnProperty('currentMemoryUsageSizeBytes') && data.currentMemoryUsageSizeBytes !== null && data.currentMemoryUsageSizeBytes !== undefined) {
|
|
881
|
-
obj.setCurrentMemoryUsageSizeBytes(data['currentMemoryUsageSizeBytes']);
|
|
882
|
-
}
|
|
883
|
-
if (data.hasOwnProperty('provisionedMemoryUsageBytes') && data.provisionedMemoryUsageBytes !== null && data.provisionedMemoryUsageBytes !== undefined) {
|
|
884
|
-
obj.setProvisionedMemoryUsageBytes(data['provisionedMemoryUsageBytes']);
|
|
885
|
-
}
|
|
886
|
-
if (data.hasOwnProperty('maxVmMemorySizeBytes') && data.maxVmMemorySizeBytes !== null && data.maxVmMemorySizeBytes !== undefined) {
|
|
887
|
-
obj.setMaxVmMemorySizeBytes(data['maxVmMemorySizeBytes']);
|
|
888
|
-
}
|
|
889
|
-
if (data.hasOwnProperty('availableMemorySizeBytes') && data.availableMemorySizeBytes !== null && data.availableMemorySizeBytes !== undefined) {
|
|
890
|
-
obj.setAvailableMemorySizeBytes(data['availableMemorySizeBytes']);
|
|
891
|
-
}
|
|
892
|
-
if (data.hasOwnProperty('largestPoweredOffVMMemory') && data.largestPoweredOffVMMemory !== null && data.largestPoweredOffVMMemory !== undefined) {
|
|
893
|
-
obj.setLargestPoweredOffVMMemory(data['largestPoweredOffVMMemory']);
|
|
894
|
-
}
|
|
895
|
-
if (data.hasOwnProperty('totalVCpuCount') && data.totalVCpuCount !== null && data.totalVCpuCount !== undefined) {
|
|
896
|
-
obj.setTotalVCpuCount(data['totalVCpuCount']);
|
|
897
|
-
}
|
|
898
|
-
if (data.hasOwnProperty('currentUsedVCpuCount') && data.currentUsedVCpuCount !== null && data.currentUsedVCpuCount !== undefined) {
|
|
899
|
-
obj.setCurrentUsedVCpuCount(data['currentUsedVCpuCount']);
|
|
900
|
-
}
|
|
901
|
-
if (data.hasOwnProperty('provisionedVCpuCount') && data.provisionedVCpuCount !== null && data.provisionedVCpuCount !== undefined) {
|
|
902
|
-
obj.setProvisionedVCpuCount(data['provisionedVCpuCount']);
|
|
903
|
-
}
|
|
904
|
-
if (data.hasOwnProperty('maxVmVCpuSize') && data.maxVmVCpuSize !== null && data.maxVmVCpuSize !== undefined) {
|
|
905
|
-
obj.setMaxVmVCpuSize(data['maxVmVCpuSize']);
|
|
906
|
-
}
|
|
907
|
-
if (data.hasOwnProperty('availableVCpuCount') && data.availableVCpuCount !== null && data.availableVCpuCount !== undefined) {
|
|
908
|
-
obj.setAvailableVCpuCount(data['availableVCpuCount']);
|
|
909
|
-
}
|
|
910
|
-
if (data.hasOwnProperty('largestPoweredOffVMVCpu') && data.largestPoweredOffVMVCpu !== null && data.largestPoweredOffVMVCpu !== undefined) {
|
|
911
|
-
obj.setLargestPoweredOffVMVCpu(data['largestPoweredOffVMVCpu']);
|
|
912
|
-
}
|
|
913
|
-
if (data.hasOwnProperty('totalCpuHz') && data.totalCpuHz !== null && data.totalCpuHz !== undefined) {
|
|
914
|
-
obj.setTotalCpuHz(data['totalCpuHz']);
|
|
915
|
-
}
|
|
916
|
-
if (data.hasOwnProperty('currentUsedCpuHz') && data.currentUsedCpuHz !== null && data.currentUsedCpuHz !== undefined) {
|
|
917
|
-
obj.setCurrentUsedCpuHz(data['currentUsedCpuHz']);
|
|
918
|
-
}
|
|
919
|
-
if (data.hasOwnProperty('provisionedCpuHz') && data.provisionedCpuHz !== null && data.provisionedCpuHz !== undefined) {
|
|
920
|
-
obj.setProvisionedCpuHz(data['provisionedCpuHz']);
|
|
921
|
-
}
|
|
922
|
-
if (data.hasOwnProperty('totalStorageCapacityRawBytes') && data.totalStorageCapacityRawBytes !== null && data.totalStorageCapacityRawBytes !== undefined) {
|
|
923
|
-
obj.setTotalStorageCapacityRawBytes(data['totalStorageCapacityRawBytes']);
|
|
924
|
-
}
|
|
925
|
-
if (data.hasOwnProperty('totalStorageCapacityLogicalBytes') && data.totalStorageCapacityLogicalBytes !== null && data.totalStorageCapacityLogicalBytes !== undefined) {
|
|
926
|
-
obj.setTotalStorageCapacityLogicalBytes(data['totalStorageCapacityLogicalBytes']);
|
|
927
|
-
}
|
|
928
|
-
if (data.hasOwnProperty('totalStorageCapacityLogicalWithSavingsBytes') && data.totalStorageCapacityLogicalWithSavingsBytes !== null && data.totalStorageCapacityLogicalWithSavingsBytes !== undefined) {
|
|
929
|
-
obj.setTotalStorageCapacityLogicalWithSavingsBytes(data['totalStorageCapacityLogicalWithSavingsBytes']);
|
|
930
|
-
}
|
|
931
|
-
if (data.hasOwnProperty('totalStorageUsageBytes') && data.totalStorageUsageBytes !== null && data.totalStorageUsageBytes !== undefined) {
|
|
932
|
-
obj.setTotalStorageUsageBytes(data['totalStorageUsageBytes']);
|
|
933
|
-
}
|
|
934
|
-
if (data.hasOwnProperty('totalStorageAvailableBytes') && data.totalStorageAvailableBytes !== null && data.totalStorageAvailableBytes !== undefined) {
|
|
935
|
-
obj.setTotalStorageAvailableBytes(data['totalStorageAvailableBytes']);
|
|
936
|
-
}
|
|
937
|
-
if (data.hasOwnProperty('totalStorageAvailableLogicalBytes') && data.totalStorageAvailableLogicalBytes !== null && data.totalStorageAvailableLogicalBytes !== undefined) {
|
|
938
|
-
obj.setTotalStorageAvailableLogicalBytes(data['totalStorageAvailableLogicalBytes']);
|
|
939
|
-
}
|
|
940
|
-
if (!callFromChild) {
|
|
941
|
-
obj.$unknownFields = _objectSpread({}, data.$unknownFields);
|
|
942
|
-
for (var property in data) {
|
|
943
|
-
// Check if the `property` is not already present in `obj` keys, either in snake_case or camelCase,
|
|
944
|
-
// as the model's fields are generated in camelCase, but the server might return snake_case (e.g., due to standards like OIDC).
|
|
945
|
-
// Also, ensure the `property` does not start with '$' and end with 'ItemDiscriminator'.
|
|
946
|
-
// If all conditions are true, add the `property` from `data` to `obj.$unknownFields` as an unknown field.
|
|
947
|
-
if (!Object.keys(obj).includes(property) && !Object.keys(obj).includes(this.snakeToCamel(property)) && !(property[0] === "$" && property.endsWith("ItemDiscriminator"))) {
|
|
948
|
-
obj.$unknownFields[property] = data[property];
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
}
|
|
873
|
+
if (property === "totalStorageAvailableLogicalBytes") {
|
|
874
|
+
if (typeof this.totalStorageAvailableLogicalBytes === 'undefined' || this.totalStorageAvailableLogicalBytes === null) {
|
|
875
|
+
return new _ValidationError.default("totalStorageAvailableLogicalBytes", "undefined or null");
|
|
952
876
|
}
|
|
953
|
-
return obj;
|
|
954
877
|
}
|
|
878
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
879
|
+
}
|
|
880
|
+
}
|
|
955
881
|
|
|
956
|
-
/**
|
|
957
|
-
* Converts a given snake_case string to camelCase.
|
|
958
|
-
* @param {string} snakeStr - The input string in snake_case format.
|
|
959
|
-
* @returns {string} - The converted string in camelCase format.
|
|
960
|
-
*/
|
|
961
|
-
}, {
|
|
962
|
-
key: "snakeToCamel",
|
|
963
|
-
value: function snakeToCamel(snakeStr) {
|
|
964
|
-
return snakeStr.replace(/(_\w)/g, function (match) {
|
|
965
|
-
return match[1].toUpperCase();
|
|
966
|
-
});
|
|
967
|
-
}
|
|
968
|
-
}]);
|
|
969
|
-
}(_ExternalizableAbstractModel["default"]);
|
|
970
882
|
/**
|
|
971
883
|
* Name of the cluster
|
|
972
884
|
* @memberof ClusterMetrics
|
|
973
885
|
*/
|
|
886
|
+
exports.default = ClusterMetrics;
|
|
974
887
|
function _toJsonMapType(obj, forMutation) {
|
|
975
888
|
if (obj instanceof Map) {
|
|
976
|
-
return Object.fromEntries(Array.from(obj,
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
v = _ref2[1];
|
|
980
|
-
return [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v];
|
|
981
|
-
}));
|
|
982
|
-
} else if (_typeof(obj) === 'object' && obj != null && obj.constructor === Object) {
|
|
983
|
-
return Object.fromEntries(Array.from(Object.entries(obj), function (entry) {
|
|
889
|
+
return Object.fromEntries(Array.from(obj, ([k, v]) => [k, typeof v.toJson !== "undefined" ? v.toJson(forMutation) : v]));
|
|
890
|
+
} else if (typeof obj === 'object' && obj != null && obj.constructor === Object) {
|
|
891
|
+
return Object.fromEntries(Array.from(Object.entries(obj), entry => {
|
|
984
892
|
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
985
893
|
}));
|
|
986
894
|
}
|
|
@@ -1141,14 +1049,14 @@ ClusterMetrics.prototype.totalStorageAvailableLogicalBytes = undefined;
|
|
|
1141
1049
|
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
1142
1050
|
* @memberof ClusterMetrics
|
|
1143
1051
|
*/
|
|
1144
|
-
_ExternalizableAbstractModel
|
|
1052
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
1145
1053
|
/**
|
|
1146
1054
|
* A HATEOAS style link for the response. Each link contains a user-friendly name identifying the link and an address for retrieving the particular resource.
|
|
1147
1055
|
* @memberof ClusterMetrics
|
|
1148
1056
|
*/
|
|
1149
|
-
_ExternalizableAbstractModel
|
|
1057
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
1150
1058
|
/**
|
|
1151
1059
|
* A globally unique identifier that represents the tenant that owns this entity. The system automatically assigns it, and it and is immutable from an API consumer perspective (some use cases may cause this ID to change - For instance, a use case may require the transfer of ownership of the entity, but these cases are handled automatically on the server).
|
|
1152
1060
|
* @memberof ClusterMetrics
|
|
1153
1061
|
*/
|
|
1154
|
-
_TenantAwareModel
|
|
1062
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|