@nutanix-scratch/aiops-js-client 4.0.2 → 4.2.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -4
- package/dist/Ntnx-Aiops-js-client-prod.js +1 -1
- package/dist/Ntnx-Aiops-js-client.js +560 -675
- package/dist/es/ApiClient.d.ts +29 -7
- package/dist/es/ApiClient.js +854 -667
- package/dist/es/Paginable.d.ts +1 -1
- package/dist/es/Paginable.js +144 -183
- package/dist/es/apis/scenarios-endpoints.d.ts +1 -1
- package/dist/es/apis/scenarios-endpoints.js +535 -552
- package/dist/es/apis/stats-endpoints.d.ts +1 -1
- package/dist/es/apis/stats-endpoints.js +196 -202
- package/dist/es/index.d.ts +13 -35
- package/dist/es/index.js +331 -419
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.d.ts +2 -18
- package/dist/es/models/aiops/v4/clusterMetrics/Cluster.js +396 -457
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +1 -51
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterMetrics.js +708 -800
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +1 -38
- package/dist/es/models/aiops/v4/clusterMetrics/ClusterProjection.js +215 -244
- package/dist/es/models/aiops/v4/clusterMetrics/Node.d.ts +2 -11
- package/dist/es/models/aiops/v4/clusterMetrics/Node.js +233 -280
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/clusterMetrics/NodeProjection.js +74 -103
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.d.ts +2 -11
- package/dist/es/models/aiops/v4/clusterMetrics/Vm.js +233 -280
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/clusterMetrics/VmProjection.js +74 -103
- package/dist/es/models/aiops/v4/common/ClusterType.js +7 -9
- package/dist/{lib/models/aiops/v4/capacityplanning/CapacityUnit.d.ts → es/models/aiops/v4/config/CapacityType.d.ts} +6 -6
- package/dist/es/models/aiops/v4/config/CapacityType.js +95 -0
- package/dist/es/models/aiops/v4/config/CapacityUnit.js +7 -9
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.d.ts +2 -8
- package/dist/es/models/aiops/v4/config/CapacityUpdateConfig.js +164 -205
- package/dist/es/models/aiops/v4/config/CapacityUpdateType.js +7 -9
- package/dist/es/models/aiops/v4/config/CitrixXenProvisionType.js +7 -9
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.d.ts +1 -14
- package/dist/es/models/aiops/v4/config/CitrixXenWorkload.js +171 -204
- package/dist/es/models/aiops/v4/config/CitrixXenWorkloadVendor.js +7 -9
- package/dist/es/models/aiops/v4/config/ClusterConfig.d.ts +3 -52
- package/dist/es/models/aiops/v4/config/ClusterConfig.js +173 -223
- package/dist/es/models/aiops/v4/{capacityplanning/RunwayDuration.d.ts → config/ClusterType.d.ts} +6 -6
- package/dist/{lib/models/aiops/v4/capacityplanning/CapacityUnit.js → es/models/aiops/v4/config/ClusterType.js} +24 -26
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/CreateScenarioApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +2 -46
- package/dist/es/models/aiops/v4/config/CreateSimulationApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/DataStoreConfig.d.ts +2 -16
- package/dist/es/models/aiops/v4/config/DataStoreConfig.js +364 -421
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/DeleteScenarioApiResponse.js +190 -245
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/DeleteSimulationApiResponse.js +190 -245
- package/dist/es/models/aiops/v4/config/EntityDescriptor.d.ts +1 -2
- package/dist/es/models/aiops/v4/config/EntityDescriptor.js +250 -308
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +2 -45
- package/dist/es/models/aiops/v4/config/EntityDescriptorListApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/config/EntityDetail.d.ts +29 -0
- package/dist/es/models/aiops/v4/config/EntityDetail.js +260 -0
- package/dist/es/models/aiops/v4/config/EntityType.d.ts +1 -16
- package/dist/es/models/aiops/v4/config/EntityType.js +129 -171
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/EntityTypeListApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GenerateRecommendationApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GenerateReportApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GenerateRunwayApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GetScenarioApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GetScenarioReportApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/GetSimulationApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/ListScenariosApiResponse.js +213 -268
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/ListSimulationsApiResponse.js +213 -268
- package/dist/es/models/aiops/v4/config/MetricDescriptor.d.ts +2 -29
- package/dist/es/models/aiops/v4/config/MetricDescriptor.js +401 -464
- package/dist/es/models/aiops/v4/config/MicrosoftXenProvisionType.js +7 -9
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +1 -14
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkload.js +171 -204
- package/dist/es/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +7 -9
- package/dist/es/models/aiops/v4/config/NodeConfig.d.ts +13 -21
- package/dist/es/models/aiops/v4/config/NodeConfig.js +305 -317
- package/dist/es/models/aiops/v4/config/NodeSource.js +7 -9
- package/dist/es/models/aiops/v4/config/PolicyType.js +7 -9
- package/dist/es/models/aiops/v4/config/ReplicationFactor.js +7 -9
- package/dist/es/models/aiops/v4/config/ResourceCapacity.d.ts +2 -11
- package/dist/es/models/aiops/v4/config/ResourceCapacity.js +241 -288
- package/dist/es/models/aiops/v4/config/Runway.d.ts +26 -35
- package/dist/es/models/aiops/v4/config/Runway.js +283 -330
- package/dist/es/models/aiops/v4/config/Scenario.d.ts +39 -83
- package/dist/es/models/aiops/v4/config/Scenario.js +444 -397
- package/dist/es/models/aiops/v4/config/ScenarioProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/config/ScenarioProjection.js +74 -103
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +2 -10
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpec.js +216 -261
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +73 -102
- package/dist/es/models/aiops/v4/config/Simulation.d.ts +1 -25
- package/dist/es/models/aiops/v4/config/Simulation.js +155 -199
- package/dist/es/models/aiops/v4/config/SimulationProjection.d.ts +1 -1
- package/dist/es/models/aiops/v4/config/SimulationProjection.js +74 -103
- package/dist/es/models/aiops/v4/config/Source.d.ts +1 -16
- package/dist/es/models/aiops/v4/config/Source.js +129 -171
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.d.ts +2 -50
- package/dist/es/models/aiops/v4/config/SourceListApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/config/SplunkWorkload.d.ts +2 -10
- package/dist/es/models/aiops/v4/config/SplunkWorkload.js +246 -291
- package/dist/es/models/aiops/v4/config/SqlProfileType.js +7 -9
- package/dist/es/models/aiops/v4/config/SqlTransactionType.js +7 -9
- package/dist/es/models/aiops/v4/config/SqlWorkload.d.ts +2 -10
- package/dist/es/models/aiops/v4/config/SqlWorkload.js +219 -264
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/UpdateScenarioApiResponse.js +187 -242
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/config/UpdateSimulationApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/config/ValueRange.d.ts +2 -8
- package/dist/es/models/aiops/v4/config/ValueRange.js +166 -207
- package/dist/es/models/aiops/v4/config/ValueType.js +7 -9
- package/dist/es/models/aiops/v4/config/VdiProvisionType.js +7 -9
- package/dist/es/models/aiops/v4/config/VdiUserType.js +7 -9
- package/dist/es/models/aiops/v4/config/VdiVendor.js +7 -9
- package/dist/es/models/aiops/v4/config/VdiWorkload.d.ts +2 -10
- package/dist/es/models/aiops/v4/config/VdiWorkload.js +216 -261
- package/dist/es/models/aiops/v4/config/Vendor.js +7 -9
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.d.ts +5 -20
- package/dist/es/models/aiops/v4/config/VmCategoryWorkload.js +188 -247
- package/dist/es/models/aiops/v4/config/VmWorkload.d.ts +2 -8
- package/dist/es/models/aiops/v4/config/VmWorkload.js +176 -217
- package/dist/es/models/aiops/v4/config/Workload.d.ts +2 -19
- package/dist/es/models/aiops/v4/config/Workload.js +248 -297
- package/dist/es/models/aiops/v4/config/XenOperatingSystem.js +7 -9
- package/dist/es/models/aiops/v4/config/XenWorkload.d.ts +2 -12
- package/dist/es/models/aiops/v4/config/XenWorkload.js +302 -351
- package/dist/es/models/aiops/v4/config/XfitPolicy.d.ts +21 -61
- package/dist/es/models/aiops/v4/config/XfitPolicy.js +359 -407
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.d.ts +2 -4
- package/dist/es/models/aiops/v4/config/XfitPolicyProjection.js +77 -110
- package/dist/es/models/aiops/v4/error/AppMessage.d.ts +2 -12
- package/dist/es/models/aiops/v4/error/AppMessage.js +264 -313
- package/dist/es/models/aiops/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/es/models/aiops/v4/error/ErrorResponse.js +175 -218
- package/dist/es/models/aiops/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/es/models/aiops/v4/error/SchemaValidationError.js +249 -300
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/es/models/aiops/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/es/models/aiops/v4/stats/BoolList.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/BoolList.js +147 -186
- package/dist/es/models/aiops/v4/stats/BoolVal.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/BoolVal.js +140 -179
- package/dist/es/models/aiops/v4/stats/DoubleList.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/DoubleList.js +147 -186
- package/dist/es/models/aiops/v4/stats/DoubleVal.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/DoubleVal.js +140 -179
- package/dist/es/models/aiops/v4/stats/Entity.d.ts +1 -2
- package/dist/es/models/aiops/v4/stats/Entity.js +223 -279
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.d.ts +2 -43
- package/dist/es/models/aiops/v4/stats/EntityListApiResponse.js +209 -264
- package/dist/es/models/aiops/v4/stats/IntList.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/IntList.js +147 -186
- package/dist/es/models/aiops/v4/stats/IntVal.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/IntVal.js +140 -179
- package/dist/es/models/aiops/v4/stats/Metric.d.ts +2 -20
- package/dist/es/models/aiops/v4/stats/Metric.js +166 -207
- package/dist/es/models/aiops/v4/stats/Point.d.ts +2 -8
- package/dist/es/models/aiops/v4/stats/Point.js +199 -244
- package/dist/es/models/aiops/v4/stats/StrList.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/StrList.js +147 -186
- package/dist/es/models/aiops/v4/stats/StrVal.d.ts +2 -7
- package/dist/es/models/aiops/v4/stats/StrVal.js +140 -179
- package/dist/es/models/aiops/v4/stats/TimeSeries.d.ts +2 -14
- package/dist/es/models/aiops/v4/stats/TimeSeries.js +175 -220
- package/dist/es/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/es/models/common/v1/config/Flag.js +170 -211
- package/dist/es/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/es/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/es/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVPair.js +225 -270
- package/dist/es/models/common/v1/config/KVStringPair.d.ts +2 -8
- package/dist/es/models/common/v1/config/KVStringPair.js +170 -211
- package/dist/es/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/es/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/es/models/common/v1/config/Message.d.ts +2 -10
- package/dist/es/models/common/v1/config/Message.js +213 -258
- package/dist/es/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/es/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/es/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/es/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/es/models/common/v1/response/ApiLink.js +165 -206
- package/dist/es/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/es/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/es/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/es/models/common/v1/stats/DownSamplingOperator.js +7 -9
- package/dist/es/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/es/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/es/models/validation/ValidationError.js +26 -42
- package/dist/es/models/validation/ValidationScopes.js +3 -3
- package/dist/es/utils/ValidationUtils.js +39 -69
- package/dist/lib/ApiClient.d.ts +29 -7
- package/dist/lib/ApiClient.js +854 -667
- package/dist/lib/Paginable.d.ts +1 -1
- package/dist/lib/Paginable.js +144 -183
- package/dist/lib/apis/scenarios-endpoints.d.ts +1 -1
- package/dist/lib/apis/scenarios-endpoints.js +535 -552
- package/dist/lib/apis/stats-endpoints.d.ts +1 -1
- package/dist/lib/apis/stats-endpoints.js +196 -202
- package/dist/lib/index.d.ts +13 -35
- package/dist/lib/index.js +331 -419
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.d.ts +2 -18
- package/dist/lib/models/aiops/v4/clusterMetrics/Cluster.js +396 -457
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.d.ts +1 -51
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterMetrics.js +708 -800
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.d.ts +1 -38
- package/dist/lib/models/aiops/v4/clusterMetrics/ClusterProjection.js +215 -244
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.d.ts +2 -11
- package/dist/lib/models/aiops/v4/clusterMetrics/Node.js +233 -280
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/clusterMetrics/NodeProjection.js +74 -103
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.d.ts +2 -11
- package/dist/lib/models/aiops/v4/clusterMetrics/Vm.js +233 -280
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/clusterMetrics/VmProjection.js +74 -103
- package/dist/lib/models/aiops/v4/common/ClusterType.js +7 -9
- package/dist/{es/models/aiops/v4/capacityplanning/CapacityUnit.d.ts → lib/models/aiops/v4/config/CapacityType.d.ts} +6 -6
- package/dist/lib/models/aiops/v4/config/CapacityType.js +95 -0
- package/dist/lib/models/aiops/v4/config/CapacityUnit.js +7 -9
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.d.ts +2 -8
- package/dist/lib/models/aiops/v4/config/CapacityUpdateConfig.js +164 -205
- package/dist/lib/models/aiops/v4/config/CapacityUpdateType.js +7 -9
- package/dist/lib/models/aiops/v4/config/CitrixXenProvisionType.js +7 -9
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.d.ts +1 -14
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkload.js +171 -204
- package/dist/lib/models/aiops/v4/config/CitrixXenWorkloadVendor.js +7 -9
- package/dist/lib/models/aiops/v4/config/ClusterConfig.d.ts +3 -52
- package/dist/lib/models/aiops/v4/config/ClusterConfig.js +173 -223
- package/dist/lib/models/aiops/v4/{capacityplanning/RunwayDuration.d.ts → config/ClusterType.d.ts} +6 -6
- package/dist/{es/models/aiops/v4/capacityplanning/CapacityUnit.js → lib/models/aiops/v4/config/ClusterType.js} +24 -26
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/CreateScenarioApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.d.ts +2 -46
- package/dist/lib/models/aiops/v4/config/CreateSimulationApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.d.ts +2 -16
- package/dist/lib/models/aiops/v4/config/DataStoreConfig.js +364 -421
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/DeleteScenarioApiResponse.js +190 -245
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/DeleteSimulationApiResponse.js +190 -245
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.d.ts +1 -2
- package/dist/lib/models/aiops/v4/config/EntityDescriptor.js +250 -308
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.d.ts +2 -45
- package/dist/lib/models/aiops/v4/config/EntityDescriptorListApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/config/EntityDetail.d.ts +29 -0
- package/dist/lib/models/aiops/v4/config/EntityDetail.js +260 -0
- package/dist/lib/models/aiops/v4/config/EntityType.d.ts +1 -16
- package/dist/lib/models/aiops/v4/config/EntityType.js +129 -171
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/EntityTypeListApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GenerateRecommendationApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GenerateReportApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GenerateRunwayApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GetScenarioApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GetScenarioReportApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/GetSimulationApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/ListScenariosApiResponse.js +213 -268
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/ListSimulationsApiResponse.js +213 -268
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.d.ts +2 -29
- package/dist/lib/models/aiops/v4/config/MetricDescriptor.js +401 -464
- package/dist/lib/models/aiops/v4/config/MicrosoftXenProvisionType.js +7 -9
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.d.ts +1 -14
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkload.js +171 -204
- package/dist/lib/models/aiops/v4/config/MicrosoftXenWorkloadVendor.js +7 -9
- package/dist/lib/models/aiops/v4/config/NodeConfig.d.ts +13 -21
- package/dist/lib/models/aiops/v4/config/NodeConfig.js +305 -317
- package/dist/lib/models/aiops/v4/config/NodeSource.js +7 -9
- package/dist/lib/models/aiops/v4/config/PolicyType.js +7 -9
- package/dist/lib/models/aiops/v4/config/ReplicationFactor.js +7 -9
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.d.ts +2 -11
- package/dist/lib/models/aiops/v4/config/ResourceCapacity.js +241 -288
- package/dist/lib/models/aiops/v4/config/Runway.d.ts +26 -35
- package/dist/lib/models/aiops/v4/config/Runway.js +283 -330
- package/dist/lib/models/aiops/v4/config/Scenario.d.ts +39 -83
- package/dist/lib/models/aiops/v4/config/Scenario.js +444 -397
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/config/ScenarioProjection.js +74 -103
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.d.ts +2 -10
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpec.js +216 -261
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/config/SimulatedVmResourceSpecProjection.js +73 -102
- package/dist/lib/models/aiops/v4/config/Simulation.d.ts +1 -25
- package/dist/lib/models/aiops/v4/config/Simulation.js +155 -199
- package/dist/lib/models/aiops/v4/config/SimulationProjection.d.ts +1 -1
- package/dist/lib/models/aiops/v4/config/SimulationProjection.js +74 -103
- package/dist/lib/models/aiops/v4/config/Source.d.ts +1 -16
- package/dist/lib/models/aiops/v4/config/Source.js +129 -171
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.d.ts +2 -50
- package/dist/lib/models/aiops/v4/config/SourceListApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.d.ts +2 -10
- package/dist/lib/models/aiops/v4/config/SplunkWorkload.js +246 -291
- package/dist/lib/models/aiops/v4/config/SqlProfileType.js +7 -9
- package/dist/lib/models/aiops/v4/config/SqlTransactionType.js +7 -9
- package/dist/lib/models/aiops/v4/config/SqlWorkload.d.ts +2 -10
- package/dist/lib/models/aiops/v4/config/SqlWorkload.js +219 -264
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/UpdateScenarioApiResponse.js +187 -242
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/config/UpdateSimulationApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/config/ValueRange.d.ts +2 -8
- package/dist/lib/models/aiops/v4/config/ValueRange.js +166 -207
- package/dist/lib/models/aiops/v4/config/ValueType.js +7 -9
- package/dist/lib/models/aiops/v4/config/VdiProvisionType.js +7 -9
- package/dist/lib/models/aiops/v4/config/VdiUserType.js +7 -9
- package/dist/lib/models/aiops/v4/config/VdiVendor.js +7 -9
- package/dist/lib/models/aiops/v4/config/VdiWorkload.d.ts +2 -10
- package/dist/lib/models/aiops/v4/config/VdiWorkload.js +216 -261
- package/dist/lib/models/aiops/v4/config/Vendor.js +7 -9
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.d.ts +5 -20
- package/dist/lib/models/aiops/v4/config/VmCategoryWorkload.js +188 -247
- package/dist/lib/models/aiops/v4/config/VmWorkload.d.ts +2 -8
- package/dist/lib/models/aiops/v4/config/VmWorkload.js +176 -217
- package/dist/lib/models/aiops/v4/config/Workload.d.ts +2 -19
- package/dist/lib/models/aiops/v4/config/Workload.js +248 -297
- package/dist/lib/models/aiops/v4/config/XenOperatingSystem.js +7 -9
- package/dist/lib/models/aiops/v4/config/XenWorkload.d.ts +2 -12
- package/dist/lib/models/aiops/v4/config/XenWorkload.js +302 -351
- package/dist/lib/models/aiops/v4/config/XfitPolicy.d.ts +21 -61
- package/dist/lib/models/aiops/v4/config/XfitPolicy.js +359 -407
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.d.ts +2 -4
- package/dist/lib/models/aiops/v4/config/XfitPolicyProjection.js +77 -110
- package/dist/lib/models/aiops/v4/error/AppMessage.d.ts +2 -12
- package/dist/lib/models/aiops/v4/error/AppMessage.js +264 -313
- package/dist/lib/models/aiops/v4/error/ErrorResponse.d.ts +2 -7
- package/dist/lib/models/aiops/v4/error/ErrorResponse.js +175 -218
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.d.ts +2 -18
- package/dist/lib/models/aiops/v4/error/SchemaValidationError.js +249 -300
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.d.ts +2 -9
- package/dist/lib/models/aiops/v4/error/SchemaValidationErrorMessage.js +191 -234
- package/dist/lib/models/aiops/v4/stats/BoolList.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/BoolList.js +147 -186
- package/dist/lib/models/aiops/v4/stats/BoolVal.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/BoolVal.js +140 -179
- package/dist/lib/models/aiops/v4/stats/DoubleList.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/DoubleList.js +147 -186
- package/dist/lib/models/aiops/v4/stats/DoubleVal.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/DoubleVal.js +140 -179
- package/dist/lib/models/aiops/v4/stats/Entity.d.ts +1 -2
- package/dist/lib/models/aiops/v4/stats/Entity.js +223 -279
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.d.ts +2 -43
- package/dist/lib/models/aiops/v4/stats/EntityListApiResponse.js +209 -264
- package/dist/lib/models/aiops/v4/stats/IntList.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/IntList.js +147 -186
- package/dist/lib/models/aiops/v4/stats/IntVal.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/IntVal.js +140 -179
- package/dist/lib/models/aiops/v4/stats/Metric.d.ts +2 -20
- package/dist/lib/models/aiops/v4/stats/Metric.js +166 -207
- package/dist/lib/models/aiops/v4/stats/Point.d.ts +2 -8
- package/dist/lib/models/aiops/v4/stats/Point.js +199 -244
- package/dist/lib/models/aiops/v4/stats/StrList.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/StrList.js +147 -186
- package/dist/lib/models/aiops/v4/stats/StrVal.d.ts +2 -7
- package/dist/lib/models/aiops/v4/stats/StrVal.js +140 -179
- package/dist/lib/models/aiops/v4/stats/TimeSeries.d.ts +2 -14
- package/dist/lib/models/aiops/v4/stats/TimeSeries.js +175 -220
- package/dist/lib/models/common/v1/config/Flag.d.ts +2 -8
- package/dist/lib/models/common/v1/config/Flag.js +170 -211
- package/dist/lib/models/common/v1/config/IPv4Address.d.ts +2 -8
- package/dist/lib/models/common/v1/config/IPv4Address.js +174 -215
- package/dist/lib/models/common/v1/config/KVPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVPair.js +225 -270
- package/dist/lib/models/common/v1/config/KVStringPair.d.ts +2 -8
- package/dist/lib/models/common/v1/config/KVStringPair.js +170 -211
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.d.ts +2 -7
- package/dist/lib/models/common/v1/config/MapOfStringWrapper.js +139 -178
- package/dist/lib/models/common/v1/config/Message.d.ts +2 -10
- package/dist/lib/models/common/v1/config/Message.js +213 -258
- package/dist/lib/models/common/v1/config/MessageSeverity.js +7 -9
- package/dist/lib/models/common/v1/config/TenantAwareModel.d.ts +2 -7
- package/dist/lib/models/common/v1/config/TenantAwareModel.js +137 -177
- package/dist/lib/models/common/v1/response/ApiLink.d.ts +2 -8
- package/dist/lib/models/common/v1/response/ApiLink.js +165 -206
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.d.ts +2 -40
- package/dist/lib/models/common/v1/response/ApiResponseMetadata.js +281 -344
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.d.ts +1 -15
- package/dist/lib/models/common/v1/response/ExternalizableAbstractModel.js +154 -202
- package/dist/lib/models/common/v1/stats/DownSamplingOperator.js +7 -9
- package/dist/lib/models/prism/v4/config/TaskReference.d.ts +2 -7
- package/dist/lib/models/prism/v4/config/TaskReference.js +142 -181
- package/dist/lib/models/validation/ValidationError.js +26 -42
- package/dist/lib/models/validation/ValidationScopes.js +3 -3
- package/dist/lib/utils/ValidationUtils.js +39 -69
- package/package.json +1 -1
- package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +0 -109
- package/dist/es/models/aiops/v4/capacityplanning/CapacityDetails.js +0 -459
- package/dist/es/models/aiops/v4/capacityplanning/Runway.d.ts +0 -86
- package/dist/es/models/aiops/v4/capacityplanning/Runway.js +0 -340
- package/dist/es/models/aiops/v4/capacityplanning/RunwayDuration.js +0 -91
- package/dist/es/models/aiops/v4/config/CategoryDetail.d.ts +0 -60
- package/dist/es/models/aiops/v4/config/CategoryDetail.js +0 -315
- package/dist/es/models/aiops/v4/config/HardwareModel.d.ts +0 -144
- package/dist/es/models/aiops/v4/config/HardwareModel.js +0 -550
- package/dist/es/models/aiops/v4/config/HardwarePart.d.ts +0 -92
- package/dist/es/models/aiops/v4/config/HardwarePart.js +0 -363
- package/dist/es/models/aiops/v4/config/IgnoreWindow.d.ts +0 -111
- package/dist/es/models/aiops/v4/config/IgnoreWindow.js +0 -458
- package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.d.ts +0 -20
- package/dist/es/models/aiops/v4/config/IgnoreWindowProjection.js +0 -173
- package/dist/es/models/aiops/v4/config/RunwayParams.d.ts +0 -77
- package/dist/es/models/aiops/v4/config/RunwayParams.js +0 -323
- package/dist/es/models/aiops/v4/config/RunwayParamsProjection.d.ts +0 -14
- package/dist/es/models/aiops/v4/config/RunwayParamsProjection.js +0 -159
- package/dist/es/models/aiops/v4/stats/ScenarioStats.d.ts +0 -79
- package/dist/es/models/aiops/v4/stats/ScenarioStats.js +0 -323
- package/dist/es/models/aiops/v4/stats/ScenarioStatsProjection.d.ts +0 -10
- package/dist/es/models/aiops/v4/stats/ScenarioStatsProjection.js +0 -151
- package/dist/es/models/aiops/v4/stats/ScenarioStatsTuple.d.ts +0 -160
- package/dist/es/models/aiops/v4/stats/ScenarioStatsTuple.js +0 -617
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.d.ts +0 -109
- package/dist/lib/models/aiops/v4/capacityplanning/CapacityDetails.js +0 -459
- package/dist/lib/models/aiops/v4/capacityplanning/Runway.d.ts +0 -86
- package/dist/lib/models/aiops/v4/capacityplanning/Runway.js +0 -340
- package/dist/lib/models/aiops/v4/capacityplanning/RunwayDuration.js +0 -91
- package/dist/lib/models/aiops/v4/config/CategoryDetail.d.ts +0 -60
- package/dist/lib/models/aiops/v4/config/CategoryDetail.js +0 -315
- package/dist/lib/models/aiops/v4/config/HardwareModel.d.ts +0 -144
- package/dist/lib/models/aiops/v4/config/HardwareModel.js +0 -550
- package/dist/lib/models/aiops/v4/config/HardwarePart.d.ts +0 -92
- package/dist/lib/models/aiops/v4/config/HardwarePart.js +0 -363
- package/dist/lib/models/aiops/v4/config/IgnoreWindow.d.ts +0 -111
- package/dist/lib/models/aiops/v4/config/IgnoreWindow.js +0 -458
- package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.d.ts +0 -20
- package/dist/lib/models/aiops/v4/config/IgnoreWindowProjection.js +0 -173
- package/dist/lib/models/aiops/v4/config/RunwayParams.d.ts +0 -77
- package/dist/lib/models/aiops/v4/config/RunwayParams.js +0 -323
- package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.d.ts +0 -14
- package/dist/lib/models/aiops/v4/config/RunwayParamsProjection.js +0 -159
- package/dist/lib/models/aiops/v4/stats/ScenarioStats.d.ts +0 -79
- package/dist/lib/models/aiops/v4/stats/ScenarioStats.js +0 -323
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsProjection.d.ts +0 -10
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsProjection.js +0 -151
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsTuple.d.ts +0 -160
- package/dist/lib/models/aiops/v4/stats/ScenarioStatsTuple.js +0 -617
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -22,38 +21,36 @@ var _GetScenarioApiResponse = _interopRequireDefault(require("../models/aiops/v4
|
|
|
22
21
|
var _UpdateScenarioApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/UpdateScenarioApiResponse"));
|
|
23
22
|
var _GenerateRunwayApiResponse = _interopRequireDefault(require("../models/aiops/v4/config/GenerateRunwayApiResponse"));
|
|
24
23
|
var _Simulation = _interopRequireDefault(require("../models/aiops/v4/config/Simulation"));
|
|
25
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : {
|
|
26
|
-
|
|
27
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
28
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
29
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
30
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
31
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
32
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
33
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
34
|
-
function _classPrivateFieldInitSpec(e, t, a) { _checkPrivateRedeclaration(e, t), t.set(e, a); }
|
|
35
|
-
function _checkPrivateRedeclaration(e, t) { if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object"); }
|
|
36
|
-
function _classPrivateFieldGet(s, a) { return s.get(_assertClassBrand(s, a)); }
|
|
37
|
-
function _classPrivateFieldSet(s, a, r) { return s.set(_assertClassBrand(s, a), r), r; }
|
|
38
|
-
function _assertClassBrand(e, t, n) { if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n; throw new TypeError("Private element is not present on this object"); } /*
|
|
24
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
25
|
+
/*
|
|
39
26
|
* Nutanix AIOps APIs
|
|
40
27
|
*
|
|
41
|
-
* OpenAPI spec version: 4.
|
|
28
|
+
* OpenAPI spec version: 4.2.1-beta-1
|
|
42
29
|
*
|
|
43
30
|
* NOTE: This class is auto generated by the Open API Dev Platform.
|
|
44
31
|
*
|
|
45
|
-
* Open API Dev Platform Codegen version: 17.
|
|
32
|
+
* Open API Dev Platform Codegen version: 17.5.0.10128-RELEASE
|
|
46
33
|
*
|
|
47
34
|
* Do not edit the class manually.
|
|
48
35
|
*
|
|
49
36
|
*/
|
|
37
|
+
|
|
50
38
|
/**
|
|
51
39
|
* Scenarios service.
|
|
52
|
-
* @version 4.
|
|
40
|
+
* @version 4.2.1-beta-1
|
|
53
41
|
* @class ScenariosApi
|
|
54
42
|
*/
|
|
55
|
-
|
|
56
|
-
|
|
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
|
+
|
|
57
54
|
/**
|
|
58
55
|
* Constructs a new ScenariosApi.
|
|
59
56
|
* @alias module:api/ScenariosApi
|
|
@@ -61,15 +58,13 @@ var ScenariosApi = exports.ScenariosApi = /*#__PURE__*/function () {
|
|
|
61
58
|
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
62
59
|
* default to {@link module:ApiClient#instance} if unspecified.
|
|
63
60
|
*/
|
|
64
|
-
|
|
65
|
-
_classCallCheck(this, ScenariosApi);
|
|
66
|
-
_classPrivateFieldInitSpec(this, _headersToSkip, void 0);
|
|
61
|
+
constructor(apiClient) {
|
|
67
62
|
this.apiClient = apiClient || _ApiClient.ApiClient.instance;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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');
|
|
73
68
|
}
|
|
74
69
|
|
|
75
70
|
/**
|
|
@@ -79,563 +74,551 @@ var ScenariosApi = exports.ScenariosApi = /*#__PURE__*/function () {
|
|
|
79
74
|
* @param {Object} args Additional Arguments
|
|
80
75
|
* @return {Promise<CreateScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateScenarioApiResponse } and HTTP response
|
|
81
76
|
*/
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
postBody = body.toJson();
|
|
90
|
-
} else {
|
|
91
|
-
postBody = body;
|
|
92
|
-
}
|
|
93
|
-
// verify the required parameter 'body' is set
|
|
94
|
-
if (typeof postBody === 'undefined' || postBody === null) {
|
|
95
|
-
throw new Error("Invalid body when calling createScenario");
|
|
96
|
-
}
|
|
97
|
-
var pathParams = {};
|
|
98
|
-
var queryParams = {};
|
|
99
|
-
var headersToInclude = {};
|
|
100
|
-
Object.keys(argMap).forEach(function (header) {
|
|
101
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this).has(header.toLowerCase())) {
|
|
102
|
-
headersToInclude[header] = argMap[header];
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
106
|
-
var formParams = {};
|
|
107
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
108
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
109
|
-
var contentTypes = ['application/json'];
|
|
110
|
-
var accepts = ['application/json'];
|
|
111
|
-
var returnType = _CreateScenarioApiResponse["default"];
|
|
112
|
-
return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
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;
|
|
113
84
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
* Creates a simulation which can be used in the capacity scenario as a part of VM workload.
|
|
118
|
-
* @param { Partial<Simulation> } body specification
|
|
119
|
-
* @param {Object} args Additional Arguments
|
|
120
|
-
* @return {Promise<CreateSimulationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link CreateSimulationApiResponse } and HTTP response
|
|
121
|
-
*/
|
|
122
|
-
}, {
|
|
123
|
-
key: "createSimulation",
|
|
124
|
-
value: function createSimulation(body) {
|
|
125
|
-
var _this2 = this;
|
|
126
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
127
|
-
var postBody = null;
|
|
128
|
-
if (body instanceof _Simulation["default"] && typeof body.toJson === 'function') {
|
|
129
|
-
postBody = body.toJson();
|
|
130
|
-
} else {
|
|
131
|
-
postBody = body;
|
|
132
|
-
}
|
|
133
|
-
// verify the required parameter 'body' is set
|
|
134
|
-
if (typeof postBody === 'undefined' || postBody === null) {
|
|
135
|
-
throw new Error("Invalid body when calling createSimulation");
|
|
136
|
-
}
|
|
137
|
-
var pathParams = {};
|
|
138
|
-
var queryParams = {};
|
|
139
|
-
var headersToInclude = {};
|
|
140
|
-
Object.keys(argMap).forEach(function (header) {
|
|
141
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this2).has(header.toLowerCase())) {
|
|
142
|
-
headersToInclude[header] = argMap[header];
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
146
|
-
var formParams = {};
|
|
147
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
148
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
149
|
-
var contentTypes = ['application/json'];
|
|
150
|
-
var accepts = ['application/json'];
|
|
151
|
-
var returnType = _CreateSimulationApiResponse["default"];
|
|
152
|
-
return this.apiClient.callApi('/api/aiops/v4.0/config/simulations', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
85
|
+
// verify the required parameter 'body' is set
|
|
86
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
87
|
+
throw new Error("Invalid body when calling createScenario");
|
|
153
88
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
* @return {Promise<DeleteScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link DeleteScenarioApiResponse } and HTTP response
|
|
161
|
-
*/
|
|
162
|
-
}, {
|
|
163
|
-
key: "deleteScenarioById",
|
|
164
|
-
value: function deleteScenarioById(extId) {
|
|
165
|
-
var _this3 = this;
|
|
166
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
167
|
-
var postBody = null;
|
|
168
|
-
// verify the required parameter 'extId' is set
|
|
169
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
170
|
-
throw new Error("Missing the required parameter 'extId' when calling deleteScenarioById");
|
|
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];
|
|
171
95
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
185
|
-
var contentTypes = [];
|
|
186
|
-
var accepts = ['application/json'];
|
|
187
|
-
var returnType = _DeleteScenarioApiResponse["default"];
|
|
188
|
-
return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
189
|
-
}
|
|
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
|
+
}
|
|
190
108
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
206
|
-
throw new Error("Missing the required parameter 'extId' when calling deleteSimulationById");
|
|
207
|
-
}
|
|
208
|
-
var pathParams = {
|
|
209
|
-
'extId': extId
|
|
210
|
-
};
|
|
211
|
-
var queryParams = {};
|
|
212
|
-
var headersToInclude = {};
|
|
213
|
-
Object.keys(argMap).forEach(function (header) {
|
|
214
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this4).has(header.toLowerCase())) {
|
|
215
|
-
headersToInclude[header] = argMap[header];
|
|
216
|
-
}
|
|
217
|
-
});
|
|
218
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
219
|
-
var formParams = {};
|
|
220
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
221
|
-
var contentTypes = [];
|
|
222
|
-
var accepts = ['application/json'];
|
|
223
|
-
var returnType = _DeleteSimulationApiResponse["default"];
|
|
224
|
-
return this.apiClient.callApi('/api/aiops/v4.0/config/simulations/{extId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
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;
|
|
225
123
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
* 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.
|
|
230
|
-
* @param { String } extId UUID of a capacity planning scenario.
|
|
231
|
-
* @param {Object} args Additional Arguments
|
|
232
|
-
* @return {Promise<GenerateRecommendationApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GenerateRecommendationApiResponse } and HTTP response
|
|
233
|
-
*/
|
|
234
|
-
}, {
|
|
235
|
-
key: "generateRecommendation",
|
|
236
|
-
value: function generateRecommendation(extId) {
|
|
237
|
-
var _this5 = this;
|
|
238
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
239
|
-
var postBody = null;
|
|
240
|
-
// verify the required parameter 'extId' is set
|
|
241
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
242
|
-
throw new Error("Missing the required parameter 'extId' when calling generateRecommendation");
|
|
243
|
-
}
|
|
244
|
-
var pathParams = {
|
|
245
|
-
'extId': extId
|
|
246
|
-
};
|
|
247
|
-
var queryParams = {};
|
|
248
|
-
var headersToInclude = {};
|
|
249
|
-
Object.keys(argMap).forEach(function (header) {
|
|
250
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this5).has(header.toLowerCase())) {
|
|
251
|
-
headersToInclude[header] = argMap[header];
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
255
|
-
var formParams = {};
|
|
256
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
257
|
-
var contentTypes = [];
|
|
258
|
-
var accepts = ['application/json'];
|
|
259
|
-
var returnType = _GenerateRecommendationApiResponse["default"];
|
|
260
|
-
return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios/{extId}/$actions/generate-recommendation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
124
|
+
// verify the required parameter 'body' is set
|
|
125
|
+
if (typeof postBody === 'undefined' || postBody === null) {
|
|
126
|
+
throw new Error("Invalid body when calling createSimulation");
|
|
261
127
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
* @return {Promise<GenerateReportApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link GenerateReportApiResponse } and HTTP response
|
|
269
|
-
*/
|
|
270
|
-
}, {
|
|
271
|
-
key: "generateReport",
|
|
272
|
-
value: function generateReport(extId) {
|
|
273
|
-
var _this6 = this;
|
|
274
|
-
var argMap = (arguments.length <= 1 ? 0 : arguments.length - 1) > 0 ? arguments.length <= 1 ? undefined : arguments[1] : {};
|
|
275
|
-
var postBody = null;
|
|
276
|
-
// verify the required parameter 'extId' is set
|
|
277
|
-
if (typeof extId === 'undefined' || extId === null) {
|
|
278
|
-
throw new Error("Missing the required parameter 'extId' when calling generateReport");
|
|
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];
|
|
279
134
|
}
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
293
|
-
var contentTypes = [];
|
|
294
|
-
var accepts = ['application/json'];
|
|
295
|
-
var returnType = _GenerateReportApiResponse["default"];
|
|
296
|
-
return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios/{extId}/$actions/generate-report', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
297
|
-
}
|
|
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
|
+
}
|
|
298
147
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
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];
|
|
315
170
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
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");
|
|
333
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
|
+
}
|
|
334
217
|
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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];
|
|
351
240
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
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");
|
|
369
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
|
+
}
|
|
370
287
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
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];
|
|
387
310
|
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
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");
|
|
405
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
|
+
}
|
|
406
357
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
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];
|
|
423
380
|
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
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");
|
|
441
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
|
+
}
|
|
442
427
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
var pathParams = {};
|
|
464
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
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') ? {
|
|
465
448
|
'$page': opts['$page']
|
|
466
|
-
} : {}),
|
|
449
|
+
} : {}),
|
|
450
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
467
451
|
'$limit': opts['$limit']
|
|
468
|
-
} : {}),
|
|
452
|
+
} : {}),
|
|
453
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
469
454
|
'$filter': opts['$filter']
|
|
470
|
-
} : {}),
|
|
455
|
+
} : {}),
|
|
456
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
471
457
|
'$orderby': opts['$orderby']
|
|
472
|
-
} : {}),
|
|
458
|
+
} : {}),
|
|
459
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
473
460
|
'$select': opts['$select']
|
|
474
|
-
} : {})
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
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
|
+
}
|
|
489
479
|
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
var pathParams = {};
|
|
511
|
-
var queryParams = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, opts.hasOwnProperty('$page') ? {
|
|
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') ? {
|
|
512
500
|
'$page': opts['$page']
|
|
513
|
-
} : {}),
|
|
501
|
+
} : {}),
|
|
502
|
+
...(opts.hasOwnProperty('$limit') ? {
|
|
514
503
|
'$limit': opts['$limit']
|
|
515
|
-
} : {}),
|
|
504
|
+
} : {}),
|
|
505
|
+
...(opts.hasOwnProperty('$filter') ? {
|
|
516
506
|
'$filter': opts['$filter']
|
|
517
|
-
} : {}),
|
|
507
|
+
} : {}),
|
|
508
|
+
...(opts.hasOwnProperty('$orderby') ? {
|
|
518
509
|
'$orderby': opts['$orderby']
|
|
519
|
-
} : {}),
|
|
510
|
+
} : {}),
|
|
511
|
+
...(opts.hasOwnProperty('$select') ? {
|
|
520
512
|
'$select': opts['$select']
|
|
521
|
-
} : {})
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
});
|
|
528
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
529
|
-
var formParams = {};
|
|
530
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
531
|
-
var contentTypes = [];
|
|
532
|
-
var accepts = ['application/json'];
|
|
533
|
-
var returnType = _ListSimulationsApiResponse["default"];
|
|
534
|
-
return this.apiClient.callApi('/api/aiops/v4.0/config/simulations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* Update a capacity planning scenario
|
|
539
|
-
* Updates a capacity planning scenario using the provided UUID.
|
|
540
|
-
* @param { Partial<Scenario> } body specification
|
|
541
|
-
* @param { String } extId UUID of a capacity planning scenario.
|
|
542
|
-
* @param {Object} args Additional Arguments
|
|
543
|
-
* @return {Promise<UpdateScenarioApiResponse>} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link UpdateScenarioApiResponse } and HTTP response
|
|
544
|
-
*/
|
|
545
|
-
}, {
|
|
546
|
-
key: "updateScenarioById",
|
|
547
|
-
value: function updateScenarioById(extId, body) {
|
|
548
|
-
var _this11 = this;
|
|
549
|
-
var argMap = (arguments.length <= 2 ? 0 : arguments.length - 2) > 0 ? arguments.length <= 2 ? undefined : arguments[2] : {};
|
|
550
|
-
var postBody = null;
|
|
551
|
-
if (body instanceof _Scenario["default"] && typeof body.toJson === 'function') {
|
|
552
|
-
postBody = body.toJson();
|
|
553
|
-
} else {
|
|
554
|
-
postBody = body;
|
|
513
|
+
} : {})
|
|
514
|
+
};
|
|
515
|
+
let headersToInclude = {};
|
|
516
|
+
Object.keys(argMap).forEach(header => {
|
|
517
|
+
if (!this.#headersToSkip.has(header.toLowerCase())) {
|
|
518
|
+
headersToInclude[header] = argMap[header];
|
|
555
519
|
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
var queryParams = {};
|
|
568
|
-
var headersToInclude = {};
|
|
569
|
-
Object.keys(argMap).forEach(function (header) {
|
|
570
|
-
if (!_classPrivateFieldGet(_headersToSkip, _this11).has(header.toLowerCase())) {
|
|
571
|
-
headersToInclude[header] = argMap[header];
|
|
572
|
-
}
|
|
573
|
-
});
|
|
574
|
-
var headerParams = _objectSpread({}, headersToInclude);
|
|
575
|
-
var formParams = {};
|
|
576
|
-
_ApiClient.ApiClient.addEtagReferenceToHeader(body, headerParams);
|
|
577
|
-
var authNames = ['apiKeyAuthScheme', 'basicAuthScheme'];
|
|
578
|
-
var contentTypes = ['application/json'];
|
|
579
|
-
var accepts = ['application/json'];
|
|
580
|
-
var returnType = _UpdateScenarioApiResponse["default"];
|
|
581
|
-
return this.apiClient.callApi('/api/aiops/v4.0/config/scenarios/{extId}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType);
|
|
582
|
-
}
|
|
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
|
+
}
|
|
583
531
|
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
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];
|
|
610
564
|
}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
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;
|
|
629
593
|
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* Make the default {@link ApiClient} class available for developers to be able to extend it and bring
|
|
635
|
-
* their own fetch methods into the SDK
|
|
636
|
-
*/
|
|
637
|
-
function get() {
|
|
638
|
-
return _ApiClient.ApiClient;
|
|
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");
|
|
639
597
|
}
|
|
640
|
-
|
|
641
|
-
|
|
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;
|