update.
This commit is contained in:
@@ -339,42 +339,6 @@ OpenSearchClient::CreateAppGroupOutcomeCallable OpenSearchClient::createAppGroup
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::CreateDataCollectionOutcome OpenSearchClient::createDataCollection(const CreateDataCollectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDataCollectionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDataCollectionOutcome(CreateDataCollectionResult(outcome.result()));
|
||||
else
|
||||
return CreateDataCollectionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::createDataCollectionAsync(const CreateDataCollectionRequest& request, const CreateDataCollectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDataCollection(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::CreateDataCollectionOutcomeCallable OpenSearchClient::createDataCollectionCallable(const CreateDataCollectionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDataCollectionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDataCollection(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::CreateFirstRankOutcome OpenSearchClient::createFirstRank(const CreateFirstRankRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,42 +483,6 @@ OpenSearchClient::CreateInterventionDictionaryOutcomeCallable OpenSearchClient::
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::CreateModelOutcome OpenSearchClient::createModel(const CreateModelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateModelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateModelOutcome(CreateModelResult(outcome.result()));
|
||||
else
|
||||
return CreateModelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::createModelAsync(const CreateModelRequest& request, const CreateModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createModel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::CreateModelOutcomeCallable OpenSearchClient::createModelCallable(const CreateModelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateModelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createModel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::CreateQueryProcessorOutcome OpenSearchClient::createQueryProcessor(const CreateQueryProcessorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -951,42 +879,6 @@ OpenSearchClient::DeleteFunctionTaskOutcomeCallable OpenSearchClient::deleteFunc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::DeleteModelOutcome OpenSearchClient::deleteModel(const DeleteModelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteModelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteModelOutcome(DeleteModelResult(outcome.result()));
|
||||
else
|
||||
return DeleteModelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::deleteModelAsync(const DeleteModelRequest& request, const DeleteModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteModel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::DeleteModelOutcomeCallable OpenSearchClient::deleteModelCallable(const DeleteModelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteModelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteModel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::DeleteSortScriptOutcome OpenSearchClient::deleteSortScript(const DeleteSortScriptRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,78 +1131,6 @@ OpenSearchClient::DescribeAppGroupOutcomeCallable OpenSearchClient::describeAppG
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::DescribeAppGroupDataReportOutcome OpenSearchClient::describeAppGroupDataReport(const DescribeAppGroupDataReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAppGroupDataReportOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAppGroupDataReportOutcome(DescribeAppGroupDataReportResult(outcome.result()));
|
||||
else
|
||||
return DescribeAppGroupDataReportOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::describeAppGroupDataReportAsync(const DescribeAppGroupDataReportRequest& request, const DescribeAppGroupDataReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAppGroupDataReport(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::DescribeAppGroupDataReportOutcomeCallable OpenSearchClient::describeAppGroupDataReportCallable(const DescribeAppGroupDataReportRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAppGroupDataReportOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAppGroupDataReport(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::DescribeAppGroupStatisticsOutcome OpenSearchClient::describeAppGroupStatistics(const DescribeAppGroupStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAppGroupStatisticsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAppGroupStatisticsOutcome(DescribeAppGroupStatisticsResult(outcome.result()));
|
||||
else
|
||||
return DescribeAppGroupStatisticsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::describeAppGroupStatisticsAsync(const DescribeAppGroupStatisticsRequest& request, const DescribeAppGroupStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAppGroupStatistics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::DescribeAppGroupStatisticsOutcomeCallable OpenSearchClient::describeAppGroupStatisticsCallable(const DescribeAppGroupStatisticsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAppGroupStatisticsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAppGroupStatistics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::DescribeAppStatisticsOutcome OpenSearchClient::describeAppStatistics(const DescribeAppStatisticsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1491,42 +1311,6 @@ OpenSearchClient::DescribeInterventionDictionaryOutcomeCallable OpenSearchClient
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::DescribeModelOutcome OpenSearchClient::describeModel(const DescribeModelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeModelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeModelOutcome(DescribeModelResult(outcome.result()));
|
||||
else
|
||||
return DescribeModelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::describeModelAsync(const DescribeModelRequest& request, const DescribeModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeModel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::DescribeModelOutcomeCallable OpenSearchClient::describeModelCallable(const DescribeModelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeModelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeModel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::DescribeQueryProcessorOutcome OpenSearchClient::describeQueryProcessor(const DescribeQueryProcessorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2103,42 +1887,6 @@ OpenSearchClient::GetFunctionVersionOutcomeCallable OpenSearchClient::getFunctio
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::GetModelProgressOutcome OpenSearchClient::getModelProgress(const GetModelProgressRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetModelProgressOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetModelProgressOutcome(GetModelProgressResult(outcome.result()));
|
||||
else
|
||||
return GetModelProgressOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::getModelProgressAsync(const GetModelProgressRequest& request, const GetModelProgressAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getModelProgress(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::GetModelProgressOutcomeCallable OpenSearchClient::getModelProgressCallable(const GetModelProgressRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetModelProgressOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getModelProgress(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::GetModelReportOutcome OpenSearchClient::getModelReport(const GetModelReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2319,78 +2067,6 @@ OpenSearchClient::GetSortScriptFileOutcomeCallable OpenSearchClient::getSortScri
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::GetValidationErrorOutcome OpenSearchClient::getValidationError(const GetValidationErrorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetValidationErrorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetValidationErrorOutcome(GetValidationErrorResult(outcome.result()));
|
||||
else
|
||||
return GetValidationErrorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::getValidationErrorAsync(const GetValidationErrorRequest& request, const GetValidationErrorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getValidationError(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::GetValidationErrorOutcomeCallable OpenSearchClient::getValidationErrorCallable(const GetValidationErrorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetValidationErrorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getValidationError(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::GetValidationReportOutcome OpenSearchClient::getValidationReport(const GetValidationReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetValidationReportOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetValidationReportOutcome(GetValidationReportResult(outcome.result()));
|
||||
else
|
||||
return GetValidationReportOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::getValidationReportAsync(const GetValidationReportRequest& request, const GetValidationReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getValidationReport(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::GetValidationReportOutcomeCallable OpenSearchClient::getValidationReportCallable(const GetValidationReportRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetValidationReportOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getValidationReport(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ListABTestExperimentsOutcome OpenSearchClient::listABTestExperiments(const ListABTestExperimentsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2499,42 +2175,6 @@ OpenSearchClient::ListABTestGroupsOutcomeCallable OpenSearchClient::listABTestGr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ListABTestMetricsOutcome OpenSearchClient::listABTestMetrics(const ListABTestMetricsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListABTestMetricsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListABTestMetricsOutcome(ListABTestMetricsResult(outcome.result()));
|
||||
else
|
||||
return ListABTestMetricsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::listABTestMetricsAsync(const ListABTestMetricsRequest& request, const ListABTestMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listABTestMetrics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::ListABTestMetricsOutcomeCallable OpenSearchClient::listABTestMetricsCallable(const ListABTestMetricsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListABTestMetricsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listABTestMetrics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ListABTestScenesOutcome OpenSearchClient::listABTestScenes(const ListABTestScenesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2571,78 +2211,6 @@ OpenSearchClient::ListABTestScenesOutcomeCallable OpenSearchClient::listABTestSc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ListAppGroupErrorsOutcome OpenSearchClient::listAppGroupErrors(const ListAppGroupErrorsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAppGroupErrorsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListAppGroupErrorsOutcome(ListAppGroupErrorsResult(outcome.result()));
|
||||
else
|
||||
return ListAppGroupErrorsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::listAppGroupErrorsAsync(const ListAppGroupErrorsRequest& request, const ListAppGroupErrorsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listAppGroupErrors(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::ListAppGroupErrorsOutcomeCallable OpenSearchClient::listAppGroupErrorsCallable(const ListAppGroupErrorsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListAppGroupErrorsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listAppGroupErrors(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ListAppGroupMetricsOutcome OpenSearchClient::listAppGroupMetrics(const ListAppGroupMetricsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListAppGroupMetricsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListAppGroupMetricsOutcome(ListAppGroupMetricsResult(outcome.result()));
|
||||
else
|
||||
return ListAppGroupMetricsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::listAppGroupMetricsAsync(const ListAppGroupMetricsRequest& request, const ListAppGroupMetricsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listAppGroupMetrics(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::ListAppGroupMetricsOutcomeCallable OpenSearchClient::listAppGroupMetricsCallable(const ListAppGroupMetricsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListAppGroupMetricsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listAppGroupMetrics(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ListAppGroupsOutcome OpenSearchClient::listAppGroups(const ListAppGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2823,42 +2391,6 @@ OpenSearchClient::ListDataSourceTablesOutcomeCallable OpenSearchClient::listData
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ListDeployedAlgorithmModelsOutcome OpenSearchClient::listDeployedAlgorithmModels(const ListDeployedAlgorithmModelsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDeployedAlgorithmModelsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDeployedAlgorithmModelsOutcome(ListDeployedAlgorithmModelsResult(outcome.result()));
|
||||
else
|
||||
return ListDeployedAlgorithmModelsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::listDeployedAlgorithmModelsAsync(const ListDeployedAlgorithmModelsRequest& request, const ListDeployedAlgorithmModelsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDeployedAlgorithmModels(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::ListDeployedAlgorithmModelsOutcomeCallable OpenSearchClient::listDeployedAlgorithmModelsCallable(const ListDeployedAlgorithmModelsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDeployedAlgorithmModelsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDeployedAlgorithmModels(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ListFirstRanksOutcome OpenSearchClient::listFirstRanks(const ListFirstRanksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3327,42 +2859,6 @@ OpenSearchClient::ListQuotaReviewTasksOutcomeCallable OpenSearchClient::listQuot
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ListRamRolesOutcome OpenSearchClient::listRamRoles(const ListRamRolesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListRamRolesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListRamRolesOutcome(ListRamRolesResult(outcome.result()));
|
||||
else
|
||||
return ListRamRolesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::listRamRolesAsync(const ListRamRolesRequest& request, const ListRamRolesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listRamRoles(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::ListRamRolesOutcomeCallable OpenSearchClient::listRamRolesCallable(const ListRamRolesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListRamRolesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listRamRoles(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ListScheduledTasksOutcome OpenSearchClient::listScheduledTasks(const ListScheduledTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3903,42 +3399,6 @@ OpenSearchClient::ModifyFirstRankOutcomeCallable OpenSearchClient::modifyFirstRa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ModifyModelOutcome OpenSearchClient::modifyModel(const ModifyModelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyModelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyModelOutcome(ModifyModelResult(outcome.result()));
|
||||
else
|
||||
return ModifyModelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::modifyModelAsync(const ModifyModelRequest& request, const ModifyModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyModel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::ModifyModelOutcomeCallable OpenSearchClient::modifyModelCallable(const ModifyModelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyModelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyModel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::ModifyQueryProcessorOutcome OpenSearchClient::modifyQueryProcessor(const ModifyQueryProcessorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4767,42 +4227,6 @@ OpenSearchClient::TagResourcesOutcomeCallable OpenSearchClient::tagResourcesCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::TrainModelOutcome OpenSearchClient::trainModel(const TrainModelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TrainModelOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TrainModelOutcome(TrainModelResult(outcome.result()));
|
||||
else
|
||||
return TrainModelOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void OpenSearchClient::trainModelAsync(const TrainModelRequest& request, const TrainModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, trainModel(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
OpenSearchClient::TrainModelOutcomeCallable OpenSearchClient::trainModelCallable(const TrainModelRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TrainModelOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->trainModel(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
OpenSearchClient::UnbindESUserAnalyzerOutcome OpenSearchClient::unbindESUserAnalyzer(const UnbindESUserAnalyzerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/CreateDataCollectionRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::CreateDataCollectionRequest;
|
||||
|
||||
CreateDataCollectionRequest::CreateDataCollectionRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/data-collections"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataCollectionRequest::~CreateDataCollectionRequest() {}
|
||||
|
||||
std::string CreateDataCollectionRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void CreateDataCollectionRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/CreateDataCollectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
CreateDataCollectionResult::CreateDataCollectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDataCollectionResult::CreateDataCollectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDataCollectionResult::~CreateDataCollectionResult()
|
||||
{}
|
||||
|
||||
void CreateDataCollectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["result"];
|
||||
if(!resultNode["created"].isNull())
|
||||
result_.created = std::stoi(resultNode["created"].asString());
|
||||
if(!resultNode["dataCollectionType"].isNull())
|
||||
result_.dataCollectionType = resultNode["dataCollectionType"].asString();
|
||||
if(!resultNode["type"].isNull())
|
||||
result_.type = resultNode["type"].asString();
|
||||
if(!resultNode["industryName"].isNull())
|
||||
result_.industryName = resultNode["industryName"].asString();
|
||||
if(!resultNode["status"].isNull())
|
||||
result_.status = std::stoi(resultNode["status"].asString());
|
||||
if(!resultNode["updated"].isNull())
|
||||
result_.updated = std::stoi(resultNode["updated"].asString());
|
||||
if(!resultNode["name"].isNull())
|
||||
result_.name = resultNode["name"].asString();
|
||||
if(!resultNode["sundialId"].isNull())
|
||||
result_.sundialId = resultNode["sundialId"].asString();
|
||||
if(!resultNode["id"].isNull())
|
||||
result_.id = resultNode["id"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDataCollectionResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
CreateDataCollectionResult::Result CreateDataCollectionResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/CreateModelRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::CreateModelRequest;
|
||||
|
||||
CreateModelRequest::CreateModelRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateModelRequest::~CreateModelRequest() {}
|
||||
|
||||
std::string CreateModelRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void CreateModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/CreateModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
CreateModelResult::CreateModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateModelResult::CreateModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateModelResult::~CreateModelResult()
|
||||
{}
|
||||
|
||||
void CreateModelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["result"].isNull())
|
||||
result_ = value["result"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateModelResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::string CreateModelResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/DeleteModelRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::DeleteModelRequest;
|
||||
|
||||
DeleteModelRequest::DeleteModelRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteModelRequest::~DeleteModelRequest() {}
|
||||
|
||||
std::string DeleteModelRequest::getModelName() const {
|
||||
return modelName_;
|
||||
}
|
||||
|
||||
void DeleteModelRequest::setModelName(const std::string &modelName) {
|
||||
modelName_ = modelName;
|
||||
setParameter(std::string("modelName"), modelName);
|
||||
}
|
||||
|
||||
std::string DeleteModelRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void DeleteModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/DeleteModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
DeleteModelResult::DeleteModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteModelResult::DeleteModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteModelResult::~DeleteModelResult()
|
||||
{}
|
||||
|
||||
void DeleteModelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["result"].isNull())
|
||||
result_ = value["result"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteModelResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::string DeleteModelResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/DescribeAppGroupDataReportRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::DescribeAppGroupDataReportRequest;
|
||||
|
||||
DescribeAppGroupDataReportRequest::DescribeAppGroupDataReportRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/data-report"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeAppGroupDataReportRequest::~DescribeAppGroupDataReportRequest() {}
|
||||
|
||||
std::string DescribeAppGroupDataReportRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAppGroupDataReportRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("endTime"), endTime);
|
||||
}
|
||||
|
||||
std::string DescribeAppGroupDataReportRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAppGroupDataReportRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("startTime"), startTime);
|
||||
}
|
||||
|
||||
std::string DescribeAppGroupDataReportRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void DescribeAppGroupDataReportRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,88 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/DescribeAppGroupDataReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
DescribeAppGroupDataReportResult::DescribeAppGroupDataReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAppGroupDataReportResult::DescribeAppGroupDataReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAppGroupDataReportResult::~DescribeAppGroupDataReportResult()
|
||||
{}
|
||||
|
||||
void DescribeAppGroupDataReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["result"];
|
||||
if(!resultNode["receivedCount"].isNull())
|
||||
result_.receivedCount = std::stoi(resultNode["receivedCount"].asString());
|
||||
auto allreceivedSampleNode = resultNode["receivedSample"]["receivedSampleItem"];
|
||||
for (auto resultNodereceivedSamplereceivedSampleItem : allreceivedSampleNode)
|
||||
{
|
||||
Result::ReceivedSampleItem receivedSampleItemObject;
|
||||
if(!resultNodereceivedSamplereceivedSampleItem["receivedTimeMs"].isNull())
|
||||
receivedSampleItemObject.receivedTimeMs = std::stol(resultNodereceivedSamplereceivedSampleItem["receivedTimeMs"].asString());
|
||||
auto messageNode = value["message"];
|
||||
if(!messageNode["eventId"].isNull())
|
||||
receivedSampleItemObject.message.eventId = std::stoi(messageNode["eventId"].asString());
|
||||
if(!messageNode["arg3"].isNull())
|
||||
receivedSampleItemObject.message.arg3 = messageNode["arg3"].asString();
|
||||
if(!messageNode["arg1"].isNull())
|
||||
receivedSampleItemObject.message.arg1 = messageNode["arg1"].asString();
|
||||
if(!messageNode["sdkVersion"].isNull())
|
||||
receivedSampleItemObject.message.sdkVersion = messageNode["sdkVersion"].asString();
|
||||
if(!messageNode["userId"].isNull())
|
||||
receivedSampleItemObject.message.userId = messageNode["userId"].asString();
|
||||
if(!messageNode["page"].isNull())
|
||||
receivedSampleItemObject.message.page = messageNode["page"].asString();
|
||||
if(!messageNode["args"].isNull())
|
||||
receivedSampleItemObject.message.args = messageNode["args"].asString();
|
||||
if(!messageNode["sessionId"].isNull())
|
||||
receivedSampleItemObject.message.sessionId = messageNode["sessionId"].asString();
|
||||
if(!messageNode["sdkType"].isNull())
|
||||
receivedSampleItemObject.message.sdkType = messageNode["sdkType"].asString();
|
||||
if(!messageNode["clientIp"].isNull())
|
||||
receivedSampleItemObject.message.clientIp = messageNode["clientIp"].asString();
|
||||
result_.receivedSample.push_back(receivedSampleItemObject);
|
||||
}
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAppGroupDataReportResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
DescribeAppGroupDataReportResult::Result DescribeAppGroupDataReportResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/DescribeAppGroupStatisticsRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::DescribeAppGroupStatisticsRequest;
|
||||
|
||||
DescribeAppGroupStatisticsRequest::DescribeAppGroupStatisticsRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/statistics"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeAppGroupStatisticsRequest::~DescribeAppGroupStatisticsRequest() {}
|
||||
|
||||
std::string DescribeAppGroupStatisticsRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void DescribeAppGroupStatisticsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/DescribeAppGroupStatisticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
DescribeAppGroupStatisticsResult::DescribeAppGroupStatisticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAppGroupStatisticsResult::DescribeAppGroupStatisticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAppGroupStatisticsResult::~DescribeAppGroupStatisticsResult()
|
||||
{}
|
||||
|
||||
void DescribeAppGroupStatisticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["result"].isNull())
|
||||
result_ = value["result"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAppGroupStatisticsResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::string DescribeAppGroupStatisticsResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/DescribeModelRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::DescribeModelRequest;
|
||||
|
||||
DescribeModelRequest::DescribeModelRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeModelRequest::~DescribeModelRequest() {}
|
||||
|
||||
std::string DescribeModelRequest::getModelName() const {
|
||||
return modelName_;
|
||||
}
|
||||
|
||||
void DescribeModelRequest::setModelName(const std::string &modelName) {
|
||||
modelName_ = modelName;
|
||||
setParameter(std::string("modelName"), modelName);
|
||||
}
|
||||
|
||||
std::string DescribeModelRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void DescribeModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/DescribeModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
DescribeModelResult::DescribeModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeModelResult::DescribeModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeModelResult::~DescribeModelResult()
|
||||
{}
|
||||
|
||||
void DescribeModelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["result"].isNull())
|
||||
result_ = value["result"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeModelResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::string DescribeModelResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/GetModelProgressRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::GetModelProgressRequest;
|
||||
|
||||
GetModelProgressRequest::GetModelProgressRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]/progress"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetModelProgressRequest::~GetModelProgressRequest() {}
|
||||
|
||||
std::string GetModelProgressRequest::getModelName() const {
|
||||
return modelName_;
|
||||
}
|
||||
|
||||
void GetModelProgressRequest::setModelName(const std::string &modelName) {
|
||||
modelName_ = modelName;
|
||||
setParameter(std::string("modelName"), modelName);
|
||||
}
|
||||
|
||||
std::string GetModelProgressRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void GetModelProgressRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,61 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/GetModelProgressResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
GetModelProgressResult::GetModelProgressResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetModelProgressResult::GetModelProgressResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetModelProgressResult::~GetModelProgressResult()
|
||||
{}
|
||||
|
||||
void GetModelProgressResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["result"];
|
||||
if(!resultNode["progress"].isNull())
|
||||
result_.progress = std::stoi(resultNode["progress"].asString());
|
||||
if(!resultNode["status"].isNull())
|
||||
result_.status = resultNode["status"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetModelProgressResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
GetModelProgressResult::Result GetModelProgressResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/GetValidationErrorRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::GetValidationErrorRequest;
|
||||
|
||||
GetValidationErrorRequest::GetValidationErrorRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/data/validation-error"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetValidationErrorRequest::~GetValidationErrorRequest() {}
|
||||
|
||||
std::string GetValidationErrorRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void GetValidationErrorRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
std::string GetValidationErrorRequest::getErrorCode() const {
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
void GetValidationErrorRequest::setErrorCode(const std::string &errorCode) {
|
||||
errorCode_ = errorCode;
|
||||
setParameter(std::string("errorCode"), errorCode);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/GetValidationErrorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
GetValidationErrorResult::GetValidationErrorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetValidationErrorResult::GetValidationErrorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetValidationErrorResult::~GetValidationErrorResult()
|
||||
{}
|
||||
|
||||
void GetValidationErrorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allresult = value["result"]["result"];
|
||||
for (const auto &item : allresult)
|
||||
result_.push_back(item.asString());
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetValidationErrorResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetValidationErrorResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/GetValidationReportRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::GetValidationReportRequest;
|
||||
|
||||
GetValidationReportRequest::GetValidationReportRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/data/validation-report"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetValidationReportRequest::~GetValidationReportRequest() {}
|
||||
|
||||
std::string GetValidationReportRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void GetValidationReportRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("type"), type);
|
||||
}
|
||||
|
||||
std::string GetValidationReportRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void GetValidationReportRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/GetValidationReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
GetValidationReportResult::GetValidationReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetValidationReportResult::GetValidationReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetValidationReportResult::~GetValidationReportResult()
|
||||
{}
|
||||
|
||||
void GetValidationReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allresult = value["result"]["result"];
|
||||
for (const auto &item : allresult)
|
||||
result_.push_back(item.asString());
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetValidationReportResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetValidationReportResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/ListABTestMetricsRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::ListABTestMetricsRequest;
|
||||
|
||||
ListABTestMetricsRequest::ListABTestMetricsRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/metrics"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListABTestMetricsRequest::~ListABTestMetricsRequest() {}
|
||||
|
||||
int ListABTestMetricsRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void ListABTestMetricsRequest::setGroupId(int groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("groupId"), std::to_string(groupId));
|
||||
}
|
||||
|
||||
int ListABTestMetricsRequest::getSceneId() const {
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void ListABTestMetricsRequest::setSceneId(int sceneId) {
|
||||
sceneId_ = sceneId;
|
||||
setParameter(std::string("sceneId"), std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string ListABTestMetricsRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void ListABTestMetricsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/ListABTestMetricsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
ListABTestMetricsResult::ListABTestMetricsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListABTestMetricsResult::ListABTestMetricsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListABTestMetricsResult::~ListABTestMetricsResult()
|
||||
{}
|
||||
|
||||
void ListABTestMetricsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allresultNode = value["result"]["resultItem"];
|
||||
for (auto valueresultresultItem : allresultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueresultresultItem["zeroHitRate"].isNull())
|
||||
resultObject.zeroHitRate = std::stof(valueresultresultItem["zeroHitRate"].asString());
|
||||
if(!valueresultresultItem["ctr"].isNull())
|
||||
resultObject.ctr = std::stof(valueresultresultItem["ctr"].asString());
|
||||
if(!valueresultresultItem["experimentName"].isNull())
|
||||
resultObject.experimentName = valueresultresultItem["experimentName"].asString();
|
||||
if(!valueresultresultItem["date"].isNull())
|
||||
resultObject.date = valueresultresultItem["date"].asString();
|
||||
if(!valueresultresultItem["ipvUv"].isNull())
|
||||
resultObject.ipvUv = std::stoi(valueresultresultItem["ipvUv"].asString());
|
||||
if(!valueresultresultItem["ipv"].isNull())
|
||||
resultObject.ipv = std::stoi(valueresultresultItem["ipv"].asString());
|
||||
if(!valueresultresultItem["uv"].isNull())
|
||||
resultObject.uv = std::stoi(valueresultresultItem["uv"].asString());
|
||||
if(!valueresultresultItem["pv"].isNull())
|
||||
resultObject.pv = std::stoi(valueresultresultItem["pv"].asString());
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListABTestMetricsResult::ResultItem> ListABTestMetricsResult::getresult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
std::string ListABTestMetricsResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/ListAppGroupErrorsRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::ListAppGroupErrorsRequest;
|
||||
|
||||
ListAppGroupErrorsRequest::ListAppGroupErrorsRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/errors"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListAppGroupErrorsRequest::~ListAppGroupErrorsRequest() {}
|
||||
|
||||
std::string ListAppGroupErrorsRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListAppGroupErrorsRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("appId"), appId);
|
||||
}
|
||||
|
||||
int ListAppGroupErrorsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAppGroupErrorsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("pageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListAppGroupErrorsRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListAppGroupErrorsRequest::setStartTime(int startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("startTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
int ListAppGroupErrorsRequest::getStopTime() const {
|
||||
return stopTime_;
|
||||
}
|
||||
|
||||
void ListAppGroupErrorsRequest::setStopTime(int stopTime) {
|
||||
stopTime_ = stopTime;
|
||||
setParameter(std::string("stopTime"), std::to_string(stopTime));
|
||||
}
|
||||
|
||||
std::string ListAppGroupErrorsRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void ListAppGroupErrorsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
int ListAppGroupErrorsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListAppGroupErrorsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("pageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/ListAppGroupErrorsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
ListAppGroupErrorsResult::ListAppGroupErrorsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAppGroupErrorsResult::ListAppGroupErrorsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAppGroupErrorsResult::~ListAppGroupErrorsResult()
|
||||
{}
|
||||
|
||||
void ListAppGroupErrorsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allresult = value["result"]["result"];
|
||||
for (const auto &item : allresult)
|
||||
result_.push_back(item.asString());
|
||||
if(!value["totalCount"].isNull())
|
||||
totalCount_ = std::stol(value["totalCount"].asString());
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
long ListAppGroupErrorsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListAppGroupErrorsResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ListAppGroupErrorsResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/ListAppGroupMetricsRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::ListAppGroupMetricsRequest;
|
||||
|
||||
ListAppGroupMetricsRequest::ListAppGroupMetricsRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/metrics"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListAppGroupMetricsRequest::~ListAppGroupMetricsRequest() {}
|
||||
|
||||
std::string ListAppGroupMetricsRequest::getMetricType() const {
|
||||
return metricType_;
|
||||
}
|
||||
|
||||
void ListAppGroupMetricsRequest::setMetricType(const std::string &metricType) {
|
||||
metricType_ = metricType;
|
||||
setParameter(std::string("metricType"), metricType);
|
||||
}
|
||||
|
||||
std::string ListAppGroupMetricsRequest::getIndexes() const {
|
||||
return indexes_;
|
||||
}
|
||||
|
||||
void ListAppGroupMetricsRequest::setIndexes(const std::string &indexes) {
|
||||
indexes_ = indexes;
|
||||
setParameter(std::string("indexes"), indexes);
|
||||
}
|
||||
|
||||
int ListAppGroupMetricsRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListAppGroupMetricsRequest::setEndTime(int endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("endTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
int ListAppGroupMetricsRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListAppGroupMetricsRequest::setStartTime(int startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("startTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string ListAppGroupMetricsRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void ListAppGroupMetricsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/ListAppGroupMetricsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
ListAppGroupMetricsResult::ListAppGroupMetricsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAppGroupMetricsResult::ListAppGroupMetricsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAppGroupMetricsResult::~ListAppGroupMetricsResult()
|
||||
{}
|
||||
|
||||
void ListAppGroupMetricsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allresult = value["result"]["result"];
|
||||
for (const auto &item : allresult)
|
||||
result_.push_back(item.asString());
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListAppGroupMetricsResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ListAppGroupMetricsResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/ListDeployedAlgorithmModelsRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::ListDeployedAlgorithmModelsRequest;
|
||||
|
||||
ListDeployedAlgorithmModelsRequest::ListDeployedAlgorithmModelsRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/deployed-algorithm-models"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListDeployedAlgorithmModelsRequest::~ListDeployedAlgorithmModelsRequest() {}
|
||||
|
||||
std::string ListDeployedAlgorithmModelsRequest::getAlgorithmType() const {
|
||||
return algorithmType_;
|
||||
}
|
||||
|
||||
void ListDeployedAlgorithmModelsRequest::setAlgorithmType(const std::string &algorithmType) {
|
||||
algorithmType_ = algorithmType;
|
||||
setParameter(std::string("algorithmType"), algorithmType);
|
||||
}
|
||||
|
||||
bool ListDeployedAlgorithmModelsRequest::getInServiceOnly() const {
|
||||
return inServiceOnly_;
|
||||
}
|
||||
|
||||
void ListDeployedAlgorithmModelsRequest::setInServiceOnly(bool inServiceOnly) {
|
||||
inServiceOnly_ = inServiceOnly;
|
||||
setParameter(std::string("inServiceOnly"), inServiceOnly ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListDeployedAlgorithmModelsRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void ListDeployedAlgorithmModelsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/ListDeployedAlgorithmModelsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
ListDeployedAlgorithmModelsResult::ListDeployedAlgorithmModelsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDeployedAlgorithmModelsResult::ListDeployedAlgorithmModelsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDeployedAlgorithmModelsResult::~ListDeployedAlgorithmModelsResult()
|
||||
{}
|
||||
|
||||
void ListDeployedAlgorithmModelsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allresultNode = value["result"]["resultItem"];
|
||||
for (auto valueresultresultItem : allresultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueresultresultItem["appGroupName"].isNull())
|
||||
resultObject.appGroupName = valueresultresultItem["appGroupName"].asString();
|
||||
if(!valueresultresultItem["gmtModified"].isNull())
|
||||
resultObject.gmtModified = valueresultresultItem["gmtModified"].asString();
|
||||
if(!valueresultresultItem["status"].isNull())
|
||||
resultObject.status = valueresultresultItem["status"].asString();
|
||||
if(!valueresultresultItem["scene"].isNull())
|
||||
resultObject.scene = valueresultresultItem["scene"].asString();
|
||||
if(!valueresultresultItem["gmtCreate"].isNull())
|
||||
resultObject.gmtCreate = valueresultresultItem["gmtCreate"].asString();
|
||||
if(!valueresultresultItem["id"].isNull())
|
||||
resultObject.id = valueresultresultItem["id"].asString();
|
||||
if(!valueresultresultItem["desc"].isNull())
|
||||
resultObject.desc = valueresultresultItem["desc"].asString();
|
||||
auto allmodelsNode = valueresultresultItem["models"]["modelsItem"];
|
||||
for (auto valueresultresultItemmodelsmodelsItem : allmodelsNode)
|
||||
{
|
||||
ResultItem::ModelsItem modelsObject;
|
||||
if(!valueresultresultItemmodelsmodelsItem["modelName"].isNull())
|
||||
modelsObject.modelName = valueresultresultItemmodelsmodelsItem["modelName"].asString();
|
||||
if(!valueresultresultItemmodelsmodelsItem["projectId"].isNull())
|
||||
modelsObject.projectId = std::stoi(valueresultresultItemmodelsmodelsItem["projectId"].asString());
|
||||
if(!valueresultresultItemmodelsmodelsItem["modelId"].isNull())
|
||||
modelsObject.modelId = std::stoi(valueresultresultItemmodelsmodelsItem["modelId"].asString());
|
||||
if(!valueresultresultItemmodelsmodelsItem["algorithmType"].isNull())
|
||||
modelsObject.algorithmType = valueresultresultItemmodelsmodelsItem["algorithmType"].asString();
|
||||
if(!valueresultresultItemmodelsmodelsItem["status"].isNull())
|
||||
modelsObject.status = valueresultresultItemmodelsmodelsItem["status"].asString();
|
||||
if(!valueresultresultItemmodelsmodelsItem["progress"].isNull())
|
||||
modelsObject.progress = std::stoi(valueresultresultItemmodelsmodelsItem["progress"].asString());
|
||||
resultObject.models.push_back(modelsObject);
|
||||
}
|
||||
auto allApps = value["apps"]["apps"];
|
||||
for (auto value : allApps)
|
||||
resultObject.apps.push_back(value.asString());
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListDeployedAlgorithmModelsResult::ResultItem> ListDeployedAlgorithmModelsResult::getresult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
std::string ListDeployedAlgorithmModelsResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/ListRamRolesRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::ListRamRolesRequest;
|
||||
|
||||
ListRamRolesRequest::ListRamRolesRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/assist/ram/roles"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListRamRolesRequest::~ListRamRolesRequest() {}
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/ListRamRolesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
ListRamRolesResult::ListRamRolesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListRamRolesResult::ListRamRolesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListRamRolesResult::~ListRamRolesResult()
|
||||
{}
|
||||
|
||||
void ListRamRolesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allresultNode = value["result"]["resultItem"];
|
||||
for (auto valueresultresultItem : allresultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueresultresultItem["template_id"].isNull())
|
||||
resultObject.template_id = valueresultresultItem["template_id"].asString();
|
||||
if(!valueresultresultItem["service"].isNull())
|
||||
resultObject.service = valueresultresultItem["service"].asString();
|
||||
if(!valueresultresultItem["assumed"].isNull())
|
||||
resultObject.assumed = valueresultresultItem["assumed"].asString() == "true";
|
||||
if(!valueresultresultItem["name"].isNull())
|
||||
resultObject.name = valueresultresultItem["name"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListRamRolesResult::ResultItem> ListRamRolesResult::getresult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
std::string ListRamRolesResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/ModifyModelRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::ModifyModelRequest;
|
||||
|
||||
ModifyModelRequest::ModifyModelRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]"};
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
ModifyModelRequest::~ModifyModelRequest() {}
|
||||
|
||||
std::string ModifyModelRequest::getModelName() const {
|
||||
return modelName_;
|
||||
}
|
||||
|
||||
void ModifyModelRequest::setModelName(const std::string &modelName) {
|
||||
modelName_ = modelName;
|
||||
setParameter(std::string("modelName"), modelName);
|
||||
}
|
||||
|
||||
std::string ModifyModelRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void ModifyModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/ModifyModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
ModifyModelResult::ModifyModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyModelResult::ModifyModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyModelResult::~ModifyModelResult()
|
||||
{}
|
||||
|
||||
void ModifyModelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["result"].isNull())
|
||||
result_ = value["result"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyModelResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::string ModifyModelResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/TrainModelRequest.h>
|
||||
|
||||
using AlibabaCloud::OpenSearch::Model::TrainModelRequest;
|
||||
|
||||
TrainModelRequest::TrainModelRequest()
|
||||
: RoaServiceRequest("opensearch", "2017-12-25") {
|
||||
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]/actions/train"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TrainModelRequest::~TrainModelRequest() {}
|
||||
|
||||
std::string TrainModelRequest::getModelName() const {
|
||||
return modelName_;
|
||||
}
|
||||
|
||||
void TrainModelRequest::setModelName(const std::string &modelName) {
|
||||
modelName_ = modelName;
|
||||
setParameter(std::string("modelName"), modelName);
|
||||
}
|
||||
|
||||
std::string TrainModelRequest::getAppGroupIdentity() const {
|
||||
return appGroupIdentity_;
|
||||
}
|
||||
|
||||
void TrainModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
|
||||
appGroupIdentity_ = appGroupIdentity;
|
||||
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/opensearch/model/TrainModelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::OpenSearch;
|
||||
using namespace AlibabaCloud::OpenSearch::Model;
|
||||
|
||||
TrainModelResult::TrainModelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TrainModelResult::TrainModelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TrainModelResult::~TrainModelResult()
|
||||
{}
|
||||
|
||||
void TrainModelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["result"].isNull())
|
||||
result_ = value["result"].asString();
|
||||
if(!value["requestId"].isNull())
|
||||
requestId_ = value["requestId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string TrainModelResult::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
std::string TrainModelResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user