Change DescribeLogstoreStorage Response.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -34,15 +34,6 @@ void AddCheckInstanceResultWhiteListRequest::setSourceIp(const std::string &sour
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
long AddCheckInstanceResultWhiteListRequest::getCheckId() const {
|
||||
return checkId_;
|
||||
}
|
||||
|
||||
void AddCheckInstanceResultWhiteListRequest::setCheckId(long checkId) {
|
||||
checkId_ = checkId;
|
||||
setParameter(std::string("CheckId"), std::to_string(checkId));
|
||||
}
|
||||
|
||||
std::string AddCheckInstanceResultWhiteListRequest::getCheckGroupId() const {
|
||||
return checkGroupId_;
|
||||
}
|
||||
@@ -60,3 +51,12 @@ void AddCheckInstanceResultWhiteListRequest::setInstanceIds(const std::vector<st
|
||||
instanceIds_ = instanceIds;
|
||||
}
|
||||
|
||||
long AddCheckInstanceResultWhiteListRequest::getCheckId() const {
|
||||
return checkId_;
|
||||
}
|
||||
|
||||
void AddCheckInstanceResultWhiteListRequest::setCheckId(long checkId) {
|
||||
checkId_ = checkId;
|
||||
setParameter(std::string("CheckId"), std::to_string(checkId));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,33 +25,6 @@ AddInstallCodeRequest::AddInstallCodeRequest()
|
||||
|
||||
AddInstallCodeRequest::~AddInstallCodeRequest() {}
|
||||
|
||||
std::string AddInstallCodeRequest::getOs() const {
|
||||
return os_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setOs(const std::string &os) {
|
||||
os_ = os;
|
||||
setParameter(std::string("Os"), os);
|
||||
}
|
||||
|
||||
long AddInstallCodeRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setGroupId(long groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), std::to_string(groupId));
|
||||
}
|
||||
|
||||
bool AddInstallCodeRequest::getOnlyImage() const {
|
||||
return onlyImage_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setOnlyImage(bool onlyImage) {
|
||||
onlyImage_ = onlyImage;
|
||||
setParameter(std::string("OnlyImage"), onlyImage ? "true" : "false");
|
||||
}
|
||||
|
||||
long AddInstallCodeRequest::getExpiredDate() const {
|
||||
return expiredDate_;
|
||||
}
|
||||
@@ -70,6 +43,42 @@ void AddInstallCodeRequest::setSourceIp(const std::string &sourceIp) {
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string AddInstallCodeRequest::getOs() const {
|
||||
return os_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setOs(const std::string &os) {
|
||||
os_ = os;
|
||||
setParameter(std::string("Os"), os);
|
||||
}
|
||||
|
||||
long AddInstallCodeRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setGroupId(long groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string AddInstallCodeRequest::getProxyCluster() const {
|
||||
return proxyCluster_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setProxyCluster(const std::string &proxyCluster) {
|
||||
proxyCluster_ = proxyCluster;
|
||||
setParameter(std::string("ProxyCluster"), proxyCluster);
|
||||
}
|
||||
|
||||
bool AddInstallCodeRequest::getOnlyImage() const {
|
||||
return onlyImage_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setOnlyImage(bool onlyImage) {
|
||||
onlyImage_ = onlyImage;
|
||||
setParameter(std::string("OnlyImage"), onlyImage ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddInstallCodeRequest::getVendorName() const {
|
||||
return vendorName_;
|
||||
}
|
||||
|
||||
144
sas/src/model/AddPrivateRegistryRequest.cc
Normal file
144
sas/src/model/AddPrivateRegistryRequest.cc
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* 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/sas/model/AddPrivateRegistryRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::AddPrivateRegistryRequest;
|
||||
|
||||
AddPrivateRegistryRequest::AddPrivateRegistryRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "AddPrivateRegistry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddPrivateRegistryRequest::~AddPrivateRegistryRequest() {}
|
||||
|
||||
std::string AddPrivateRegistryRequest::getExtraParam() const {
|
||||
return extraParam_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setExtraParam(const std::string &extraParam) {
|
||||
extraParam_ = extraParam;
|
||||
setParameter(std::string("ExtraParam"), extraParam);
|
||||
}
|
||||
|
||||
std::string AddPrivateRegistryRequest::getRegistryVersion() const {
|
||||
return registryVersion_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setRegistryVersion(const std::string ®istryVersion) {
|
||||
registryVersion_ = registryVersion;
|
||||
setParameter(std::string("RegistryVersion"), registryVersion);
|
||||
}
|
||||
|
||||
std::string AddPrivateRegistryRequest::getRegistryHostIp() const {
|
||||
return registryHostIp_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setRegistryHostIp(const std::string ®istryHostIp) {
|
||||
registryHostIp_ = registryHostIp;
|
||||
setParameter(std::string("RegistryHostIp"), registryHostIp);
|
||||
}
|
||||
|
||||
std::string AddPrivateRegistryRequest::getPassword() const {
|
||||
return password_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setPassword(const std::string &password) {
|
||||
password_ = password;
|
||||
setParameter(std::string("Password"), password);
|
||||
}
|
||||
|
||||
std::string AddPrivateRegistryRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string AddPrivateRegistryRequest::getRegistryRegionId() const {
|
||||
return registryRegionId_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setRegistryRegionId(const std::string ®istryRegionId) {
|
||||
registryRegionId_ = registryRegionId;
|
||||
setParameter(std::string("RegistryRegionId"), registryRegionId);
|
||||
}
|
||||
|
||||
int AddPrivateRegistryRequest::getTransPerHour() const {
|
||||
return transPerHour_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setTransPerHour(int transPerHour) {
|
||||
transPerHour_ = transPerHour;
|
||||
setParameter(std::string("TransPerHour"), std::to_string(transPerHour));
|
||||
}
|
||||
|
||||
std::string AddPrivateRegistryRequest::getRegistryType() const {
|
||||
return registryType_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setRegistryType(const std::string ®istryType) {
|
||||
registryType_ = registryType;
|
||||
setParameter(std::string("RegistryType"), registryType);
|
||||
}
|
||||
|
||||
std::string AddPrivateRegistryRequest::getDomainName() const {
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setDomainName(const std::string &domainName) {
|
||||
domainName_ = domainName;
|
||||
setParameter(std::string("DomainName"), domainName);
|
||||
}
|
||||
|
||||
long AddPrivateRegistryRequest::getNetType() const {
|
||||
return netType_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setNetType(long netType) {
|
||||
netType_ = netType;
|
||||
setParameter(std::string("NetType"), std::to_string(netType));
|
||||
}
|
||||
|
||||
std::string AddPrivateRegistryRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
long AddPrivateRegistryRequest::getProtocolType() const {
|
||||
return protocolType_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setProtocolType(long protocolType) {
|
||||
protocolType_ = protocolType;
|
||||
setParameter(std::string("ProtocolType"), std::to_string(protocolType));
|
||||
}
|
||||
|
||||
std::string AddPrivateRegistryRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void AddPrivateRegistryRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
78
sas/src/model/AddPrivateRegistryResult.cc
Normal file
78
sas/src/model/AddPrivateRegistryResult.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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/sas/model/AddPrivateRegistryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
AddPrivateRegistryResult::AddPrivateRegistryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddPrivateRegistryResult::AddPrivateRegistryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddPrivateRegistryResult::~AddPrivateRegistryResult()
|
||||
{}
|
||||
|
||||
void AddPrivateRegistryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["VpcId"].isNull())
|
||||
data_.vpcId = dataNode["VpcId"].asString();
|
||||
if(!dataNode["Token"].isNull())
|
||||
data_.token = dataNode["Token"].asString();
|
||||
if(!dataNode["TransPerHour"].isNull())
|
||||
data_.transPerHour = std::stoi(dataNode["TransPerHour"].asString());
|
||||
if(!dataNode["AliUid"].isNull())
|
||||
data_.aliUid = std::stol(dataNode["AliUid"].asString());
|
||||
if(!dataNode["RegistryType"].isNull())
|
||||
data_.registryType = dataNode["RegistryType"].asString();
|
||||
if(!dataNode["DomainName"].isNull())
|
||||
data_.domainName = dataNode["DomainName"].asString();
|
||||
if(!dataNode["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].asString();
|
||||
if(!dataNode["Password"].isNull())
|
||||
data_.password = dataNode["Password"].asString();
|
||||
if(!dataNode["NetType"].isNull())
|
||||
data_.netType = std::stol(dataNode["NetType"].asString());
|
||||
if(!dataNode["RegistryVersion"].isNull())
|
||||
data_.registryVersion = dataNode["RegistryVersion"].asString();
|
||||
if(!dataNode["ProtocolType"].isNull())
|
||||
data_.protocolType = std::stol(dataNode["ProtocolType"].asString());
|
||||
if(!dataNode["RegistryHostIp"].isNull())
|
||||
data_.registryHostIp = dataNode["RegistryHostIp"].asString();
|
||||
if(!dataNode["UserName"].isNull())
|
||||
data_.userName = dataNode["UserName"].asString();
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
|
||||
}
|
||||
|
||||
AddPrivateRegistryResult::Data AddPrivateRegistryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -33,6 +33,15 @@ void ChangeCheckConfigRequest::setStandardIds(const std::vector<long> &standardI
|
||||
standardIds_ = standardIds;
|
||||
}
|
||||
|
||||
int ChangeCheckConfigRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ChangeCheckConfigRequest::setEndTime(int endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::vector<int> ChangeCheckConfigRequest::getCycleDays() const {
|
||||
return cycleDays_;
|
||||
}
|
||||
@@ -68,12 +77,3 @@ void ChangeCheckConfigRequest::setRegionId(const std::string ®ionId) {
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int ChangeCheckConfigRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ChangeCheckConfigRequest::setEndTime(int endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,15 +25,6 @@ CreateContainerScanTaskRequest::CreateContainerScanTaskRequest()
|
||||
|
||||
CreateContainerScanTaskRequest::~CreateContainerScanTaskRequest() {}
|
||||
|
||||
std::string CreateContainerScanTaskRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateContainerScanTaskRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string CreateContainerScanTaskRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
@@ -52,3 +43,12 @@ void CreateContainerScanTaskRequest::setContainerIds(const std::string &containe
|
||||
setParameter(std::string("ContainerIds"), containerIds);
|
||||
}
|
||||
|
||||
std::string CreateContainerScanTaskRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateContainerScanTaskRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
|
||||
117
sas/src/model/CreateInterceptionRuleRequest.cc
Normal file
117
sas/src/model/CreateInterceptionRuleRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/sas/model/CreateInterceptionRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::CreateInterceptionRuleRequest;
|
||||
|
||||
CreateInterceptionRuleRequest::CreateInterceptionRuleRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "CreateInterceptionRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInterceptionRuleRequest::~CreateInterceptionRuleRequest() {}
|
||||
|
||||
std::string CreateInterceptionRuleRequest::getClusterName() const {
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void CreateInterceptionRuleRequest::setClusterName(const std::string &clusterName) {
|
||||
clusterName_ = clusterName;
|
||||
setParameter(std::string("ClusterName"), clusterName);
|
||||
}
|
||||
|
||||
std::string CreateInterceptionRuleRequest::getRuleName() const {
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void CreateInterceptionRuleRequest::setRuleName(const std::string &ruleName) {
|
||||
ruleName_ = ruleName;
|
||||
setParameter(std::string("RuleName"), ruleName);
|
||||
}
|
||||
|
||||
std::string CreateInterceptionRuleRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateInterceptionRuleRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateInterceptionRuleRequest::getDstTargetList() const {
|
||||
return dstTargetList_;
|
||||
}
|
||||
|
||||
void CreateInterceptionRuleRequest::setDstTargetList(const std::string &dstTargetList) {
|
||||
dstTargetList_ = dstTargetList;
|
||||
setParameter(std::string("DstTargetList"), dstTargetList);
|
||||
}
|
||||
|
||||
long CreateInterceptionRuleRequest::getOrderIndex() const {
|
||||
return orderIndex_;
|
||||
}
|
||||
|
||||
void CreateInterceptionRuleRequest::setOrderIndex(long orderIndex) {
|
||||
orderIndex_ = orderIndex;
|
||||
setParameter(std::string("OrderIndex"), std::to_string(orderIndex));
|
||||
}
|
||||
|
||||
std::string CreateInterceptionRuleRequest::getRuleType() const {
|
||||
return ruleType_;
|
||||
}
|
||||
|
||||
void CreateInterceptionRuleRequest::setRuleType(const std::string &ruleType) {
|
||||
ruleType_ = ruleType;
|
||||
setParameter(std::string("RuleType"), ruleType);
|
||||
}
|
||||
|
||||
std::string CreateInterceptionRuleRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateInterceptionRuleRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
long CreateInterceptionRuleRequest::getInterceptType() const {
|
||||
return interceptType_;
|
||||
}
|
||||
|
||||
void CreateInterceptionRuleRequest::setInterceptType(long interceptType) {
|
||||
interceptType_ = interceptType;
|
||||
setParameter(std::string("InterceptType"), std::to_string(interceptType));
|
||||
}
|
||||
|
||||
int CreateInterceptionRuleRequest::getRuleSwitch() const {
|
||||
return ruleSwitch_;
|
||||
}
|
||||
|
||||
void CreateInterceptionRuleRequest::setRuleSwitch(int ruleSwitch) {
|
||||
ruleSwitch_ = ruleSwitch;
|
||||
setParameter(std::string("RuleSwitch"), std::to_string(ruleSwitch));
|
||||
}
|
||||
|
||||
std::string CreateInterceptionRuleRequest::getSrcTarget() const {
|
||||
return srcTarget_;
|
||||
}
|
||||
|
||||
void CreateInterceptionRuleRequest::setSrcTarget(const std::string &srcTarget) {
|
||||
srcTarget_ = srcTarget;
|
||||
setParameter(std::string("SrcTarget"), srcTarget);
|
||||
}
|
||||
|
||||
44
sas/src/model/CreateInterceptionRuleResult.cc
Normal file
44
sas/src/model/CreateInterceptionRuleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/sas/model/CreateInterceptionRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
CreateInterceptionRuleResult::CreateInterceptionRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateInterceptionRuleResult::CreateInterceptionRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateInterceptionRuleResult::~CreateInterceptionRuleResult()
|
||||
{}
|
||||
|
||||
void CreateInterceptionRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
106
sas/src/model/CreateInterceptionTargetRequest.cc
Normal file
106
sas/src/model/CreateInterceptionTargetRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/sas/model/CreateInterceptionTargetRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::CreateInterceptionTargetRequest;
|
||||
|
||||
CreateInterceptionTargetRequest::CreateInterceptionTargetRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "CreateInterceptionTarget") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInterceptionTargetRequest::~CreateInterceptionTargetRequest() {}
|
||||
|
||||
std::string CreateInterceptionTargetRequest::getTargetType() const {
|
||||
return targetType_;
|
||||
}
|
||||
|
||||
void CreateInterceptionTargetRequest::setTargetType(const std::string &targetType) {
|
||||
targetType_ = targetType;
|
||||
setParameter(std::string("TargetType"), targetType);
|
||||
}
|
||||
|
||||
std::string CreateInterceptionTargetRequest::getClusterName() const {
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void CreateInterceptionTargetRequest::setClusterName(const std::string &clusterName) {
|
||||
clusterName_ = clusterName;
|
||||
setParameter(std::string("ClusterName"), clusterName);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateInterceptionTargetRequest::getImageList() const {
|
||||
return imageList_;
|
||||
}
|
||||
|
||||
void CreateInterceptionTargetRequest::setImageList(const std::vector<std::string> &imageList) {
|
||||
imageList_ = imageList;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateInterceptionTargetRequest::getTagList() const {
|
||||
return tagList_;
|
||||
}
|
||||
|
||||
void CreateInterceptionTargetRequest::setTagList(const std::vector<std::string> &tagList) {
|
||||
tagList_ = tagList;
|
||||
}
|
||||
|
||||
std::string CreateInterceptionTargetRequest::getTargetName() const {
|
||||
return targetName_;
|
||||
}
|
||||
|
||||
void CreateInterceptionTargetRequest::setTargetName(const std::string &targetName) {
|
||||
targetName_ = targetName;
|
||||
setParameter(std::string("TargetName"), targetName);
|
||||
}
|
||||
|
||||
std::string CreateInterceptionTargetRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateInterceptionTargetRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateInterceptionTargetRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateInterceptionTargetRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string CreateInterceptionTargetRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateInterceptionTargetRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string CreateInterceptionTargetRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void CreateInterceptionTargetRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
51
sas/src/model/CreateInterceptionTargetResult.cc
Normal file
51
sas/src/model/CreateInterceptionTargetResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/sas/model/CreateInterceptionTargetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
CreateInterceptionTargetResult::CreateInterceptionTargetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateInterceptionTargetResult::CreateInterceptionTargetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateInterceptionTargetResult::~CreateInterceptionTargetResult()
|
||||
{}
|
||||
|
||||
void CreateInterceptionTargetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CreateInterceptionTargetResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void DeleteBackupPolicyMachineRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteBackupPolicyMachineRequest::getPolicyVersion() const {
|
||||
return policyVersion_;
|
||||
}
|
||||
|
||||
void DeleteBackupPolicyMachineRequest::setPolicyVersion(const std::string &policyVersion) {
|
||||
policyVersion_ = policyVersion;
|
||||
setParameter(std::string("PolicyVersion"), policyVersion);
|
||||
}
|
||||
|
||||
std::string DeleteBackupPolicyMachineRequest::getUuid() const {
|
||||
return uuid_;
|
||||
}
|
||||
@@ -69,12 +78,3 @@ void DeleteBackupPolicyMachineRequest::setUuidList(const std::vector<std::string
|
||||
uuidList_ = uuidList;
|
||||
}
|
||||
|
||||
std::string DeleteBackupPolicyMachineRequest::getPolicyVersion() const {
|
||||
return policyVersion_;
|
||||
}
|
||||
|
||||
void DeleteBackupPolicyMachineRequest::setPolicyVersion(const std::string &policyVersion) {
|
||||
policyVersion_ = policyVersion;
|
||||
setParameter(std::string("PolicyVersion"), policyVersion);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,15 @@ void DeleteBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteBackupPolicyRequest::getPolicyVersion() const {
|
||||
return policyVersion_;
|
||||
}
|
||||
|
||||
void DeleteBackupPolicyRequest::setPolicyVersion(const std::string &policyVersion) {
|
||||
policyVersion_ = policyVersion;
|
||||
setParameter(std::string("PolicyVersion"), policyVersion);
|
||||
}
|
||||
|
||||
std::string DeleteBackupPolicyRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -52,12 +61,3 @@ void DeleteBackupPolicyRequest::setId(long id) {
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string DeleteBackupPolicyRequest::getPolicyVersion() const {
|
||||
return policyVersion_;
|
||||
}
|
||||
|
||||
void DeleteBackupPolicyRequest::setPolicyVersion(const std::string &policyVersion) {
|
||||
policyVersion_ = policyVersion;
|
||||
setParameter(std::string("PolicyVersion"), policyVersion);
|
||||
}
|
||||
|
||||
|
||||
45
sas/src/model/DeletePrivateRegistryRequest.cc
Normal file
45
sas/src/model/DeletePrivateRegistryRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/sas/model/DeletePrivateRegistryRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DeletePrivateRegistryRequest;
|
||||
|
||||
DeletePrivateRegistryRequest::DeletePrivateRegistryRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "DeletePrivateRegistry") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePrivateRegistryRequest::~DeletePrivateRegistryRequest() {}
|
||||
|
||||
long DeletePrivateRegistryRequest::getRegistryId() const {
|
||||
return registryId_;
|
||||
}
|
||||
|
||||
void DeletePrivateRegistryRequest::setRegistryId(long registryId) {
|
||||
registryId_ = registryId;
|
||||
setParameter(std::string("RegistryId"), std::to_string(registryId));
|
||||
}
|
||||
|
||||
std::string DeletePrivateRegistryRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeletePrivateRegistryRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
51
sas/src/model/DeletePrivateRegistryResult.cc
Normal file
51
sas/src/model/DeletePrivateRegistryResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/sas/model/DeletePrivateRegistryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DeletePrivateRegistryResult::DeletePrivateRegistryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePrivateRegistryResult::DeletePrivateRegistryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePrivateRegistryResult::~DeletePrivateRegistryResult()
|
||||
{}
|
||||
|
||||
void DeletePrivateRegistryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeletePrivateRegistryResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void DescribeAntiBruteForceRulesRequest::setResourceOwnerId(long resourceOwnerId
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeAntiBruteForceRulesRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeAntiBruteForceRulesRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeAntiBruteForceRulesRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -43,6 +52,15 @@ void DescribeAntiBruteForceRulesRequest::setSourceIp(const std::string &sourceIp
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAntiBruteForceRulesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAntiBruteForceRulesRequest::setPageSize(const std::string &pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), pageSize);
|
||||
}
|
||||
|
||||
long DescribeAntiBruteForceRulesRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
72
sas/src/model/DescribeAssetsSecurityEventSummaryRequest.cc
Normal file
72
sas/src/model/DescribeAssetsSecurityEventSummaryRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/sas/model/DescribeAssetsSecurityEventSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeAssetsSecurityEventSummaryRequest;
|
||||
|
||||
DescribeAssetsSecurityEventSummaryRequest::DescribeAssetsSecurityEventSummaryRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "DescribeAssetsSecurityEventSummary") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAssetsSecurityEventSummaryRequest::~DescribeAssetsSecurityEventSummaryRequest() {}
|
||||
|
||||
long DescribeAssetsSecurityEventSummaryRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeAssetsSecurityEventSummaryRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeAssetsSecurityEventSummaryRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeAssetsSecurityEventSummaryRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeAssetsSecurityEventSummaryRequest::getContainerFieldName() const {
|
||||
return containerFieldName_;
|
||||
}
|
||||
|
||||
void DescribeAssetsSecurityEventSummaryRequest::setContainerFieldName(const std::string &containerFieldName) {
|
||||
containerFieldName_ = containerFieldName;
|
||||
setParameter(std::string("ContainerFieldName"), containerFieldName);
|
||||
}
|
||||
|
||||
std::string DescribeAssetsSecurityEventSummaryRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeAssetsSecurityEventSummaryRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeAssetsSecurityEventSummaryRequest::getContainerFieldValue() const {
|
||||
return containerFieldValue_;
|
||||
}
|
||||
|
||||
void DescribeAssetsSecurityEventSummaryRequest::setContainerFieldValue(const std::string &containerFieldValue) {
|
||||
containerFieldValue_ = containerFieldValue;
|
||||
setParameter(std::string("ContainerFieldValue"), containerFieldValue);
|
||||
}
|
||||
|
||||
61
sas/src/model/DescribeAssetsSecurityEventSummaryResult.cc
Normal file
61
sas/src/model/DescribeAssetsSecurityEventSummaryResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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/sas/model/DescribeAssetsSecurityEventSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeAssetsSecurityEventSummaryResult::DescribeAssetsSecurityEventSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAssetsSecurityEventSummaryResult::DescribeAssetsSecurityEventSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAssetsSecurityEventSummaryResult::~DescribeAssetsSecurityEventSummaryResult()
|
||||
{}
|
||||
|
||||
void DescribeAssetsSecurityEventSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAssetsNode = value["Assets"]["RiskAssetCount"];
|
||||
for (auto valueAssetsRiskAssetCount : allAssetsNode)
|
||||
{
|
||||
RiskAssetCount assetsObject;
|
||||
if(!valueAssetsRiskAssetCount["RiskCount"].isNull())
|
||||
assetsObject.riskCount = std::stol(valueAssetsRiskAssetCount["RiskCount"].asString());
|
||||
if(!valueAssetsRiskAssetCount["TotalCount"].isNull())
|
||||
assetsObject.totalCount = std::stol(valueAssetsRiskAssetCount["TotalCount"].asString());
|
||||
if(!valueAssetsRiskAssetCount["AssetType"].isNull())
|
||||
assetsObject.assetType = valueAssetsRiskAssetCount["AssetType"].asString();
|
||||
assets_.push_back(assetsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAssetsSecurityEventSummaryResult::RiskAssetCount> DescribeAssetsSecurityEventSummaryResult::getAssets()const
|
||||
{
|
||||
return assets_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,24 @@ DescribeBackUpExportInfoRequest::DescribeBackUpExportInfoRequest()
|
||||
|
||||
DescribeBackUpExportInfoRequest::~DescribeBackUpExportInfoRequest() {}
|
||||
|
||||
std::string DescribeBackUpExportInfoRequest::getExportType() const {
|
||||
return exportType_;
|
||||
}
|
||||
|
||||
void DescribeBackUpExportInfoRequest::setExportType(const std::string &exportType) {
|
||||
exportType_ = exportType;
|
||||
setParameter(std::string("ExportType"), exportType);
|
||||
}
|
||||
|
||||
int DescribeBackUpExportInfoRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeBackUpExportInfoRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeBackUpExportInfoRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -52,21 +70,3 @@ void DescribeBackUpExportInfoRequest::setLang(const std::string &lang) {
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string DescribeBackUpExportInfoRequest::getExportType() const {
|
||||
return exportType_;
|
||||
}
|
||||
|
||||
void DescribeBackUpExportInfoRequest::setExportType(const std::string &exportType) {
|
||||
exportType_ = exportType;
|
||||
setParameter(std::string("ExportType"), exportType);
|
||||
}
|
||||
|
||||
int DescribeBackUpExportInfoRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeBackUpExportInfoRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,15 @@ void DescribeBackupMachineStatusRequest::setResourceOwnerId(long resourceOwnerId
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeBackupMachineStatusRequest::getPolicyVersion() const {
|
||||
return policyVersion_;
|
||||
}
|
||||
|
||||
void DescribeBackupMachineStatusRequest::setPolicyVersion(const std::string &policyVersion) {
|
||||
policyVersion_ = policyVersion;
|
||||
setParameter(std::string("PolicyVersion"), policyVersion);
|
||||
}
|
||||
|
||||
std::string DescribeBackupMachineStatusRequest::getUuid() const {
|
||||
return uuid_;
|
||||
}
|
||||
@@ -61,12 +70,3 @@ void DescribeBackupMachineStatusRequest::setPolicyId(long policyId) {
|
||||
setParameter(std::string("PolicyId"), std::to_string(policyId));
|
||||
}
|
||||
|
||||
std::string DescribeBackupMachineStatusRequest::getPolicyVersion() const {
|
||||
return policyVersion_;
|
||||
}
|
||||
|
||||
void DescribeBackupMachineStatusRequest::setPolicyVersion(const std::string &policyVersion) {
|
||||
policyVersion_ = policyVersion;
|
||||
setParameter(std::string("PolicyVersion"), policyVersion);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,15 +25,6 @@ DescribeCheckFixDetailsRequest::DescribeCheckFixDetailsRequest()
|
||||
|
||||
DescribeCheckFixDetailsRequest::~DescribeCheckFixDetailsRequest() {}
|
||||
|
||||
std::string DescribeCheckFixDetailsRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeCheckFixDetailsRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string DescribeCheckFixDetailsRequest::getCheckIds() const {
|
||||
return checkIds_;
|
||||
}
|
||||
@@ -52,3 +43,12 @@ void DescribeCheckFixDetailsRequest::setRiskId(long riskId) {
|
||||
setParameter(std::string("RiskId"), std::to_string(riskId));
|
||||
}
|
||||
|
||||
std::string DescribeCheckFixDetailsRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeCheckFixDetailsRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeCheckWarningMachinesRequest::DescribeCheckWarningMachinesRequest()
|
||||
|
||||
DescribeCheckWarningMachinesRequest::~DescribeCheckWarningMachinesRequest() {}
|
||||
|
||||
long DescribeCheckWarningMachinesRequest::getRiskId() const {
|
||||
return riskId_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningMachinesRequest::setRiskId(long riskId) {
|
||||
riskId_ = riskId;
|
||||
setParameter(std::string("RiskId"), std::to_string(riskId));
|
||||
}
|
||||
|
||||
std::string DescribeCheckWarningMachinesRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
@@ -43,15 +52,6 @@ void DescribeCheckWarningMachinesRequest::setCheckId(long checkId) {
|
||||
setParameter(std::string("CheckId"), std::to_string(checkId));
|
||||
}
|
||||
|
||||
long DescribeCheckWarningMachinesRequest::getRiskId() const {
|
||||
return riskId_;
|
||||
}
|
||||
|
||||
void DescribeCheckWarningMachinesRequest::setRiskId(long riskId) {
|
||||
riskId_ = riskId;
|
||||
setParameter(std::string("RiskId"), std::to_string(riskId));
|
||||
}
|
||||
|
||||
int DescribeCheckWarningMachinesRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeClientConfSetupRequest::DescribeClientConfSetupRequest()
|
||||
|
||||
DescribeClientConfSetupRequest::~DescribeClientConfSetupRequest() {}
|
||||
|
||||
std::string DescribeClientConfSetupRequest::getStrategyTagValue() const {
|
||||
return strategyTagValue_;
|
||||
}
|
||||
|
||||
void DescribeClientConfSetupRequest::setStrategyTagValue(const std::string &strategyTagValue) {
|
||||
strategyTagValue_ = strategyTagValue;
|
||||
setParameter(std::string("StrategyTagValue"), strategyTagValue);
|
||||
}
|
||||
|
||||
std::string DescribeClientConfSetupRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -52,12 +61,3 @@ void DescribeClientConfSetupRequest::setResourceDirectoryAccountId(const std::st
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
std::string DescribeClientConfSetupRequest::getStrategyTagValue() const {
|
||||
return strategyTagValue_;
|
||||
}
|
||||
|
||||
void DescribeClientConfSetupRequest::setStrategyTagValue(const std::string &strategyTagValue) {
|
||||
strategyTagValue_ = strategyTagValue;
|
||||
setParameter(std::string("StrategyTagValue"), strategyTagValue);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeClientConfStrategyRequest::DescribeClientConfStrategyRequest()
|
||||
|
||||
DescribeClientConfStrategyRequest::~DescribeClientConfStrategyRequest() {}
|
||||
|
||||
std::string DescribeClientConfStrategyRequest::getTagValue() const {
|
||||
return tagValue_;
|
||||
}
|
||||
|
||||
void DescribeClientConfStrategyRequest::setTagValue(const std::string &tagValue) {
|
||||
tagValue_ = tagValue;
|
||||
setParameter(std::string("TagValue"), tagValue);
|
||||
}
|
||||
|
||||
std::string DescribeClientConfStrategyRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -52,12 +61,3 @@ void DescribeClientConfStrategyRequest::setResourceDirectoryAccountId(const std:
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
std::string DescribeClientConfStrategyRequest::getTagValue() const {
|
||||
return tagValue_;
|
||||
}
|
||||
|
||||
void DescribeClientConfStrategyRequest::setTagValue(const std::string &tagValue) {
|
||||
tagValue_ = tagValue;
|
||||
setParameter(std::string("TagValue"), tagValue);
|
||||
}
|
||||
|
||||
|
||||
99
sas/src/model/DescribeContainerTagsRequest.cc
Normal file
99
sas/src/model/DescribeContainerTagsRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* 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/sas/model/DescribeContainerTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeContainerTagsRequest;
|
||||
|
||||
DescribeContainerTagsRequest::DescribeContainerTagsRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "DescribeContainerTags") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeContainerTagsRequest::~DescribeContainerTagsRequest() {}
|
||||
|
||||
std::string DescribeContainerTagsRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeContainerTagsRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeContainerTagsRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void DescribeContainerTagsRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
int DescribeContainerTagsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeContainerTagsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeContainerTagsRequest::getFieldValue() const {
|
||||
return fieldValue_;
|
||||
}
|
||||
|
||||
void DescribeContainerTagsRequest::setFieldValue(const std::string &fieldValue) {
|
||||
fieldValue_ = fieldValue;
|
||||
setParameter(std::string("FieldValue"), fieldValue);
|
||||
}
|
||||
|
||||
int DescribeContainerTagsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeContainerTagsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeContainerTagsRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeContainerTagsRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeContainerTagsRequest::getFieldName() const {
|
||||
return fieldName_;
|
||||
}
|
||||
|
||||
void DescribeContainerTagsRequest::setFieldName(const std::string &fieldName) {
|
||||
fieldName_ = fieldName;
|
||||
setParameter(std::string("FieldName"), fieldName);
|
||||
}
|
||||
|
||||
std::string DescribeContainerTagsRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeContainerTagsRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
52
sas/src/model/DescribeContainerTagsResult.cc
Normal file
52
sas/src/model/DescribeContainerTagsResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* 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/sas/model/DescribeContainerTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeContainerTagsResult::DescribeContainerTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeContainerTagsResult::DescribeContainerTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeContainerTagsResult::~DescribeContainerTagsResult()
|
||||
{}
|
||||
|
||||
void DescribeContainerTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagValues = value["TagValues"]["tagValue"];
|
||||
for (const auto &item : allTagValues)
|
||||
tagValues_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeContainerTagsResult::getTagValues()const
|
||||
{
|
||||
return tagValues_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void DescribeExcludeSystemPathRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeExcludeSystemPathRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeExcludeSystemPathRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeExcludeSystemPathRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -52,12 +61,3 @@ void DescribeExcludeSystemPathRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeExcludeSystemPathRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeExcludeSystemPathRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
|
||||
45
sas/src/model/DescribeGroupStructRequest.cc
Normal file
45
sas/src/model/DescribeGroupStructRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/sas/model/DescribeGroupStructRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeGroupStructRequest;
|
||||
|
||||
DescribeGroupStructRequest::DescribeGroupStructRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "DescribeGroupStruct") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeGroupStructRequest::~DescribeGroupStructRequest() {}
|
||||
|
||||
std::string DescribeGroupStructRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeGroupStructRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeGroupStructRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeGroupStructRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
101
sas/src/model/DescribeGroupStructResult.cc
Normal file
101
sas/src/model/DescribeGroupStructResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/sas/model/DescribeGroupStructResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeGroupStructResult::DescribeGroupStructResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeGroupStructResult::DescribeGroupStructResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeGroupStructResult::~DescribeGroupStructResult()
|
||||
{}
|
||||
|
||||
void DescribeGroupStructResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGroups = value["Groups"]["Group"];
|
||||
for (const auto &item : allGroups)
|
||||
groups_.push_back(item.asString());
|
||||
if(!value["GroupId"].isNull())
|
||||
groupId_ = std::stol(value["GroupId"].asString());
|
||||
if(!value["GroupName"].isNull())
|
||||
groupName_ = value["GroupName"].asString();
|
||||
if(!value["MachineNum"].isNull())
|
||||
machineNum_ = std::stoi(value["MachineNum"].asString());
|
||||
if(!value["GroupIndex"].isNull())
|
||||
groupIndex_ = std::stoi(value["GroupIndex"].asString());
|
||||
if(!value["GroupFather"].isNull())
|
||||
groupFather_ = std::stoi(value["GroupFather"].asString());
|
||||
if(!value["GroupLevel"].isNull())
|
||||
groupLevel_ = std::stoi(value["GroupLevel"].asString());
|
||||
if(!value["GroupFlag"].isNull())
|
||||
groupFlag_ = std::stoi(value["GroupFlag"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeGroupStructResult::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
int DescribeGroupStructResult::getMachineNum()const
|
||||
{
|
||||
return machineNum_;
|
||||
}
|
||||
|
||||
int DescribeGroupStructResult::getGroupLevel()const
|
||||
{
|
||||
return groupLevel_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeGroupStructResult::getGroups()const
|
||||
{
|
||||
return groups_;
|
||||
}
|
||||
|
||||
int DescribeGroupStructResult::getGroupIndex()const
|
||||
{
|
||||
return groupIndex_;
|
||||
}
|
||||
|
||||
int DescribeGroupStructResult::getGroupFather()const
|
||||
{
|
||||
return groupFather_;
|
||||
}
|
||||
|
||||
int DescribeGroupStructResult::getGroupFlag()const
|
||||
{
|
||||
return groupFlag_;
|
||||
}
|
||||
|
||||
long DescribeGroupStructResult::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,24 @@ DescribeGroupedVulRequest::DescribeGroupedVulRequest()
|
||||
|
||||
DescribeGroupedVulRequest::~DescribeGroupedVulRequest() {}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getStatusList() const {
|
||||
return statusList_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setStatusList(const std::string &statusList) {
|
||||
statusList_ = statusList;
|
||||
setParameter(std::string("StatusList"), statusList);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getTargetType() const {
|
||||
return targetType_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setTargetType(const std::string &targetType) {
|
||||
targetType_ = targetType;
|
||||
setParameter(std::string("TargetType"), targetType);
|
||||
}
|
||||
|
||||
int DescribeGroupedVulRequest::getMinScore() const {
|
||||
return minScore_;
|
||||
}
|
||||
@@ -34,6 +52,15 @@ void DescribeGroupedVulRequest::setMinScore(int minScore) {
|
||||
setParameter(std::string("MinScore"), std::to_string(minScore));
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getCveId() const {
|
||||
return cveId_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setCveId(const std::string &cveId) {
|
||||
cveId_ = cveId;
|
||||
setParameter(std::string("CveId"), cveId);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getAttachTypes() const {
|
||||
return attachTypes_;
|
||||
}
|
||||
@@ -97,114 +124,6 @@ void DescribeGroupedVulRequest::setSourceIp(const std::string &sourceIp) {
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getLevel() const {
|
||||
return level_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setLevel(const std::string &level) {
|
||||
level_ = level;
|
||||
setParameter(std::string("Level"), level);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getOrderBy() const {
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setOrderBy(const std::string &orderBy) {
|
||||
orderBy_ = orderBy;
|
||||
setParameter(std::string("OrderBy"), orderBy);
|
||||
}
|
||||
|
||||
long DescribeGroupedVulRequest::getPatchId() const {
|
||||
return patchId_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setPatchId(long patchId) {
|
||||
patchId_ = patchId;
|
||||
setParameter(std::string("PatchId"), std::to_string(patchId));
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getAliasName() const {
|
||||
return aliasName_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setAliasName(const std::string &aliasName) {
|
||||
aliasName_ = aliasName;
|
||||
setParameter(std::string("AliasName"), aliasName);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
long DescribeGroupedVulRequest::getCreateTsEnd() const {
|
||||
return createTsEnd_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setCreateTsEnd(long createTsEnd) {
|
||||
createTsEnd_ = createTsEnd;
|
||||
setParameter(std::string("CreateTsEnd"), std::to_string(createTsEnd));
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getNecessity() const {
|
||||
return necessity_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setNecessity(const std::string &necessity) {
|
||||
necessity_ = necessity;
|
||||
setParameter(std::string("Necessity"), necessity);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getUuids() const {
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setUuids(const std::string &uuids) {
|
||||
uuids_ = uuids;
|
||||
setParameter(std::string("Uuids"), uuids);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getStatusList() const {
|
||||
return statusList_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setStatusList(const std::string &statusList) {
|
||||
statusList_ = statusList;
|
||||
setParameter(std::string("StatusList"), statusList);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getTargetType() const {
|
||||
return targetType_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setTargetType(const std::string &targetType) {
|
||||
targetType_ = targetType;
|
||||
setParameter(std::string("TargetType"), targetType);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getCveId() const {
|
||||
return cveId_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setCveId(const std::string &cveId) {
|
||||
cveId_ = cveId;
|
||||
setParameter(std::string("CveId"), cveId);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getContainerFieldValue() const {
|
||||
return containerFieldValue_;
|
||||
}
|
||||
@@ -259,6 +178,33 @@ void DescribeGroupedVulRequest::setDirection(const std::string &direction) {
|
||||
setParameter(std::string("Direction"), direction);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getLevel() const {
|
||||
return level_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setLevel(const std::string &level) {
|
||||
level_ = level;
|
||||
setParameter(std::string("Level"), level);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getOrderBy() const {
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setOrderBy(const std::string &orderBy) {
|
||||
orderBy_ = orderBy;
|
||||
setParameter(std::string("OrderBy"), orderBy);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getDealed() const {
|
||||
return dealed_;
|
||||
}
|
||||
@@ -286,6 +232,24 @@ void DescribeGroupedVulRequest::setClusterId(const std::string &clusterId) {
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
long DescribeGroupedVulRequest::getPatchId() const {
|
||||
return patchId_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setPatchId(long patchId) {
|
||||
patchId_ = patchId;
|
||||
setParameter(std::string("PatchId"), std::to_string(patchId));
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getAliasName() const {
|
||||
return aliasName_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setAliasName(const std::string &aliasName) {
|
||||
aliasName_ = aliasName;
|
||||
setParameter(std::string("AliasName"), aliasName);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getSearchTags() const {
|
||||
return searchTags_;
|
||||
}
|
||||
@@ -295,3 +259,39 @@ void DescribeGroupedVulRequest::setSearchTags(const std::string &searchTags) {
|
||||
setParameter(std::string("SearchTags"), searchTags);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
long DescribeGroupedVulRequest::getCreateTsEnd() const {
|
||||
return createTsEnd_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setCreateTsEnd(long createTsEnd) {
|
||||
createTsEnd_ = createTsEnd;
|
||||
setParameter(std::string("CreateTsEnd"), std::to_string(createTsEnd));
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getNecessity() const {
|
||||
return necessity_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setNecessity(const std::string &necessity) {
|
||||
necessity_ = necessity;
|
||||
setParameter(std::string("Necessity"), necessity);
|
||||
}
|
||||
|
||||
std::string DescribeGroupedVulRequest::getUuids() const {
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void DescribeGroupedVulRequest::setUuids(const std::string &uuids) {
|
||||
uuids_ = uuids;
|
||||
setParameter(std::string("Uuids"), uuids);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,24 @@ DescribeImageFixTaskRequest::DescribeImageFixTaskRequest()
|
||||
|
||||
DescribeImageFixTaskRequest::~DescribeImageFixTaskRequest() {}
|
||||
|
||||
long DescribeImageFixTaskRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeImageFixTaskRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
int DescribeImageFixTaskRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeImageFixTaskRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long DescribeImageFixTaskRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
@@ -52,24 +70,6 @@ void DescribeImageFixTaskRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeImageFixTaskRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeImageFixTaskRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
int DescribeImageFixTaskRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeImageFixTaskRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeImageFixTaskRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,8 @@ void DescribeInstallCodesResult::parse(const std::string &payload)
|
||||
installCodesObject.tag = valueInstallCodesInstallCode["Tag"].asString();
|
||||
if(!valueInstallCodesInstallCode["Vendor"].isNull())
|
||||
installCodesObject.vendor = std::stoi(valueInstallCodesInstallCode["Vendor"].asString());
|
||||
if(!valueInstallCodesInstallCode["ProxyCluster"].isNull())
|
||||
installCodesObject.proxyCluster = valueInstallCodesInstallCode["ProxyCluster"].asString();
|
||||
installCodes_.push_back(installCodesObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -79,6 +79,8 @@ void DescribeInstanceStatisticsResult::parse(const std::string &payload)
|
||||
dataObject.agentlessVulSca = std::stoi(valueDataDataItem["AgentlessVulSca"].asString());
|
||||
if(!valueDataDataItem["AgentlessBaseline"].isNull())
|
||||
dataObject.agentlessBaseline = std::stoi(valueDataDataItem["AgentlessBaseline"].asString());
|
||||
if(!valueDataDataItem["CspmNum"].isNull())
|
||||
dataObject.cspmNum = std::stoi(valueDataDataItem["CspmNum"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,15 @@ void DescribeRestoreJobsRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeRestoreJobsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeRestoreJobsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeRestoreJobsRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -61,15 +70,6 @@ void DescribeRestoreJobsRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeRestoreJobsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeRestoreJobsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeRestoreJobsRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
@@ -34,24 +34,6 @@ void DescribeRestorePlansRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeRestorePlansRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeRestorePlansRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
int DescribeRestorePlansRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRestorePlansRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeRestorePlansRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
@@ -70,6 +52,24 @@ void DescribeRestorePlansRequest::setInstanceName(const std::string &instanceNam
|
||||
setParameter(std::string("InstanceName"), instanceName);
|
||||
}
|
||||
|
||||
std::string DescribeRestorePlansRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeRestorePlansRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
int DescribeRestorePlansRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeRestorePlansRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeRestorePlansRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeRisksRequest::DescribeRisksRequest()
|
||||
|
||||
DescribeRisksRequest::~DescribeRisksRequest() {}
|
||||
|
||||
long DescribeRisksRequest::getRiskId() const {
|
||||
return riskId_;
|
||||
}
|
||||
|
||||
void DescribeRisksRequest::setRiskId(long riskId) {
|
||||
riskId_ = riskId;
|
||||
setParameter(std::string("RiskId"), std::to_string(riskId));
|
||||
}
|
||||
|
||||
std::string DescribeRisksRequest::getRiskName() const {
|
||||
return riskName_;
|
||||
}
|
||||
@@ -52,12 +61,3 @@ void DescribeRisksRequest::setLang(const std::string &lang) {
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
long DescribeRisksRequest::getRiskId() const {
|
||||
return riskId_;
|
||||
}
|
||||
|
||||
void DescribeRisksRequest::setRiskId(long riskId) {
|
||||
riskId_ = riskId;
|
||||
setParameter(std::string("RiskId"), std::to_string(riskId));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeStrategyExecDetailRequest::DescribeStrategyExecDetailRequest()
|
||||
|
||||
DescribeStrategyExecDetailRequest::~DescribeStrategyExecDetailRequest() {}
|
||||
|
||||
int DescribeStrategyExecDetailRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeStrategyExecDetailRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeStrategyExecDetailRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -43,15 +52,6 @@ void DescribeStrategyExecDetailRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeStrategyExecDetailRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeStrategyExecDetailRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
int DescribeStrategyExecDetailRequest::getStrategyId() const {
|
||||
return strategyId_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeStrategyRequest::DescribeStrategyRequest()
|
||||
|
||||
DescribeStrategyRequest::~DescribeStrategyRequest() {}
|
||||
|
||||
std::string DescribeStrategyRequest::getCustomType() const {
|
||||
return customType_;
|
||||
}
|
||||
|
||||
void DescribeStrategyRequest::setCustomType(const std::string &customType) {
|
||||
customType_ = customType;
|
||||
setParameter(std::string("CustomType"), customType);
|
||||
}
|
||||
|
||||
std::string DescribeStrategyRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void DescribeStrategyRequest::setSourceIp(const std::string &sourceIp) {
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeStrategyRequest::getStrategyIds() const {
|
||||
return strategyIds_;
|
||||
}
|
||||
|
||||
void DescribeStrategyRequest::setStrategyIds(const std::string &strategyIds) {
|
||||
strategyIds_ = strategyIds;
|
||||
setParameter(std::string("StrategyIds"), strategyIds);
|
||||
}
|
||||
|
||||
std::string DescribeStrategyRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
@@ -52,21 +70,3 @@ void DescribeStrategyRequest::setResourceDirectoryAccountId(const std::string &r
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
std::string DescribeStrategyRequest::getCustomType() const {
|
||||
return customType_;
|
||||
}
|
||||
|
||||
void DescribeStrategyRequest::setCustomType(const std::string &customType) {
|
||||
customType_ = customType;
|
||||
setParameter(std::string("CustomType"), customType);
|
||||
}
|
||||
|
||||
std::string DescribeStrategyRequest::getStrategyIds() const {
|
||||
return strategyIds_;
|
||||
}
|
||||
|
||||
void DescribeStrategyRequest::setStrategyIds(const std::string &strategyIds) {
|
||||
strategyIds_ = strategyIds;
|
||||
setParameter(std::string("StrategyIds"), strategyIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,15 +43,6 @@ void DescribeStrategyTargetRequest::setSourceIp(const std::string &sourceIp) {
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeStrategyTargetRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void DescribeStrategyTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
std::string DescribeStrategyTargetRequest::getConfig() const {
|
||||
return config_;
|
||||
}
|
||||
@@ -61,3 +52,12 @@ void DescribeStrategyTargetRequest::setConfig(const std::string &config) {
|
||||
setParameter(std::string("Config"), config);
|
||||
}
|
||||
|
||||
std::string DescribeStrategyTargetRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void DescribeStrategyTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeSuspEventDetailRequest::DescribeSuspEventDetailRequest()
|
||||
|
||||
DescribeSuspEventDetailRequest::~DescribeSuspEventDetailRequest() {}
|
||||
|
||||
int DescribeSuspEventDetailRequest::getSuspiciousEventId() const {
|
||||
return suspiciousEventId_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventDetailRequest::setSuspiciousEventId(int suspiciousEventId) {
|
||||
suspiciousEventId_ = suspiciousEventId;
|
||||
setParameter(std::string("SuspiciousEventId"), std::to_string(suspiciousEventId));
|
||||
}
|
||||
|
||||
std::string DescribeSuspEventDetailRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -52,12 +61,3 @@ void DescribeSuspEventDetailRequest::setLang(const std::string &lang) {
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
int DescribeSuspEventDetailRequest::getSuspiciousEventId() const {
|
||||
return suspiciousEventId_;
|
||||
}
|
||||
|
||||
void DescribeSuspEventDetailRequest::setSuspiciousEventId(int suspiciousEventId) {
|
||||
suspiciousEventId_ = suspiciousEventId;
|
||||
setParameter(std::string("SuspiciousEventId"), std::to_string(suspiciousEventId));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,15 +43,6 @@ void DescribeTargetRequest::setSourceIp(const std::string &sourceIp) {
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeTargetRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void DescribeTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
std::string DescribeTargetRequest::getConfig() const {
|
||||
return config_;
|
||||
}
|
||||
@@ -61,3 +52,12 @@ void DescribeTargetRequest::setConfig(const std::string &config) {
|
||||
setParameter(std::string("Config"), config);
|
||||
}
|
||||
|
||||
std::string DescribeTargetRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void DescribeTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,14 @@ DescribeVulCheckTaskStatusDetailRequest::DescribeVulCheckTaskStatusDetailRequest
|
||||
|
||||
DescribeVulCheckTaskStatusDetailRequest::~DescribeVulCheckTaskStatusDetailRequest() {}
|
||||
|
||||
std::vector<std::string> DescribeVulCheckTaskStatusDetailRequest::getTypes() const {
|
||||
return types_;
|
||||
}
|
||||
|
||||
void DescribeVulCheckTaskStatusDetailRequest::setTypes(const std::vector<std::string> &types) {
|
||||
types_ = types;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeVulCheckTaskStatusDetailRequest::getTaskIds() const {
|
||||
return taskIds_;
|
||||
}
|
||||
@@ -51,11 +59,3 @@ void DescribeVulCheckTaskStatusDetailRequest::setSourceIp(const std::string &sou
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeVulCheckTaskStatusDetailRequest::getTypes() const {
|
||||
return types_;
|
||||
}
|
||||
|
||||
void DescribeVulCheckTaskStatusDetailRequest::setTypes(const std::vector<std::string> &types) {
|
||||
types_ = types;
|
||||
}
|
||||
|
||||
|
||||
@@ -34,24 +34,6 @@ void DescribeVulListPageRequest::setCveId(const std::string &cveId) {
|
||||
setParameter(std::string("CveId"), cveId);
|
||||
}
|
||||
|
||||
std::string DescribeVulListPageRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeVulListPageRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
int DescribeVulListPageRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeVulListPageRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeVulListPageRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
@@ -61,6 +43,15 @@ void DescribeVulListPageRequest::setCurrentPage(int currentPage) {
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeVulListPageRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeVulListPageRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeVulListPageRequest::getVulNameLike() const {
|
||||
return vulNameLike_;
|
||||
}
|
||||
@@ -70,3 +61,12 @@ void DescribeVulListPageRequest::setVulNameLike(const std::string &vulNameLike)
|
||||
setParameter(std::string("VulNameLike"), vulNameLike);
|
||||
}
|
||||
|
||||
int DescribeVulListPageRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeVulListPageRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
54
sas/src/model/GetAppNetworkRequest.cc
Normal file
54
sas/src/model/GetAppNetworkRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/sas/model/GetAppNetworkRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::GetAppNetworkRequest;
|
||||
|
||||
GetAppNetworkRequest::GetAppNetworkRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "GetAppNetwork") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetAppNetworkRequest::~GetAppNetworkRequest() {}
|
||||
|
||||
long GetAppNetworkRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void GetAppNetworkRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
long GetAppNetworkRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void GetAppNetworkRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string GetAppNetworkRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetAppNetworkRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
97
sas/src/model/GetAppNetworkResult.cc
Normal file
97
sas/src/model/GetAppNetworkResult.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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/sas/model/GetAppNetworkResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
GetAppNetworkResult::GetAppNetworkResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAppNetworkResult::GetAppNetworkResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAppNetworkResult::~GetAppNetworkResult()
|
||||
{}
|
||||
|
||||
void GetAppNetworkResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto appNetworkNode = value["AppNetwork"];
|
||||
auto allNodeNode = appNetworkNode["Node"]["AppNode"];
|
||||
for (auto appNetworkNodeNodeAppNode : allNodeNode)
|
||||
{
|
||||
AppNetwork::AppNode appNodeObject;
|
||||
if(!appNetworkNodeNodeAppNode["RiskLevel"].isNull())
|
||||
appNodeObject.riskLevel = appNetworkNodeNodeAppNode["RiskLevel"].asString();
|
||||
if(!appNetworkNodeNodeAppNode["Id"].isNull())
|
||||
appNodeObject.id = appNetworkNodeNodeAppNode["Id"].asString();
|
||||
if(!appNetworkNodeNodeAppNode["NamespaceId"].isNull())
|
||||
appNodeObject.namespaceId = appNetworkNodeNodeAppNode["NamespaceId"].asString();
|
||||
if(!appNetworkNodeNodeAppNode["Type"].isNull())
|
||||
appNodeObject.type = appNetworkNodeNodeAppNode["Type"].asString();
|
||||
if(!appNetworkNodeNodeAppNode["Name"].isNull())
|
||||
appNodeObject.name = appNetworkNodeNodeAppNode["Name"].asString();
|
||||
auto allContainerIds = value["ContainerIds"]["ContainerId"];
|
||||
for (auto value : allContainerIds)
|
||||
appNodeObject.containerIds.push_back(value.asString());
|
||||
appNetwork_.node.push_back(appNodeObject);
|
||||
}
|
||||
auto allEdgeNode = appNetworkNode["Edge"]["BasicEdge"];
|
||||
for (auto appNetworkNodeEdgeBasicEdge : allEdgeNode)
|
||||
{
|
||||
AppNetwork::BasicEdge basicEdgeObject;
|
||||
if(!appNetworkNodeEdgeBasicEdge["Id"].isNull())
|
||||
basicEdgeObject.id = appNetworkNodeEdgeBasicEdge["Id"].asString();
|
||||
if(!appNetworkNodeEdgeBasicEdge["SrcNodeId"].isNull())
|
||||
basicEdgeObject.srcNodeId = appNetworkNodeEdgeBasicEdge["SrcNodeId"].asString();
|
||||
if(!appNetworkNodeEdgeBasicEdge["SrcNodeType"].isNull())
|
||||
basicEdgeObject.srcNodeType = appNetworkNodeEdgeBasicEdge["SrcNodeType"].asString();
|
||||
if(!appNetworkNodeEdgeBasicEdge["DstNodeId"].isNull())
|
||||
basicEdgeObject.dstNodeId = appNetworkNodeEdgeBasicEdge["DstNodeId"].asString();
|
||||
if(!appNetworkNodeEdgeBasicEdge["DstNodeType"].isNull())
|
||||
basicEdgeObject.dstNodeType = appNetworkNodeEdgeBasicEdge["DstNodeType"].asString();
|
||||
if(!appNetworkNodeEdgeBasicEdge["Port"].isNull())
|
||||
basicEdgeObject.port = appNetworkNodeEdgeBasicEdge["Port"].asString();
|
||||
appNetwork_.edge.push_back(basicEdgeObject);
|
||||
}
|
||||
auto all_NamespaceNode = appNetworkNode["Namespace"]["NamespaceItem"];
|
||||
for (auto appNetworkNodeNamespaceNamespaceItem : all_NamespaceNode)
|
||||
{
|
||||
AppNetwork::NamespaceItem namespaceItemObject;
|
||||
if(!appNetworkNodeNamespaceNamespaceItem["Id"].isNull())
|
||||
namespaceItemObject.id = appNetworkNodeNamespaceNamespaceItem["Id"].asString();
|
||||
if(!appNetworkNodeNamespaceNamespaceItem["Name"].isNull())
|
||||
namespaceItemObject.name = appNetworkNodeNamespaceNamespaceItem["Name"].asString();
|
||||
appNetwork_._namespace.push_back(namespaceItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GetAppNetworkResult::AppNetwork GetAppNetworkResult::getAppNetwork()const
|
||||
{
|
||||
return appNetwork_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ GetCheckConfigRequest::GetCheckConfigRequest()
|
||||
|
||||
GetCheckConfigRequest::~GetCheckConfigRequest() {}
|
||||
|
||||
int GetCheckConfigRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void GetCheckConfigRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string GetCheckConfigRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void GetCheckConfigRequest::setSourceIp(const std::string &sourceIp) {
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string GetCheckConfigRequest::getCheckGroupId() const {
|
||||
return checkGroupId_;
|
||||
}
|
||||
|
||||
void GetCheckConfigRequest::setCheckGroupId(const std::string &checkGroupId) {
|
||||
checkGroupId_ = checkGroupId;
|
||||
setParameter(std::string("CheckGroupId"), checkGroupId);
|
||||
}
|
||||
|
||||
int GetCheckConfigRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -61,21 +79,3 @@ void GetCheckConfigRequest::setLang(const std::string &lang) {
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
int GetCheckConfigRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void GetCheckConfigRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string GetCheckConfigRequest::getCheckGroupId() const {
|
||||
return checkGroupId_;
|
||||
}
|
||||
|
||||
void GetCheckConfigRequest::setCheckGroupId(const std::string &checkGroupId) {
|
||||
checkGroupId_ = checkGroupId;
|
||||
setParameter(std::string("CheckGroupId"), checkGroupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ GetCheckRiskStatisticsRequest::GetCheckRiskStatisticsRequest()
|
||||
|
||||
GetCheckRiskStatisticsRequest::~GetCheckRiskStatisticsRequest() {}
|
||||
|
||||
int GetCheckRiskStatisticsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void GetCheckRiskStatisticsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
int GetCheckRiskStatisticsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -43,12 +52,3 @@ void GetCheckRiskStatisticsRequest::setLang(const std::string &lang) {
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
int GetCheckRiskStatisticsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void GetCheckRiskStatisticsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
|
||||
59
sas/src/model/GetCloudAssetCriteriaRequest.cc
Normal file
59
sas/src/model/GetCloudAssetCriteriaRequest.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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/sas/model/GetCloudAssetCriteriaRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::GetCloudAssetCriteriaRequest;
|
||||
|
||||
GetCloudAssetCriteriaRequest::GetCloudAssetCriteriaRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "GetCloudAssetCriteria") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetCloudAssetCriteriaRequest::~GetCloudAssetCriteriaRequest() {}
|
||||
|
||||
std::vector<GetCloudAssetCriteriaRequest::CloudAssetTypes> GetCloudAssetCriteriaRequest::getCloudAssetTypes() const {
|
||||
return cloudAssetTypes_;
|
||||
}
|
||||
|
||||
void GetCloudAssetCriteriaRequest::setCloudAssetTypes(const std::vector<GetCloudAssetCriteriaRequest::CloudAssetTypes> &cloudAssetTypes) {
|
||||
cloudAssetTypes_ = cloudAssetTypes;
|
||||
for(int dep1 = 0; dep1 != cloudAssetTypes.size(); dep1++) {
|
||||
auto cloudAssetTypesObj = cloudAssetTypes.at(dep1);
|
||||
std::string cloudAssetTypesObjStr = std::string("CloudAssetTypes") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(cloudAssetTypesObjStr + ".AssetSubType", std::to_string(cloudAssetTypesObj.assetSubType));
|
||||
setParameter(cloudAssetTypesObjStr + ".AssetType", std::to_string(cloudAssetTypesObj.assetType));
|
||||
}
|
||||
}
|
||||
|
||||
std::string GetCloudAssetCriteriaRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void GetCloudAssetCriteriaRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string GetCloudAssetCriteriaRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
void GetCloudAssetCriteriaRequest::setValue(const std::string &value) {
|
||||
value_ = value;
|
||||
setParameter(std::string("Value"), value);
|
||||
}
|
||||
|
||||
63
sas/src/model/GetCloudAssetCriteriaResult.cc
Normal file
63
sas/src/model/GetCloudAssetCriteriaResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/sas/model/GetCloudAssetCriteriaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
GetCloudAssetCriteriaResult::GetCloudAssetCriteriaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetCloudAssetCriteriaResult::GetCloudAssetCriteriaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetCloudAssetCriteriaResult::~GetCloudAssetCriteriaResult()
|
||||
{}
|
||||
|
||||
void GetCloudAssetCriteriaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCriteriaListNode = value["CriteriaList"]["Criteria"];
|
||||
for (auto valueCriteriaListCriteria : allCriteriaListNode)
|
||||
{
|
||||
Criteria criteriaListObject;
|
||||
if(!valueCriteriaListCriteria["Type"].isNull())
|
||||
criteriaListObject.type = valueCriteriaListCriteria["Type"].asString();
|
||||
if(!valueCriteriaListCriteria["Name"].isNull())
|
||||
criteriaListObject.name = valueCriteriaListCriteria["Name"].asString();
|
||||
if(!valueCriteriaListCriteria["Values"].isNull())
|
||||
criteriaListObject.values = valueCriteriaListCriteria["Values"].asString();
|
||||
if(!valueCriteriaListCriteria["MultiValues"].isNull())
|
||||
criteriaListObject.multiValues = valueCriteriaListCriteria["MultiValues"].asString();
|
||||
criteriaList_.push_back(criteriaListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetCloudAssetCriteriaResult::Criteria> GetCloudAssetCriteriaResult::getCriteriaList()const
|
||||
{
|
||||
return criteriaList_;
|
||||
}
|
||||
|
||||
45
sas/src/model/GetClusterRuleSummaryRequest.cc
Normal file
45
sas/src/model/GetClusterRuleSummaryRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/sas/model/GetClusterRuleSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::GetClusterRuleSummaryRequest;
|
||||
|
||||
GetClusterRuleSummaryRequest::GetClusterRuleSummaryRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "GetClusterRuleSummary") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetClusterRuleSummaryRequest::~GetClusterRuleSummaryRequest() {}
|
||||
|
||||
std::string GetClusterRuleSummaryRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetClusterRuleSummaryRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string GetClusterRuleSummaryRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void GetClusterRuleSummaryRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
64
sas/src/model/GetClusterRuleSummaryResult.cc
Normal file
64
sas/src/model/GetClusterRuleSummaryResult.cc
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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/sas/model/GetClusterRuleSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
GetClusterRuleSummaryResult::GetClusterRuleSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetClusterRuleSummaryResult::GetClusterRuleSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetClusterRuleSummaryResult::~GetClusterRuleSummaryResult()
|
||||
{}
|
||||
|
||||
void GetClusterRuleSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto clusterRuleSummaryNode = value["ClusterRuleSummary"];
|
||||
if(!clusterRuleSummaryNode["InterceptionSwitch"].isNull())
|
||||
clusterRuleSummary_.interceptionSwitch = std::stoi(clusterRuleSummaryNode["InterceptionSwitch"].asString());
|
||||
if(!clusterRuleSummaryNode["CloseRuleCount"].isNull())
|
||||
clusterRuleSummary_.closeRuleCount = std::stoi(clusterRuleSummaryNode["CloseRuleCount"].asString());
|
||||
if(!clusterRuleSummaryNode["InterceptionType"].isNull())
|
||||
clusterRuleSummary_.interceptionType = std::stoi(clusterRuleSummaryNode["InterceptionType"].asString());
|
||||
if(!clusterRuleSummaryNode["RuleCount"].isNull())
|
||||
clusterRuleSummary_.ruleCount = std::stoi(clusterRuleSummaryNode["RuleCount"].asString());
|
||||
if(!clusterRuleSummaryNode["OpenRuleCount"].isNull())
|
||||
clusterRuleSummary_.openRuleCount = std::stoi(clusterRuleSummaryNode["OpenRuleCount"].asString());
|
||||
if(!clusterRuleSummaryNode["SuggestRuleCount"].isNull())
|
||||
clusterRuleSummary_.suggestRuleCount = std::stoi(clusterRuleSummaryNode["SuggestRuleCount"].asString());
|
||||
if(!clusterRuleSummaryNode["InterceptionCount7Day"].isNull())
|
||||
clusterRuleSummary_.interceptionCount7Day = std::stol(clusterRuleSummaryNode["InterceptionCount7Day"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetClusterRuleSummaryResult::ClusterRuleSummary GetClusterRuleSummaryResult::getClusterRuleSummary()const
|
||||
{
|
||||
return clusterRuleSummary_;
|
||||
}
|
||||
|
||||
54
sas/src/model/GetInterceptionRuleDetailRequest.cc
Normal file
54
sas/src/model/GetInterceptionRuleDetailRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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/sas/model/GetInterceptionRuleDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::GetInterceptionRuleDetailRequest;
|
||||
|
||||
GetInterceptionRuleDetailRequest::GetInterceptionRuleDetailRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "GetInterceptionRuleDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetInterceptionRuleDetailRequest::~GetInterceptionRuleDetailRequest() {}
|
||||
|
||||
std::string GetInterceptionRuleDetailRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetInterceptionRuleDetailRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string GetInterceptionRuleDetailRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void GetInterceptionRuleDetailRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string GetInterceptionRuleDetailRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void GetInterceptionRuleDetailRequest::setRuleId(const std::string &ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), ruleId);
|
||||
}
|
||||
|
||||
103
sas/src/model/GetInterceptionRuleDetailResult.cc
Normal file
103
sas/src/model/GetInterceptionRuleDetailResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* 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/sas/model/GetInterceptionRuleDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
GetInterceptionRuleDetailResult::GetInterceptionRuleDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInterceptionRuleDetailResult::GetInterceptionRuleDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInterceptionRuleDetailResult::~GetInterceptionRuleDetailResult()
|
||||
{}
|
||||
|
||||
void GetInterceptionRuleDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto interceptionRuleDetailNode = value["InterceptionRuleDetail"];
|
||||
if(!interceptionRuleDetailNode["RuleType"].isNull())
|
||||
interceptionRuleDetail_.ruleType = interceptionRuleDetailNode["RuleType"].asString();
|
||||
if(!interceptionRuleDetailNode["RuleSwitch"].isNull())
|
||||
interceptionRuleDetail_.ruleSwitch = std::stoi(interceptionRuleDetailNode["RuleSwitch"].asString());
|
||||
if(!interceptionRuleDetailNode["RuleId"].isNull())
|
||||
interceptionRuleDetail_.ruleId = std::stol(interceptionRuleDetailNode["RuleId"].asString());
|
||||
if(!interceptionRuleDetailNode["RuleName"].isNull())
|
||||
interceptionRuleDetail_.ruleName = interceptionRuleDetailNode["RuleName"].asString();
|
||||
if(!interceptionRuleDetailNode["InterceptType"].isNull())
|
||||
interceptionRuleDetail_.interceptType = std::stol(interceptionRuleDetailNode["InterceptType"].asString());
|
||||
if(!interceptionRuleDetailNode["OrderIndex"].isNull())
|
||||
interceptionRuleDetail_.orderIndex = std::stol(interceptionRuleDetailNode["OrderIndex"].asString());
|
||||
auto srcTargetNode = interceptionRuleDetailNode["SrcTarget"];
|
||||
if(!srcTargetNode["AppName"].isNull())
|
||||
interceptionRuleDetail_.srcTarget.appName = srcTargetNode["AppName"].asString();
|
||||
if(!srcTargetNode["RuleType"].isNull())
|
||||
interceptionRuleDetail_.srcTarget.ruleType = srcTargetNode["RuleType"].asString();
|
||||
if(!srcTargetNode["TargetId"].isNull())
|
||||
interceptionRuleDetail_.srcTarget.targetId = std::stoi(srcTargetNode["TargetId"].asString());
|
||||
if(!srcTargetNode["TargetName"].isNull())
|
||||
interceptionRuleDetail_.srcTarget.targetName = srcTargetNode["TargetName"].asString();
|
||||
if(!srcTargetNode["Namespace"].isNull())
|
||||
interceptionRuleDetail_.srcTarget._namespace = srcTargetNode["Namespace"].asString();
|
||||
if(!srcTargetNode["TargetType"].isNull())
|
||||
interceptionRuleDetail_.srcTarget.targetType = srcTargetNode["TargetType"].asString();
|
||||
auto allImageList = srcTargetNode["ImageList"]["image"];
|
||||
for (auto value : allImageList)
|
||||
interceptionRuleDetail_.srcTarget.imageList.push_back(value.asString());
|
||||
auto allTagList = srcTargetNode["TagList"]["tag"];
|
||||
for (auto value : allTagList)
|
||||
interceptionRuleDetail_.srcTarget.tagList.push_back(value.asString());
|
||||
auto dstTargetNode = interceptionRuleDetailNode["DstTarget"];
|
||||
if(!dstTargetNode["AppName"].isNull())
|
||||
interceptionRuleDetail_.dstTarget.appName = dstTargetNode["AppName"].asString();
|
||||
if(!dstTargetNode["RuleType"].isNull())
|
||||
interceptionRuleDetail_.dstTarget.ruleType = dstTargetNode["RuleType"].asString();
|
||||
if(!dstTargetNode["TargetId"].isNull())
|
||||
interceptionRuleDetail_.dstTarget.targetId = std::stoi(dstTargetNode["TargetId"].asString());
|
||||
if(!dstTargetNode["TargetName"].isNull())
|
||||
interceptionRuleDetail_.dstTarget.targetName = dstTargetNode["TargetName"].asString();
|
||||
if(!dstTargetNode["Namespace"].isNull())
|
||||
interceptionRuleDetail_.dstTarget._namespace = dstTargetNode["Namespace"].asString();
|
||||
if(!dstTargetNode["TargetType"].isNull())
|
||||
interceptionRuleDetail_.dstTarget.targetType = dstTargetNode["TargetType"].asString();
|
||||
auto allPorts = dstTargetNode["Ports"]["port"];
|
||||
for (auto value : allPorts)
|
||||
interceptionRuleDetail_.dstTarget.ports.push_back(value.asString());
|
||||
auto allImageList1 = dstTargetNode["ImageList"]["image"];
|
||||
for (auto value : allImageList1)
|
||||
interceptionRuleDetail_.dstTarget.imageList1.push_back(value.asString());
|
||||
auto allTagList2 = dstTargetNode["TagList"]["tag"];
|
||||
for (auto value : allTagList2)
|
||||
interceptionRuleDetail_.dstTarget.tagList2.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
GetInterceptionRuleDetailResult::InterceptionRuleDetail GetInterceptionRuleDetailResult::getInterceptionRuleDetail()const
|
||||
{
|
||||
return interceptionRuleDetail_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ GetModuleConfigRequest::GetModuleConfigRequest()
|
||||
|
||||
GetModuleConfigRequest::~GetModuleConfigRequest() {}
|
||||
|
||||
std::string GetModuleConfigRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void GetModuleConfigRequest::setCurrentPage(const std::string ¤tPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), currentPage);
|
||||
}
|
||||
|
||||
std::string GetModuleConfigRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -52,12 +61,3 @@ void GetModuleConfigRequest::setResourceDirectoryAccountId(const std::string &re
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
std::string GetModuleConfigRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void GetModuleConfigRequest::setCurrentPage(const std::string ¤tPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), currentPage);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,20 @@ void IgnoreCheckItemsRequest::setReason(const std::string &reason) {
|
||||
setParameter(std::string("Reason"), reason);
|
||||
}
|
||||
|
||||
std::vector<IgnoreCheckItemsRequest::CheckAndRiskTypeList> IgnoreCheckItemsRequest::getCheckAndRiskTypeList() const {
|
||||
return checkAndRiskTypeList_;
|
||||
}
|
||||
|
||||
void IgnoreCheckItemsRequest::setCheckAndRiskTypeList(const std::vector<IgnoreCheckItemsRequest::CheckAndRiskTypeList> &checkAndRiskTypeList) {
|
||||
checkAndRiskTypeList_ = checkAndRiskTypeList;
|
||||
for(int dep1 = 0; dep1 != checkAndRiskTypeList.size(); dep1++) {
|
||||
auto checkAndRiskTypeListObj = checkAndRiskTypeList.at(dep1);
|
||||
std::string checkAndRiskTypeListObjStr = std::string("CheckAndRiskTypeList") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(checkAndRiskTypeListObjStr + ".RiskType", checkAndRiskTypeListObj.riskType);
|
||||
setParameter(checkAndRiskTypeListObjStr + ".CheckId", std::to_string(checkAndRiskTypeListObj.checkId));
|
||||
}
|
||||
}
|
||||
|
||||
int IgnoreCheckItemsRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
@@ -60,17 +74,3 @@ void IgnoreCheckItemsRequest::setLang(const std::string &lang) {
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::vector<IgnoreCheckItemsRequest::CheckAndRiskTypeList> IgnoreCheckItemsRequest::getCheckAndRiskTypeList() const {
|
||||
return checkAndRiskTypeList_;
|
||||
}
|
||||
|
||||
void IgnoreCheckItemsRequest::setCheckAndRiskTypeList(const std::vector<IgnoreCheckItemsRequest::CheckAndRiskTypeList> &checkAndRiskTypeList) {
|
||||
checkAndRiskTypeList_ = checkAndRiskTypeList;
|
||||
for(int dep1 = 0; dep1 != checkAndRiskTypeList.size(); dep1++) {
|
||||
auto checkAndRiskTypeListObj = checkAndRiskTypeList.at(dep1);
|
||||
std::string checkAndRiskTypeListObjStr = std::string("CheckAndRiskTypeList") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(checkAndRiskTypeListObjStr + ".RiskType", checkAndRiskTypeListObj.riskType);
|
||||
setParameter(checkAndRiskTypeListObjStr + ".CheckId", std::to_string(checkAndRiskTypeListObj.checkId));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,15 @@ void InstallBackupClientRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string InstallBackupClientRequest::getPolicyVersion() const {
|
||||
return policyVersion_;
|
||||
}
|
||||
|
||||
void InstallBackupClientRequest::setPolicyVersion(const std::string &policyVersion) {
|
||||
policyVersion_ = policyVersion;
|
||||
setParameter(std::string("PolicyVersion"), policyVersion);
|
||||
}
|
||||
|
||||
std::string InstallBackupClientRequest::getUuid() const {
|
||||
return uuid_;
|
||||
}
|
||||
@@ -60,12 +69,3 @@ void InstallBackupClientRequest::setUuidList(const std::vector<std::string> &uui
|
||||
uuidList_ = uuidList;
|
||||
}
|
||||
|
||||
std::string InstallBackupClientRequest::getPolicyVersion() const {
|
||||
return policyVersion_;
|
||||
}
|
||||
|
||||
void InstallBackupClientRequest::setPolicyVersion(const std::string &policyVersion) {
|
||||
policyVersion_ = policyVersion;
|
||||
setParameter(std::string("PolicyVersion"), policyVersion);
|
||||
}
|
||||
|
||||
|
||||
63
sas/src/model/InstallPmAgentRequest.cc
Normal file
63
sas/src/model/InstallPmAgentRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/sas/model/InstallPmAgentRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::InstallPmAgentRequest;
|
||||
|
||||
InstallPmAgentRequest::InstallPmAgentRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "InstallPmAgent") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InstallPmAgentRequest::~InstallPmAgentRequest() {}
|
||||
|
||||
std::string InstallPmAgentRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void InstallPmAgentRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string InstallPmAgentRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void InstallPmAgentRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string InstallPmAgentRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void InstallPmAgentRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string InstallPmAgentRequest::getUuids() const {
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
void InstallPmAgentRequest::setUuids(const std::string &uuids) {
|
||||
uuids_ = uuids;
|
||||
setParameter(std::string("Uuids"), uuids);
|
||||
}
|
||||
|
||||
44
sas/src/model/InstallPmAgentResult.cc
Normal file
44
sas/src/model/InstallPmAgentResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/sas/model/InstallPmAgentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
InstallPmAgentResult::InstallPmAgentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InstallPmAgentResult::InstallPmAgentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InstallPmAgentResult::~InstallPmAgentResult()
|
||||
{}
|
||||
|
||||
void InstallPmAgentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -50,6 +50,14 @@ void ListCheckStandardRequest::setSourceIp(const std::string &sourceIp) {
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::vector<std::string> ListCheckStandardRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void ListCheckStandardRequest::setInstanceIds(const std::vector<std::string> &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
}
|
||||
|
||||
std::string ListCheckStandardRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
@@ -67,11 +75,3 @@ void ListCheckStandardRequest::setVendors(const std::vector<std::string> &vendor
|
||||
vendors_ = vendors;
|
||||
}
|
||||
|
||||
std::vector<std::string> ListCheckStandardRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
void ListCheckStandardRequest::setInstanceIds(const std::vector<std::string> &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
}
|
||||
|
||||
|
||||
95
sas/src/model/ListCloudAssetInstancesRequest.cc
Normal file
95
sas/src/model/ListCloudAssetInstancesRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/sas/model/ListCloudAssetInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ListCloudAssetInstancesRequest;
|
||||
|
||||
ListCloudAssetInstancesRequest::ListCloudAssetInstancesRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ListCloudAssetInstances") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCloudAssetInstancesRequest::~ListCloudAssetInstancesRequest() {}
|
||||
|
||||
std::string ListCloudAssetInstancesRequest::getCriteria() const {
|
||||
return criteria_;
|
||||
}
|
||||
|
||||
void ListCloudAssetInstancesRequest::setCriteria(const std::string &criteria) {
|
||||
criteria_ = criteria;
|
||||
setParameter(std::string("Criteria"), criteria);
|
||||
}
|
||||
|
||||
std::string ListCloudAssetInstancesRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListCloudAssetInstancesRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ListCloudAssetInstancesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListCloudAssetInstancesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
int ListCloudAssetInstancesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListCloudAssetInstancesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListCloudAssetInstancesRequest::getLogicalExp() const {
|
||||
return logicalExp_;
|
||||
}
|
||||
|
||||
void ListCloudAssetInstancesRequest::setLogicalExp(const std::string &logicalExp) {
|
||||
logicalExp_ = logicalExp;
|
||||
setParameter(std::string("LogicalExp"), logicalExp);
|
||||
}
|
||||
|
||||
std::vector<ListCloudAssetInstancesRequest::CloudAssetTypes> ListCloudAssetInstancesRequest::getCloudAssetTypes() const {
|
||||
return cloudAssetTypes_;
|
||||
}
|
||||
|
||||
void ListCloudAssetInstancesRequest::setCloudAssetTypes(const std::vector<ListCloudAssetInstancesRequest::CloudAssetTypes> &cloudAssetTypes) {
|
||||
cloudAssetTypes_ = cloudAssetTypes;
|
||||
for(int dep1 = 0; dep1 != cloudAssetTypes.size(); dep1++) {
|
||||
auto cloudAssetTypesObj = cloudAssetTypes.at(dep1);
|
||||
std::string cloudAssetTypesObjStr = std::string("CloudAssetTypes") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(cloudAssetTypesObjStr + ".AssetSubType", std::to_string(cloudAssetTypesObj.assetSubType));
|
||||
setParameter(cloudAssetTypesObjStr + ".AssetType", std::to_string(cloudAssetTypesObj.assetType));
|
||||
}
|
||||
}
|
||||
|
||||
int ListCloudAssetInstancesRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListCloudAssetInstancesRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
102
sas/src/model/ListCloudAssetInstancesResult.cc
Normal file
102
sas/src/model/ListCloudAssetInstancesResult.cc
Normal 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/sas/model/ListCloudAssetInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ListCloudAssetInstancesResult::ListCloudAssetInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListCloudAssetInstancesResult::ListCloudAssetInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListCloudAssetInstancesResult::~ListCloudAssetInstancesResult()
|
||||
{}
|
||||
|
||||
void ListCloudAssetInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstancesNode = value["Instances"]["InstancesItem"];
|
||||
for (auto valueInstancesInstancesItem : allInstancesNode)
|
||||
{
|
||||
InstancesItem instancesObject;
|
||||
if(!valueInstancesInstancesItem["RegionId"].isNull())
|
||||
instancesObject.regionId = valueInstancesInstancesItem["RegionId"].asString();
|
||||
if(!valueInstancesInstancesItem["Vendor"].isNull())
|
||||
instancesObject.vendor = std::stoi(valueInstancesInstancesItem["Vendor"].asString());
|
||||
if(!valueInstancesInstancesItem["AssetType"].isNull())
|
||||
instancesObject.assetType = std::stoi(valueInstancesInstancesItem["AssetType"].asString());
|
||||
if(!valueInstancesInstancesItem["AssetSubType"].isNull())
|
||||
instancesObject.assetSubType = valueInstancesInstancesItem["AssetSubType"].asString();
|
||||
if(!valueInstancesInstancesItem["InstanceId"].isNull())
|
||||
instancesObject.instanceId = valueInstancesInstancesItem["InstanceId"].asString();
|
||||
if(!valueInstancesInstancesItem["InstanceName"].isNull())
|
||||
instancesObject.instanceName = valueInstancesInstancesItem["InstanceName"].asString();
|
||||
if(!valueInstancesInstancesItem["CreatedTime"].isNull())
|
||||
instancesObject.createdTime = std::stol(valueInstancesInstancesItem["CreatedTime"].asString());
|
||||
if(!valueInstancesInstancesItem["InternetIp"].isNull())
|
||||
instancesObject.internetIp = valueInstancesInstancesItem["InternetIp"].asString();
|
||||
if(!valueInstancesInstancesItem["AlarmStatus"].isNull())
|
||||
instancesObject.alarmStatus = valueInstancesInstancesItem["AlarmStatus"].asString();
|
||||
if(!valueInstancesInstancesItem["RiskStatus"].isNull())
|
||||
instancesObject.riskStatus = valueInstancesInstancesItem["RiskStatus"].asString();
|
||||
if(!valueInstancesInstancesItem["AssetTypeName"].isNull())
|
||||
instancesObject.assetTypeName = valueInstancesInstancesItem["AssetTypeName"].asString();
|
||||
if(!valueInstancesInstancesItem["AssetSubTypeName"].isNull())
|
||||
instancesObject.assetSubTypeName = valueInstancesInstancesItem["AssetSubTypeName"].asString();
|
||||
if(!valueInstancesInstancesItem["SecurityInfo"].isNull())
|
||||
instancesObject.securityInfo = valueInstancesInstancesItem["SecurityInfo"].asString();
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
auto pageInfoNode = value["PageInfo"];
|
||||
if(!pageInfoNode["CurrentPage"].isNull())
|
||||
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
|
||||
if(!pageInfoNode["PageSize"].isNull())
|
||||
pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
|
||||
if(!pageInfoNode["TotalCount"].isNull())
|
||||
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
|
||||
if(!pageInfoNode["Count"].isNull())
|
||||
pageInfo_.count = std::stoi(pageInfoNode["Count"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListCloudAssetInstancesResult::InstancesItem> ListCloudAssetInstancesResult::getInstances()const
|
||||
{
|
||||
return instances_;
|
||||
}
|
||||
|
||||
ListCloudAssetInstancesResult::PageInfo ListCloudAssetInstancesResult::getPageInfo()const
|
||||
{
|
||||
return pageInfo_;
|
||||
}
|
||||
|
||||
bool ListCloudAssetInstancesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
36
sas/src/model/ListImageRegistryRegionRequest.cc
Normal file
36
sas/src/model/ListImageRegistryRegionRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/sas/model/ListImageRegistryRegionRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ListImageRegistryRegionRequest;
|
||||
|
||||
ListImageRegistryRegionRequest::ListImageRegistryRegionRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ListImageRegistryRegion") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListImageRegistryRegionRequest::~ListImageRegistryRegionRequest() {}
|
||||
|
||||
std::string ListImageRegistryRegionRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListImageRegistryRegionRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
59
sas/src/model/ListImageRegistryRegionResult.cc
Normal file
59
sas/src/model/ListImageRegistryRegionResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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/sas/model/ListImageRegistryRegionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ListImageRegistryRegionResult::ListImageRegistryRegionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListImageRegistryRegionResult::ListImageRegistryRegionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListImageRegistryRegionResult::~ListImageRegistryRegionResult()
|
||||
{}
|
||||
|
||||
void ListImageRegistryRegionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionsNode = value["Regions"]["Region"];
|
||||
for (auto valueRegionsRegion : allRegionsNode)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!valueRegionsRegion["RegionName"].isNull())
|
||||
regionsObject.regionName = valueRegionsRegion["RegionName"].asString();
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListImageRegistryRegionResult::Region> ListImageRegistryRegionResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
81
sas/src/model/ListImageRiskRequest.cc
Normal file
81
sas/src/model/ListImageRiskRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/sas/model/ListImageRiskRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ListImageRiskRequest;
|
||||
|
||||
ListImageRiskRequest::ListImageRiskRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ListImageRisk") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListImageRiskRequest::~ListImageRiskRequest() {}
|
||||
|
||||
std::string ListImageRiskRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListImageRiskRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string ListImageRiskRequest::getImageName() const {
|
||||
return imageName_;
|
||||
}
|
||||
|
||||
void ListImageRiskRequest::setImageName(const std::string &imageName) {
|
||||
imageName_ = imageName;
|
||||
setParameter(std::string("ImageName"), imageName);
|
||||
}
|
||||
|
||||
int ListImageRiskRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListImageRiskRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListImageRiskRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListImageRiskRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListImageRiskRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListImageRiskRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string ListImageRiskRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void ListImageRiskRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
114
sas/src/model/ListImageRiskResult.cc
Normal file
114
sas/src/model/ListImageRiskResult.cc
Normal 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/sas/model/ListImageRiskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ListImageRiskResult::ListImageRiskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListImageRiskResult::ListImageRiskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListImageRiskResult::~ListImageRiskResult()
|
||||
{}
|
||||
|
||||
void ListImageRiskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allImageRiskListNode = value["ImageRiskList"]["ImageRiskListItem"];
|
||||
for (auto valueImageRiskListImageRiskListItem : allImageRiskListNode)
|
||||
{
|
||||
ImageRiskListItem imageRiskListObject;
|
||||
if(!valueImageRiskListImageRiskListItem["RepoNamespace"].isNull())
|
||||
imageRiskListObject.repoNamespace = valueImageRiskListImageRiskListItem["RepoNamespace"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["RepoName"].isNull())
|
||||
imageRiskListObject.repoName = valueImageRiskListImageRiskListItem["RepoName"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["Tag"].isNull())
|
||||
imageRiskListObject.tag = valueImageRiskListImageRiskListItem["Tag"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["RegionId"].isNull())
|
||||
imageRiskListObject.regionId = valueImageRiskListImageRiskListItem["RegionId"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["Digest"].isNull())
|
||||
imageRiskListObject.digest = valueImageRiskListImageRiskListItem["Digest"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["RepoId"].isNull())
|
||||
imageRiskListObject.repoId = valueImageRiskListImageRiskListItem["RepoId"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["RepoType"].isNull())
|
||||
imageRiskListObject.repoType = valueImageRiskListImageRiskListItem["RepoType"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["RegistryType"].isNull())
|
||||
imageRiskListObject.registryType = valueImageRiskListImageRiskListItem["RegistryType"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["Endpoints"].isNull())
|
||||
imageRiskListObject.endpoints = valueImageRiskListImageRiskListItem["Endpoints"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["ImageId"].isNull())
|
||||
imageRiskListObject.imageId = valueImageRiskListImageRiskListItem["ImageId"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["TagImmutable"].isNull())
|
||||
imageRiskListObject.tagImmutable = std::stoi(valueImageRiskListImageRiskListItem["TagImmutable"].asString());
|
||||
if(!valueImageRiskListImageRiskListItem["Statistics"].isNull())
|
||||
imageRiskListObject.statistics = valueImageRiskListImageRiskListItem["Statistics"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["ImageAccessType"].isNull())
|
||||
imageRiskListObject.imageAccessType = valueImageRiskListImageRiskListItem["ImageAccessType"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["Image"].isNull())
|
||||
imageRiskListObject.image = valueImageRiskListImageRiskListItem["Image"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["Uuid"].isNull())
|
||||
imageRiskListObject.uuid = valueImageRiskListImageRiskListItem["Uuid"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["InternetURLs"].isNull())
|
||||
imageRiskListObject.internetURLs = valueImageRiskListImageRiskListItem["InternetURLs"].asString();
|
||||
if(!valueImageRiskListImageRiskListItem["VpcURLs"].isNull())
|
||||
imageRiskListObject.vpcURLs = valueImageRiskListImageRiskListItem["VpcURLs"].asString();
|
||||
auto allEndPointListNode = valueImageRiskListImageRiskListItem["EndPointList"]["endpoint"];
|
||||
for (auto valueImageRiskListImageRiskListItemEndPointListendpoint : allEndPointListNode)
|
||||
{
|
||||
ImageRiskListItem::Endpoint endPointListObject;
|
||||
if(!valueImageRiskListImageRiskListItemEndPointListendpoint["Type"].isNull())
|
||||
endPointListObject.type = valueImageRiskListImageRiskListItemEndPointListendpoint["Type"].asString();
|
||||
auto allDomains = value["Domains"]["domain"];
|
||||
for (auto value : allDomains)
|
||||
endPointListObject.domains.push_back(value.asString());
|
||||
imageRiskListObject.endPointList.push_back(endPointListObject);
|
||||
}
|
||||
imageRiskList_.push_back(imageRiskListObject);
|
||||
}
|
||||
auto pageInfoNode = value["PageInfo"];
|
||||
if(!pageInfoNode["TotalCount"].isNull())
|
||||
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
|
||||
if(!pageInfoNode["Count"].isNull())
|
||||
pageInfo_.count = std::stoi(pageInfoNode["Count"].asString());
|
||||
if(!pageInfoNode["PageSize"].isNull())
|
||||
pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
|
||||
if(!pageInfoNode["CurrentPage"].isNull())
|
||||
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListImageRiskResult::ImageRiskListItem> ListImageRiskResult::getImageRiskList()const
|
||||
{
|
||||
return imageRiskList_;
|
||||
}
|
||||
|
||||
ListImageRiskResult::PageInfo ListImageRiskResult::getPageInfo()const
|
||||
{
|
||||
return pageInfo_;
|
||||
}
|
||||
|
||||
45
sas/src/model/ListInstanceCatalogRequest.cc
Normal file
45
sas/src/model/ListInstanceCatalogRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/sas/model/ListInstanceCatalogRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ListInstanceCatalogRequest;
|
||||
|
||||
ListInstanceCatalogRequest::ListInstanceCatalogRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ListInstanceCatalog") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListInstanceCatalogRequest::~ListInstanceCatalogRequest() {}
|
||||
|
||||
std::string ListInstanceCatalogRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListInstanceCatalogRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ListInstanceCatalogRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void ListInstanceCatalogRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
73
sas/src/model/ListInstanceCatalogResult.cc
Normal file
73
sas/src/model/ListInstanceCatalogResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/sas/model/ListInstanceCatalogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ListInstanceCatalogResult::ListInstanceCatalogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListInstanceCatalogResult::ListInstanceCatalogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListInstanceCatalogResult::~ListInstanceCatalogResult()
|
||||
{}
|
||||
|
||||
void ListInstanceCatalogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVendorsNode = value["Vendors"]["VendorsItem"];
|
||||
for (auto valueVendorsVendorsItem : allVendorsNode)
|
||||
{
|
||||
VendorsItem vendorsObject;
|
||||
if(!valueVendorsVendorsItem["Name"].isNull())
|
||||
vendorsObject.name = valueVendorsVendorsItem["Name"].asString();
|
||||
auto allInstanceTypesNode = valueVendorsVendorsItem["InstanceTypes"]["InstanceTypesItem"];
|
||||
for (auto valueVendorsVendorsItemInstanceTypesInstanceTypesItem : allInstanceTypesNode)
|
||||
{
|
||||
VendorsItem::InstanceTypesItem instanceTypesObject;
|
||||
if(!valueVendorsVendorsItemInstanceTypesInstanceTypesItem["Name"].isNull())
|
||||
instanceTypesObject.name = valueVendorsVendorsItemInstanceTypesInstanceTypesItem["Name"].asString();
|
||||
auto allInstanceSubTypesNode = valueVendorsVendorsItemInstanceTypesInstanceTypesItem["InstanceSubTypes"]["InstanceSubTypesItem"];
|
||||
for (auto valueVendorsVendorsItemInstanceTypesInstanceTypesItemInstanceSubTypesInstanceSubTypesItem : allInstanceSubTypesNode)
|
||||
{
|
||||
VendorsItem::InstanceTypesItem::InstanceSubTypesItem instanceSubTypesObject;
|
||||
if(!valueVendorsVendorsItemInstanceTypesInstanceTypesItemInstanceSubTypesInstanceSubTypesItem["Name"].isNull())
|
||||
instanceSubTypesObject.name = valueVendorsVendorsItemInstanceTypesInstanceTypesItemInstanceSubTypesInstanceSubTypesItem["Name"].asString();
|
||||
instanceTypesObject.instanceSubTypes.push_back(instanceSubTypesObject);
|
||||
}
|
||||
vendorsObject.instanceTypes.push_back(instanceTypesObject);
|
||||
}
|
||||
vendors_.push_back(vendorsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListInstanceCatalogResult::VendorsItem> ListInstanceCatalogResult::getVendors()const
|
||||
{
|
||||
return vendors_;
|
||||
}
|
||||
|
||||
98
sas/src/model/ListInterceptionHistoryRequest.cc
Normal file
98
sas/src/model/ListInterceptionHistoryRequest.cc
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* 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/sas/model/ListInterceptionHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ListInterceptionHistoryRequest;
|
||||
|
||||
ListInterceptionHistoryRequest::ListInterceptionHistoryRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ListInterceptionHistory") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListInterceptionHistoryRequest::~ListInterceptionHistoryRequest() {}
|
||||
|
||||
long ListInterceptionHistoryRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListInterceptionHistoryRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string ListInterceptionHistoryRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListInterceptionHistoryRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
int ListInterceptionHistoryRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListInterceptionHistoryRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListInterceptionHistoryRequest::getHistoryName() const {
|
||||
return historyName_;
|
||||
}
|
||||
|
||||
void ListInterceptionHistoryRequest::setHistoryName(const std::string &historyName) {
|
||||
historyName_ = historyName;
|
||||
setParameter(std::string("HistoryName"), historyName);
|
||||
}
|
||||
|
||||
std::vector<int> ListInterceptionHistoryRequest::getInterceptionTypes() const {
|
||||
return interceptionTypes_;
|
||||
}
|
||||
|
||||
void ListInterceptionHistoryRequest::setInterceptionTypes(const std::vector<int> &interceptionTypes) {
|
||||
interceptionTypes_ = interceptionTypes;
|
||||
}
|
||||
|
||||
long ListInterceptionHistoryRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListInterceptionHistoryRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
int ListInterceptionHistoryRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListInterceptionHistoryRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListInterceptionHistoryRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListInterceptionHistoryRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
133
sas/src/model/ListInterceptionHistoryResult.cc
Normal file
133
sas/src/model/ListInterceptionHistoryResult.cc
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* 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/sas/model/ListInterceptionHistoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ListInterceptionHistoryResult::ListInterceptionHistoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListInterceptionHistoryResult::ListInterceptionHistoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListInterceptionHistoryResult::~ListInterceptionHistoryResult()
|
||||
{}
|
||||
|
||||
void ListInterceptionHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInterceptionHistoryListNode = value["InterceptionHistoryList"]["InterceptionHistory"];
|
||||
for (auto valueInterceptionHistoryListInterceptionHistory : allInterceptionHistoryListNode)
|
||||
{
|
||||
InterceptionHistory interceptionHistoryListObject;
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["SrcNamespace"].isNull())
|
||||
interceptionHistoryListObject.srcNamespace = valueInterceptionHistoryListInterceptionHistory["SrcNamespace"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["SrcRuleTargetName"].isNull())
|
||||
interceptionHistoryListObject.srcRuleTargetName = valueInterceptionHistoryListInterceptionHistory["SrcRuleTargetName"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["RiskLevel"].isNull())
|
||||
interceptionHistoryListObject.riskLevel = std::stol(valueInterceptionHistoryListInterceptionHistory["RiskLevel"].asString());
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["Status"].isNull())
|
||||
interceptionHistoryListObject.status = std::stol(valueInterceptionHistoryListInterceptionHistory["Status"].asString());
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["DstImageList"].isNull())
|
||||
interceptionHistoryListObject.dstImageList = valueInterceptionHistoryListInterceptionHistory["DstImageList"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["SrcTagList"].isNull())
|
||||
interceptionHistoryListObject.srcTagList = valueInterceptionHistoryListInterceptionHistory["SrcTagList"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["DstPort"].isNull())
|
||||
interceptionHistoryListObject.dstPort = std::stol(valueInterceptionHistoryListInterceptionHistory["DstPort"].asString());
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["FirstTime"].isNull())
|
||||
interceptionHistoryListObject.firstTime = std::stol(valueInterceptionHistoryListInterceptionHistory["FirstTime"].asString());
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["SrcAppName"].isNull())
|
||||
interceptionHistoryListObject.srcAppName = valueInterceptionHistoryListInterceptionHistory["SrcAppName"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["SrcImageList"].isNull())
|
||||
interceptionHistoryListObject.srcImageList = valueInterceptionHistoryListInterceptionHistory["SrcImageList"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["RuleId"].isNull())
|
||||
interceptionHistoryListObject.ruleId = std::stol(valueInterceptionHistoryListInterceptionHistory["RuleId"].asString());
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["RuleName"].isNull())
|
||||
interceptionHistoryListObject.ruleName = valueInterceptionHistoryListInterceptionHistory["RuleName"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["InterceptionName"].isNull())
|
||||
interceptionHistoryListObject.interceptionName = std::stol(valueInterceptionHistoryListInterceptionHistory["InterceptionName"].asString());
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["DstNamespace"].isNull())
|
||||
interceptionHistoryListObject.dstNamespace = valueInterceptionHistoryListInterceptionHistory["DstNamespace"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["LastTime"].isNull())
|
||||
interceptionHistoryListObject.lastTime = std::stol(valueInterceptionHistoryListInterceptionHistory["LastTime"].asString());
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["DstAppName"].isNull())
|
||||
interceptionHistoryListObject.dstAppName = valueInterceptionHistoryListInterceptionHistory["DstAppName"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["DstRuleTargetName"].isNull())
|
||||
interceptionHistoryListObject.dstRuleTargetName = valueInterceptionHistoryListInterceptionHistory["DstRuleTargetName"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["ClusterName"].isNull())
|
||||
interceptionHistoryListObject.clusterName = valueInterceptionHistoryListInterceptionHistory["ClusterName"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["TryCount"].isNull())
|
||||
interceptionHistoryListObject.tryCount = std::stoi(valueInterceptionHistoryListInterceptionHistory["TryCount"].asString());
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["DstTagList"].isNull())
|
||||
interceptionHistoryListObject.dstTagList = valueInterceptionHistoryListInterceptionHistory["DstTagList"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["InterceptionType"].isNull())
|
||||
interceptionHistoryListObject.interceptionType = std::stoi(valueInterceptionHistoryListInterceptionHistory["InterceptionType"].asString());
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["RealInterceptionType"].isNull())
|
||||
interceptionHistoryListObject.realInterceptionType = std::stoi(valueInterceptionHistoryListInterceptionHistory["RealInterceptionType"].asString());
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["Id"].isNull())
|
||||
interceptionHistoryListObject.id = std::stol(valueInterceptionHistoryListInterceptionHistory["Id"].asString());
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["ClusterId"].isNull())
|
||||
interceptionHistoryListObject.clusterId = valueInterceptionHistoryListInterceptionHistory["ClusterId"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["RealSrcAppName"].isNull())
|
||||
interceptionHistoryListObject.realSrcAppName = valueInterceptionHistoryListInterceptionHistory["RealSrcAppName"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["RealSrcPodName"].isNull())
|
||||
interceptionHistoryListObject.realSrcPodName = valueInterceptionHistoryListInterceptionHistory["RealSrcPodName"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["RealDstAppName"].isNull())
|
||||
interceptionHistoryListObject.realDstAppName = valueInterceptionHistoryListInterceptionHistory["RealDstAppName"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["RealDstPodName"].isNull())
|
||||
interceptionHistoryListObject.realDstPodName = valueInterceptionHistoryListInterceptionHistory["RealDstPodName"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["RealDstNamespace"].isNull())
|
||||
interceptionHistoryListObject.realDstNamespace = valueInterceptionHistoryListInterceptionHistory["RealDstNamespace"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["RealDstImageName"].isNull())
|
||||
interceptionHistoryListObject.realDstImageName = valueInterceptionHistoryListInterceptionHistory["RealDstImageName"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["RealSrcNamespace"].isNull())
|
||||
interceptionHistoryListObject.realSrcNamespace = valueInterceptionHistoryListInterceptionHistory["RealSrcNamespace"].asString();
|
||||
if(!valueInterceptionHistoryListInterceptionHistory["RealSrcImageName"].isNull())
|
||||
interceptionHistoryListObject.realSrcImageName = valueInterceptionHistoryListInterceptionHistory["RealSrcImageName"].asString();
|
||||
interceptionHistoryList_.push_back(interceptionHistoryListObject);
|
||||
}
|
||||
auto pageInfoNode = value["PageInfo"];
|
||||
if(!pageInfoNode["CurrentPage"].isNull())
|
||||
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
|
||||
if(!pageInfoNode["PageSize"].isNull())
|
||||
pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
|
||||
if(!pageInfoNode["TotalCount"].isNull())
|
||||
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
|
||||
if(!pageInfoNode["Count"].isNull())
|
||||
pageInfo_.count = std::stoi(pageInfoNode["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListInterceptionHistoryResult::InterceptionHistory> ListInterceptionHistoryResult::getInterceptionHistoryList()const
|
||||
{
|
||||
return interceptionHistoryList_;
|
||||
}
|
||||
|
||||
ListInterceptionHistoryResult::PageInfo ListInterceptionHistoryResult::getPageInfo()const
|
||||
{
|
||||
return pageInfo_;
|
||||
}
|
||||
|
||||
106
sas/src/model/ListInterceptionTargetPageRequest.cc
Normal file
106
sas/src/model/ListInterceptionTargetPageRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/sas/model/ListInterceptionTargetPageRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ListInterceptionTargetPageRequest;
|
||||
|
||||
ListInterceptionTargetPageRequest::ListInterceptionTargetPageRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ListInterceptionTargetPage") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListInterceptionTargetPageRequest::~ListInterceptionTargetPageRequest() {}
|
||||
|
||||
std::string ListInterceptionTargetPageRequest::getTargetType() const {
|
||||
return targetType_;
|
||||
}
|
||||
|
||||
void ListInterceptionTargetPageRequest::setTargetType(const std::string &targetType) {
|
||||
targetType_ = targetType;
|
||||
setParameter(std::string("TargetType"), targetType);
|
||||
}
|
||||
|
||||
std::vector<std::string> ListInterceptionTargetPageRequest::getImageList() const {
|
||||
return imageList_;
|
||||
}
|
||||
|
||||
void ListInterceptionTargetPageRequest::setImageList(const std::vector<std::string> &imageList) {
|
||||
imageList_ = imageList;
|
||||
}
|
||||
|
||||
std::vector<std::string> ListInterceptionTargetPageRequest::getTagList() const {
|
||||
return tagList_;
|
||||
}
|
||||
|
||||
void ListInterceptionTargetPageRequest::setTagList(const std::vector<std::string> &tagList) {
|
||||
tagList_ = tagList;
|
||||
}
|
||||
|
||||
std::string ListInterceptionTargetPageRequest::getTargetName() const {
|
||||
return targetName_;
|
||||
}
|
||||
|
||||
void ListInterceptionTargetPageRequest::setTargetName(const std::string &targetName) {
|
||||
targetName_ = targetName;
|
||||
setParameter(std::string("TargetName"), targetName);
|
||||
}
|
||||
|
||||
std::string ListInterceptionTargetPageRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListInterceptionTargetPageRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ListInterceptionTargetPageRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListInterceptionTargetPageRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
int ListInterceptionTargetPageRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListInterceptionTargetPageRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListInterceptionTargetPageRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListInterceptionTargetPageRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListInterceptionTargetPageRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void ListInterceptionTargetPageRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
89
sas/src/model/ListInterceptionTargetPageResult.cc
Normal file
89
sas/src/model/ListInterceptionTargetPageResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* 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/sas/model/ListInterceptionTargetPageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ListInterceptionTargetPageResult::ListInterceptionTargetPageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListInterceptionTargetPageResult::ListInterceptionTargetPageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListInterceptionTargetPageResult::~ListInterceptionTargetPageResult()
|
||||
{}
|
||||
|
||||
void ListInterceptionTargetPageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRuleTargetListNode = value["RuleTargetList"]["RuleTarget"];
|
||||
for (auto valueRuleTargetListRuleTarget : allRuleTargetListNode)
|
||||
{
|
||||
RuleTarget ruleTargetListObject;
|
||||
if(!valueRuleTargetListRuleTarget["AppName"].isNull())
|
||||
ruleTargetListObject.appName = valueRuleTargetListRuleTarget["AppName"].asString();
|
||||
if(!valueRuleTargetListRuleTarget["TargetId"].isNull())
|
||||
ruleTargetListObject.targetId = std::stol(valueRuleTargetListRuleTarget["TargetId"].asString());
|
||||
if(!valueRuleTargetListRuleTarget["TargetName"].isNull())
|
||||
ruleTargetListObject.targetName = valueRuleTargetListRuleTarget["TargetName"].asString();
|
||||
if(!valueRuleTargetListRuleTarget["Namespace"].isNull())
|
||||
ruleTargetListObject._namespace = valueRuleTargetListRuleTarget["Namespace"].asString();
|
||||
if(!valueRuleTargetListRuleTarget["TargetType"].isNull())
|
||||
ruleTargetListObject.targetType = valueRuleTargetListRuleTarget["TargetType"].asString();
|
||||
if(!valueRuleTargetListRuleTarget["ClusterId"].isNull())
|
||||
ruleTargetListObject.clusterId = valueRuleTargetListRuleTarget["ClusterId"].asString();
|
||||
if(!valueRuleTargetListRuleTarget["ClusterName"].isNull())
|
||||
ruleTargetListObject.clusterName = valueRuleTargetListRuleTarget["ClusterName"].asString();
|
||||
if(!valueRuleTargetListRuleTarget["RuleType"].isNull())
|
||||
ruleTargetListObject.ruleType = valueRuleTargetListRuleTarget["RuleType"].asString();
|
||||
auto allImageList = value["ImageList"]["imageList"];
|
||||
for (auto value : allImageList)
|
||||
ruleTargetListObject.imageList.push_back(value.asString());
|
||||
auto allTagList = value["TagList"]["tagList"];
|
||||
for (auto value : allTagList)
|
||||
ruleTargetListObject.tagList.push_back(value.asString());
|
||||
ruleTargetList_.push_back(ruleTargetListObject);
|
||||
}
|
||||
auto pageInfoNode = value["PageInfo"];
|
||||
if(!pageInfoNode["CurrentPage"].isNull())
|
||||
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
|
||||
if(!pageInfoNode["PageSize"].isNull())
|
||||
pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
|
||||
if(!pageInfoNode["TotalCount"].isNull())
|
||||
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
ListInterceptionTargetPageResult::PageInfo ListInterceptionTargetPageResult::getPageInfo()const
|
||||
{
|
||||
return pageInfo_;
|
||||
}
|
||||
|
||||
std::vector<ListInterceptionTargetPageResult::RuleTarget> ListInterceptionTargetPageResult::getRuleTargetList()const
|
||||
{
|
||||
return ruleTargetList_;
|
||||
}
|
||||
|
||||
81
sas/src/model/ListPodRiskRequest.cc
Normal file
81
sas/src/model/ListPodRiskRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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/sas/model/ListPodRiskRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ListPodRiskRequest;
|
||||
|
||||
ListPodRiskRequest::ListPodRiskRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ListPodRisk") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPodRiskRequest::~ListPodRiskRequest() {}
|
||||
|
||||
std::string ListPodRiskRequest::getPodName() const {
|
||||
return podName_;
|
||||
}
|
||||
|
||||
void ListPodRiskRequest::setPodName(const std::string &podName) {
|
||||
podName_ = podName;
|
||||
setParameter(std::string("PodName"), podName);
|
||||
}
|
||||
|
||||
std::string ListPodRiskRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListPodRiskRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
long ListPodRiskRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPodRiskRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListPodRiskRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListPodRiskRequest::setCurrentPage(long currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListPodRiskRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListPodRiskRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string ListPodRiskRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void ListPodRiskRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
91
sas/src/model/ListPodRiskResult.cc
Normal file
91
sas/src/model/ListPodRiskResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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/sas/model/ListPodRiskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ListPodRiskResult::ListPodRiskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPodRiskResult::ListPodRiskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPodRiskResult::~ListPodRiskResult()
|
||||
{}
|
||||
|
||||
void ListPodRiskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPodRiskListNode = value["PodRiskList"]["PodRiskListItem"];
|
||||
for (auto valuePodRiskListPodRiskListItem : allPodRiskListNode)
|
||||
{
|
||||
PodRiskListItem podRiskListObject;
|
||||
if(!valuePodRiskListPodRiskListItem["Pod"].isNull())
|
||||
podRiskListObject.pod = valuePodRiskListPodRiskListItem["Pod"].asString();
|
||||
if(!valuePodRiskListPodRiskListItem["NodeName"].isNull())
|
||||
podRiskListObject.nodeName = valuePodRiskListPodRiskListItem["NodeName"].asString();
|
||||
if(!valuePodRiskListPodRiskListItem["ClusterId"].isNull())
|
||||
podRiskListObject.clusterId = valuePodRiskListPodRiskListItem["ClusterId"].asString();
|
||||
if(!valuePodRiskListPodRiskListItem["PodIp"].isNull())
|
||||
podRiskListObject.podIp = valuePodRiskListPodRiskListItem["PodIp"].asString();
|
||||
if(!valuePodRiskListPodRiskListItem["CreateTime"].isNull())
|
||||
podRiskListObject.createTime = std::stol(valuePodRiskListPodRiskListItem["CreateTime"].asString());
|
||||
if(!valuePodRiskListPodRiskListItem["ClusterName"].isNull())
|
||||
podRiskListObject.clusterName = valuePodRiskListPodRiskListItem["ClusterName"].asString();
|
||||
if(!valuePodRiskListPodRiskListItem["Namespace"].isNull())
|
||||
podRiskListObject._namespace = valuePodRiskListPodRiskListItem["Namespace"].asString();
|
||||
if(!valuePodRiskListPodRiskListItem["VulCount"].isNull())
|
||||
podRiskListObject.vulCount = std::stoi(valuePodRiskListPodRiskListItem["VulCount"].asString());
|
||||
if(!valuePodRiskListPodRiskListItem["AlarmCount"].isNull())
|
||||
podRiskListObject.alarmCount = std::stoi(valuePodRiskListPodRiskListItem["AlarmCount"].asString());
|
||||
if(!valuePodRiskListPodRiskListItem["HcCount"].isNull())
|
||||
podRiskListObject.hcCount = std::stoi(valuePodRiskListPodRiskListItem["HcCount"].asString());
|
||||
if(!valuePodRiskListPodRiskListItem["InstanceId"].isNull())
|
||||
podRiskListObject.instanceId = valuePodRiskListPodRiskListItem["InstanceId"].asString();
|
||||
podRiskList_.push_back(podRiskListObject);
|
||||
}
|
||||
auto pageInfoNode = value["PageInfo"];
|
||||
if(!pageInfoNode["TotalCount"].isNull())
|
||||
pageInfo_.totalCount = std::stoi(pageInfoNode["TotalCount"].asString());
|
||||
if(!pageInfoNode["Count"].isNull())
|
||||
pageInfo_.count = std::stoi(pageInfoNode["Count"].asString());
|
||||
if(!pageInfoNode["PageSize"].isNull())
|
||||
pageInfo_.pageSize = std::stoi(pageInfoNode["PageSize"].asString());
|
||||
if(!pageInfoNode["CurrentPage"].isNull())
|
||||
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
ListPodRiskResult::PageInfo ListPodRiskResult::getPageInfo()const
|
||||
{
|
||||
return pageInfo_;
|
||||
}
|
||||
|
||||
std::vector<ListPodRiskResult::PodRiskListItem> ListPodRiskResult::getPodRiskList()const
|
||||
{
|
||||
return podRiskList_;
|
||||
}
|
||||
|
||||
45
sas/src/model/ListRuleTargetAllRequest.cc
Normal file
45
sas/src/model/ListRuleTargetAllRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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/sas/model/ListRuleTargetAllRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ListRuleTargetAllRequest;
|
||||
|
||||
ListRuleTargetAllRequest::ListRuleTargetAllRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ListRuleTargetAll") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListRuleTargetAllRequest::~ListRuleTargetAllRequest() {}
|
||||
|
||||
std::string ListRuleTargetAllRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ListRuleTargetAllRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string ListRuleTargetAllRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ListRuleTargetAllRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
61
sas/src/model/ListRuleTargetAllResult.cc
Normal file
61
sas/src/model/ListRuleTargetAllResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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/sas/model/ListRuleTargetAllResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ListRuleTargetAllResult::ListRuleTargetAllResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListRuleTargetAllResult::ListRuleTargetAllResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListRuleTargetAllResult::~ListRuleTargetAllResult()
|
||||
{}
|
||||
|
||||
void ListRuleTargetAllResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRuleTargetListNode = value["RuleTargetList"]["RuleTarget"];
|
||||
for (auto valueRuleTargetListRuleTarget : allRuleTargetListNode)
|
||||
{
|
||||
RuleTarget ruleTargetListObject;
|
||||
if(!valueRuleTargetListRuleTarget["TargetId"].isNull())
|
||||
ruleTargetListObject.targetId = std::stol(valueRuleTargetListRuleTarget["TargetId"].asString());
|
||||
if(!valueRuleTargetListRuleTarget["TargetName"].isNull())
|
||||
ruleTargetListObject.targetName = valueRuleTargetListRuleTarget["TargetName"].asString();
|
||||
if(!valueRuleTargetListRuleTarget["TargetType"].isNull())
|
||||
ruleTargetListObject.targetType = valueRuleTargetListRuleTarget["TargetType"].asString();
|
||||
ruleTargetList_.push_back(ruleTargetListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListRuleTargetAllResult::RuleTarget> ListRuleTargetAllResult::getRuleTargetList()const
|
||||
{
|
||||
return ruleTargetList_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ ListVulAutoRepairConfigRequest::ListVulAutoRepairConfigRequest()
|
||||
|
||||
ListVulAutoRepairConfigRequest::~ListVulAutoRepairConfigRequest() {}
|
||||
|
||||
int ListVulAutoRepairConfigRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListVulAutoRepairConfigRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListVulAutoRepairConfigRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void ListVulAutoRepairConfigRequest::setType(const std::string &type) {
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string ListVulAutoRepairConfigRequest::getAliasName() const {
|
||||
return aliasName_;
|
||||
}
|
||||
|
||||
void ListVulAutoRepairConfigRequest::setAliasName(const std::string &aliasName) {
|
||||
aliasName_ = aliasName;
|
||||
setParameter(std::string("AliasName"), aliasName);
|
||||
}
|
||||
|
||||
std::string ListVulAutoRepairConfigRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -52,21 +70,3 @@ void ListVulAutoRepairConfigRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListVulAutoRepairConfigRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListVulAutoRepairConfigRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListVulAutoRepairConfigRequest::getAliasName() const {
|
||||
return aliasName_;
|
||||
}
|
||||
|
||||
void ListVulAutoRepairConfigRequest::setAliasName(const std::string &aliasName) {
|
||||
aliasName_ = aliasName;
|
||||
setParameter(std::string("AliasName"), aliasName);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,6 +34,15 @@ void ModifyBackupPolicyStatusRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyStatusRequest::getPolicyVersion() const {
|
||||
return policyVersion_;
|
||||
}
|
||||
|
||||
void ModifyBackupPolicyStatusRequest::setPolicyVersion(const std::string &policyVersion) {
|
||||
policyVersion_ = policyVersion;
|
||||
setParameter(std::string("PolicyVersion"), policyVersion);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyStatusRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -52,15 +61,6 @@ void ModifyBackupPolicyStatusRequest::setId(long id) {
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyStatusRequest::getPolicyVersion() const {
|
||||
return policyVersion_;
|
||||
}
|
||||
|
||||
void ModifyBackupPolicyStatusRequest::setPolicyVersion(const std::string &policyVersion) {
|
||||
policyVersion_ = policyVersion;
|
||||
setParameter(std::string("PolicyVersion"), policyVersion);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyStatusRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void ModifyClientConfSetupRequest::setStrategyConfig(const std::string &strategy
|
||||
setParameter(std::string("StrategyConfig"), strategyConfig);
|
||||
}
|
||||
|
||||
std::string ModifyClientConfSetupRequest::getStrategyTagValue() const {
|
||||
return strategyTagValue_;
|
||||
}
|
||||
|
||||
void ModifyClientConfSetupRequest::setStrategyTagValue(const std::string &strategyTagValue) {
|
||||
strategyTagValue_ = strategyTagValue;
|
||||
setParameter(std::string("StrategyTagValue"), strategyTagValue);
|
||||
}
|
||||
|
||||
std::string ModifyClientConfSetupRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
@@ -61,12 +70,3 @@ void ModifyClientConfSetupRequest::setResourceDirectoryAccountId(const std::stri
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
std::string ModifyClientConfSetupRequest::getStrategyTagValue() const {
|
||||
return strategyTagValue_;
|
||||
}
|
||||
|
||||
void ModifyClientConfSetupRequest::setStrategyTagValue(const std::string &strategyTagValue) {
|
||||
strategyTagValue_ = strategyTagValue;
|
||||
setParameter(std::string("StrategyTagValue"), strategyTagValue);
|
||||
}
|
||||
|
||||
|
||||
44
sas/src/model/ModifyClusterCnnfStatusUserConfirmRequest.cc
Normal file
44
sas/src/model/ModifyClusterCnnfStatusUserConfirmRequest.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/sas/model/ModifyClusterCnnfStatusUserConfirmRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyClusterCnnfStatusUserConfirmRequest;
|
||||
|
||||
ModifyClusterCnnfStatusUserConfirmRequest::ModifyClusterCnnfStatusUserConfirmRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ModifyClusterCnnfStatusUserConfirm") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyClusterCnnfStatusUserConfirmRequest::~ModifyClusterCnnfStatusUserConfirmRequest() {}
|
||||
|
||||
std::vector<std::string> ModifyClusterCnnfStatusUserConfirmRequest::getClusterIds() const {
|
||||
return clusterIds_;
|
||||
}
|
||||
|
||||
void ModifyClusterCnnfStatusUserConfirmRequest::setClusterIds(const std::vector<std::string> &clusterIds) {
|
||||
clusterIds_ = clusterIds;
|
||||
}
|
||||
|
||||
bool ModifyClusterCnnfStatusUserConfirmRequest::getUserConfirm() const {
|
||||
return userConfirm_;
|
||||
}
|
||||
|
||||
void ModifyClusterCnnfStatusUserConfirmRequest::setUserConfirm(bool userConfirm) {
|
||||
userConfirm_ = userConfirm;
|
||||
setParameter(std::string("UserConfirm"), userConfirm ? "true" : "false");
|
||||
}
|
||||
|
||||
44
sas/src/model/ModifyClusterCnnfStatusUserConfirmResult.cc
Normal file
44
sas/src/model/ModifyClusterCnnfStatusUserConfirmResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/sas/model/ModifyClusterCnnfStatusUserConfirmResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyClusterCnnfStatusUserConfirmResult::ModifyClusterCnnfStatusUserConfirmResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyClusterCnnfStatusUserConfirmResult::ModifyClusterCnnfStatusUserConfirmResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyClusterCnnfStatusUserConfirmResult::~ModifyClusterCnnfStatusUserConfirmResult()
|
||||
{}
|
||||
|
||||
void ModifyClusterCnnfStatusUserConfirmResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -34,15 +34,6 @@ void ModifyCreateVulWhitelistRequest::setReason(const std::string &reason) {
|
||||
setParameter(std::string("Reason"), reason);
|
||||
}
|
||||
|
||||
std::string ModifyCreateVulWhitelistRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyCreateVulWhitelistRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyCreateVulWhitelistRequest::getWhitelist() const {
|
||||
return whitelist_;
|
||||
}
|
||||
@@ -52,6 +43,15 @@ void ModifyCreateVulWhitelistRequest::setWhitelist(const std::string &whitelist)
|
||||
setParameter(std::string("Whitelist"), whitelist);
|
||||
}
|
||||
|
||||
std::string ModifyCreateVulWhitelistRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyCreateVulWhitelistRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyCreateVulWhitelistRequest::getTargetInfo() const {
|
||||
return targetInfo_;
|
||||
}
|
||||
|
||||
108
sas/src/model/ModifyInterceptionRuleRequest.cc
Normal file
108
sas/src/model/ModifyInterceptionRuleRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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/sas/model/ModifyInterceptionRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyInterceptionRuleRequest;
|
||||
|
||||
ModifyInterceptionRuleRequest::ModifyInterceptionRuleRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ModifyInterceptionRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyInterceptionRuleRequest::~ModifyInterceptionRuleRequest() {}
|
||||
|
||||
std::string ModifyInterceptionRuleRequest::getRuleName() const {
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleRequest::setRuleName(const std::string &ruleName) {
|
||||
ruleName_ = ruleName;
|
||||
setParameter(std::string("RuleName"), ruleName);
|
||||
}
|
||||
|
||||
std::string ModifyInterceptionRuleRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
long ModifyInterceptionRuleRequest::getOrderIndex() const {
|
||||
return orderIndex_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleRequest::setOrderIndex(long orderIndex) {
|
||||
orderIndex_ = orderIndex;
|
||||
setParameter(std::string("OrderIndex"), std::to_string(orderIndex));
|
||||
}
|
||||
|
||||
std::string ModifyInterceptionRuleRequest::getDstTarget() const {
|
||||
return dstTarget_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleRequest::setDstTarget(const std::string &dstTarget) {
|
||||
dstTarget_ = dstTarget;
|
||||
setParameter(std::string("DstTarget"), dstTarget);
|
||||
}
|
||||
|
||||
std::string ModifyInterceptionRuleRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
int ModifyInterceptionRuleRequest::getInterceptType() const {
|
||||
return interceptType_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleRequest::setInterceptType(int interceptType) {
|
||||
interceptType_ = interceptType;
|
||||
setParameter(std::string("InterceptType"), std::to_string(interceptType));
|
||||
}
|
||||
|
||||
int ModifyInterceptionRuleRequest::getRuleSwitch() const {
|
||||
return ruleSwitch_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleRequest::setRuleSwitch(int ruleSwitch) {
|
||||
ruleSwitch_ = ruleSwitch;
|
||||
setParameter(std::string("RuleSwitch"), std::to_string(ruleSwitch));
|
||||
}
|
||||
|
||||
long ModifyInterceptionRuleRequest::getRuleId() const {
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleRequest::setRuleId(long ruleId) {
|
||||
ruleId_ = ruleId;
|
||||
setParameter(std::string("RuleId"), std::to_string(ruleId));
|
||||
}
|
||||
|
||||
std::string ModifyInterceptionRuleRequest::getSrcTarget() const {
|
||||
return srcTarget_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleRequest::setSrcTarget(const std::string &srcTarget) {
|
||||
srcTarget_ = srcTarget;
|
||||
setParameter(std::string("SrcTarget"), srcTarget);
|
||||
}
|
||||
|
||||
44
sas/src/model/ModifyInterceptionRuleResult.cc
Normal file
44
sas/src/model/ModifyInterceptionRuleResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/sas/model/ModifyInterceptionRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyInterceptionRuleResult::ModifyInterceptionRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyInterceptionRuleResult::ModifyInterceptionRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyInterceptionRuleResult::~ModifyInterceptionRuleResult()
|
||||
{}
|
||||
|
||||
void ModifyInterceptionRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
63
sas/src/model/ModifyInterceptionRuleSwitchRequest.cc
Normal file
63
sas/src/model/ModifyInterceptionRuleSwitchRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/sas/model/ModifyInterceptionRuleSwitchRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyInterceptionRuleSwitchRequest;
|
||||
|
||||
ModifyInterceptionRuleSwitchRequest::ModifyInterceptionRuleSwitchRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ModifyInterceptionRuleSwitch") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyInterceptionRuleSwitchRequest::~ModifyInterceptionRuleSwitchRequest() {}
|
||||
|
||||
std::string ModifyInterceptionRuleSwitchRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleSwitchRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyInterceptionRuleSwitchRequest::getRuleIds() const {
|
||||
return ruleIds_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleSwitchRequest::setRuleIds(const std::string &ruleIds) {
|
||||
ruleIds_ = ruleIds;
|
||||
setParameter(std::string("RuleIds"), ruleIds);
|
||||
}
|
||||
|
||||
std::string ModifyInterceptionRuleSwitchRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleSwitchRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
int ModifyInterceptionRuleSwitchRequest::getRuleSwitch() const {
|
||||
return ruleSwitch_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionRuleSwitchRequest::setRuleSwitch(int ruleSwitch) {
|
||||
ruleSwitch_ = ruleSwitch;
|
||||
setParameter(std::string("RuleSwitch"), std::to_string(ruleSwitch));
|
||||
}
|
||||
|
||||
44
sas/src/model/ModifyInterceptionRuleSwitchResult.cc
Normal file
44
sas/src/model/ModifyInterceptionRuleSwitchResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/sas/model/ModifyInterceptionRuleSwitchResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyInterceptionRuleSwitchResult::ModifyInterceptionRuleSwitchResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyInterceptionRuleSwitchResult::ModifyInterceptionRuleSwitchResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyInterceptionRuleSwitchResult::~ModifyInterceptionRuleSwitchResult()
|
||||
{}
|
||||
|
||||
void ModifyInterceptionRuleSwitchResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
97
sas/src/model/ModifyInterceptionTargetRequest.cc
Normal file
97
sas/src/model/ModifyInterceptionTargetRequest.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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/sas/model/ModifyInterceptionTargetRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::ModifyInterceptionTargetRequest;
|
||||
|
||||
ModifyInterceptionTargetRequest::ModifyInterceptionTargetRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "ModifyInterceptionTarget") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyInterceptionTargetRequest::~ModifyInterceptionTargetRequest() {}
|
||||
|
||||
long ModifyInterceptionTargetRequest::getTargetId() const {
|
||||
return targetId_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionTargetRequest::setTargetId(long targetId) {
|
||||
targetId_ = targetId;
|
||||
setParameter(std::string("TargetId"), std::to_string(targetId));
|
||||
}
|
||||
|
||||
std::string ModifyInterceptionTargetRequest::getTargetType() const {
|
||||
return targetType_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionTargetRequest::setTargetType(const std::string &targetType) {
|
||||
targetType_ = targetType;
|
||||
setParameter(std::string("TargetType"), targetType);
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyInterceptionTargetRequest::getImageList() const {
|
||||
return imageList_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionTargetRequest::setImageList(const std::vector<std::string> &imageList) {
|
||||
imageList_ = imageList;
|
||||
}
|
||||
|
||||
std::vector<std::string> ModifyInterceptionTargetRequest::getTagList() const {
|
||||
return tagList_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionTargetRequest::setTagList(const std::vector<std::string> &tagList) {
|
||||
tagList_ = tagList;
|
||||
}
|
||||
|
||||
std::string ModifyInterceptionTargetRequest::getTargetName() const {
|
||||
return targetName_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionTargetRequest::setTargetName(const std::string &targetName) {
|
||||
targetName_ = targetName;
|
||||
setParameter(std::string("TargetName"), targetName);
|
||||
}
|
||||
|
||||
std::string ModifyInterceptionTargetRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionTargetRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyInterceptionTargetRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionTargetRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string ModifyInterceptionTargetRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void ModifyInterceptionTargetRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
51
sas/src/model/ModifyInterceptionTargetResult.cc
Normal file
51
sas/src/model/ModifyInterceptionTargetResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/sas/model/ModifyInterceptionTargetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
ModifyInterceptionTargetResult::ModifyInterceptionTargetResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyInterceptionTargetResult::ModifyInterceptionTargetResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyInterceptionTargetResult::~ModifyInterceptionTargetResult()
|
||||
{}
|
||||
|
||||
void ModifyInterceptionTargetResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool ModifyInterceptionTargetResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -52,15 +52,6 @@ void ModifyOperateVulRequest::setSourceIp(const std::string &sourceIp) {
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyOperateVulRequest::getInfo() const {
|
||||
return info_;
|
||||
}
|
||||
|
||||
void ModifyOperateVulRequest::setInfo(const std::string &info) {
|
||||
info_ = info;
|
||||
setParameter(std::string("Info"), info);
|
||||
}
|
||||
|
||||
std::string ModifyOperateVulRequest::getOperateType() const {
|
||||
return operateType_;
|
||||
}
|
||||
@@ -70,3 +61,12 @@ void ModifyOperateVulRequest::setOperateType(const std::string &operateType) {
|
||||
setParameter(std::string("OperateType"), operateType);
|
||||
}
|
||||
|
||||
std::string ModifyOperateVulRequest::getInfo() const {
|
||||
return info_;
|
||||
}
|
||||
|
||||
void ModifyOperateVulRequest::setInfo(const std::string &info) {
|
||||
info_ = info;
|
||||
setParameter(std::string("Info"), info);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,15 @@ void ModifySecurityEventMarkMissIndividuallyRequest::setSourceIp(const std::stri
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifySecurityEventMarkMissIndividuallyRequest::getDeleteMarkMissParam() const {
|
||||
return deleteMarkMissParam_;
|
||||
}
|
||||
|
||||
void ModifySecurityEventMarkMissIndividuallyRequest::setDeleteMarkMissParam(const std::string &deleteMarkMissParam) {
|
||||
deleteMarkMissParam_ = deleteMarkMissParam;
|
||||
setBodyParameter(std::string("DeleteMarkMissParam"), deleteMarkMissParam);
|
||||
}
|
||||
|
||||
std::string ModifySecurityEventMarkMissIndividuallyRequest::getFrom() const {
|
||||
return from_;
|
||||
}
|
||||
@@ -61,12 +70,3 @@ void ModifySecurityEventMarkMissIndividuallyRequest::setLang(const std::string &
|
||||
setBodyParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string ModifySecurityEventMarkMissIndividuallyRequest::getDeleteMarkMissParam() const {
|
||||
return deleteMarkMissParam_;
|
||||
}
|
||||
|
||||
void ModifySecurityEventMarkMissIndividuallyRequest::setDeleteMarkMissParam(const std::string &deleteMarkMissParam) {
|
||||
deleteMarkMissParam_ = deleteMarkMissParam;
|
||||
setBodyParameter(std::string("DeleteMarkMissParam"), deleteMarkMissParam);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,24 +34,6 @@ void ModifyStrategyTargetRequest::setType(const std::string &type) {
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string ModifyStrategyTargetRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyStrategyTargetRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyStrategyTargetRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void ModifyStrategyTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
std::string ModifyStrategyTargetRequest::getTarget() const {
|
||||
return target_;
|
||||
}
|
||||
@@ -61,6 +43,15 @@ void ModifyStrategyTargetRequest::setTarget(const std::string &target) {
|
||||
setParameter(std::string("Target"), target);
|
||||
}
|
||||
|
||||
std::string ModifyStrategyTargetRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyStrategyTargetRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyStrategyTargetRequest::getConfig() const {
|
||||
return config_;
|
||||
}
|
||||
@@ -70,3 +61,12 @@ void ModifyStrategyTargetRequest::setConfig(const std::string &config) {
|
||||
setParameter(std::string("Config"), config);
|
||||
}
|
||||
|
||||
std::string ModifyStrategyTargetRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void ModifyStrategyTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,15 +43,6 @@ void ModifyVulConfigRequest::setSourceIp(const std::string &sourceIp) {
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyVulConfigRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void ModifyVulConfigRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
std::string ModifyVulConfigRequest::getConfig() const {
|
||||
return config_;
|
||||
}
|
||||
@@ -61,3 +52,12 @@ void ModifyVulConfigRequest::setConfig(const std::string &config) {
|
||||
setParameter(std::string("Config"), config);
|
||||
}
|
||||
|
||||
std::string ModifyVulConfigRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void ModifyVulConfigRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,24 +25,6 @@ ModifyVulTargetRequest::ModifyVulTargetRequest()
|
||||
|
||||
ModifyVulTargetRequest::~ModifyVulTargetRequest() {}
|
||||
|
||||
std::string ModifyVulTargetRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyVulTargetRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyVulTargetRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void ModifyVulTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
std::string ModifyVulTargetRequest::getTarget() const {
|
||||
return target_;
|
||||
}
|
||||
@@ -52,6 +34,15 @@ void ModifyVulTargetRequest::setTarget(const std::string &target) {
|
||||
setParameter(std::string("Target"), target);
|
||||
}
|
||||
|
||||
std::string ModifyVulTargetRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void ModifyVulTargetRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string ModifyVulTargetRequest::getConfig() const {
|
||||
return config_;
|
||||
}
|
||||
@@ -61,3 +52,12 @@ void ModifyVulTargetRequest::setConfig(const std::string &config) {
|
||||
setParameter(std::string("Config"), config);
|
||||
}
|
||||
|
||||
std::string ModifyVulTargetRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void ModifyVulTargetRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,15 +43,6 @@ void ModifyVulWhitelistTargetRequest::setSourceIp(const std::string &sourceIp) {
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
long ModifyVulWhitelistTargetRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void ModifyVulWhitelistTargetRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
std::string ModifyVulWhitelistTargetRequest::getTargetInfo() const {
|
||||
return targetInfo_;
|
||||
}
|
||||
@@ -61,3 +52,12 @@ void ModifyVulWhitelistTargetRequest::setTargetInfo(const std::string &targetInf
|
||||
setParameter(std::string("TargetInfo"), targetInfo);
|
||||
}
|
||||
|
||||
long ModifyVulWhitelistTargetRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void ModifyVulWhitelistTargetRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
|
||||
@@ -25,24 +25,6 @@ OpenSensitiveFileScanRequest::OpenSensitiveFileScanRequest()
|
||||
|
||||
OpenSensitiveFileScanRequest::~OpenSensitiveFileScanRequest() {}
|
||||
|
||||
int OpenSensitiveFileScanRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void OpenSensitiveFileScanRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string OpenSensitiveFileScanRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void OpenSensitiveFileScanRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
int OpenSensitiveFileScanRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
@@ -52,6 +34,15 @@ void OpenSensitiveFileScanRequest::setCurrentPage(int currentPage) {
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
int OpenSensitiveFileScanRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void OpenSensitiveFileScanRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string OpenSensitiveFileScanRequest::getSwitchOn() const {
|
||||
return switchOn_;
|
||||
}
|
||||
@@ -61,3 +52,12 @@ void OpenSensitiveFileScanRequest::setSwitchOn(const std::string &switchOn) {
|
||||
setParameter(std::string("SwitchOn"), switchOn);
|
||||
}
|
||||
|
||||
std::string OpenSensitiveFileScanRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void OpenSensitiveFileScanRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,15 +34,6 @@ void OperateAgentClientInstallRequest::setSourceIp(const std::string &sourceIp)
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string OperateAgentClientInstallRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void OperateAgentClientInstallRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string OperateAgentClientInstallRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
@@ -52,6 +43,15 @@ void OperateAgentClientInstallRequest::setInstanceIds(const std::string &instanc
|
||||
setParameter(std::string("InstanceIds"), instanceIds);
|
||||
}
|
||||
|
||||
std::string OperateAgentClientInstallRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void OperateAgentClientInstallRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string OperateAgentClientInstallRequest::getUuids() const {
|
||||
return uuids_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,24 @@ PageImageRegistryRequest::PageImageRegistryRequest()
|
||||
|
||||
PageImageRegistryRequest::~PageImageRegistryRequest() {}
|
||||
|
||||
std::string PageImageRegistryRequest::getRegistryNameLike() const {
|
||||
return registryNameLike_;
|
||||
}
|
||||
|
||||
void PageImageRegistryRequest::setRegistryNameLike(const std::string ®istryNameLike) {
|
||||
registryNameLike_ = registryNameLike;
|
||||
setBodyParameter(std::string("RegistryNameLike"), registryNameLike);
|
||||
}
|
||||
|
||||
int PageImageRegistryRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void PageImageRegistryRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::vector<std::string> PageImageRegistryRequest::getRegistryTypeNotInList() const {
|
||||
return registryTypeNotInList_;
|
||||
}
|
||||
@@ -51,24 +69,6 @@ void PageImageRegistryRequest::setPageSize(int pageSize) {
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string PageImageRegistryRequest::getRegistryNameLike() const {
|
||||
return registryNameLike_;
|
||||
}
|
||||
|
||||
void PageImageRegistryRequest::setRegistryNameLike(const std::string ®istryNameLike) {
|
||||
registryNameLike_ = registryNameLike;
|
||||
setBodyParameter(std::string("RegistryNameLike"), registryNameLike);
|
||||
}
|
||||
|
||||
int PageImageRegistryRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void PageImageRegistryRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setBodyParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::vector<std::string> PageImageRegistryRequest::getRegistryTypeInList() const {
|
||||
return registryTypeInList_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,14 @@ RemoveCheckResultWhiteListRequest::RemoveCheckResultWhiteListRequest()
|
||||
|
||||
RemoveCheckResultWhiteListRequest::~RemoveCheckResultWhiteListRequest() {}
|
||||
|
||||
std::vector<long> RemoveCheckResultWhiteListRequest::getCheckIds() const {
|
||||
return checkIds_;
|
||||
}
|
||||
|
||||
void RemoveCheckResultWhiteListRequest::setCheckIds(const std::vector<long> &checkIds) {
|
||||
checkIds_ = checkIds;
|
||||
}
|
||||
|
||||
std::string RemoveCheckResultWhiteListRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
@@ -43,14 +51,6 @@ void RemoveCheckResultWhiteListRequest::setSourceIp(const std::string &sourceIp)
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::vector<long> RemoveCheckResultWhiteListRequest::getCheckIds() const {
|
||||
return checkIds_;
|
||||
}
|
||||
|
||||
void RemoveCheckResultWhiteListRequest::setCheckIds(const std::vector<long> &checkIds) {
|
||||
checkIds_ = checkIds;
|
||||
}
|
||||
|
||||
std::string RemoveCheckResultWhiteListRequest::getCheckGroupId() const {
|
||||
return checkGroupId_;
|
||||
}
|
||||
|
||||
63
sas/src/model/SetClusterInterceptionConfigRequest.cc
Normal file
63
sas/src/model/SetClusterInterceptionConfigRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/sas/model/SetClusterInterceptionConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::SetClusterInterceptionConfigRequest;
|
||||
|
||||
SetClusterInterceptionConfigRequest::SetClusterInterceptionConfigRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "SetClusterInterceptionConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetClusterInterceptionConfigRequest::~SetClusterInterceptionConfigRequest() {}
|
||||
|
||||
std::string SetClusterInterceptionConfigRequest::getClusterIds() const {
|
||||
return clusterIds_;
|
||||
}
|
||||
|
||||
void SetClusterInterceptionConfigRequest::setClusterIds(const std::string &clusterIds) {
|
||||
clusterIds_ = clusterIds;
|
||||
setParameter(std::string("ClusterIds"), clusterIds);
|
||||
}
|
||||
|
||||
std::string SetClusterInterceptionConfigRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void SetClusterInterceptionConfigRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
int SetClusterInterceptionConfigRequest::getSwitchType() const {
|
||||
return switchType_;
|
||||
}
|
||||
|
||||
void SetClusterInterceptionConfigRequest::setSwitchType(int switchType) {
|
||||
switchType_ = switchType;
|
||||
setParameter(std::string("SwitchType"), std::to_string(switchType));
|
||||
}
|
||||
|
||||
int SetClusterInterceptionConfigRequest::getSwitchOn() const {
|
||||
return switchOn_;
|
||||
}
|
||||
|
||||
void SetClusterInterceptionConfigRequest::setSwitchOn(int switchOn) {
|
||||
switchOn_ = switchOn;
|
||||
setParameter(std::string("SwitchOn"), std::to_string(switchOn));
|
||||
}
|
||||
|
||||
51
sas/src/model/SetClusterInterceptionConfigResult.cc
Normal file
51
sas/src/model/SetClusterInterceptionConfigResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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/sas/model/SetClusterInterceptionConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
SetClusterInterceptionConfigResult::SetClusterInterceptionConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetClusterInterceptionConfigResult::SetClusterInterceptionConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetClusterInterceptionConfigResult::~SetClusterInterceptionConfigResult()
|
||||
{}
|
||||
|
||||
void SetClusterInterceptionConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool SetClusterInterceptionConfigResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user