@nutanix-scratch/aiops-js-client 4.0.3-alpha.2 → 4.2.2-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/LICENSE.txt +202 -49
- package/README.md +70 -43
- package/dist/Ntnx-Aiops-js-client-prod.js +1 -11
- package/dist/Ntnx-Aiops-js-client.js +1045 -1019
- package/dist/es/ApiClient.d.ts +43 -7
- package/dist/es/ApiClient.js +1071 -678
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +153 -194
- package/dist/es/apis/scenarios-endpoints.d.ts +181 -0
- package/dist/es/apis/scenarios-endpoints.js +624 -0
- package/dist/es/apis/stats-endpoints.d.ts +31 -41
- package/dist/es/apis/stats-endpoints.js +215 -230
- package/dist/es/index.d.ts +157 -21
- package/dist/es/index.js +669 -126
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +144 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +597 -0
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +274 -0
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +1062 -0
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +31 -0
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +368 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +81 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Node.js +366 -0
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +121 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +81 -0
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +366 -0
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +121 -0
- package/dist/es/models/aiops/v4/common/ClusterType.d.ts +19 -0
- package/dist/es/models/aiops/v4/common/ClusterType.js +77 -0
- package/dist/es/models/aiops/v4/config/CapacityType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CapacityType.js +95 -0
- package/dist/es/models/aiops/v4/config/CapacityUnit.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CapacityUnit.js +83 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +71 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +281 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +83 -0
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +83 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +70 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +338 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +77 -0
- package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/ClusterConfig.js +279 -0
- package/dist/es/models/aiops/v4/config/ClusterType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/ClusterType.js +83 -0
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +191 -0
- package/dist/es/models/aiops/v4/config/DataStoreConfig.js +616 -0
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +57 -0
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +290 -0
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +57 -0
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +290 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +67 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptor.js +396 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +310 -0
- 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 +22 -0
- package/dist/es/models/aiops/v4/config/EntityType.js +233 -0
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +310 -0
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +57 -0
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +287 -0
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +59 -0
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +315 -0
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +59 -0
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +315 -0
- package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +155 -0
- package/dist/es/models/aiops/v4/config/MetricDescriptor.js +604 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +77 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +70 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +338 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +77 -0
- package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +135 -0
- package/dist/es/models/aiops/v4/config/NodeConfig.js +478 -0
- package/dist/es/models/aiops/v4/config/NodeSource.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/NodeSource.js +89 -0
- package/dist/es/models/aiops/v4/config/PolicyType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/PolicyType.js +83 -0
- package/dist/es/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/ReplicationFactor.js +83 -0
- package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +117 -0
- package/dist/es/models/aiops/v4/config/ResourceCapacity.js +404 -0
- package/dist/es/models/aiops/v4/config/Runway.d.ts +125 -0
- package/dist/es/models/aiops/v4/config/Runway.js +437 -0
- package/dist/es/models/aiops/v4/config/Scenario.d.ts +134 -0
- package/dist/es/models/aiops/v4/config/Scenario.js +626 -0
- package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/config/ScenarioProjection.js +127 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +98 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +358 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +133 -0
- package/dist/es/models/aiops/v4/config/Simulation.d.ts +32 -0
- package/dist/es/models/aiops/v4/config/Simulation.js +273 -0
- package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
- package/dist/es/models/aiops/v4/config/SimulationProjection.js +124 -0
- package/dist/es/models/aiops/v4/config/Source.d.ts +22 -0
- package/dist/es/models/aiops/v4/config/Source.js +233 -0
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +310 -0
- package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +110 -0
- package/dist/es/models/aiops/v4/config/SplunkWorkload.js +401 -0
- package/dist/es/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/SqlProfileType.js +89 -0
- package/dist/es/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/SqlTransactionType.js +83 -0
- package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +102 -0
- package/dist/es/models/aiops/v4/config/SqlWorkload.js +370 -0
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +288 -0
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +310 -0
- package/dist/es/models/aiops/v4/config/ValueRange.d.ts +58 -0
- package/dist/es/models/aiops/v4/config/ValueRange.js +271 -0
- package/dist/es/models/aiops/v4/{stats → config}/ValueType.js +12 -15
- package/dist/es/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiProvisionType.js +101 -0
- package/dist/es/models/aiops/v4/config/VdiUserType.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiUserType.js +95 -0
- package/dist/es/models/aiops/v4/config/VdiVendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/VdiVendor.js +83 -0
- package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +101 -0
- package/dist/es/models/aiops/v4/config/VdiWorkload.js +367 -0
- package/dist/es/models/aiops/v4/config/Vendor.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/Vendor.js +125 -0
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +79 -0
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +311 -0
- package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +74 -0
- package/dist/es/models/aiops/v4/config/VmWorkload.js +294 -0
- package/dist/es/models/aiops/v4/config/Workload.d.ts +105 -0
- package/dist/es/models/aiops/v4/config/Workload.js +398 -0
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +83 -0
- package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +141 -0
- package/dist/es/models/aiops/v4/config/XenWorkload.js +483 -0
- package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +121 -0
- package/dist/es/models/aiops/v4/config/XfitPolicy.js +541 -0
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +14 -0
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +134 -0
- package/dist/es/models/aiops/v4/error/AppMessage.d.ts +62 -55
- package/dist/es/models/aiops/v4/error/AppMessage.js +303 -310
- package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +23 -24
- package/dist/es/models/aiops/v4/error/ErrorResponse.js +224 -223
- package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +52 -48
- package/dist/es/models/aiops/v4/error/SchemaValidationError.js +287 -292
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +37 -36
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +224 -228
- package/dist/es/models/aiops/v4/stats/BoolList.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/BoolList.js +182 -185
- package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/BoolVal.js +175 -178
- package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/DoubleList.js +182 -185
- package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/DoubleVal.js +175 -178
- package/dist/es/models/aiops/v4/stats/Entity.d.ts +25 -37
- package/dist/es/models/aiops/v4/stats/Entity.js +269 -280
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +29 -30
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +239 -265
- package/dist/es/models/aiops/v4/stats/IntList.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/IntList.js +182 -185
- package/dist/es/models/aiops/v4/stats/IntVal.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/IntVal.js +175 -178
- package/dist/es/models/aiops/v4/stats/Metric.d.ts +29 -30
- package/dist/es/models/aiops/v4/stats/Metric.js +197 -205
- package/dist/es/models/aiops/v4/stats/Point.d.ts +34 -30
- package/dist/es/models/aiops/v4/stats/Point.js +231 -246
- package/dist/es/models/aiops/v4/stats/StrList.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/StrList.js +182 -185
- package/dist/es/models/aiops/v4/stats/StrVal.d.ts +29 -27
- package/dist/es/models/aiops/v4/stats/StrVal.js +175 -178
- package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +29 -30
- package/dist/es/models/aiops/v4/stats/TimeSeries.js +207 -218
- package/dist/es/models/common/v1/config/Flag.d.ts +30 -30
- package/dist/es/models/common/v1/config/Flag.js +203 -202
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +70 -0
- package/dist/es/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/es/models/common/v1/config/KVPair.d.ts +34 -31
- package/dist/es/models/common/v1/config/KVPair.js +259 -260
- package/dist/es/models/common/v1/config/KVStringPair.d.ts +58 -0
- package/dist/es/models/common/v1/config/KVStringPair.js +277 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +236 -0
- package/dist/es/models/common/v1/config/Message.d.ts +37 -42
- package/dist/es/models/common/v1/config/Message.js +244 -259
- package/dist/es/models/common/v1/config/MessageSeverity.js +18 -21
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +23 -26
- package/dist/es/models/common/v1/config/TenantAwareModel.js +169 -179
- package/dist/es/models/common/v1/response/ApiLink.d.ts +26 -30
- package/dist/es/models/common/v1/response/ApiLink.js +197 -208
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +47 -50
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +313 -334
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +15 -23
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +195 -206
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +24 -27
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +47 -0
- package/dist/es/models/prism/v4/config/TaskReference.js +244 -0
- package/dist/es/models/validation/ValidationError.js +27 -45
- package/dist/es/models/validation/ValidationScopes.js +3 -4
- package/dist/es/utils/ValidationUtils.js +40 -72
- package/dist/lib/ApiClient.d.ts +43 -7
- package/dist/lib/ApiClient.js +1071 -678
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +153 -194
- package/dist/lib/apis/scenarios-endpoints.d.ts +181 -0
- package/dist/lib/apis/scenarios-endpoints.js +624 -0
- package/dist/lib/apis/stats-endpoints.d.ts +31 -41
- package/dist/lib/apis/stats-endpoints.js +215 -230
- package/dist/lib/index.d.ts +157 -21
- package/dist/lib/index.js +669 -126
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +144 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +597 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +274 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +1062 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +31 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +368 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +81 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +366 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +121 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +81 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +366 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +121 -0
- package/dist/lib/models/aiops/v4/common/ClusterType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/common/ClusterType.js +77 -0
- package/dist/lib/models/aiops/v4/config/CapacityType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CapacityType.js +95 -0
- package/dist/lib/models/aiops/v4/config/CapacityUnit.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CapacityUnit.js +83 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +71 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +281 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +83 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +83 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +70 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +338 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +77 -0
- package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/ClusterConfig.js +279 -0
- package/dist/lib/models/aiops/v4/config/ClusterType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/ClusterType.js +83 -0
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +191 -0
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +616 -0
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +57 -0
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +290 -0
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +57 -0
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +290 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +67 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +396 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +310 -0
- 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 +22 -0
- package/dist/lib/models/aiops/v4/config/EntityType.js +233 -0
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +310 -0
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +57 -0
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +287 -0
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +59 -0
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +315 -0
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +59 -0
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +315 -0
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +155 -0
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +604 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +77 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +70 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +338 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +77 -0
- package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +135 -0
- package/dist/lib/models/aiops/v4/config/NodeConfig.js +478 -0
- package/dist/lib/models/aiops/v4/config/NodeSource.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/NodeSource.js +89 -0
- package/dist/lib/models/aiops/v4/config/PolicyType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/PolicyType.js +83 -0
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +83 -0
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +117 -0
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +404 -0
- package/dist/lib/models/aiops/v4/config/Runway.d.ts +125 -0
- package/dist/lib/models/aiops/v4/config/Runway.js +437 -0
- package/dist/lib/models/aiops/v4/config/Scenario.d.ts +134 -0
- package/dist/lib/models/aiops/v4/config/Scenario.js +626 -0
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +127 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +98 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +358 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +16 -0
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +133 -0
- package/dist/lib/models/aiops/v4/config/Simulation.d.ts +32 -0
- package/dist/lib/models/aiops/v4/config/Simulation.js +273 -0
- package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +10 -0
- package/dist/lib/models/aiops/v4/config/SimulationProjection.js +124 -0
- package/dist/lib/models/aiops/v4/config/Source.d.ts +22 -0
- package/dist/lib/models/aiops/v4/config/Source.js +233 -0
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +310 -0
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +110 -0
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +401 -0
- package/dist/lib/models/aiops/v4/config/SqlProfileType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/SqlProfileType.js +89 -0
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +83 -0
- package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +102 -0
- package/dist/lib/models/aiops/v4/config/SqlWorkload.js +370 -0
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +288 -0
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +310 -0
- package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +58 -0
- package/dist/lib/models/aiops/v4/config/ValueRange.js +271 -0
- package/dist/lib/models/aiops/v4/{stats → config}/ValueType.js +12 -15
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +101 -0
- package/dist/lib/models/aiops/v4/config/VdiUserType.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiUserType.js +95 -0
- package/dist/lib/models/aiops/v4/config/VdiVendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/VdiVendor.js +83 -0
- package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +101 -0
- package/dist/lib/models/aiops/v4/config/VdiWorkload.js +367 -0
- package/dist/lib/models/aiops/v4/config/Vendor.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/Vendor.js +125 -0
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +79 -0
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +311 -0
- package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +74 -0
- package/dist/lib/models/aiops/v4/config/VmWorkload.js +294 -0
- package/dist/lib/models/aiops/v4/config/Workload.d.ts +105 -0
- package/dist/lib/models/aiops/v4/config/Workload.js +398 -0
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.d.ts +19 -0
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +83 -0
- package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +141 -0
- package/dist/lib/models/aiops/v4/config/XenWorkload.js +483 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +121 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicy.js +541 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +14 -0
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +134 -0
- package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +62 -55
- package/dist/lib/models/aiops/v4/error/AppMessage.js +303 -310
- package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +23 -24
- package/dist/lib/models/aiops/v4/error/ErrorResponse.js +224 -223
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +52 -48
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +287 -292
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +37 -36
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +224 -228
- package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/BoolList.js +182 -185
- package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/BoolVal.js +175 -178
- package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/DoubleList.js +182 -185
- package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/DoubleVal.js +175 -178
- package/dist/lib/models/aiops/v4/stats/Entity.d.ts +25 -37
- package/dist/lib/models/aiops/v4/stats/Entity.js +269 -280
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +29 -30
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +239 -265
- package/dist/lib/models/aiops/v4/stats/IntList.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/IntList.js +182 -185
- package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/IntVal.js +175 -178
- package/dist/lib/models/aiops/v4/stats/Metric.d.ts +29 -30
- package/dist/lib/models/aiops/v4/stats/Metric.js +197 -205
- package/dist/lib/models/aiops/v4/stats/Point.d.ts +34 -30
- package/dist/lib/models/aiops/v4/stats/Point.js +231 -246
- package/dist/lib/models/aiops/v4/stats/StrList.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/StrList.js +182 -185
- package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +29 -27
- package/dist/lib/models/aiops/v4/stats/StrVal.js +175 -178
- package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +29 -30
- package/dist/lib/models/aiops/v4/stats/TimeSeries.js +207 -218
- package/dist/lib/models/common/v1/config/Flag.d.ts +30 -30
- package/dist/lib/models/common/v1/config/Flag.js +203 -202
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +70 -0
- package/dist/lib/models/common/v1/config/IPv4Address.js +288 -0
- package/dist/lib/models/common/v1/config/KVPair.d.ts +34 -31
- package/dist/lib/models/common/v1/config/KVPair.js +259 -260
- package/dist/lib/models/common/v1/config/KVStringPair.d.ts +58 -0
- package/dist/lib/models/common/v1/config/KVStringPair.js +277 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +53 -0
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +236 -0
- package/dist/lib/models/common/v1/config/Message.d.ts +37 -42
- package/dist/lib/models/common/v1/config/Message.js +244 -259
- package/dist/lib/models/common/v1/config/MessageSeverity.js +18 -21
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +23 -26
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +169 -179
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +26 -30
- package/dist/lib/models/common/v1/response/ApiLink.js +197 -208
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +47 -50
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +313 -334
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +15 -23
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +195 -206
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +24 -27
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +47 -0
- package/dist/lib/models/prism/v4/config/TaskReference.js +244 -0
- package/dist/lib/models/validation/ValidationError.js +27 -45
- package/dist/lib/models/validation/ValidationScopes.js +3 -4
- package/dist/lib/utils/ValidationUtils.js +40 -72
- package/package.json +6 -5
- package/dist/es/models/aiops/v4/stats/DeprecationModel.d.ts +0 -86
- package/dist/es/models/aiops/v4/stats/DeprecationModel.js +0 -358
- package/dist/es/models/aiops/v4/stats/EntityDescriptor.d.ts +0 -78
- package/dist/es/models/aiops/v4/stats/EntityDescriptor.js +0 -403
- package/dist/es/models/aiops/v4/stats/EntityDescriptorListApiResponse.d.ts +0 -59
- package/dist/es/models/aiops/v4/stats/EntityDescriptorListApiResponse.js +0 -336
- package/dist/es/models/aiops/v4/stats/EntityType.d.ts +0 -32
- package/dist/es/models/aiops/v4/stats/EntityType.js +0 -227
- package/dist/es/models/aiops/v4/stats/EntityTypeListApiResponse.d.ts +0 -59
- package/dist/es/models/aiops/v4/stats/EntityTypeListApiResponse.js +0 -336
- package/dist/es/models/aiops/v4/stats/MetricDescriptor.d.ts +0 -174
- package/dist/es/models/aiops/v4/stats/MetricDescriptor.js +0 -667
- package/dist/es/models/aiops/v4/stats/Source.d.ts +0 -32
- package/dist/es/models/aiops/v4/stats/Source.js +0 -227
- package/dist/es/models/aiops/v4/stats/SourceListApiResponse.d.ts +0 -59
- package/dist/es/models/aiops/v4/stats/SourceListApiResponse.js +0 -336
- package/dist/es/models/aiops/v4/stats/ValueRange.d.ts +0 -58
- package/dist/es/models/aiops/v4/stats/ValueRange.js +0 -276
- package/dist/lib/models/aiops/v4/stats/DeprecationModel.d.ts +0 -86
- package/dist/lib/models/aiops/v4/stats/DeprecationModel.js +0 -358
- package/dist/lib/models/aiops/v4/stats/EntityDescriptor.d.ts +0 -78
- package/dist/lib/models/aiops/v4/stats/EntityDescriptor.js +0 -403
- package/dist/lib/models/aiops/v4/stats/EntityDescriptorListApiResponse.d.ts +0 -59
- package/dist/lib/models/aiops/v4/stats/EntityDescriptorListApiResponse.js +0 -336
- package/dist/lib/models/aiops/v4/stats/EntityType.d.ts +0 -32
- package/dist/lib/models/aiops/v4/stats/EntityType.js +0 -227
- package/dist/lib/models/aiops/v4/stats/EntityTypeListApiResponse.d.ts +0 -59
- package/dist/lib/models/aiops/v4/stats/EntityTypeListApiResponse.js +0 -336
- package/dist/lib/models/aiops/v4/stats/MetricDescriptor.d.ts +0 -174
- package/dist/lib/models/aiops/v4/stats/MetricDescriptor.js +0 -667
- package/dist/lib/models/aiops/v4/stats/Source.d.ts +0 -32
- package/dist/lib/models/aiops/v4/stats/Source.js +0 -227
- package/dist/lib/models/aiops/v4/stats/SourceListApiResponse.d.ts +0 -59
- package/dist/lib/models/aiops/v4/stats/SourceListApiResponse.js +0 -336
- package/dist/lib/models/aiops/v4/stats/ValueRange.d.ts +0 -58
- package/dist/lib/models/aiops/v4/stats/ValueRange.js +0 -276
- /package/dist/es/models/aiops/v4/{stats → config}/ValueType.d.ts +0 -0
- /package/dist/lib/models/aiops/v4/{stats → config}/ValueType.d.ts +0 -0
|
@@ -0,0 +1,1062 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _IPv4Address = _interopRequireDefault(require("../../../common/v1/config/IPv4Address"));
|
|
8
|
+
var _TenantAwareModel = _interopRequireDefault(require("../../../common/v1/config/TenantAwareModel"));
|
|
9
|
+
var _ApiLink = _interopRequireDefault(require("../../../common/v1/response/ApiLink"));
|
|
10
|
+
var _ExternalizableAbstractModel = _interopRequireDefault(require("../../../common/v1/response/ExternalizableAbstractModel"));
|
|
11
|
+
var _ValidationScopes = _interopRequireDefault(require("../../../validation/ValidationScopes"));
|
|
12
|
+
var _ValidationUtils = _interopRequireDefault(require("../../../../utils/ValidationUtils"));
|
|
13
|
+
var _ValidationError = _interopRequireDefault(require("../../../validation/ValidationError"));
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
function _classPrivateMethodInitSpec(e, a) { _checkPrivateRedeclaration(e, a), a.add(e); }
|
|
16
|
+
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); } /*
|
|
17
|
+
* Nutanix AIOps APIs
|
|
18
|
+
*
|
|
19
|
+
* OpenAPI spec version: 4.2.2-beta-1
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
22
|
+
*
|
|
23
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
24
|
+
*
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The ClusterMetrics model module.
|
|
30
|
+
* @module Ntnx/ClusterMetrics
|
|
31
|
+
* @version 4.2.2-beta-1
|
|
32
|
+
* @class ClusterMetrics
|
|
33
|
+
* @extends ExternalizableAbstractModel
|
|
34
|
+
*/
|
|
35
|
+
var _ClusterMetrics_brand = /*#__PURE__*/new WeakSet();
|
|
36
|
+
class ClusterMetrics extends _ExternalizableAbstractModel.default {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new <code>ClusterMetrics</code>.
|
|
39
|
+
* @alias module:Ntnx/ClusterMetrics
|
|
40
|
+
* @extends module:Ntnx/ExternalizableAbstractModel
|
|
41
|
+
*/
|
|
42
|
+
constructor() {
|
|
43
|
+
super();
|
|
44
|
+
/*
|
|
45
|
+
* toJson method for a map type which supports map with primitive keys and values of object types
|
|
46
|
+
* @param {Object} obj
|
|
47
|
+
* @returns {Object|Map} Returns a new transofrmed Map by calling toJson on the values if applicable.
|
|
48
|
+
* Otherwise, just returns the input object.
|
|
49
|
+
*/
|
|
50
|
+
_classPrivateMethodInitSpec(this, _ClusterMetrics_brand);
|
|
51
|
+
this.$objectType = "aiops.v4.clusterMetrics.ClusterMetrics";
|
|
52
|
+
/** @type {object<string, any>} */
|
|
53
|
+
this.$reserved = {
|
|
54
|
+
'$fv': "v4.r2.b1"
|
|
55
|
+
};
|
|
56
|
+
/** @type {object<string, any>} */
|
|
57
|
+
this.$unknownFields = {};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Constructs a <code>ClusterMetrics</code> from a plain JavaScript object, optionally creating a new instance.
|
|
62
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
63
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
64
|
+
* @param {module:Ntnx/ClusterMetrics} obj Optional instance to populate.
|
|
65
|
+
* @param callFromChild {Boolean} Flag to recognise calling instance
|
|
66
|
+
* @return {module:Ntnx/ClusterMetrics} The populated <code>ClusterMetrics</code> instance.
|
|
67
|
+
*/
|
|
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
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return obj;
|
|
167
|
+
}
|
|
168
|
+
|
|
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
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Returns Name of the cluster
|
|
180
|
+
* @return {string}
|
|
181
|
+
*/
|
|
182
|
+
getClusterName() {
|
|
183
|
+
return this.clusterName;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Sets Name of the cluster
|
|
188
|
+
* @param {string} clusterName Name of the cluster
|
|
189
|
+
*/
|
|
190
|
+
setClusterName(clusterName) {
|
|
191
|
+
this.clusterName = clusterName;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* @return {IPv4Address}
|
|
196
|
+
*/
|
|
197
|
+
getExternalIP() {
|
|
198
|
+
return this.externalIP;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* @param {IPv4Address} externalIP
|
|
203
|
+
*/
|
|
204
|
+
setExternalIP(externalIP) {
|
|
205
|
+
this.externalIP = externalIP;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Returns CVM IPs of the nodes in the cluster
|
|
210
|
+
* @return {IPv4Address[]}
|
|
211
|
+
*/
|
|
212
|
+
getCvmIPs() {
|
|
213
|
+
return this.cvmIPs;
|
|
214
|
+
}
|
|
215
|
+
|
|
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
|
+
}
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Returns Total memory size in bytes in the cluster
|
|
226
|
+
* @return {Number}
|
|
227
|
+
*/
|
|
228
|
+
getTotalMemorySizeBytes() {
|
|
229
|
+
return this.totalMemorySizeBytes;
|
|
230
|
+
}
|
|
231
|
+
|
|
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
|
+
}
|
|
239
|
+
|
|
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
|
+
}
|
|
247
|
+
|
|
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
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Returns Total memory size in bytes provisioned for all the VMs
|
|
258
|
+
* @return {Number}
|
|
259
|
+
*/
|
|
260
|
+
getProvisionedMemoryUsageBytes() {
|
|
261
|
+
return this.provisionedMemoryUsageBytes;
|
|
262
|
+
}
|
|
263
|
+
|
|
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
|
+
}
|
|
271
|
+
|
|
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
|
+
}
|
|
279
|
+
|
|
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
|
+
}
|
|
287
|
+
|
|
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
|
+
}
|
|
295
|
+
|
|
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
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Returns Powered OFF VM with the largest memory size
|
|
306
|
+
* @return {Number}
|
|
307
|
+
*/
|
|
308
|
+
getLargestPoweredOffVMMemory() {
|
|
309
|
+
return this.largestPoweredOffVMMemory;
|
|
310
|
+
}
|
|
311
|
+
|
|
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
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Returns Total number of vCPUs in the cluster
|
|
322
|
+
* @return {Number}
|
|
323
|
+
*/
|
|
324
|
+
getTotalVCpuCount() {
|
|
325
|
+
return this.totalVCpuCount;
|
|
326
|
+
}
|
|
327
|
+
|
|
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
|
+
}
|
|
335
|
+
|
|
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
|
+
}
|
|
343
|
+
|
|
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
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Returns Total number of vCPUs provisioned for all the VMs
|
|
354
|
+
* @return {Number}
|
|
355
|
+
*/
|
|
356
|
+
getProvisionedVCpuCount() {
|
|
357
|
+
return this.provisionedVCpuCount;
|
|
358
|
+
}
|
|
359
|
+
|
|
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
|
+
}
|
|
367
|
+
|
|
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
|
+
}
|
|
375
|
+
|
|
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
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Returns Total number of available VMs for deploying new VMs
|
|
386
|
+
* @return {Number}
|
|
387
|
+
*/
|
|
388
|
+
getAvailableVCpuCount() {
|
|
389
|
+
return this.availableVCpuCount;
|
|
390
|
+
}
|
|
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
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Returns Largest powered OFF VM in terms of vCPU count
|
|
402
|
+
* @return {Number}
|
|
403
|
+
*/
|
|
404
|
+
getLargestPoweredOffVMVCpu() {
|
|
405
|
+
return this.largestPoweredOffVMVCpu;
|
|
406
|
+
}
|
|
407
|
+
|
|
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
|
+
}
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Returns Total amount of CPU in hertz in the cluster
|
|
418
|
+
* @return {Number}
|
|
419
|
+
*/
|
|
420
|
+
getTotalCpuHz() {
|
|
421
|
+
return this.totalCpuHz;
|
|
422
|
+
}
|
|
423
|
+
|
|
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
|
+
}
|
|
431
|
+
|
|
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
|
+
}
|
|
439
|
+
|
|
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
|
+
}
|
|
447
|
+
|
|
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
|
+
}
|
|
455
|
+
|
|
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
|
+
}
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Returns Total storage in bytes capacity in the cluster
|
|
466
|
+
* @return {Number}
|
|
467
|
+
*/
|
|
468
|
+
getTotalStorageCapacityRawBytes() {
|
|
469
|
+
return this.totalStorageCapacityRawBytes;
|
|
470
|
+
}
|
|
471
|
+
|
|
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
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Returns Total logical storage in bytes capacity after considering RF
|
|
482
|
+
* @return {Number}
|
|
483
|
+
*/
|
|
484
|
+
getTotalStorageCapacityLogicalBytes() {
|
|
485
|
+
return this.totalStorageCapacityLogicalBytes;
|
|
486
|
+
}
|
|
487
|
+
|
|
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
|
+
}
|
|
495
|
+
|
|
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
|
+
}
|
|
503
|
+
|
|
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
|
+
}
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Returns Total raw storage usage by the cluster
|
|
514
|
+
* @return {Number}
|
|
515
|
+
*/
|
|
516
|
+
getTotalStorageUsageBytes() {
|
|
517
|
+
return this.totalStorageUsageBytes;
|
|
518
|
+
}
|
|
519
|
+
|
|
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
|
+
}
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Returns Total raw storage bytes still available in the cluster
|
|
530
|
+
* @return {Number}
|
|
531
|
+
*/
|
|
532
|
+
getTotalStorageAvailableBytes() {
|
|
533
|
+
return this.totalStorageAvailableBytes;
|
|
534
|
+
}
|
|
535
|
+
|
|
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 ? {
|
|
563
|
+
'clusterName': this.getClusterName()
|
|
564
|
+
} : {}),
|
|
565
|
+
...(typeof this.getExternalIP() !== 'undefined' && this.getExternalIP() !== null ? {
|
|
566
|
+
'externalIP': this.getExternalIP().toJson(false)
|
|
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 ? {
|
|
572
|
+
'totalMemorySizeBytes': this.getTotalMemorySizeBytes()
|
|
573
|
+
} : {}),
|
|
574
|
+
...(typeof this.getCurrentMemoryUsageSizeBytes() !== 'undefined' && this.getCurrentMemoryUsageSizeBytes() !== null ? {
|
|
575
|
+
'currentMemoryUsageSizeBytes': this.getCurrentMemoryUsageSizeBytes()
|
|
576
|
+
} : {}),
|
|
577
|
+
...(typeof this.getProvisionedMemoryUsageBytes() !== 'undefined' && this.getProvisionedMemoryUsageBytes() !== null ? {
|
|
578
|
+
'provisionedMemoryUsageBytes': this.getProvisionedMemoryUsageBytes()
|
|
579
|
+
} : {}),
|
|
580
|
+
...(typeof this.getMaxVmMemorySizeBytes() !== 'undefined' && this.getMaxVmMemorySizeBytes() !== null ? {
|
|
581
|
+
'maxVmMemorySizeBytes': this.getMaxVmMemorySizeBytes()
|
|
582
|
+
} : {}),
|
|
583
|
+
...(typeof this.getAvailableMemorySizeBytes() !== 'undefined' && this.getAvailableMemorySizeBytes() !== null ? {
|
|
584
|
+
'availableMemorySizeBytes': this.getAvailableMemorySizeBytes()
|
|
585
|
+
} : {}),
|
|
586
|
+
...(typeof this.getLargestPoweredOffVMMemory() !== 'undefined' && this.getLargestPoweredOffVMMemory() !== null ? {
|
|
587
|
+
'largestPoweredOffVMMemory': this.getLargestPoweredOffVMMemory()
|
|
588
|
+
} : {}),
|
|
589
|
+
...(typeof this.getTotalVCpuCount() !== 'undefined' && this.getTotalVCpuCount() !== null ? {
|
|
590
|
+
'totalVCpuCount': this.getTotalVCpuCount()
|
|
591
|
+
} : {}),
|
|
592
|
+
...(typeof this.getCurrentUsedVCpuCount() !== 'undefined' && this.getCurrentUsedVCpuCount() !== null ? {
|
|
593
|
+
'currentUsedVCpuCount': this.getCurrentUsedVCpuCount()
|
|
594
|
+
} : {}),
|
|
595
|
+
...(typeof this.getProvisionedVCpuCount() !== 'undefined' && this.getProvisionedVCpuCount() !== null ? {
|
|
596
|
+
'provisionedVCpuCount': this.getProvisionedVCpuCount()
|
|
597
|
+
} : {}),
|
|
598
|
+
...(typeof this.getMaxVmVCpuSize() !== 'undefined' && this.getMaxVmVCpuSize() !== null ? {
|
|
599
|
+
'maxVmVCpuSize': this.getMaxVmVCpuSize()
|
|
600
|
+
} : {}),
|
|
601
|
+
...(typeof this.getAvailableVCpuCount() !== 'undefined' && this.getAvailableVCpuCount() !== null ? {
|
|
602
|
+
'availableVCpuCount': this.getAvailableVCpuCount()
|
|
603
|
+
} : {}),
|
|
604
|
+
...(typeof this.getLargestPoweredOffVMVCpu() !== 'undefined' && this.getLargestPoweredOffVMVCpu() !== null ? {
|
|
605
|
+
'largestPoweredOffVMVCpu': this.getLargestPoweredOffVMVCpu()
|
|
606
|
+
} : {}),
|
|
607
|
+
...(typeof this.getTotalCpuHz() !== 'undefined' && this.getTotalCpuHz() !== null ? {
|
|
608
|
+
'totalCpuHz': this.getTotalCpuHz()
|
|
609
|
+
} : {}),
|
|
610
|
+
...(typeof this.getCurrentUsedCpuHz() !== 'undefined' && this.getCurrentUsedCpuHz() !== null ? {
|
|
611
|
+
'currentUsedCpuHz': this.getCurrentUsedCpuHz()
|
|
612
|
+
} : {}),
|
|
613
|
+
...(typeof this.getProvisionedCpuHz() !== 'undefined' && this.getProvisionedCpuHz() !== null ? {
|
|
614
|
+
'provisionedCpuHz': this.getProvisionedCpuHz()
|
|
615
|
+
} : {}),
|
|
616
|
+
...(typeof this.getTotalStorageCapacityRawBytes() !== 'undefined' && this.getTotalStorageCapacityRawBytes() !== null ? {
|
|
617
|
+
'totalStorageCapacityRawBytes': this.getTotalStorageCapacityRawBytes()
|
|
618
|
+
} : {}),
|
|
619
|
+
...(typeof this.getTotalStorageCapacityLogicalBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalBytes() !== null ? {
|
|
620
|
+
'totalStorageCapacityLogicalBytes': this.getTotalStorageCapacityLogicalBytes()
|
|
621
|
+
} : {}),
|
|
622
|
+
...(typeof this.getTotalStorageCapacityLogicalWithSavingsBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalWithSavingsBytes() !== null ? {
|
|
623
|
+
'totalStorageCapacityLogicalWithSavingsBytes': this.getTotalStorageCapacityLogicalWithSavingsBytes()
|
|
624
|
+
} : {}),
|
|
625
|
+
...(typeof this.getTotalStorageUsageBytes() !== 'undefined' && this.getTotalStorageUsageBytes() !== null ? {
|
|
626
|
+
'totalStorageUsageBytes': this.getTotalStorageUsageBytes()
|
|
627
|
+
} : {}),
|
|
628
|
+
...(typeof this.getTotalStorageAvailableBytes() !== 'undefined' && this.getTotalStorageAvailableBytes() !== null ? {
|
|
629
|
+
'totalStorageAvailableBytes': this.getTotalStorageAvailableBytes()
|
|
630
|
+
} : {}),
|
|
631
|
+
...(typeof this.getTotalStorageAvailableLogicalBytes() !== 'undefined' && this.getTotalStorageAvailableLogicalBytes() !== null ? {
|
|
632
|
+
'totalStorageAvailableLogicalBytes': this.getTotalStorageAvailableLogicalBytes()
|
|
633
|
+
} : {}),
|
|
634
|
+
...(typeof this.getExtId() !== 'undefined' && this.getExtId() !== null ? {
|
|
635
|
+
'extId': this.getExtId()
|
|
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 ? {
|
|
641
|
+
'tenantId': this.getTenantId()
|
|
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 ? {
|
|
651
|
+
'clusterName': this.getClusterName()
|
|
652
|
+
} : {}),
|
|
653
|
+
...(typeof this.getExternalIP() !== 'undefined' && this.getExternalIP() !== null ? {
|
|
654
|
+
'externalIP': this.getExternalIP().toJson(false)
|
|
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 ? {
|
|
660
|
+
'totalMemorySizeBytes': this.getTotalMemorySizeBytes()
|
|
661
|
+
} : {}),
|
|
662
|
+
...(typeof this.getCurrentMemoryUsageSizeBytes() !== 'undefined' && this.getCurrentMemoryUsageSizeBytes() !== null ? {
|
|
663
|
+
'currentMemoryUsageSizeBytes': this.getCurrentMemoryUsageSizeBytes()
|
|
664
|
+
} : {}),
|
|
665
|
+
...(typeof this.getProvisionedMemoryUsageBytes() !== 'undefined' && this.getProvisionedMemoryUsageBytes() !== null ? {
|
|
666
|
+
'provisionedMemoryUsageBytes': this.getProvisionedMemoryUsageBytes()
|
|
667
|
+
} : {}),
|
|
668
|
+
...(typeof this.getMaxVmMemorySizeBytes() !== 'undefined' && this.getMaxVmMemorySizeBytes() !== null ? {
|
|
669
|
+
'maxVmMemorySizeBytes': this.getMaxVmMemorySizeBytes()
|
|
670
|
+
} : {}),
|
|
671
|
+
...(typeof this.getAvailableMemorySizeBytes() !== 'undefined' && this.getAvailableMemorySizeBytes() !== null ? {
|
|
672
|
+
'availableMemorySizeBytes': this.getAvailableMemorySizeBytes()
|
|
673
|
+
} : {}),
|
|
674
|
+
...(typeof this.getLargestPoweredOffVMMemory() !== 'undefined' && this.getLargestPoweredOffVMMemory() !== null ? {
|
|
675
|
+
'largestPoweredOffVMMemory': this.getLargestPoweredOffVMMemory()
|
|
676
|
+
} : {}),
|
|
677
|
+
...(typeof this.getTotalVCpuCount() !== 'undefined' && this.getTotalVCpuCount() !== null ? {
|
|
678
|
+
'totalVCpuCount': this.getTotalVCpuCount()
|
|
679
|
+
} : {}),
|
|
680
|
+
...(typeof this.getCurrentUsedVCpuCount() !== 'undefined' && this.getCurrentUsedVCpuCount() !== null ? {
|
|
681
|
+
'currentUsedVCpuCount': this.getCurrentUsedVCpuCount()
|
|
682
|
+
} : {}),
|
|
683
|
+
...(typeof this.getProvisionedVCpuCount() !== 'undefined' && this.getProvisionedVCpuCount() !== null ? {
|
|
684
|
+
'provisionedVCpuCount': this.getProvisionedVCpuCount()
|
|
685
|
+
} : {}),
|
|
686
|
+
...(typeof this.getMaxVmVCpuSize() !== 'undefined' && this.getMaxVmVCpuSize() !== null ? {
|
|
687
|
+
'maxVmVCpuSize': this.getMaxVmVCpuSize()
|
|
688
|
+
} : {}),
|
|
689
|
+
...(typeof this.getAvailableVCpuCount() !== 'undefined' && this.getAvailableVCpuCount() !== null ? {
|
|
690
|
+
'availableVCpuCount': this.getAvailableVCpuCount()
|
|
691
|
+
} : {}),
|
|
692
|
+
...(typeof this.getLargestPoweredOffVMVCpu() !== 'undefined' && this.getLargestPoweredOffVMVCpu() !== null ? {
|
|
693
|
+
'largestPoweredOffVMVCpu': this.getLargestPoweredOffVMVCpu()
|
|
694
|
+
} : {}),
|
|
695
|
+
...(typeof this.getTotalCpuHz() !== 'undefined' && this.getTotalCpuHz() !== null ? {
|
|
696
|
+
'totalCpuHz': this.getTotalCpuHz()
|
|
697
|
+
} : {}),
|
|
698
|
+
...(typeof this.getCurrentUsedCpuHz() !== 'undefined' && this.getCurrentUsedCpuHz() !== null ? {
|
|
699
|
+
'currentUsedCpuHz': this.getCurrentUsedCpuHz()
|
|
700
|
+
} : {}),
|
|
701
|
+
...(typeof this.getProvisionedCpuHz() !== 'undefined' && this.getProvisionedCpuHz() !== null ? {
|
|
702
|
+
'provisionedCpuHz': this.getProvisionedCpuHz()
|
|
703
|
+
} : {}),
|
|
704
|
+
...(typeof this.getTotalStorageCapacityRawBytes() !== 'undefined' && this.getTotalStorageCapacityRawBytes() !== null ? {
|
|
705
|
+
'totalStorageCapacityRawBytes': this.getTotalStorageCapacityRawBytes()
|
|
706
|
+
} : {}),
|
|
707
|
+
...(typeof this.getTotalStorageCapacityLogicalBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalBytes() !== null ? {
|
|
708
|
+
'totalStorageCapacityLogicalBytes': this.getTotalStorageCapacityLogicalBytes()
|
|
709
|
+
} : {}),
|
|
710
|
+
...(typeof this.getTotalStorageCapacityLogicalWithSavingsBytes() !== 'undefined' && this.getTotalStorageCapacityLogicalWithSavingsBytes() !== null ? {
|
|
711
|
+
'totalStorageCapacityLogicalWithSavingsBytes': this.getTotalStorageCapacityLogicalWithSavingsBytes()
|
|
712
|
+
} : {}),
|
|
713
|
+
...(typeof this.getTotalStorageUsageBytes() !== 'undefined' && this.getTotalStorageUsageBytes() !== null ? {
|
|
714
|
+
'totalStorageUsageBytes': this.getTotalStorageUsageBytes()
|
|
715
|
+
} : {}),
|
|
716
|
+
...(typeof this.getTotalStorageAvailableBytes() !== 'undefined' && this.getTotalStorageAvailableBytes() !== null ? {
|
|
717
|
+
'totalStorageAvailableBytes': this.getTotalStorageAvailableBytes()
|
|
718
|
+
} : {}),
|
|
719
|
+
...(typeof this.getTotalStorageAvailableLogicalBytes() !== 'undefined' && this.getTotalStorageAvailableLogicalBytes() !== null ? {
|
|
720
|
+
'totalStorageAvailableLogicalBytes': this.getTotalStorageAvailableLogicalBytes()
|
|
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];
|
|
740
|
+
}
|
|
741
|
+
let res = [];
|
|
742
|
+
let err = null;
|
|
743
|
+
propList.forEach(property => {
|
|
744
|
+
err = this.validateProperty(property, scope);
|
|
745
|
+
if (err) {
|
|
746
|
+
res.push(err);
|
|
747
|
+
}
|
|
748
|
+
});
|
|
749
|
+
return new Promise(function (resolve, reject) {
|
|
750
|
+
if (res.length !== 0) {
|
|
751
|
+
reject(err);
|
|
752
|
+
} else {
|
|
753
|
+
resolve();
|
|
754
|
+
}
|
|
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");
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
if (property === "externalIP") {
|
|
764
|
+
if (typeof this.externalIP === 'undefined' || this.externalIP === null) {
|
|
765
|
+
return new _ValidationError.default("externalIP", "undefined or null");
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
if (property === "cvmIPs") {
|
|
769
|
+
if (typeof this.cvmIPs === 'undefined' || this.cvmIPs === null) {
|
|
770
|
+
return new _ValidationError.default("cvmIPs", "undefined or null");
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
if (property === "totalMemorySizeBytes") {
|
|
774
|
+
if (typeof this.totalMemorySizeBytes === 'undefined' || this.totalMemorySizeBytes === null) {
|
|
775
|
+
return new _ValidationError.default("totalMemorySizeBytes", "undefined or null");
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
if (property === "currentMemoryUsageSizeBytes") {
|
|
779
|
+
if (typeof this.currentMemoryUsageSizeBytes === 'undefined' || this.currentMemoryUsageSizeBytes === null) {
|
|
780
|
+
return new _ValidationError.default("currentMemoryUsageSizeBytes", "undefined or null");
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
if (property === "provisionedMemoryUsageBytes") {
|
|
784
|
+
if (typeof this.provisionedMemoryUsageBytes === 'undefined' || this.provisionedMemoryUsageBytes === null) {
|
|
785
|
+
return new _ValidationError.default("provisionedMemoryUsageBytes", "undefined or null");
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
if (property === "maxVmMemorySizeBytes") {
|
|
789
|
+
if (typeof this.maxVmMemorySizeBytes === 'undefined' || this.maxVmMemorySizeBytes === null) {
|
|
790
|
+
return new _ValidationError.default("maxVmMemorySizeBytes", "undefined or null");
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
if (property === "availableMemorySizeBytes") {
|
|
794
|
+
if (typeof this.availableMemorySizeBytes === 'undefined' || this.availableMemorySizeBytes === null) {
|
|
795
|
+
return new _ValidationError.default("availableMemorySizeBytes", "undefined or null");
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
if (property === "largestPoweredOffVMMemory") {
|
|
799
|
+
if (typeof this.largestPoweredOffVMMemory === 'undefined' || this.largestPoweredOffVMMemory === null) {
|
|
800
|
+
return new _ValidationError.default("largestPoweredOffVMMemory", "undefined or null");
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
if (property === "totalVCpuCount") {
|
|
804
|
+
if (typeof this.totalVCpuCount === 'undefined' || this.totalVCpuCount === null) {
|
|
805
|
+
return new _ValidationError.default("totalVCpuCount", "undefined or null");
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
if (property === "currentUsedVCpuCount") {
|
|
809
|
+
if (typeof this.currentUsedVCpuCount === 'undefined' || this.currentUsedVCpuCount === null) {
|
|
810
|
+
return new _ValidationError.default("currentUsedVCpuCount", "undefined or null");
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
if (property === "provisionedVCpuCount") {
|
|
814
|
+
if (typeof this.provisionedVCpuCount === 'undefined' || this.provisionedVCpuCount === null) {
|
|
815
|
+
return new _ValidationError.default("provisionedVCpuCount", "undefined or null");
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
if (property === "maxVmVCpuSize") {
|
|
819
|
+
if (typeof this.maxVmVCpuSize === 'undefined' || this.maxVmVCpuSize === null) {
|
|
820
|
+
return new _ValidationError.default("maxVmVCpuSize", "undefined or null");
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
if (property === "availableVCpuCount") {
|
|
824
|
+
if (typeof this.availableVCpuCount === 'undefined' || this.availableVCpuCount === null) {
|
|
825
|
+
return new _ValidationError.default("availableVCpuCount", "undefined or null");
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
if (property === "largestPoweredOffVMVCpu") {
|
|
829
|
+
if (typeof this.largestPoweredOffVMVCpu === 'undefined' || this.largestPoweredOffVMVCpu === null) {
|
|
830
|
+
return new _ValidationError.default("largestPoweredOffVMVCpu", "undefined or null");
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
if (property === "totalCpuHz") {
|
|
834
|
+
if (typeof this.totalCpuHz === 'undefined' || this.totalCpuHz === null) {
|
|
835
|
+
return new _ValidationError.default("totalCpuHz", "undefined or null");
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
if (property === "currentUsedCpuHz") {
|
|
839
|
+
if (typeof this.currentUsedCpuHz === 'undefined' || this.currentUsedCpuHz === null) {
|
|
840
|
+
return new _ValidationError.default("currentUsedCpuHz", "undefined or null");
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
if (property === "provisionedCpuHz") {
|
|
844
|
+
if (typeof this.provisionedCpuHz === 'undefined' || this.provisionedCpuHz === null) {
|
|
845
|
+
return new _ValidationError.default("provisionedCpuHz", "undefined or null");
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
if (property === "totalStorageCapacityRawBytes") {
|
|
849
|
+
if (typeof this.totalStorageCapacityRawBytes === 'undefined' || this.totalStorageCapacityRawBytes === null) {
|
|
850
|
+
return new _ValidationError.default("totalStorageCapacityRawBytes", "undefined or null");
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
if (property === "totalStorageCapacityLogicalBytes") {
|
|
854
|
+
if (typeof this.totalStorageCapacityLogicalBytes === 'undefined' || this.totalStorageCapacityLogicalBytes === null) {
|
|
855
|
+
return new _ValidationError.default("totalStorageCapacityLogicalBytes", "undefined or null");
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
if (property === "totalStorageCapacityLogicalWithSavingsBytes") {
|
|
859
|
+
if (typeof this.totalStorageCapacityLogicalWithSavingsBytes === 'undefined' || this.totalStorageCapacityLogicalWithSavingsBytes === null) {
|
|
860
|
+
return new _ValidationError.default("totalStorageCapacityLogicalWithSavingsBytes", "undefined or null");
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
if (property === "totalStorageUsageBytes") {
|
|
864
|
+
if (typeof this.totalStorageUsageBytes === 'undefined' || this.totalStorageUsageBytes === null) {
|
|
865
|
+
return new _ValidationError.default("totalStorageUsageBytes", "undefined or null");
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
if (property === "totalStorageAvailableBytes") {
|
|
869
|
+
if (typeof this.totalStorageAvailableBytes === 'undefined' || this.totalStorageAvailableBytes === null) {
|
|
870
|
+
return new _ValidationError.default("totalStorageAvailableBytes", "undefined or null");
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
if (property === "totalStorageAvailableLogicalBytes") {
|
|
874
|
+
if (typeof this.totalStorageAvailableLogicalBytes === 'undefined' || this.totalStorageAvailableLogicalBytes === null) {
|
|
875
|
+
return new _ValidationError.default("totalStorageAvailableLogicalBytes", "undefined or null");
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
return new _ValidationError.default(property, "no such property exists");
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Name of the cluster
|
|
884
|
+
* @memberof ClusterMetrics
|
|
885
|
+
*/
|
|
886
|
+
exports.default = ClusterMetrics;
|
|
887
|
+
function _toJsonMapType(obj, forMutation) {
|
|
888
|
+
if (obj instanceof Map) {
|
|
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 => {
|
|
892
|
+
return [entry[0], typeof entry[1].toJson !== "undefined" ? entry[1].toJson(forMutation) : entry[1]];
|
|
893
|
+
}));
|
|
894
|
+
}
|
|
895
|
+
return obj;
|
|
896
|
+
}
|
|
897
|
+
/*
|
|
898
|
+
* toJson method for a date type which serializes a Date object to proper Date or DateTime formatting
|
|
899
|
+
* @param {Object} obj Object to serialize
|
|
900
|
+
* @param {boolean} isDateOnly Boolean variable to identify Date or DateTime format for serialization
|
|
901
|
+
* @returns {Object|string} Returns serialized date object or original input object
|
|
902
|
+
*/
|
|
903
|
+
function _handleDateType(obj, isDateOnly) {
|
|
904
|
+
if (obj instanceof Date && isDateOnly !== undefined) {
|
|
905
|
+
return isDateOnly ? obj.toISOString().slice(0, 10) : obj.toISOString();
|
|
906
|
+
}
|
|
907
|
+
return obj;
|
|
908
|
+
}
|
|
909
|
+
ClusterMetrics.prototype.clusterName = undefined;
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* @memberof ClusterMetrics
|
|
913
|
+
*/
|
|
914
|
+
ClusterMetrics.prototype.externalIP = undefined;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* CVM IPs of the nodes in the cluster
|
|
918
|
+
* @memberof ClusterMetrics
|
|
919
|
+
*/
|
|
920
|
+
ClusterMetrics.prototype.cvmIPs = undefined;
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* Total memory size in bytes in the cluster
|
|
924
|
+
* @memberof ClusterMetrics
|
|
925
|
+
*/
|
|
926
|
+
ClusterMetrics.prototype.totalMemorySizeBytes = undefined;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Total memory size in bytes currently being used by the active VMs
|
|
930
|
+
* @memberof ClusterMetrics
|
|
931
|
+
*/
|
|
932
|
+
ClusterMetrics.prototype.currentMemoryUsageSizeBytes = undefined;
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* Total memory size in bytes provisioned for all the VMs
|
|
936
|
+
* @memberof ClusterMetrics
|
|
937
|
+
*/
|
|
938
|
+
ClusterMetrics.prototype.provisionedMemoryUsageBytes = undefined;
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* Largest possible memory size in bytes for the next VM that can be added
|
|
942
|
+
* @memberof ClusterMetrics
|
|
943
|
+
*/
|
|
944
|
+
ClusterMetrics.prototype.maxVmMemorySizeBytes = undefined;
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Total amount of available memory in bytes for deploying new VMs
|
|
948
|
+
* @memberof ClusterMetrics
|
|
949
|
+
*/
|
|
950
|
+
ClusterMetrics.prototype.availableMemorySizeBytes = undefined;
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* Powered OFF VM with the largest memory size
|
|
954
|
+
* @memberof ClusterMetrics
|
|
955
|
+
*/
|
|
956
|
+
ClusterMetrics.prototype.largestPoweredOffVMMemory = undefined;
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Total number of vCPUs in the cluster
|
|
960
|
+
* @memberof ClusterMetrics
|
|
961
|
+
*/
|
|
962
|
+
ClusterMetrics.prototype.totalVCpuCount = undefined;
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
* Total number of vCPUs currently being used by the active VMs
|
|
966
|
+
* @memberof ClusterMetrics
|
|
967
|
+
*/
|
|
968
|
+
ClusterMetrics.prototype.currentUsedVCpuCount = undefined;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Total number of vCPUs provisioned for all the VMs
|
|
972
|
+
* @memberof ClusterMetrics
|
|
973
|
+
*/
|
|
974
|
+
ClusterMetrics.prototype.provisionedVCpuCount = undefined;
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* Largest possible VM size in vCPUs for the next VM that can be added
|
|
978
|
+
* @memberof ClusterMetrics
|
|
979
|
+
*/
|
|
980
|
+
ClusterMetrics.prototype.maxVmVCpuSize = undefined;
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* Total number of available VMs for deploying new VMs
|
|
984
|
+
* @memberof ClusterMetrics
|
|
985
|
+
*/
|
|
986
|
+
ClusterMetrics.prototype.availableVCpuCount = undefined;
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Largest powered OFF VM in terms of vCPU count
|
|
990
|
+
* @memberof ClusterMetrics
|
|
991
|
+
*/
|
|
992
|
+
ClusterMetrics.prototype.largestPoweredOffVMVCpu = undefined;
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Total amount of CPU in hertz in the cluster
|
|
996
|
+
* @memberof ClusterMetrics
|
|
997
|
+
*/
|
|
998
|
+
ClusterMetrics.prototype.totalCpuHz = undefined;
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* Total amount of CPU in hertz currently being used by the active VMs
|
|
1002
|
+
* @memberof ClusterMetrics
|
|
1003
|
+
*/
|
|
1004
|
+
ClusterMetrics.prototype.currentUsedCpuHz = undefined;
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* Total amount of CPU in hertz provisioned for all the VMs
|
|
1008
|
+
* @memberof ClusterMetrics
|
|
1009
|
+
*/
|
|
1010
|
+
ClusterMetrics.prototype.provisionedCpuHz = undefined;
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Total storage in bytes capacity in the cluster
|
|
1014
|
+
* @memberof ClusterMetrics
|
|
1015
|
+
*/
|
|
1016
|
+
ClusterMetrics.prototype.totalStorageCapacityRawBytes = undefined;
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Total logical storage in bytes capacity after considering RF
|
|
1020
|
+
* @memberof ClusterMetrics
|
|
1021
|
+
*/
|
|
1022
|
+
ClusterMetrics.prototype.totalStorageCapacityLogicalBytes = undefined;
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Total logical storage capacity in bytes after accounting for savings from dedup, compressions,and erasure coding
|
|
1026
|
+
* @memberof ClusterMetrics
|
|
1027
|
+
*/
|
|
1028
|
+
ClusterMetrics.prototype.totalStorageCapacityLogicalWithSavingsBytes = undefined;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* Total raw storage usage by the cluster
|
|
1032
|
+
* @memberof ClusterMetrics
|
|
1033
|
+
*/
|
|
1034
|
+
ClusterMetrics.prototype.totalStorageUsageBytes = undefined;
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Total raw storage bytes still available in the cluster
|
|
1038
|
+
* @memberof ClusterMetrics
|
|
1039
|
+
*/
|
|
1040
|
+
ClusterMetrics.prototype.totalStorageAvailableBytes = undefined;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Total logical storage bytes still available in the cluster
|
|
1044
|
+
* @memberof ClusterMetrics
|
|
1045
|
+
*/
|
|
1046
|
+
ClusterMetrics.prototype.totalStorageAvailableLogicalBytes = undefined;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* A globally unique identifier of an instance that is suitable for external consumption.
|
|
1050
|
+
* @memberof ClusterMetrics
|
|
1051
|
+
*/
|
|
1052
|
+
_ExternalizableAbstractModel.default.prototype.extId = undefined;
|
|
1053
|
+
/**
|
|
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.
|
|
1055
|
+
* @memberof ClusterMetrics
|
|
1056
|
+
*/
|
|
1057
|
+
_ExternalizableAbstractModel.default.prototype.links = undefined;
|
|
1058
|
+
/**
|
|
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).
|
|
1060
|
+
* @memberof ClusterMetrics
|
|
1061
|
+
*/
|
|
1062
|
+
_TenantAwareModel.default.prototype.tenantId = undefined;
|