@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,624 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ScenariosApi = void 0;
|
|
7
|
+
var _ApiClient = require("../ApiClient");
|
|
8
|
+
var _CreateSimulationApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/CreateSimulationApiResponse"));
|
|
9
|
+
var _ListSimulationsApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/ListSimulationsApiResponse"));
|
|
10
|
+
var _UpdateSimulationApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/UpdateSimulationApiResponse"));
|
|
11
|
+
var _ListScenariosApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/ListScenariosApiResponse"));
|
|
12
|
+
var _GetScenarioReportApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/GetScenarioReportApiResponse"));
|
|
13
|
+
var _CreateScenarioApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/CreateScenarioApiResponse"));
|
|
14
|
+
var _Scenario = _interopRequireDefault(require("../models/aiops/v4/config/Scenario"));
|
|
15
|
+
var _DeleteSimulationApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/DeleteSimulationApiResponse"));
|
|
16
|
+
var _DeleteScenarioApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/DeleteScenarioApiResponse"));
|
|
17
|
+
var _GenerateRecommendationApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/GenerateRecommendationApiResponse"));
|
|
18
|
+
var _GenerateReportApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/GenerateReportApiResponse"));
|
|
19
|
+
var _GetSimulationApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/GetSimulationApiResponse"));
|
|
20
|
+
var _GetScenarioApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/GetScenarioApiResponse"));
|
|
21
|
+
var _UpdateScenarioApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/UpdateScenarioApiResponse"));
|
|
22
|
+
var _GenerateRunwayApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/GenerateRunwayApiResponse"));
|
|
23
|
+
var _Simulation = _interopRequireDefault(require("../models/aiops/v4/config/Simulation"));
|
|
24
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
25
|
+
/*
|
|
26
|
+
* Nutanix AIOps APIs
|
|
27
|
+
*
|
|
28
|
+
* OpenAPI spec version: 4.2.2-beta-1
|
|
29
|
+
*
|
|
30
|
+
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
31
|
+
*
|
|
32
|
+
* Open API Dev Platform Codegen version: 17.5.1.10573-RELEASE
|
|
33
|
+
*
|
|
34
|
+
* Do not edit the class manually.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Scenarios service.
|
|
40
|
+
* @version 4.2.2-beta-1
|
|
41
|
+
* @class ScenariosApi
|
|
42
|
+
*/
|
|
43
|
+
class ScenariosApi {
|
|
44
|
+
#headersToSkip;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
48
|
+
* their own fetch methods into the SDK
|
|
49
|
+
*/
|
|
50
|
+
static get ApiClient() {
|
|
51
|
+
return _ApiClient.ApiClient;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Constructs a new ScenariosApi.
|
|
56
|
+
* @alias module:api/ScenariosApi
|
|
57
|
+
* @class
|
|
58
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
59
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
60
|
+
*/
|
|
61
|
+
constructor(apiClient) {
|
|
62
|
+
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
63
|
+
this.#headersToSkip = new Set();
|
|
64
|
+
this.#headersToSkip.add('authorization');
|
|
65
|
+
this.#headersToSkip.add('cookie');
|
|
66
|
+
this.#headersToSkip.add('host');
|
|
67
|
+
this.#headersToSkip.add('user-agent');
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Create a capacity planning scenario
|
|
72
|
+
* Creates a capacity planning scenario which can be used to analyse the future workload.
|
|
73
|
+
* @param { Partial<Scenario> } body specification
|
|
74
|
+
* @param {Object} args Additional Arguments
|
|
75
|
+
* @return {Promise<CreateScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateScenarioApiResponse } and HTTP response
|
|
76
|
+
*/
|
|
77
|
+
createScenario(body, ...args) {
|
|
78
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
79
|
+
let postBody = null;
|
|
80
|
+
if (body instanceof _Scenario.default && typeof body.toJson === 'function') {
|
|
81
|
+
postBody = body.toJson();
|
|
82
|
+
} else {
|
|
83
|
+
postBody = body;
|
|
84
|
+
}
|
|
85
|
+
// verify the required parameter 'body' is set
|
|
86
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
87
|
+
throw new Error("Invalid body when calling createScenario");
|
|
88
|
+
}
|
|
89
|
+
const pathParams = {};
|
|
90
|
+
const queryParams = {};
|
|
91
|
+
let headersToInclude = {};
|
|
92
|
+
Object.keys(argMap).forEach(header => {
|
|
93
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
94
|
+
headersToInclude[header] = argMap[header];
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
const headerParams = {
|
|
98
|
+
...headersToInclude
|
|
99
|
+
};
|
|
100
|
+
const formParams = {};
|
|
101
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
102
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
103
|
+
const contentTypes = ['application/json'];
|
|
104
|
+
const accepts = ['application/json'];
|
|
105
|
+
const returnType = _CreateScenarioApiResponse.default;
|
|
106
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Create a simulation
|
|
111
|
+
* Creates a simulation which can be used in the capacity scenario as a part of VM workload.
|
|
112
|
+
* @param { Partial<Simulation> } body specification
|
|
113
|
+
* @param {Object} args Additional Arguments
|
|
114
|
+
* @return {Promise<CreateSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateSimulationApiResponse } and HTTP response
|
|
115
|
+
*/
|
|
116
|
+
createSimulation(body, ...args) {
|
|
117
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
118
|
+
let postBody = null;
|
|
119
|
+
if (body instanceof _Simulation.default && typeof body.toJson === 'function') {
|
|
120
|
+
postBody = body.toJson();
|
|
121
|
+
} else {
|
|
122
|
+
postBody = body;
|
|
123
|
+
}
|
|
124
|
+
// verify the required parameter 'body' is set
|
|
125
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
126
|
+
throw new Error("Invalid body when calling createSimulation");
|
|
127
|
+
}
|
|
128
|
+
const pathParams = {};
|
|
129
|
+
const queryParams = {};
|
|
130
|
+
let headersToInclude = {};
|
|
131
|
+
Object.keys(argMap).forEach(header => {
|
|
132
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
133
|
+
headersToInclude[header] = argMap[header];
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
const headerParams = {
|
|
137
|
+
...headersToInclude
|
|
138
|
+
};
|
|
139
|
+
const formParams = {};
|
|
140
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
141
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
142
|
+
const contentTypes = ['application/json'];
|
|
143
|
+
const accepts = ['application/json'];
|
|
144
|
+
const returnType = _CreateSimulationApiResponse.default;
|
|
145
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/simulations', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Delete a capacity planning scenario
|
|
150
|
+
* Deletes a capacity planning scenario using the provided UUID.
|
|
151
|
+
* @param { String } extId UUID of a capacity planning scenario.
|
|
152
|
+
* @param {Object} args Additional Arguments
|
|
153
|
+
* @return {Promise<DeleteScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteScenarioApiResponse } and HTTP response
|
|
154
|
+
*/
|
|
155
|
+
deleteScenarioById(extId, ...args) {
|
|
156
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
157
|
+
const postBody = null;
|
|
158
|
+
// verify the required parameter 'extId' is set
|
|
159
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
160
|
+
throw new Error("Missing the required parameter 'extId' when calling deleteScenarioById");
|
|
161
|
+
}
|
|
162
|
+
const pathParams = {
|
|
163
|
+
'extId': extId
|
|
164
|
+
};
|
|
165
|
+
const queryParams = {};
|
|
166
|
+
let headersToInclude = {};
|
|
167
|
+
Object.keys(argMap).forEach(header => {
|
|
168
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
169
|
+
headersToInclude[header] = argMap[header];
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
const headerParams = {
|
|
173
|
+
...headersToInclude
|
|
174
|
+
};
|
|
175
|
+
const formParams = {};
|
|
176
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
177
|
+
const contentTypes = [];
|
|
178
|
+
const accepts = ['application/json'];
|
|
179
|
+
const returnType = _DeleteScenarioApiResponse.default;
|
|
180
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Delete a simulation
|
|
185
|
+
* Deletes a simulation identified by the provided UUID.
|
|
186
|
+
* @param { String } extId UUID of a simulation.
|
|
187
|
+
* @param {Object} args Additional Arguments
|
|
188
|
+
* @return {Promise<DeleteSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteSimulationApiResponse } and HTTP response
|
|
189
|
+
*/
|
|
190
|
+
deleteSimulationById(extId, ...args) {
|
|
191
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
192
|
+
const postBody = null;
|
|
193
|
+
// verify the required parameter 'extId' is set
|
|
194
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
195
|
+
throw new Error("Missing the required parameter 'extId' when calling deleteSimulationById");
|
|
196
|
+
}
|
|
197
|
+
const pathParams = {
|
|
198
|
+
'extId': extId
|
|
199
|
+
};
|
|
200
|
+
const queryParams = {};
|
|
201
|
+
let headersToInclude = {};
|
|
202
|
+
Object.keys(argMap).forEach(header => {
|
|
203
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
204
|
+
headersToInclude[header] = argMap[header];
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
const headerParams = {
|
|
208
|
+
...headersToInclude
|
|
209
|
+
};
|
|
210
|
+
const formParams = {};
|
|
211
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
212
|
+
const contentTypes = [];
|
|
213
|
+
const accepts = ['application/json'];
|
|
214
|
+
const returnType = _DeleteSimulationApiResponse.default;
|
|
215
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/simulations/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Generate recommendation for a capacity planning scenario
|
|
220
|
+
* Generates recommendation for a planned capacity scenario using the provided UUID. You can send a polling request to find out the task status. The external identifier provided in the response can be used in GET scenarios API to retrieve the recommendation result upon the task completion.
|
|
221
|
+
* @param { String } extId UUID of a capacity planning scenario.
|
|
222
|
+
* @param {Object} args Additional Arguments
|
|
223
|
+
* @return {Promise<GenerateRecommendationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GenerateRecommendationApiResponse } and HTTP response
|
|
224
|
+
*/
|
|
225
|
+
generateRecommendation(extId, ...args) {
|
|
226
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
227
|
+
const postBody = null;
|
|
228
|
+
// verify the required parameter 'extId' is set
|
|
229
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
230
|
+
throw new Error("Missing the required parameter 'extId' when calling generateRecommendation");
|
|
231
|
+
}
|
|
232
|
+
const pathParams = {
|
|
233
|
+
'extId': extId
|
|
234
|
+
};
|
|
235
|
+
const queryParams = {};
|
|
236
|
+
let headersToInclude = {};
|
|
237
|
+
Object.keys(argMap).forEach(header => {
|
|
238
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
239
|
+
headersToInclude[header] = argMap[header];
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
const headerParams = {
|
|
243
|
+
...headersToInclude
|
|
244
|
+
};
|
|
245
|
+
const formParams = {};
|
|
246
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
247
|
+
const contentTypes = [];
|
|
248
|
+
const accepts = ['application/json'];
|
|
249
|
+
const returnType = _GenerateRecommendationApiResponse.default;
|
|
250
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-recommendation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Generate a report for a planned capacity scenario
|
|
255
|
+
* Generates a report for a planned capacity scenario by the provided scenario UUID. You can send a polling request to know the task status. The external identifier from the response can be used in GET report API to fetch the generated report upon the task completion.
|
|
256
|
+
* @param { String } extId UUID of a capacity planning scenario.
|
|
257
|
+
* @param {Object} args Additional Arguments
|
|
258
|
+
* @return {Promise<GenerateReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GenerateReportApiResponse } and HTTP response
|
|
259
|
+
*/
|
|
260
|
+
generateReport(extId, ...args) {
|
|
261
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
262
|
+
const postBody = null;
|
|
263
|
+
// verify the required parameter 'extId' is set
|
|
264
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
265
|
+
throw new Error("Missing the required parameter 'extId' when calling generateReport");
|
|
266
|
+
}
|
|
267
|
+
const pathParams = {
|
|
268
|
+
'extId': extId
|
|
269
|
+
};
|
|
270
|
+
const queryParams = {};
|
|
271
|
+
let headersToInclude = {};
|
|
272
|
+
Object.keys(argMap).forEach(header => {
|
|
273
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
274
|
+
headersToInclude[header] = argMap[header];
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
const headerParams = {
|
|
278
|
+
...headersToInclude
|
|
279
|
+
};
|
|
280
|
+
const formParams = {};
|
|
281
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
282
|
+
const contentTypes = [];
|
|
283
|
+
const accepts = ['application/json'];
|
|
284
|
+
const returnType = _GenerateReportApiResponse.default;
|
|
285
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-report', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Generate runway for a planned capacity scenario
|
|
290
|
+
* Generates runway for planned capacity scenario with the given UUID. You can send a polling request to know about the task status. The external identifier from the response can be used in the GET capacity scenarios API to fetch the runway result upon task completion.
|
|
291
|
+
* @param { String } extId UUID of a capacity planning scenario.
|
|
292
|
+
* @param {Object} args Additional Arguments
|
|
293
|
+
* @return {Promise<GenerateRunwayApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GenerateRunwayApiResponse } and HTTP response
|
|
294
|
+
*/
|
|
295
|
+
generateRunway(extId, ...args) {
|
|
296
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
297
|
+
const postBody = null;
|
|
298
|
+
// verify the required parameter 'extId' is set
|
|
299
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
300
|
+
throw new Error("Missing the required parameter 'extId' when calling generateRunway");
|
|
301
|
+
}
|
|
302
|
+
const pathParams = {
|
|
303
|
+
'extId': extId
|
|
304
|
+
};
|
|
305
|
+
const queryParams = {};
|
|
306
|
+
let headersToInclude = {};
|
|
307
|
+
Object.keys(argMap).forEach(header => {
|
|
308
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
309
|
+
headersToInclude[header] = argMap[header];
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
const headerParams = {
|
|
313
|
+
...headersToInclude
|
|
314
|
+
};
|
|
315
|
+
const formParams = {};
|
|
316
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
317
|
+
const contentTypes = [];
|
|
318
|
+
const accepts = ['application/json'];
|
|
319
|
+
const returnType = _GenerateRunwayApiResponse.default;
|
|
320
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{extId}/$actions/generate-runway', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Get a single capacity planning scenario
|
|
325
|
+
* Fetches a single capacity planing scenario using the UUID of the scenario.
|
|
326
|
+
* @param { String } extId UUID of a capacity planning scenario.
|
|
327
|
+
* @param {Object} args Additional Arguments
|
|
328
|
+
* @return {Promise<GetScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetScenarioApiResponse } and HTTP response
|
|
329
|
+
*/
|
|
330
|
+
getScenarioById(extId, ...args) {
|
|
331
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
332
|
+
const postBody = null;
|
|
333
|
+
// verify the required parameter 'extId' is set
|
|
334
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
335
|
+
throw new Error("Missing the required parameter 'extId' when calling getScenarioById");
|
|
336
|
+
}
|
|
337
|
+
const pathParams = {
|
|
338
|
+
'extId': extId
|
|
339
|
+
};
|
|
340
|
+
const queryParams = {};
|
|
341
|
+
let headersToInclude = {};
|
|
342
|
+
Object.keys(argMap).forEach(header => {
|
|
343
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
344
|
+
headersToInclude[header] = argMap[header];
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
const headerParams = {
|
|
348
|
+
...headersToInclude
|
|
349
|
+
};
|
|
350
|
+
const formParams = {};
|
|
351
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
352
|
+
const contentTypes = [];
|
|
353
|
+
const accepts = ['application/json'];
|
|
354
|
+
const returnType = _GetScenarioApiResponse.default;
|
|
355
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Get the generated report for a planned capacity scenario
|
|
360
|
+
* Fetches the generated capacity planning scenario report by the report UUID.
|
|
361
|
+
* @param { String } scenarioExtId UUID of the capacity planning scenario to get the report.
|
|
362
|
+
* @param {Object} args Additional Arguments
|
|
363
|
+
* @return {Promise<GetScenarioReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetScenarioReportApiResponse } and HTTP response
|
|
364
|
+
*/
|
|
365
|
+
getScenarioReport(scenarioExtId, ...args) {
|
|
366
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
367
|
+
const postBody = null;
|
|
368
|
+
// verify the required parameter 'scenarioExtId' is set
|
|
369
|
+
if (typeof scenarioExtId === 'undefined' || scenarioExtId === null) {
|
|
370
|
+
throw new Error("Missing the required parameter 'scenarioExtId' when calling getScenarioReport");
|
|
371
|
+
}
|
|
372
|
+
const pathParams = {
|
|
373
|
+
'scenarioExtId': scenarioExtId
|
|
374
|
+
};
|
|
375
|
+
const queryParams = {};
|
|
376
|
+
let headersToInclude = {};
|
|
377
|
+
Object.keys(argMap).forEach(header => {
|
|
378
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
379
|
+
headersToInclude[header] = argMap[header];
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
const headerParams = {
|
|
383
|
+
...headersToInclude
|
|
384
|
+
};
|
|
385
|
+
const formParams = {};
|
|
386
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
387
|
+
const contentTypes = [];
|
|
388
|
+
const accepts = ['application/octet-stream', 'application/json'];
|
|
389
|
+
const returnType = _GetScenarioReportApiResponse.default;
|
|
390
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{scenarioExtId}/reports', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Get a simulation
|
|
395
|
+
* Fetches a simulation from the provided UUID.
|
|
396
|
+
* @param { String } extId UUID of a simulation.
|
|
397
|
+
* @param {Object} args Additional Arguments
|
|
398
|
+
* @return {Promise<GetSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GetSimulationApiResponse } and HTTP response
|
|
399
|
+
*/
|
|
400
|
+
getSimulationById(extId, ...args) {
|
|
401
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
402
|
+
const postBody = null;
|
|
403
|
+
// verify the required parameter 'extId' is set
|
|
404
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
405
|
+
throw new Error("Missing the required parameter 'extId' when calling getSimulationById");
|
|
406
|
+
}
|
|
407
|
+
const pathParams = {
|
|
408
|
+
'extId': extId
|
|
409
|
+
};
|
|
410
|
+
const queryParams = {};
|
|
411
|
+
let headersToInclude = {};
|
|
412
|
+
Object.keys(argMap).forEach(header => {
|
|
413
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
414
|
+
headersToInclude[header] = argMap[header];
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
const headerParams = {
|
|
418
|
+
...headersToInclude
|
|
419
|
+
};
|
|
420
|
+
const formParams = {};
|
|
421
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
422
|
+
const contentTypes = [];
|
|
423
|
+
const accepts = ['application/json'];
|
|
424
|
+
const returnType = _GetSimulationApiResponse.default;
|
|
425
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/simulations/{extId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Get a list of capacity planning scenarios
|
|
430
|
+
* Fetches a list of capacity planning scenarios in a paginated manner.
|
|
431
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
432
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
433
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
434
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
435
|
+
* For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'.
|
|
436
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
437
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
438
|
+
* @param {Object} args Additional Arguments
|
|
439
|
+
* @return {Promise<ListScenariosApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListScenariosApiResponse } and HTTP response
|
|
440
|
+
*/
|
|
441
|
+
listScenarios(opts, ...args) {
|
|
442
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
443
|
+
opts = opts || {};
|
|
444
|
+
const postBody = null;
|
|
445
|
+
const pathParams = {};
|
|
446
|
+
const queryParams = {
|
|
447
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
448
|
+
'$page': opts['$page']
|
|
449
|
+
} : {}),
|
|
450
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
451
|
+
'$limit': opts['$limit']
|
|
452
|
+
} : {}),
|
|
453
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
454
|
+
'$filter': opts['$filter']
|
|
455
|
+
} : {}),
|
|
456
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
457
|
+
'$orderby': opts['$orderby']
|
|
458
|
+
} : {}),
|
|
459
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
460
|
+
'$select': opts['$select']
|
|
461
|
+
} : {})
|
|
462
|
+
};
|
|
463
|
+
let headersToInclude = {};
|
|
464
|
+
Object.keys(argMap).forEach(header => {
|
|
465
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
466
|
+
headersToInclude[header] = argMap[header];
|
|
467
|
+
}
|
|
468
|
+
});
|
|
469
|
+
const headerParams = {
|
|
470
|
+
...headersToInclude
|
|
471
|
+
};
|
|
472
|
+
const formParams = {};
|
|
473
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
474
|
+
const contentTypes = [];
|
|
475
|
+
const accepts = ['application/json'];
|
|
476
|
+
const returnType = _ListScenariosApiResponse.default;
|
|
477
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Get a list of simulations
|
|
482
|
+
* Fetches a list of simulations in a paginated manner.
|
|
483
|
+
* @param {Object} opts Optional parameters defined for the operation
|
|
484
|
+
* @param { Number } opts.$page A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
|
|
485
|
+
* @param { Number } opts.$limit A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
|
|
486
|
+
* @param { String } opts.$filter A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions.<br>
|
|
487
|
+
* For example, filter **$filter=name eq 'karbon-ntnx-1.0'** would filter the result on cluster name 'karbon-ntnx1.0', filter **$filter=startswith(name, 'C')** would filter on cluster name starting with 'C'.
|
|
488
|
+
* @param { String } opts.$orderby A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default. For example, '$orderby=templateName desc' would get all templates sorted by templateName in descending order.
|
|
489
|
+
* @param { String } opts.$select A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the [OData V4.01](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part1-protocol.html) URL conventions. If a $select expression consists of a single select item that is an asterisk (i.e., *), then all properties on the matching resource will be returned.
|
|
490
|
+
* @param {Object} args Additional Arguments
|
|
491
|
+
* @return {Promise<ListSimulationsApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link ListSimulationsApiResponse } and HTTP response
|
|
492
|
+
*/
|
|
493
|
+
listSimulations(opts, ...args) {
|
|
494
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
495
|
+
opts = opts || {};
|
|
496
|
+
const postBody = null;
|
|
497
|
+
const pathParams = {};
|
|
498
|
+
const queryParams = {
|
|
499
|
+
...(opts.hasOwnProperty('$page') ? {
|
|
500
|
+
'$page': opts['$page']
|
|
501
|
+
} : {}),
|
|
502
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
503
|
+
'$limit': opts['$limit']
|
|
504
|
+
} : {}),
|
|
505
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
506
|
+
'$filter': opts['$filter']
|
|
507
|
+
} : {}),
|
|
508
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
509
|
+
'$orderby': opts['$orderby']
|
|
510
|
+
} : {}),
|
|
511
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
512
|
+
'$select': opts['$select']
|
|
513
|
+
} : {})
|
|
514
|
+
};
|
|
515
|
+
let headersToInclude = {};
|
|
516
|
+
Object.keys(argMap).forEach(header => {
|
|
517
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
518
|
+
headersToInclude[header] = argMap[header];
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
const headerParams = {
|
|
522
|
+
...headersToInclude
|
|
523
|
+
};
|
|
524
|
+
const formParams = {};
|
|
525
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
526
|
+
const contentTypes = [];
|
|
527
|
+
const accepts = ['application/json'];
|
|
528
|
+
const returnType = _ListSimulationsApiResponse.default;
|
|
529
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/simulations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Update a capacity planning scenario
|
|
534
|
+
* Updates a capacity planning scenario using the provided UUID.
|
|
535
|
+
* @param { Partial<Scenario> } body specification
|
|
536
|
+
* @param { String } extId UUID of a capacity planning scenario.
|
|
537
|
+
* @param {Object} args Additional Arguments
|
|
538
|
+
* @return {Promise<UpdateScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateScenarioApiResponse } and HTTP response
|
|
539
|
+
*/
|
|
540
|
+
updateScenarioById(extId, body, ...args) {
|
|
541
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
542
|
+
let postBody = null;
|
|
543
|
+
if (body instanceof _Scenario.default && typeof body.toJson === 'function') {
|
|
544
|
+
postBody = body.toJson();
|
|
545
|
+
} else {
|
|
546
|
+
postBody = body;
|
|
547
|
+
}
|
|
548
|
+
// verify the required parameter 'extId' is set
|
|
549
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
550
|
+
throw new Error("Missing the required parameter 'extId' when calling updateScenarioById");
|
|
551
|
+
}
|
|
552
|
+
// verify the required parameter 'body' is set
|
|
553
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
554
|
+
throw new Error("Invalid body when calling updateScenarioById");
|
|
555
|
+
}
|
|
556
|
+
const pathParams = {
|
|
557
|
+
'extId': extId
|
|
558
|
+
};
|
|
559
|
+
const queryParams = {};
|
|
560
|
+
let headersToInclude = {};
|
|
561
|
+
Object.keys(argMap).forEach(header => {
|
|
562
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
563
|
+
headersToInclude[header] = argMap[header];
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
const headerParams = {
|
|
567
|
+
...headersToInclude
|
|
568
|
+
};
|
|
569
|
+
const formParams = {};
|
|
570
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
571
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
572
|
+
const contentTypes = ['application/json'];
|
|
573
|
+
const accepts = ['application/json'];
|
|
574
|
+
const returnType = _UpdateScenarioApiResponse.default;
|
|
575
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/scenarios/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* Update a simulation
|
|
580
|
+
* Updates a simulation identified by the provided UUID.
|
|
581
|
+
* @param { Partial<Simulation> } body specification
|
|
582
|
+
* @param { String } extId UUID of a simulation.
|
|
583
|
+
* @param {Object} args Additional Arguments
|
|
584
|
+
* @return {Promise<UpdateSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateSimulationApiResponse } and HTTP response
|
|
585
|
+
*/
|
|
586
|
+
updateSimulationById(extId, body, ...args) {
|
|
587
|
+
let argMap = args.length > 0 ? args[0] : {};
|
|
588
|
+
let postBody = null;
|
|
589
|
+
if (body instanceof _Simulation.default && typeof body.toJson === 'function') {
|
|
590
|
+
postBody = body.toJson();
|
|
591
|
+
} else {
|
|
592
|
+
postBody = body;
|
|
593
|
+
}
|
|
594
|
+
// verify the required parameter 'extId' is set
|
|
595
|
+
if (typeof extId === 'undefined' || extId === null) {
|
|
596
|
+
throw new Error("Missing the required parameter 'extId' when calling updateSimulationById");
|
|
597
|
+
}
|
|
598
|
+
// verify the required parameter 'body' is set
|
|
599
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
600
|
+
throw new Error("Invalid body when calling updateSimulationById");
|
|
601
|
+
}
|
|
602
|
+
const pathParams = {
|
|
603
|
+
'extId': extId
|
|
604
|
+
};
|
|
605
|
+
const queryParams = {};
|
|
606
|
+
let headersToInclude = {};
|
|
607
|
+
Object.keys(argMap).forEach(header => {
|
|
608
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
609
|
+
headersToInclude[header] = argMap[header];
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
const headerParams = {
|
|
613
|
+
...headersToInclude
|
|
614
|
+
};
|
|
615
|
+
const formParams = {};
|
|
616
|
+
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
617
|
+
const authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
618
|
+
const contentTypes = ['application/json'];
|
|
619
|
+
const accepts = ['application/json'];
|
|
620
|
+
const returnType = _UpdateSimulationApiResponse.default;
|
|
621
|
+
return this.apiClient.callApi('/api/aiops/v4.2.b1/config/simulations/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
exports.ScenariosApi = ScenariosApi;
|