Rebuild sdk (#60)

* rebuild sdk

* fixed ut include Utils.h
This commit is contained in:
Axios
2019-08-14 14:34:09 +08:00
committed by GitHub
parent f3d9843e63
commit c43307bc80
11893 changed files with 462166 additions and 221301 deletions

View File

@@ -33,6 +33,6 @@ std::string BatchGetJobMetricInfoRequest::getJobInfos()const
void BatchGetJobMetricInfoRequest::setJobInfos(const std::string& jobInfos)
{
jobInfos_ = jobInfos;
setParameter("JobInfos", jobInfos);
setCoreParameter("JobInfos", jobInfos);
}

View File

@@ -35,10 +35,13 @@ BatchGetJobMetricInfoResult::~BatchGetJobMetricInfoResult()
void BatchGetJobMetricInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["Job"];
for (auto value : allData)

View File

@@ -33,6 +33,6 @@ std::string BatchGetPluginConfigInfoRequest::getPluginInfos()const
void BatchGetPluginConfigInfoRequest::setPluginInfos(const std::string& pluginInfos)
{
pluginInfos_ = pluginInfos;
setParameter("PluginInfos", pluginInfos);
setCoreParameter("PluginInfos", pluginInfos);
}

View File

@@ -35,10 +35,13 @@ BatchGetPluginConfigInfoResult::~BatchGetPluginConfigInfoResult()
void BatchGetPluginConfigInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["plugin"];
for (auto value : allData)

View File

@@ -33,6 +33,6 @@ std::string GetJobTopologyRequest::getJobName()const
void GetJobTopologyRequest::setJobName(const std::string& jobName)
{
jobName_ = jobName;
setParameter("JobName", jobName);
setCoreParameter("JobName", jobName);
}

View File

@@ -35,10 +35,13 @@ GetJobTopologyResult::~GetJobTopologyResult()
void GetJobTopologyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
reader.parse(payload, value);
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["Job"];
for (auto value : allData)