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

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,82 @@
/*
* 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/aegis/model/AddEventProcessRequest.h>
using AlibabaCloud::Aegis::Model::AddEventProcessRequest;
AddEventProcessRequest::AddEventProcessRequest() :
RpcServiceRequest("aegis", "2016-11-11", "AddEventProcess")
{}
AddEventProcessRequest::~AddEventProcessRequest()
{}
std::string AddEventProcessRequest::getSourceIp()const
{
return sourceIp_;
}
void AddEventProcessRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string AddEventProcessRequest::getWarningType()const
{
return warningType_;
}
void AddEventProcessRequest::setWarningType(const std::string& warningType)
{
warningType_ = warningType;
setCoreParameter("WarningType", warningType);
}
std::string AddEventProcessRequest::getSuspiciousEventIds()const
{
return suspiciousEventIds_;
}
void AddEventProcessRequest::setSuspiciousEventIds(const std::string& suspiciousEventIds)
{
suspiciousEventIds_ = suspiciousEventIds;
setCoreParameter("SuspiciousEventIds", suspiciousEventIds);
}
std::string AddEventProcessRequest::getFrom()const
{
return from_;
}
void AddEventProcessRequest::setFrom(const std::string& from)
{
from_ = from;
setCoreParameter("From", from);
}
std::string AddEventProcessRequest::getLang()const
{
return lang_;
}
void AddEventProcessRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,48 @@
/*
* 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/aegis/model/AddEventProcessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
AddEventProcessResult::AddEventProcessResult() :
ServiceResult()
{}
AddEventProcessResult::AddEventProcessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddEventProcessResult::~AddEventProcessResult()
{}
void AddEventProcessResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,10 +35,13 @@ AutoUpgradeSasResult::~AutoUpgradeSasResult()
void AutoUpgradeSasResult::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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";

View File

@@ -35,10 +35,13 @@ AutoUpgradeToSasAdvancedVersionResult::~AutoUpgradeToSasAdvancedVersionResult()
void AutoUpgradeToSasAdvancedVersionResult::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());
}

View File

@@ -35,10 +35,13 @@ BatchDeleteWhiteListResult::~BatchDeleteWhiteListResult()
void BatchDeleteWhiteListResult::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());
}

View File

@@ -35,10 +35,13 @@ CanTrySasResult::~CanTrySasResult()
void CanTrySasResult::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());
if(!value["CanTry"].isNull())
canTry_ = std::stoi(value["CanTry"].asString());

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/CopyCustomizeReportConfigRequest.h>
using AlibabaCloud::Aegis::Model::CopyCustomizeReportConfigRequest;
CopyCustomizeReportConfigRequest::CopyCustomizeReportConfigRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CopyCustomizeReportConfig")
{}
CopyCustomizeReportConfigRequest::~CopyCustomizeReportConfigRequest()
{}
std::string CopyCustomizeReportConfigRequest::getSourceIp()const
{
return sourceIp_;
}
void CopyCustomizeReportConfigRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long CopyCustomizeReportConfigRequest::getReportId()const
{
return reportId_;
}
void CopyCustomizeReportConfigRequest::setReportId(long reportId)
{
reportId_ = reportId;
setCoreParameter("ReportId", std::to_string(reportId));
}
std::string CopyCustomizeReportConfigRequest::getLang()const
{
return lang_;
}
void CopyCustomizeReportConfigRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,48 @@
/*
* 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/aegis/model/CopyCustomizeReportConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CopyCustomizeReportConfigResult::CopyCustomizeReportConfigResult() :
ServiceResult()
{}
CopyCustomizeReportConfigResult::CopyCustomizeReportConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CopyCustomizeReportConfigResult::~CopyCustomizeReportConfigResult()
{}
void CopyCustomizeReportConfigResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,10 +35,13 @@ CreatScreenSettingResult::~CreatScreenSettingResult()
void CreatScreenSettingResult::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());
}

View File

@@ -35,10 +35,13 @@ CreateInstanceResult::~CreateInstanceResult()
void CreateInstanceResult::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());
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();

View File

@@ -35,10 +35,13 @@ CreateLogQueryResult::~CreateLogQueryResult()
void CreateLogQueryResult::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());
}

View File

@@ -36,6 +36,17 @@ void CreateOrUpdateDataSourceRequest::setProjectName(const std::string& projectN
setCoreParameter("ProjectName", projectName);
}
std::string CreateOrUpdateDataSourceRequest::getConfigType()const
{
return configType_;
}
void CreateOrUpdateDataSourceRequest::setConfigType(const std::string& configType)
{
configType_ = configType;
setCoreParameter("ConfigType", configType);
}
std::string CreateOrUpdateDataSourceRequest::getSourceIp()const
{
return sourceIp_;

View File

@@ -35,10 +35,13 @@ CreateOrUpdateDataSourceResult::~CreateOrUpdateDataSourceResult()
void CreateOrUpdateDataSourceResult::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());
}

View File

@@ -35,10 +35,13 @@ CreateOrUpdateDingTalkResult::~CreateOrUpdateDingTalkResult()
void CreateOrUpdateDingTalkResult::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());
}

View File

@@ -35,10 +35,13 @@ CreateOrUpdateGroupResult::~CreateOrUpdateGroupResult()
void CreateOrUpdateGroupResult::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());
}

View File

@@ -35,10 +35,13 @@ CreateOrUpdateJoinRuleResult::~CreateOrUpdateJoinRuleResult()
void CreateOrUpdateJoinRuleResult::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());
}

View File

@@ -35,10 +35,13 @@ CreateOrUpdateRuleResult::~CreateOrUpdateRuleResult()
void CreateOrUpdateRuleResult::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());
}

View File

@@ -0,0 +1,115 @@
/*
* 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/aegis/model/CreateScreenSettingRequest.h>
using AlibabaCloud::Aegis::Model::CreateScreenSettingRequest;
CreateScreenSettingRequest::CreateScreenSettingRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreateScreenSetting")
{}
CreateScreenSettingRequest::~CreateScreenSettingRequest()
{}
std::string CreateScreenSettingRequest::getScreenDataMap()const
{
return screenDataMap_;
}
void CreateScreenSettingRequest::setScreenDataMap(const std::string& screenDataMap)
{
screenDataMap_ = screenDataMap;
setCoreParameter("ScreenDataMap", screenDataMap);
}
int CreateScreenSettingRequest::getScreenDefault()const
{
return screenDefault_;
}
void CreateScreenSettingRequest::setScreenDefault(int screenDefault)
{
screenDefault_ = screenDefault;
setCoreParameter("ScreenDefault", std::to_string(screenDefault));
}
bool CreateScreenSettingRequest::getLogoPower()const
{
return logoPower_;
}
void CreateScreenSettingRequest::setLogoPower(bool logoPower)
{
logoPower_ = logoPower;
setCoreParameter("LogoPower", logoPower ? "true" : "false");
}
std::string CreateScreenSettingRequest::getMonitorUrl()const
{
return monitorUrl_;
}
void CreateScreenSettingRequest::setMonitorUrl(const std::string& monitorUrl)
{
monitorUrl_ = monitorUrl;
setCoreParameter("MonitorUrl", monitorUrl);
}
std::string CreateScreenSettingRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateScreenSettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int CreateScreenSettingRequest::getId()const
{
return id_;
}
void CreateScreenSettingRequest::setId(int id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
std::string CreateScreenSettingRequest::getTitle()const
{
return title_;
}
void CreateScreenSettingRequest::setTitle(const std::string& title)
{
title_ = title;
setCoreParameter("Title", title);
}
std::string CreateScreenSettingRequest::getLogoUrl()const
{
return logoUrl_;
}
void CreateScreenSettingRequest::setLogoUrl(const std::string& logoUrl)
{
logoUrl_ = logoUrl;
setCoreParameter("LogoUrl", logoUrl);
}

View File

@@ -0,0 +1,55 @@
/*
* 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/aegis/model/CreateScreenSettingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreateScreenSettingResult::CreateScreenSettingResult() :
ServiceResult()
{}
CreateScreenSettingResult::CreateScreenSettingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateScreenSettingResult::~CreateScreenSettingResult()
{}
void CreateScreenSettingResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Id"].isNull())
id_ = std::stoi(value["Id"].asString());
}
int CreateScreenSettingResult::getId()const
{
return id_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/CreateSuspEventNoteRequest.h>
using AlibabaCloud::Aegis::Model::CreateSuspEventNoteRequest;
CreateSuspEventNoteRequest::CreateSuspEventNoteRequest() :
RpcServiceRequest("aegis", "2016-11-11", "CreateSuspEventNote")
{}
CreateSuspEventNoteRequest::~CreateSuspEventNoteRequest()
{}
int CreateSuspEventNoteRequest::getEventId()const
{
return eventId_;
}
void CreateSuspEventNoteRequest::setEventId(int eventId)
{
eventId_ = eventId;
setCoreParameter("EventId", std::to_string(eventId));
}
std::string CreateSuspEventNoteRequest::getNote()const
{
return note_;
}
void CreateSuspEventNoteRequest::setNote(const std::string& note)
{
note_ = note;
setCoreParameter("Note", note);
}
std::string CreateSuspEventNoteRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateSuspEventNoteRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,62 @@
/*
* 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/aegis/model/CreateSuspEventNoteResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
CreateSuspEventNoteResult::CreateSuspEventNoteResult() :
ServiceResult()
{}
CreateSuspEventNoteResult::CreateSuspEventNoteResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSuspEventNoteResult::~CreateSuspEventNoteResult()
{}
void CreateSuspEventNoteResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
int CreateSuspEventNoteResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
bool CreateSuspEventNoteResult::getSuccess()const
{
return success_;
}

View File

@@ -35,10 +35,13 @@ CreateSuspiciousExportResult::~CreateSuspiciousExportResult()
void CreateSuspiciousExportResult::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());
if(!value["Id"].isNull())
id_ = std::stol(value["Id"].asString());

View File

@@ -35,10 +35,13 @@ CreateUserSettingResult::~CreateUserSettingResult()
void CreateUserSettingResult::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());
}

View File

@@ -35,10 +35,13 @@ CreateUserWhiteListResult::~CreateUserWhiteListResult()
void CreateUserWhiteListResult::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());
}

View File

@@ -35,10 +35,13 @@ CreateVulWhitelistResult::~CreateVulWhitelistResult()
void CreateVulWhitelistResult::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());
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/DeleteCustomizeReportRequest.h>
using AlibabaCloud::Aegis::Model::DeleteCustomizeReportRequest;
DeleteCustomizeReportRequest::DeleteCustomizeReportRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DeleteCustomizeReport")
{}
DeleteCustomizeReportRequest::~DeleteCustomizeReportRequest()
{}
std::string DeleteCustomizeReportRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteCustomizeReportRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long DeleteCustomizeReportRequest::getReportId()const
{
return reportId_;
}
void DeleteCustomizeReportRequest::setReportId(long reportId)
{
reportId_ = reportId;
setCoreParameter("ReportId", std::to_string(reportId));
}
std::string DeleteCustomizeReportRequest::getLang()const
{
return lang_;
}
void DeleteCustomizeReportRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,48 @@
/*
* 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/aegis/model/DeleteCustomizeReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DeleteCustomizeReportResult::DeleteCustomizeReportResult() :
ServiceResult()
{}
DeleteCustomizeReportResult::DeleteCustomizeReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteCustomizeReportResult::~DeleteCustomizeReportResult()
{}
void DeleteCustomizeReportResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
}

View File

@@ -35,10 +35,13 @@ DeleteDingTalkResult::~DeleteDingTalkResult()
void DeleteDingTalkResult::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());
}

View File

@@ -35,10 +35,13 @@ DeleteJoinRuleResult::~DeleteJoinRuleResult()
void DeleteJoinRuleResult::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());
}

View File

@@ -35,10 +35,13 @@ DeleteLogQueryResult::~DeleteLogQueryResult()
void DeleteLogQueryResult::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());
}

View File

@@ -35,10 +35,13 @@ DeleteRuleGroupResult::~DeleteRuleGroupResult()
void DeleteRuleGroupResult::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());
}

View File

@@ -35,10 +35,13 @@ DeleteRuleResult::~DeleteRuleResult()
void DeleteRuleResult::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());
}

View File

@@ -36,14 +36,14 @@ void DeleteScreenSettingRequest::setSourceIp(const std::string& sourceIp)
setCoreParameter("SourceIp", sourceIp);
}
std::string DeleteScreenSettingRequest::getScreenTitle()const
std::string DeleteScreenSettingRequest::getId()const
{
return screenTitle_;
return id_;
}
void DeleteScreenSettingRequest::setScreenTitle(const std::string& screenTitle)
void DeleteScreenSettingRequest::setId(const std::string& id)
{
screenTitle_ = screenTitle;
setCoreParameter("ScreenTitle", screenTitle);
id_ = id;
setCoreParameter("Id", id);
}

View File

@@ -35,11 +35,21 @@ DeleteScreenSettingResult::~DeleteScreenSettingResult()
void DeleteScreenSettingResult::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());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
bool DeleteScreenSettingResult::getSuccess()const
{
return success_;
}

View File

@@ -35,10 +35,13 @@ DeleteSearchConditionResult::~DeleteSearchConditionResult()
void DeleteSearchConditionResult::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());
}

View File

@@ -35,10 +35,13 @@ DeleteStrategyResult::~DeleteStrategyResult()
void DeleteStrategyResult::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());
}

View File

@@ -0,0 +1,49 @@
/*
* 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/aegis/model/DeleteSuspEventNodeRequest.h>
using AlibabaCloud::Aegis::Model::DeleteSuspEventNodeRequest;
DeleteSuspEventNodeRequest::DeleteSuspEventNodeRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DeleteSuspEventNode")
{}
DeleteSuspEventNodeRequest::~DeleteSuspEventNodeRequest()
{}
std::string DeleteSuspEventNodeRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteSuspEventNodeRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DeleteSuspEventNodeRequest::getNoteId()const
{
return noteId_;
}
void DeleteSuspEventNodeRequest::setNoteId(int noteId)
{
noteId_ = noteId;
setCoreParameter("NoteId", std::to_string(noteId));
}

View File

@@ -0,0 +1,62 @@
/*
* 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/aegis/model/DeleteSuspEventNodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DeleteSuspEventNodeResult::DeleteSuspEventNodeResult() :
ServiceResult()
{}
DeleteSuspEventNodeResult::DeleteSuspEventNodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSuspEventNodeResult::~DeleteSuspEventNodeResult()
{}
void DeleteSuspEventNodeResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
int DeleteSuspEventNodeResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
bool DeleteSuspEventNodeResult::getSuccess()const
{
return success_;
}

View File

@@ -35,10 +35,13 @@ DeleteVulBatchResult::~DeleteVulBatchResult()
void DeleteVulBatchResult::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());
}

View File

@@ -35,10 +35,13 @@ DeleteVulWhitelistResult::~DeleteVulWhitelistResult()
void DeleteVulWhitelistResult::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());
}

View File

@@ -0,0 +1,49 @@
/*
* 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/aegis/model/DescribeAccessKeyLeakDetailRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAccessKeyLeakDetailRequest;
DescribeAccessKeyLeakDetailRequest::DescribeAccessKeyLeakDetailRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAccessKeyLeakDetail")
{}
DescribeAccessKeyLeakDetailRequest::~DescribeAccessKeyLeakDetailRequest()
{}
std::string DescribeAccessKeyLeakDetailRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAccessKeyLeakDetailRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long DescribeAccessKeyLeakDetailRequest::getId()const
{
return id_;
}
void DescribeAccessKeyLeakDetailRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}

View File

@@ -0,0 +1,181 @@
/*
* 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/aegis/model/DescribeAccessKeyLeakDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAccessKeyLeakDetailResult::DescribeAccessKeyLeakDetailResult() :
ServiceResult()
{}
DescribeAccessKeyLeakDetailResult::DescribeAccessKeyLeakDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAccessKeyLeakDetailResult::~DescribeAccessKeyLeakDetailResult()
{}
void DescribeAccessKeyLeakDetailResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["GmtModified"].isNull())
gmtModified_ = value["GmtModified"].asString();
if(!value["GmtCreate"].isNull())
gmtCreate_ = value["GmtCreate"].asString();
if(!value["AccesskeyId"].isNull())
accesskeyId_ = value["AccesskeyId"].asString();
if(!value["Source"].isNull())
source_ = value["Source"].asString();
if(!value["Type"].isNull())
type_ = value["Type"].asString();
if(!value["GithubUser"].isNull())
githubUser_ = value["GithubUser"].asString();
if(!value["GithubUserPicUrl"].isNull())
githubUserPicUrl_ = value["GithubUserPicUrl"].asString();
if(!value["GithubFileName"].isNull())
githubFileName_ = value["GithubFileName"].asString();
if(!value["GithubFileUrl"].isNull())
githubFileUrl_ = value["GithubFileUrl"].asString();
if(!value["GithubFileType"].isNull())
githubFileType_ = value["GithubFileType"].asString();
if(!value["GithubRepoName"].isNull())
githubRepoName_ = value["GithubRepoName"].asString();
if(!value["GithubRepoUrl"].isNull())
githubRepoUrl_ = value["GithubRepoUrl"].asString();
if(!value["GithubFileUpdateTime"].isNull())
githubFileUpdateTime_ = value["GithubFileUpdateTime"].asString();
if(!value["Asset"].isNull())
asset_ = value["Asset"].asString();
if(!value["WhitelistStatus"].isNull())
whitelistStatus_ = value["WhitelistStatus"].asString();
if(!value["Remark"].isNull())
remark_ = value["Remark"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DealType"].isNull())
dealType_ = value["DealType"].asString();
if(!value["DealTime"].isNull())
dealTime_ = value["DealTime"].asString();
}
std::string DescribeAccessKeyLeakDetailResult::getGithubRepoName()const
{
return githubRepoName_;
}
std::string DescribeAccessKeyLeakDetailResult::getGithubRepoUrl()const
{
return githubRepoUrl_;
}
std::string DescribeAccessKeyLeakDetailResult::getGithubFileName()const
{
return githubFileName_;
}
std::string DescribeAccessKeyLeakDetailResult::getDealType()const
{
return dealType_;
}
std::string DescribeAccessKeyLeakDetailResult::getWhitelistStatus()const
{
return whitelistStatus_;
}
std::string DescribeAccessKeyLeakDetailResult::getGmtModified()const
{
return gmtModified_;
}
std::string DescribeAccessKeyLeakDetailResult::getCode()const
{
return code_;
}
std::string DescribeAccessKeyLeakDetailResult::getSource()const
{
return source_;
}
std::string DescribeAccessKeyLeakDetailResult::getRemark()const
{
return remark_;
}
std::string DescribeAccessKeyLeakDetailResult::getGmtCreate()const
{
return gmtCreate_;
}
std::string DescribeAccessKeyLeakDetailResult::getType()const
{
return type_;
}
std::string DescribeAccessKeyLeakDetailResult::getGithubUserPicUrl()const
{
return githubUserPicUrl_;
}
std::string DescribeAccessKeyLeakDetailResult::getGithubFileUpdateTime()const
{
return githubFileUpdateTime_;
}
std::string DescribeAccessKeyLeakDetailResult::getAccesskeyId()const
{
return accesskeyId_;
}
std::string DescribeAccessKeyLeakDetailResult::getGithubFileUrl()const
{
return githubFileUrl_;
}
std::string DescribeAccessKeyLeakDetailResult::getGithubFileType()const
{
return githubFileType_;
}
std::string DescribeAccessKeyLeakDetailResult::getAsset()const
{
return asset_;
}
std::string DescribeAccessKeyLeakDetailResult::getGithubUser()const
{
return githubUser_;
}
std::string DescribeAccessKeyLeakDetailResult::getDealTime()const
{
return dealTime_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/aegis/model/DescribeAccesskeyLeakListRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAccesskeyLeakListRequest;
DescribeAccesskeyLeakListRequest::DescribeAccesskeyLeakListRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAccesskeyLeakList")
{}
DescribeAccesskeyLeakListRequest::~DescribeAccesskeyLeakListRequest()
{}
std::string DescribeAccesskeyLeakListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAccesskeyLeakListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeAccesskeyLeakListRequest::getQuery()const
{
return query_;
}
void DescribeAccesskeyLeakListRequest::setQuery(const std::string& query)
{
query_ = query;
setCoreParameter("Query", query);
}
int DescribeAccesskeyLeakListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAccesskeyLeakListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
long DescribeAccesskeyLeakListRequest::getStartTs()const
{
return startTs_;
}
void DescribeAccesskeyLeakListRequest::setStartTs(long startTs)
{
startTs_ = startTs;
setCoreParameter("StartTs", std::to_string(startTs));
}
int DescribeAccesskeyLeakListRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAccesskeyLeakListRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeAccesskeyLeakListRequest::getStatus()const
{
return status_;
}
void DescribeAccesskeyLeakListRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}

View File

@@ -0,0 +1,114 @@
/*
* 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/aegis/model/DescribeAccesskeyLeakListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAccesskeyLeakListResult::DescribeAccesskeyLeakListResult() :
ServiceResult()
{}
DescribeAccesskeyLeakListResult::DescribeAccesskeyLeakListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAccesskeyLeakListResult::~DescribeAccesskeyLeakListResult()
{}
void DescribeAccesskeyLeakListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allAccessKeyLeakList = value["AccessKeyLeakList"]["AccessKeyLeak"];
for (auto value : allAccessKeyLeakList)
{
AccessKeyLeak accessKeyLeakListObject;
if(!value["Id"].isNull())
accessKeyLeakListObject.id = std::stol(value["Id"].asString());
if(!value["GmtModified"].isNull())
accessKeyLeakListObject.gmtModified = std::stol(value["GmtModified"].asString());
if(!value["Asset"].isNull())
accessKeyLeakListObject.asset = value["Asset"].asString();
if(!value["Type"].isNull())
accessKeyLeakListObject.type = value["Type"].asString();
if(!value["AccesskeyId"].isNull())
accessKeyLeakListObject.accesskeyId = value["AccesskeyId"].asString();
if(!value["Status"].isNull())
accessKeyLeakListObject.status = value["Status"].asString();
if(!value["AliUserName"].isNull())
accessKeyLeakListObject.aliUserName = value["AliUserName"].asString();
if(!value["DealType"].isNull())
accessKeyLeakListObject.dealType = value["DealType"].asString();
if(!value["DealTime"].isNull())
accessKeyLeakListObject.dealTime = value["DealTime"].asString();
if(!value["UserType"].isNull())
accessKeyLeakListObject.userType = value["UserType"].asString();
accessKeyLeakList_.push_back(accessKeyLeakListObject);
}
if(!value["GmtLast"].isNull())
gmtLast_ = std::stol(value["GmtLast"].asString());
if(!value["AkLeakCount"].isNull())
akLeakCount_ = std::stoi(value["AkLeakCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeAccesskeyLeakListResult::getAkLeakCount()const
{
return akLeakCount_;
}
std::vector<DescribeAccesskeyLeakListResult::AccessKeyLeak> DescribeAccesskeyLeakListResult::getAccessKeyLeakList()const
{
return accessKeyLeakList_;
}
int DescribeAccesskeyLeakListResult::getTotalCount()const
{
return totalCount_;
}
int DescribeAccesskeyLeakListResult::getPageSize()const
{
return pageSize_;
}
long DescribeAccesskeyLeakListResult::getGmtLast()const
{
return gmtLast_;
}
int DescribeAccesskeyLeakListResult::getCurrentPage()const
{
return currentPage_;
}

View File

@@ -0,0 +1,38 @@
/*
* 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/aegis/model/DescribeAccesskeyRunInfoRequest.h>
using AlibabaCloud::Aegis::Model::DescribeAccesskeyRunInfoRequest;
DescribeAccesskeyRunInfoRequest::DescribeAccesskeyRunInfoRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeAccesskeyRunInfo")
{}
DescribeAccesskeyRunInfoRequest::~DescribeAccesskeyRunInfoRequest()
{}
std::string DescribeAccesskeyRunInfoRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAccesskeyRunInfoRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,55 @@
/*
* 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/aegis/model/DescribeAccesskeyRunInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeAccesskeyRunInfoResult::DescribeAccesskeyRunInfoResult() :
ServiceResult()
{}
DescribeAccesskeyRunInfoResult::DescribeAccesskeyRunInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAccesskeyRunInfoResult::~DescribeAccesskeyRunInfoResult()
{}
void DescribeAccesskeyRunInfoResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Stop"].isNull())
stop_ = value["Stop"].asString() == "true";
}
bool DescribeAccesskeyRunInfoResult::getStop()const
{
return stop_;
}

View File

@@ -35,10 +35,13 @@ DescribeAgentInstallStatusResult::~DescribeAgentInstallStatusResult()
void DescribeAgentInstallStatusResult::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 allAegisClientInvokeStatusResponseList = value["AegisClientInvokeStatusResponseList"]["AegisClientInvokeStatusResponse"];
for (auto value : allAegisClientInvokeStatusResponseList)
@@ -50,6 +53,8 @@ void DescribeAgentInstallStatusResult::parse(const std::string &payload)
aegisClientInvokeStatusResponseListObject.message = value["Message"].asString();
if(!value["Result"].isNull())
aegisClientInvokeStatusResponseListObject.result = std::stoi(value["Result"].asString());
if(!value["ResuleCode"].isNull())
aegisClientInvokeStatusResponseListObject.resuleCode = value["ResuleCode"].asString();
aegisClientInvokeStatusResponseList_.push_back(aegisClientInvokeStatusResponseListObject);
}

View File

@@ -35,10 +35,13 @@ DescribeAlarmEventDetailResult::~DescribeAlarmEventDetailResult()
void DescribeAlarmEventDetailResult::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 dataNode = value["Data"];
if(!dataNode["InternetIp"].isNull())
@@ -73,6 +76,10 @@ void DescribeAlarmEventDetailResult::parse(const std::string &payload)
data_.canCancelFault = dataNode["CanCancelFault"].asString() == "true";
if(!dataNode["HasTraceInfo"].isNull())
data_.hasTraceInfo = dataNode["HasTraceInfo"].asString() == "true";
if(!dataNode["AccessCode"].isNull())
data_.accessCode = dataNode["AccessCode"].asString();
if(!dataNode["Dealed"].isNull())
data_.dealed = dataNode["Dealed"].asString() == "true";
auto allCauseDetails = value["CauseDetails"]["CauseDetail"];
for (auto value : allCauseDetails)
{

View File

@@ -47,6 +47,17 @@ void DescribeAlarmEventListRequest::setSourceIp(const std::string& sourceIp)
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeAlarmEventListRequest::getGroupId()const
{
return groupId_;
}
void DescribeAlarmEventListRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeAlarmEventListRequest::getPageSize()const
{
return pageSize_;
@@ -135,3 +146,15 @@ void DescribeAlarmEventListRequest::setLevels(const std::string& levels)
setCoreParameter("Levels", levels);
}
std::vector<std::string> DescribeAlarmEventListRequest::getOperateErrorCodeList()const
{
return operateErrorCodeList_;
}
void DescribeAlarmEventListRequest::setOperateErrorCodeList(const std::vector<std::string>& operateErrorCodeList)
{
operateErrorCodeList_ = operateErrorCodeList;
for(int i = 0; i!= operateErrorCodeList.size(); i++)
setCoreParameter("OperateErrorCodeList."+ std::to_string(i), operateErrorCodeList.at(i));
}

View File

@@ -35,10 +35,13 @@ DescribeAlarmEventListResult::~DescribeAlarmEventListResult()
void DescribeAlarmEventListResult::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 allSuspEvents = value["SuspEvents"]["SuspEventsItem"];
for (auto value : allSuspEvents)
@@ -84,6 +87,10 @@ void DescribeAlarmEventListResult::parse(const std::string &payload)
suspEventsObject.gmtModified = std::stol(value["GmtModified"].asString());
if(!value["HasTraceInfo"].isNull())
suspEventsObject.hasTraceInfo = value["HasTraceInfo"].asString() == "true";
if(!value["SecurityEventIds"].isNull())
suspEventsObject.securityEventIds = value["SecurityEventIds"].asString();
if(!value["OperateErrorCode"].isNull())
suspEventsObject.operateErrorCode = value["OperateErrorCode"].asString();
suspEvents_.push_back(suspEventsObject);
}
auto pageInfoNode = value["PageInfo"];

View File

@@ -190,6 +190,17 @@ void DescribeAllRegionsStatisticsRequest::setPageSize(int pageSize)
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeAllRegionsStatisticsRequest::getFrom()const
{
return from_;
}
void DescribeAllRegionsStatisticsRequest::setFrom(const std::string& from)
{
from_ = from;
setCoreParameter("From", from);
}
int DescribeAllRegionsStatisticsRequest::getAction1()const
{
return action1_;

View File

@@ -35,10 +35,13 @@ DescribeAllRegionsStatisticsResult::~DescribeAllRegionsStatisticsResult()
void DescribeAllRegionsStatisticsResult::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 dataNode = value["Data"];
if(!dataNode["Account"].isNull())

View File

@@ -35,10 +35,13 @@ DescribeAnalysisCurveResult::~DescribeAnalysisCurveResult()
void DescribeAnalysisCurveResult::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 curvesNode = value["Curves"];
auto allOriginalCurveList = value["OriginalCurveList"]["OriginalCurve"];

View File

@@ -35,10 +35,13 @@ DescribeAnalysisHistogramsResult::~DescribeAnalysisHistogramsResult()
void DescribeAnalysisHistogramsResult::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 histogramsNode = value["Histograms"];
if(!histogramsNode["Histograms"].isNull())

View File

@@ -35,10 +35,13 @@ DescribeAnalysisLogsResult::~DescribeAnalysisLogsResult()
void DescribeAnalysisLogsResult::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 logsNode = value["Logs"];
if(!logsNode["ProcessedRow"].isNull())

View File

@@ -35,10 +35,13 @@ DescribeAnalysisShipperStatusResult::~DescribeAnalysisShipperStatusResult()
void DescribeAnalysisShipperStatusResult::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 shipperDataNode = value["ShipperData"];
if(!shipperDataNode["AuthStatus"].isNull())

View File

@@ -35,10 +35,13 @@ DescribeAnalysisSlsIndexResult::~DescribeAnalysisSlsIndexResult()
void DescribeAnalysisSlsIndexResult::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 slsIndexNode = value["SlsIndex"];
if(!slsIndexNode["Index"].isNull())

View File

@@ -35,10 +35,13 @@ DescribeAnalysisStatisticsResult::~DescribeAnalysisStatisticsResult()
void DescribeAnalysisStatisticsResult::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 statisticsNode = value["Statistics"];
if(!statisticsNode["Total"].isNull())

View File

@@ -35,10 +35,13 @@ DescribeApiBuySummaryResult::~DescribeApiBuySummaryResult()
void DescribeApiBuySummaryResult::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 buySummaryNode = value["BuySummary"];
if(!buySummaryNode["Status"].isNull())

View File

@@ -35,10 +35,13 @@ DescribeAssetDetailByUuidResult::~DescribeAssetDetailByUuidResult()
void DescribeAssetDetailByUuidResult::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 assetDetailNode = value["AssetDetail"];
if(!assetDetailNode["InternetIp"].isNull())

View File

@@ -47,6 +47,17 @@ void DescribeAssetListRequest::setPageSize(int pageSize)
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeAssetListRequest::getFrom()const
{
return from_;
}
void DescribeAssetListRequest::setFrom(const std::string& from)
{
from_ = from;
setCoreParameter("From", from);
}
int DescribeAssetListRequest::getCurrentPage()const
{
return currentPage_;

View File

@@ -35,10 +35,13 @@ DescribeAssetListResult::~DescribeAssetListResult()
void DescribeAssetListResult::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 allAssetList = value["AssetList"]["Asset"];
for (auto value : allAssetList)
@@ -64,6 +67,8 @@ void DescribeAssetListResult::parse(const std::string &payload)
assetListObject.region = value["Region"].asString();
if(!value["RegionName"].isNull())
assetListObject.regionName = value["RegionName"].asString();
if(!value["Status"].isNull())
assetListObject.status = value["Status"].asString();
assetList_.push_back(assetListObject);
}
if(!value["PageSize"].isNull())

View File

@@ -35,10 +35,13 @@ DescribeAssetSummaryResult::~DescribeAssetSummaryResult()
void DescribeAssetSummaryResult::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 summaryNode = value["Summary"];
if(!summaryNode["TotalCount"].isNull())

View File

@@ -35,10 +35,13 @@ DescribeAttackAnalysisDataResult::~DescribeAttackAnalysisDataResult()
void DescribeAttackAnalysisDataResult::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());
if(!value["Data"].isNull())
data_ = value["Data"].asString();

View File

@@ -35,10 +35,13 @@ DescribeAutoDelConfigResult::~DescribeAutoDelConfigResult()
void DescribeAutoDelConfigResult::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());
if(!value["Days"].isNull())
days_ = std::stoi(value["Days"].asString());

View File

@@ -0,0 +1,82 @@
/*
* 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/aegis/model/DescribeBizStatSimpleQueryResultRequest.h>
using AlibabaCloud::Aegis::Model::DescribeBizStatSimpleQueryResultRequest;
DescribeBizStatSimpleQueryResultRequest::DescribeBizStatSimpleQueryResultRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeBizStatSimpleQueryResult")
{}
DescribeBizStatSimpleQueryResultRequest::~DescribeBizStatSimpleQueryResultRequest()
{}
std::string DescribeBizStatSimpleQueryResultRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeBizStatSimpleQueryResultRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeBizStatSimpleQueryResultRequest::getEndTime()const
{
return endTime_;
}
void DescribeBizStatSimpleQueryResultRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribeBizStatSimpleQueryResultRequest::getStartTime()const
{
return startTime_;
}
void DescribeBizStatSimpleQueryResultRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
int DescribeBizStatSimpleQueryResultRequest::getCustomTimeRange()const
{
return customTimeRange_;
}
void DescribeBizStatSimpleQueryResultRequest::setCustomTimeRange(int customTimeRange)
{
customTimeRange_ = customTimeRange;
setCoreParameter("CustomTimeRange", std::to_string(customTimeRange));
}
std::string DescribeBizStatSimpleQueryResultRequest::getCustomQuery()const
{
return customQuery_;
}
void DescribeBizStatSimpleQueryResultRequest::setCustomQuery(const std::string& customQuery)
{
customQuery_ = customQuery;
setCoreParameter("CustomQuery", customQuery);
}

View File

@@ -0,0 +1,79 @@
/*
* 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/aegis/model/DescribeBizStatSimpleQueryResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeBizStatSimpleQueryResultResult::DescribeBizStatSimpleQueryResultResult() :
ServiceResult()
{}
DescribeBizStatSimpleQueryResultResult::DescribeBizStatSimpleQueryResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBizStatSimpleQueryResultResult::~DescribeBizStatSimpleQueryResultResult()
{}
void DescribeBizStatSimpleQueryResultResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allTrendDataArr = value["TrendDataArr"]["BizStatTrendDOS"];
for (auto value : allTrendDataArr)
{
BizStatTrendDOS trendDataArrObject;
if(!value["BizName"].isNull())
trendDataArrObject.bizName = value["BizName"].asString();
auto allValueArray = value["ValueArray"]["IntegerItem"];
for (auto value : allValueArray)
trendDataArrObject.valueArray.push_back(value.asString());
trendDataArr_.push_back(trendDataArrObject);
}
auto allDataTimeArray = value["DataTimeArray"]["StringItem"];
for (const auto &item : allDataTimeArray)
dataTimeArray_.push_back(item.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<DescribeBizStatSimpleQueryResultResult::BizStatTrendDOS> DescribeBizStatSimpleQueryResultResult::getTrendDataArr()const
{
return trendDataArr_;
}
std::vector<std::string> DescribeBizStatSimpleQueryResultResult::getDataTimeArray()const
{
return dataTimeArray_;
}
bool DescribeBizStatSimpleQueryResultResult::getSuccess()const
{
return success_;
}

View File

@@ -35,10 +35,13 @@ DescribeBuySummaryResult::~DescribeBuySummaryResult()
void DescribeBuySummaryResult::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 buySummaryNode = value["BuySummary"];
if(!buySummaryNode["ExpireDateTimestamp"].isNull())

View File

@@ -35,10 +35,13 @@ DescribeCanTrySasResult::~DescribeCanTrySasResult()
void DescribeCanTrySasResult::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());
if(!value["CanTry"].isNull())
canTry_ = std::stoi(value["CanTry"].asString());

View File

@@ -35,10 +35,13 @@ DescribeCanUpgradeSasResult::~DescribeCanUpgradeSasResult()
void DescribeCanUpgradeSasResult::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());
if(!value["Data"].isNull())
data_ = value["Data"].asString() == "true";

View File

@@ -0,0 +1,93 @@
/*
* 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/aegis/model/DescribeChartDataRequest.h>
using AlibabaCloud::Aegis::Model::DescribeChartDataRequest;
DescribeChartDataRequest::DescribeChartDataRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeChartData")
{}
DescribeChartDataRequest::~DescribeChartDataRequest()
{}
long DescribeChartDataRequest::getTimeEnd()const
{
return timeEnd_;
}
void DescribeChartDataRequest::setTimeEnd(long timeEnd)
{
timeEnd_ = timeEnd;
setCoreParameter("TimeEnd", std::to_string(timeEnd));
}
std::string DescribeChartDataRequest::getRangeUnit()const
{
return rangeUnit_;
}
void DescribeChartDataRequest::setRangeUnit(const std::string& rangeUnit)
{
rangeUnit_ = rangeUnit;
setCoreParameter("RangeUnit", rangeUnit);
}
std::string DescribeChartDataRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeChartDataRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeChartDataRequest::getCharId()const
{
return charId_;
}
void DescribeChartDataRequest::setCharId(const std::string& charId)
{
charId_ = charId;
setCoreParameter("CharId", charId);
}
std::string DescribeChartDataRequest::getLang()const
{
return lang_;
}
void DescribeChartDataRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeChartDataRequest::getTimeStart()const
{
return timeStart_;
}
void DescribeChartDataRequest::setTimeStart(long timeStart)
{
timeStart_ = timeStart;
setCoreParameter("TimeStart", std::to_string(timeStart));
}

View File

@@ -0,0 +1,119 @@
/*
* 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/aegis/model/DescribeChartDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeChartDataResult::DescribeChartDataResult() :
ServiceResult()
{}
DescribeChartDataResult::DescribeChartDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeChartDataResult::~DescribeChartDataResult()
{}
void DescribeChartDataResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allMultipleData = value["MultipleData"]["MultipleDataItem"];
for (auto value : allMultipleData)
{
MultipleDataItem multipleDataObject;
if(!value["Type"].isNull())
multipleDataObject.type = value["Type"].asString();
if(!value["Name"].isNull())
multipleDataObject.name = value["Name"].asString();
if(!value["Color"].isNull())
multipleDataObject.color = value["Color"].asString();
if(!value["Value"].isNull())
multipleDataObject.value = std::stol(value["Value"].asString());
multipleData_.push_back(multipleDataObject);
}
auto coordinateDataNode = value["CoordinateData"];
auto allYAxisList = value["YAxisList"]["YAxisDo"];
for (auto value : allYAxisList)
{
CoordinateData::YAxisDo yAxisDoObject;
if(!value["Type"].isNull())
yAxisDoObject.type = value["Type"].asString();
if(!value["Name"].isNull())
yAxisDoObject.name = value["Name"].asString();
if(!value["Color"].isNull())
yAxisDoObject.color = value["Color"].asString();
auto allValue = value["Value"]["LongItem"];
for (auto value : allValue)
yAxisDoObject.value.push_back(value.asString());
coordinateData_.yAxisList.push_back(yAxisDoObject);
}
auto allXAxis = coordinateDataNode["XAxis"]["StringItem"];
for (auto value : allXAxis)
coordinateData_.xAxis.push_back(value.asString());
auto singleDataNode = value["SingleData"];
if(!singleDataNode["Type"].isNull())
singleData_.type = singleDataNode["Type"].asString();
if(!singleDataNode["Name"].isNull())
singleData_.name = singleDataNode["Name"].asString();
if(!singleDataNode["Color"].isNull())
singleData_.color = singleDataNode["Color"].asString();
if(!singleDataNode["Value"].isNull())
singleData_.value = std::stol(singleDataNode["Value"].asString());
if(!value["ChartType"].isNull())
chartType_ = value["ChartType"].asString();
if(!value["ChartDataType"].isNull())
chartDataType_ = value["ChartDataType"].asString();
}
std::string DescribeChartDataResult::getChartDataType()const
{
return chartDataType_;
}
std::vector<DescribeChartDataResult::MultipleDataItem> DescribeChartDataResult::getMultipleData()const
{
return multipleData_;
}
DescribeChartDataResult::CoordinateData DescribeChartDataResult::getCoordinateData()const
{
return coordinateData_;
}
std::string DescribeChartDataResult::getChartType()const
{
return chartType_;
}
DescribeChartDataResult::SingleData DescribeChartDataResult::getSingleData()const
{
return singleData_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/DescribeChartListRequest.h>
using AlibabaCloud::Aegis::Model::DescribeChartListRequest;
DescribeChartListRequest::DescribeChartListRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeChartList")
{}
DescribeChartListRequest::~DescribeChartListRequest()
{}
std::string DescribeChartListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeChartListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeChartListRequest::getProjectCode()const
{
return projectCode_;
}
void DescribeChartListRequest::setProjectCode(const std::string& projectCode)
{
projectCode_ = projectCode;
setCoreParameter("ProjectCode", projectCode);
}
std::string DescribeChartListRequest::getLang()const
{
return lang_;
}
void DescribeChartListRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/aegis/model/DescribeChartListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeChartListResult::DescribeChartListResult() :
ServiceResult()
{}
DescribeChartListResult::DescribeChartListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeChartListResult::~DescribeChartListResult()
{}
void DescribeChartListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allChartList = value["ChartList"]["chart"];
for (auto value : allChartList)
{
Chart chartListObject;
if(!value["ChartId"].isNull())
chartListObject.chartId = value["ChartId"].asString();
if(!value["ChartName"].isNull())
chartListObject.chartName = value["ChartName"].asString();
if(!value["BusinessType"].isNull())
chartListObject.businessType = value["BusinessType"].asString();
if(!value["BusinessName"].isNull())
chartListObject.businessName = value["BusinessName"].asString();
if(!value["ChartType"].isNull())
chartListObject.chartType = value["ChartType"].asString();
chartList_.push_back(chartListObject);
}
}
std::vector<DescribeChartListResult::Chart> DescribeChartListResult::getChartList()const
{
return chartList_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/aegis/model/DescribeCheckWarningCountRequest.h>
using AlibabaCloud::Aegis::Model::DescribeCheckWarningCountRequest;
DescribeCheckWarningCountRequest::DescribeCheckWarningCountRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeCheckWarningCount")
{}
DescribeCheckWarningCountRequest::~DescribeCheckWarningCountRequest()
{}
std::string DescribeCheckWarningCountRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCheckWarningCountRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeCheckWarningCountRequest::getLang()const
{
return lang_;
}
void DescribeCheckWarningCountRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
long DescribeCheckWarningCountRequest::getRiskId()const
{
return riskId_;
}
void DescribeCheckWarningCountRequest::setRiskId(long riskId)
{
riskId_ = riskId;
setCoreParameter("RiskId", std::to_string(riskId));
}
long DescribeCheckWarningCountRequest::getCheckId()const
{
return checkId_;
}
void DescribeCheckWarningCountRequest::setCheckId(long checkId)
{
checkId_ = checkId;
setCoreParameter("CheckId", std::to_string(checkId));
}
int DescribeCheckWarningCountRequest::getStatus()const
{
return status_;
}
void DescribeCheckWarningCountRequest::setStatus(int status)
{
status_ = status;
setCoreParameter("Status", std::to_string(status));
}

View File

@@ -0,0 +1,55 @@
/*
* 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/aegis/model/DescribeCheckWarningCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeCheckWarningCountResult::DescribeCheckWarningCountResult() :
ServiceResult()
{}
DescribeCheckWarningCountResult::DescribeCheckWarningCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCheckWarningCountResult::~DescribeCheckWarningCountResult()
{}
void DescribeCheckWarningCountResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["Count"].isNull())
count_ = std::stoi(value["Count"].asString());
}
int DescribeCheckWarningCountResult::getCount()const
{
return count_;
}

View File

@@ -35,10 +35,13 @@ DescribeCheckWarningDetailResult::~DescribeCheckWarningDetailResult()
void DescribeCheckWarningDetailResult::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());
if(!value["CheckId"].isNull())
checkId_ = std::stol(value["CheckId"].asString());

View File

@@ -35,10 +35,13 @@ DescribeCheckWarningSummaryResult::~DescribeCheckWarningSummaryResult()
void DescribeCheckWarningSummaryResult::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 allWarningSummarys = value["WarningSummarys"]["WarningSummary"];
for (auto value : allWarningSummarys)

View File

@@ -35,10 +35,13 @@ DescribeCheckWarningsResult::~DescribeCheckWarningsResult()
void DescribeCheckWarningsResult::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 allCheckWarnings = value["CheckWarnings"]["CheckWarning"];
for (auto value : allCheckWarnings)
@@ -58,6 +61,8 @@ void DescribeCheckWarningsResult::parse(const std::string &payload)
checkWarningsObject.type = value["Type"].asString();
if(!value["Status"].isNull())
checkWarningsObject.status = std::stoi(value["Status"].asString());
if(!value["Reason"].isNull())
checkWarningsObject.reason = value["Reason"].asString();
checkWarnings_.push_back(checkWarningsObject);
}
if(!value["Count"].isNull())

View File

@@ -35,10 +35,13 @@ DescribeConcernNecessityResult::~DescribeConcernNecessityResult()
void DescribeConcernNecessityResult::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 allConcernNecessity = value["ConcernNecessity"]["Necessity"];
for (const auto &item : allConcernNecessity)

View File

@@ -0,0 +1,71 @@
/*
* 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/aegis/model/DescribeCustomizeReportChartDataRequest.h>
using AlibabaCloud::Aegis::Model::DescribeCustomizeReportChartDataRequest;
DescribeCustomizeReportChartDataRequest::DescribeCustomizeReportChartDataRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeCustomizeReportChartData")
{}
DescribeCustomizeReportChartDataRequest::~DescribeCustomizeReportChartDataRequest()
{}
std::string DescribeCustomizeReportChartDataRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCustomizeReportChartDataRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long DescribeCustomizeReportChartDataRequest::getReportId()const
{
return reportId_;
}
void DescribeCustomizeReportChartDataRequest::setReportId(long reportId)
{
reportId_ = reportId;
setCoreParameter("ReportId", std::to_string(reportId));
}
std::string DescribeCustomizeReportChartDataRequest::getChartIds()const
{
return chartIds_;
}
void DescribeCustomizeReportChartDataRequest::setChartIds(const std::string& chartIds)
{
chartIds_ = chartIds;
setCoreParameter("ChartIds", chartIds);
}
std::string DescribeCustomizeReportChartDataRequest::getLang()const
{
return lang_;
}
void DescribeCustomizeReportChartDataRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,87 @@
/*
* 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/aegis/model/DescribeCustomizeReportChartDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeCustomizeReportChartDataResult::DescribeCustomizeReportChartDataResult() :
ServiceResult()
{}
DescribeCustomizeReportChartDataResult::DescribeCustomizeReportChartDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCustomizeReportChartDataResult::~DescribeCustomizeReportChartDataResult()
{}
void DescribeCustomizeReportChartDataResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allChartList = value["ChartList"]["chart"];
for (auto value : allChartList)
{
Chart chartListObject;
if(!value["ChartId"].isNull())
chartListObject.chartId = value["ChartId"].asString();
if(!value["ChartName"].isNull())
chartListObject.chartName = value["ChartName"].asString();
if(!value["Type"].isNull())
chartListObject.type = value["Type"].asString();
auto allDataList = value["DataList"]["data"];
for (auto value : allDataList)
{
Chart::Data dataListObject;
if(!value["Name"].isNull())
dataListObject.name = value["Name"].asString();
if(!value["Count"].isNull())
dataListObject.count = std::stoi(value["Count"].asString());
if(!value["Old"].isNull())
dataListObject.old = std::stoi(value["Old"].asString());
auto allChartDataList = value["ChartDataList"]["chartData"];
for (auto value : allChartDataList)
{
Chart::Data::ChartData chartDataListObject;
if(!value["Name"].isNull())
chartDataListObject.name = value["Name"].asString();
if(!value["Value"].isNull())
chartDataListObject.value = std::stoi(value["Value"].asString());
dataListObject.chartDataList.push_back(chartDataListObject);
}
chartListObject.dataList.push_back(dataListObject);
}
chartList_.push_back(chartListObject);
}
}
std::vector<DescribeCustomizeReportChartDataResult::Chart> DescribeCustomizeReportChartDataResult::getChartList()const
{
return chartList_;
}

View File

@@ -0,0 +1,49 @@
/*
* 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/aegis/model/DescribeCustomizeReportChartListRequest.h>
using AlibabaCloud::Aegis::Model::DescribeCustomizeReportChartListRequest;
DescribeCustomizeReportChartListRequest::DescribeCustomizeReportChartListRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeCustomizeReportChartList")
{}
DescribeCustomizeReportChartListRequest::~DescribeCustomizeReportChartListRequest()
{}
std::string DescribeCustomizeReportChartListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCustomizeReportChartListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeCustomizeReportChartListRequest::getLang()const
{
return lang_;
}
void DescribeCustomizeReportChartListRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/aegis/model/DescribeCustomizeReportChartListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeCustomizeReportChartListResult::DescribeCustomizeReportChartListResult() :
ServiceResult()
{}
DescribeCustomizeReportChartListResult::DescribeCustomizeReportChartListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCustomizeReportChartListResult::~DescribeCustomizeReportChartListResult()
{}
void DescribeCustomizeReportChartListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allChartList = value["ChartList"]["chart"];
for (auto value : allChartList)
{
Chart chartListObject;
if(!value["ChartId"].isNull())
chartListObject.chartId = value["ChartId"].asString();
if(!value["ChartName"].isNull())
chartListObject.chartName = value["ChartName"].asString();
if(!value["Area"].isNull())
chartListObject.area = value["Area"].asString();
chartList_.push_back(chartListObject);
}
}
std::vector<DescribeCustomizeReportChartListResult::Chart> DescribeCustomizeReportChartListResult::getChartList()const
{
return chartList_;
}

View File

@@ -0,0 +1,60 @@
/*
* 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/aegis/model/DescribeCustomizeReportConfigDetailRequest.h>
using AlibabaCloud::Aegis::Model::DescribeCustomizeReportConfigDetailRequest;
DescribeCustomizeReportConfigDetailRequest::DescribeCustomizeReportConfigDetailRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeCustomizeReportConfigDetail")
{}
DescribeCustomizeReportConfigDetailRequest::~DescribeCustomizeReportConfigDetailRequest()
{}
std::string DescribeCustomizeReportConfigDetailRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCustomizeReportConfigDetailRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
long DescribeCustomizeReportConfigDetailRequest::getReportId()const
{
return reportId_;
}
void DescribeCustomizeReportConfigDetailRequest::setReportId(long reportId)
{
reportId_ = reportId;
setCoreParameter("ReportId", std::to_string(reportId));
}
std::string DescribeCustomizeReportConfigDetailRequest::getLang()const
{
return lang_;
}
void DescribeCustomizeReportConfigDetailRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}

View File

@@ -0,0 +1,132 @@
/*
* 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/aegis/model/DescribeCustomizeReportConfigDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeCustomizeReportConfigDetailResult::DescribeCustomizeReportConfigDetailResult() :
ServiceResult()
{}
DescribeCustomizeReportConfigDetailResult::DescribeCustomizeReportConfigDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCustomizeReportConfigDetailResult::~DescribeCustomizeReportConfigDetailResult()
{}
void DescribeCustomizeReportConfigDetailResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
if(!value["ReportId"].isNull())
reportId_ = std::stol(value["ReportId"].asString());
if(!value["Title"].isNull())
title_ = value["Title"].asString();
if(!value["ReportType"].isNull())
reportType_ = value["ReportType"].asString();
if(!value["ReportStatus"].isNull())
reportStatus_ = value["ReportStatus"].asString();
if(!value["SendTime"].isNull())
sendTime_ = value["SendTime"].asString();
if(!value["ReportSendType"].isNull())
reportSendType_ = value["ReportSendType"].asString();
if(!value["ReportStartDate"].isNull())
reportStartDate_ = value["ReportStartDate"].asString();
if(!value["ReportEndDate"].isNull())
reportEndDate_ = value["ReportEndDate"].asString();
if(!value["Recipients"].isNull())
recipients_ = value["Recipients"].asString();
if(!value["ChartIds"].isNull())
chartIds_ = value["ChartIds"].asString();
if(!value["IsDefault"].isNull())
isDefault_ = std::stoi(value["IsDefault"].asString());
if(!value["ReportLang"].isNull())
reportLang_ = value["ReportLang"].asString();
}
int DescribeCustomizeReportConfigDetailResult::getIsDefault()const
{
return isDefault_;
}
std::string DescribeCustomizeReportConfigDetailResult::getSendTime()const
{
return sendTime_;
}
std::string DescribeCustomizeReportConfigDetailResult::getChartIds()const
{
return chartIds_;
}
std::string DescribeCustomizeReportConfigDetailResult::getRecipients()const
{
return recipients_;
}
long DescribeCustomizeReportConfigDetailResult::getReportId()const
{
return reportId_;
}
std::string DescribeCustomizeReportConfigDetailResult::getTitle()const
{
return title_;
}
std::string DescribeCustomizeReportConfigDetailResult::getReportStatus()const
{
return reportStatus_;
}
std::string DescribeCustomizeReportConfigDetailResult::getReportStartDate()const
{
return reportStartDate_;
}
std::string DescribeCustomizeReportConfigDetailResult::getReportType()const
{
return reportType_;
}
std::string DescribeCustomizeReportConfigDetailResult::getReportLang()const
{
return reportLang_;
}
std::string DescribeCustomizeReportConfigDetailResult::getReportSendType()const
{
return reportSendType_;
}
std::string DescribeCustomizeReportConfigDetailResult::getReportEndDate()const
{
return reportEndDate_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/aegis/model/DescribeCustomizeReportListRequest.h>
using AlibabaCloud::Aegis::Model::DescribeCustomizeReportListRequest;
DescribeCustomizeReportListRequest::DescribeCustomizeReportListRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeCustomizeReportList")
{}
DescribeCustomizeReportListRequest::~DescribeCustomizeReportListRequest()
{}
int DescribeCustomizeReportListRequest::getReportType()const
{
return reportType_;
}
void DescribeCustomizeReportListRequest::setReportType(int reportType)
{
reportType_ = reportType;
setCoreParameter("ReportType", std::to_string(reportType));
}
std::string DescribeCustomizeReportListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCustomizeReportListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeCustomizeReportListRequest::getLang()const
{
return lang_;
}
void DescribeCustomizeReportListRequest::setLang(const std::string& lang)
{
lang_ = lang;
setCoreParameter("Lang", lang);
}
int DescribeCustomizeReportListRequest::getReportStatus()const
{
return reportStatus_;
}
void DescribeCustomizeReportListRequest::setReportStatus(int reportStatus)
{
reportStatus_ = reportStatus;
setCoreParameter("ReportStatus", std::to_string(reportStatus));
}
std::string DescribeCustomizeReportListRequest::getTitle()const
{
return title_;
}
void DescribeCustomizeReportListRequest::setTitle(const std::string& title)
{
title_ = title;
setCoreParameter("Title", title);
}

View File

@@ -0,0 +1,69 @@
/*
* 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/aegis/model/DescribeCustomizeReportListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeCustomizeReportListResult::DescribeCustomizeReportListResult() :
ServiceResult()
{}
DescribeCustomizeReportListResult::DescribeCustomizeReportListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCustomizeReportListResult::~DescribeCustomizeReportListResult()
{}
void DescribeCustomizeReportListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allReportList = value["ReportList"]["Report"];
for (auto value : allReportList)
{
Report reportListObject;
if(!value["ReportId"].isNull())
reportListObject.reportId = std::stol(value["ReportId"].asString());
if(!value["Title"].isNull())
reportListObject.title = value["Title"].asString();
if(!value["ReportType"].isNull())
reportListObject.reportType = std::stoi(value["ReportType"].asString());
if(!value["ReportStatus"].isNull())
reportListObject.reportStatus = value["ReportStatus"].asString();
if(!value["IsDefault"].isNull())
reportListObject.isDefault = value["IsDefault"].asString();
reportList_.push_back(reportListObject);
}
}
std::vector<DescribeCustomizeReportListResult::Report> DescribeCustomizeReportListResult::getReportList()const
{
return reportList_;
}

View File

@@ -25,6 +25,17 @@ DescribeDataSourceRequest::DescribeDataSourceRequest() :
DescribeDataSourceRequest::~DescribeDataSourceRequest()
{}
std::string DescribeDataSourceRequest::getConfigType()const
{
return configType_;
}
void DescribeDataSourceRequest::setConfigType(const std::string& configType)
{
configType_ = configType;
setCoreParameter("ConfigType", configType);
}
std::string DescribeDataSourceRequest::getSourceIp()const
{
return sourceIp_;
@@ -36,28 +47,6 @@ void DescribeDataSourceRequest::setSourceIp(const std::string& sourceIp)
setCoreParameter("SourceIp", sourceIp);
}
std::string DescribeDataSourceRequest::getDescription()const
{
return description_;
}
void DescribeDataSourceRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
long DescribeDataSourceRequest::getId()const
{
return id_;
}
void DescribeDataSourceRequest::setId(long id)
{
id_ = id;
setCoreParameter("Id", std::to_string(id));
}
std::string DescribeDataSourceRequest::getLang()const
{
return lang_;
@@ -69,14 +58,3 @@ void DescribeDataSourceRequest::setLang(const std::string& lang)
setCoreParameter("Lang", lang);
}
std::string DescribeDataSourceRequest::getGroupName()const
{
return groupName_;
}
void DescribeDataSourceRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}

View File

@@ -35,10 +35,13 @@ DescribeDataSourceResult::~DescribeDataSourceResult()
void DescribeDataSourceResult::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 allMetaDatas = value["MetaDatas"]["Data"];
for (auto value : allMetaDatas)
@@ -48,6 +51,8 @@ void DescribeDataSourceResult::parse(const std::string &payload)
metaDatasObject.dataSourceId = std::stoi(value["DataSourceId"].asString());
if(!value["DateSourceName"].isNull())
metaDatasObject.dateSourceName = value["DateSourceName"].asString();
if(!value["DataSourceName"].isNull())
metaDatasObject.dataSourceName = value["DataSourceName"].asString();
if(!value["Description"].isNull())
metaDatasObject.description = value["Description"].asString();
auto allMetaDataFields = value["MetaDataFields"]["MetaDataField"];

View File

@@ -35,10 +35,13 @@ DescribeDefenceThreadResult::~DescribeDefenceThreadResult()
void DescribeDefenceThreadResult::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 allDefenceAaggregatCountArray = value["DefenceAaggregatCountArray"]["IntegerItem"];
for (const auto &item : allDefenceAaggregatCountArray)

View File

@@ -35,15 +35,18 @@ DescribeDingTalkResult::~DescribeDingTalkResult()
void DescribeDingTalkResult::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 allActionList = value["ActionList"]["ActionListItem"];
auto allActionList = value["ActionList"]["ActionListArr"];
for (auto value : allActionList)
{
ActionListItem actionListObject;
ActionListArr actionListObject;
if(!value["GmtModified"].isNull())
actionListObject.gmtModified = std::stol(value["GmtModified"].asString());
if(!value["Id"].isNull())
@@ -75,7 +78,7 @@ DescribeDingTalkResult::PageInfo DescribeDingTalkResult::getPageInfo()const
return pageInfo_;
}
std::vector<DescribeDingTalkResult::ActionListItem> DescribeDingTalkResult::getActionList()const
std::vector<DescribeDingTalkResult::ActionListArr> DescribeDingTalkResult::getActionList()const
{
return actionList_;
}

View File

@@ -35,10 +35,13 @@ DescribeEcsStsStatusResult::~DescribeEcsStsStatusResult()
void DescribeEcsStsStatusResult::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());
if(!value["Grant"].isNull())
grant_ = value["Grant"].asString() == "true";

View File

@@ -35,10 +35,13 @@ DescribeEmgNoticeResult::~DescribeEmgNoticeResult()
void DescribeEmgNoticeResult::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 allEmgVulGroupList = value["EmgVulGroupList"]["EmgVulGroup"];
for (auto value : allEmgVulGroupList)

View File

@@ -35,10 +35,13 @@ DescribeEmgUserAgreementResult::~DescribeEmgUserAgreementResult()
void DescribeEmgUserAgreementResult::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());
if(!value["Auth"].isNull())
auth_ = value["Auth"].asString() == "true";

View File

@@ -35,10 +35,13 @@ DescribeEmgVulGroupResult::~DescribeEmgVulGroupResult()
void DescribeEmgVulGroupResult::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 allEmgVulGroupList = value["EmgVulGroupList"]["EmgVulGroup"];
for (auto value : allEmgVulGroupList)
@@ -58,6 +61,8 @@ void DescribeEmgVulGroupResult::parse(const std::string &payload)
emgVulGroupListObject.type = value["Type"].asString();
if(!value["Status"].isNull())
emgVulGroupListObject.status = std::stoi(value["Status"].asString());
if(!value["Progress"].isNull())
emgVulGroupListObject.progress = std::stoi(value["Progress"].asString());
emgVulGroupList_.push_back(emgVulGroupListObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -0,0 +1,192 @@
/*
* 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/aegis/model/DescribeEntityListRequest.h>
using AlibabaCloud::Aegis::Model::DescribeEntityListRequest;
DescribeEntityListRequest::DescribeEntityListRequest() :
RpcServiceRequest("aegis", "2016-11-11", "DescribeEntityList")
{}
DescribeEntityListRequest::~DescribeEntityListRequest()
{}
std::string DescribeEntityListRequest::getOs()const
{
return os_;
}
void DescribeEntityListRequest::setOs(const std::string& os)
{
os_ = os;
setCoreParameter("Os", os);
}
std::string DescribeEntityListRequest::getTagIdList()const
{
return tagIdList_;
}
void DescribeEntityListRequest::setTagIdList(const std::string& tagIdList)
{
tagIdList_ = tagIdList;
setCoreParameter("TagIdList", tagIdList);
}
long DescribeEntityListRequest::getGroupId()const
{
return groupId_;
}
void DescribeEntityListRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}
std::string DescribeEntityListRequest::getHealth()const
{
return health_;
}
void DescribeEntityListRequest::setHealth(const std::string& health)
{
health_ = health;
setCoreParameter("Health", health);
}
int DescribeEntityListRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeEntityListRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setCoreParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeEntityListRequest::getRemark()const
{
return remark_;
}
void DescribeEntityListRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setCoreParameter("Remark", remark);
}
std::string DescribeEntityListRequest::getTrojan()const
{
return trojan_;
}
void DescribeEntityListRequest::setTrojan(const std::string& trojan)
{
trojan_ = trojan;
setCoreParameter("Trojan", trojan);
}
std::string DescribeEntityListRequest::getSuspicious()const
{
return suspicious_;
}
void DescribeEntityListRequest::setSuspicious(const std::string& suspicious)
{
suspicious_ = suspicious;
setCoreParameter("Suspicious", suspicious);
}
std::string DescribeEntityListRequest::getRegionNo()const
{
return regionNo_;
}
void DescribeEntityListRequest::setRegionNo(const std::string& regionNo)
{
regionNo_ = regionNo;
setCoreParameter("RegionNo", regionNo);
}
std::string DescribeEntityListRequest::getPatch()const
{
return patch_;
}
void DescribeEntityListRequest::setPatch(const std::string& patch)
{
patch_ = patch;
setCoreParameter("Patch", patch);
}
std::string DescribeEntityListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeEntityListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setCoreParameter("SourceIp", sourceIp);
}
int DescribeEntityListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeEntityListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeEntityListRequest::getFrom()const
{
return from_;
}
void DescribeEntityListRequest::setFrom(const std::string& from)
{
from_ = from;
setCoreParameter("From", from);
}
std::string DescribeEntityListRequest::getAccount()const
{
return account_;
}
void DescribeEntityListRequest::setAccount(const std::string& account)
{
account_ = account;
setCoreParameter("Account", account);
}
std::string DescribeEntityListRequest::getStatus()const
{
return status_;
}
void DescribeEntityListRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}

View File

@@ -0,0 +1,102 @@
/*
* 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/aegis/model/DescribeEntityListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Aegis;
using namespace AlibabaCloud::Aegis::Model;
DescribeEntityListResult::DescribeEntityListResult() :
ServiceResult()
{}
DescribeEntityListResult::DescribeEntityListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeEntityListResult::~DescribeEntityListResult()
{}
void DescribeEntityListResult::parse(const std::string &payload)
{
Json::CharReaderBuilder builder;
Json::CharReader *reader = builder.newCharReader();
Json::Value *val;
Json::Value value;
JSONCPP_STRING *errs;
reader->parse(payload.data(), payload.data() + payload.size(), val, errs);
value = *val;
setRequestId(value["RequestId"].asString());
auto allEntityList = value["EntityList"]["Entity"];
for (auto value : allEntityList)
{
Entity entityListObject;
if(!value["AegisOnline"].isNull())
entityListObject.aegisOnline = value["AegisOnline"].asString() == "true";
if(!value["Flag"].isNull())
entityListObject.flag = std::stoi(value["Flag"].asString());
if(!value["Os"].isNull())
entityListObject.os = value["Os"].asString();
if(!value["InstanceName"].isNull())
entityListObject.instanceName = value["InstanceName"].asString();
if(!value["AegisVersion"].isNull())
entityListObject.aegisVersion = value["AegisVersion"].asString();
if(!value["GroupId"].isNull())
entityListObject.groupId = std::stol(value["GroupId"].asString());
if(!value["Ip"].isNull())
entityListObject.ip = value["Ip"].asString();
if(!value["ClientStatus"].isNull())
entityListObject.clientStatus = value["ClientStatus"].asString() == "true";
if(!value["Region"].isNull())
entityListObject.region = value["Region"].asString();
if(!value["BuyVersion"].isNull())
entityListObject.buyVersion = value["BuyVersion"].asString();
if(!value["Uuid"].isNull())
entityListObject.uuid = value["Uuid"].asString();
entityList_.push_back(entityListObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeEntityListResult::getTotalCount()const
{
return totalCount_;
}
int DescribeEntityListResult::getPageSize()const
{
return pageSize_;
}
int DescribeEntityListResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeEntityListResult::Entity> DescribeEntityListResult::getEntityList()const
{
return entityList_;
}

View File

@@ -35,10 +35,13 @@ DescribeEventCountCurveResult::~DescribeEventCountCurveResult()
void DescribeEventCountCurveResult::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 curveDataNode = value["CurveData"];
auto allItems = value["Items"]["Item"];

Some files were not shown because too many files have changed in this diff Show More