Support DescribeInstallCaptcha API.

This commit is contained in:
sdk-team
2021-05-17 03:43:16 +00:00
parent 01e5e4b6af
commit be3de6fa81
415 changed files with 29534 additions and 501 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/AddVpcHoneyPotRequest.h>
using AlibabaCloud::Sas::Model::AddVpcHoneyPotRequest;
AddVpcHoneyPotRequest::AddVpcHoneyPotRequest() :
RpcServiceRequest("sas", "2018-12-03", "AddVpcHoneyPot")
{
setMethod(HttpRequest::Method::Post);
}
AddVpcHoneyPotRequest::~AddVpcHoneyPotRequest()
{}
std::string AddVpcHoneyPotRequest::getSourceIp()const
{
return sourceIp_;
}
void AddVpcHoneyPotRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string AddVpcHoneyPotRequest::getVpcSwitchId()const
{
return vpcSwitchId_;
}
void AddVpcHoneyPotRequest::setVpcSwitchId(const std::string& vpcSwitchId)
{
vpcSwitchId_ = vpcSwitchId;
setParameter("VpcSwitchId", vpcSwitchId);
}
std::string AddVpcHoneyPotRequest::getVpcId()const
{
return vpcId_;
}
void AddVpcHoneyPotRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}

View 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/AddVpcHoneyPotResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
AddVpcHoneyPotResult::AddVpcHoneyPotResult() :
ServiceResult()
{}
AddVpcHoneyPotResult::AddVpcHoneyPotResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddVpcHoneyPotResult::~AddVpcHoneyPotResult()
{}
void AddVpcHoneyPotResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/CheckQuaraFileIdRequest.h>
using AlibabaCloud::Sas::Model::CheckQuaraFileIdRequest;
CheckQuaraFileIdRequest::CheckQuaraFileIdRequest() :
RpcServiceRequest("sas", "2018-12-03", "CheckQuaraFileId")
{
setMethod(HttpRequest::Method::Post);
}
CheckQuaraFileIdRequest::~CheckQuaraFileIdRequest()
{}
std::vector<std::string> CheckQuaraFileIdRequest::getQuaraFileIds()const
{
return quaraFileIds_;
}
void CheckQuaraFileIdRequest::setQuaraFileIds(const std::vector<std::string>& quaraFileIds)
{
quaraFileIds_ = quaraFileIds;
for(int dep1 = 0; dep1!= quaraFileIds.size(); dep1++) {
setParameter("QuaraFileIds."+ std::to_string(dep1), quaraFileIds.at(dep1));
}
}
std::string CheckQuaraFileIdRequest::getUuid()const
{
return uuid_;
}
void CheckQuaraFileIdRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string CheckQuaraFileIdRequest::getSourceIp()const
{
return sourceIp_;
}
void CheckQuaraFileIdRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View 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/CheckQuaraFileIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
CheckQuaraFileIdResult::CheckQuaraFileIdResult() :
ServiceResult()
{}
CheckQuaraFileIdResult::CheckQuaraFileIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckQuaraFileIdResult::~CheckQuaraFileIdResult()
{}
void CheckQuaraFileIdResult::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 CheckQuaraFileIdResult::getData()const
{
return data_;
}

View 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/CheckSecurityEventIdRequest.h>
using AlibabaCloud::Sas::Model::CheckSecurityEventIdRequest;
CheckSecurityEventIdRequest::CheckSecurityEventIdRequest() :
RpcServiceRequest("sas", "2018-12-03", "CheckSecurityEventId")
{
setMethod(HttpRequest::Method::Post);
}
CheckSecurityEventIdRequest::~CheckSecurityEventIdRequest()
{}
std::vector<std::string> CheckSecurityEventIdRequest::getSecurityEventIds()const
{
return securityEventIds_;
}
void CheckSecurityEventIdRequest::setSecurityEventIds(const std::vector<std::string>& securityEventIds)
{
securityEventIds_ = securityEventIds;
for(int dep1 = 0; dep1!= securityEventIds.size(); dep1++) {
setParameter("SecurityEventIds."+ std::to_string(dep1), securityEventIds.at(dep1));
}
}
std::string CheckSecurityEventIdRequest::getUuid()const
{
return uuid_;
}
void CheckSecurityEventIdRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string CheckSecurityEventIdRequest::getSourceIp()const
{
return sourceIp_;
}
void CheckSecurityEventIdRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View 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/CheckSecurityEventIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
CheckSecurityEventIdResult::CheckSecurityEventIdResult() :
ServiceResult()
{}
CheckSecurityEventIdResult::CheckSecurityEventIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckSecurityEventIdResult::~CheckSecurityEventIdResult()
{}
void CheckSecurityEventIdResult::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 CheckSecurityEventIdResult::getData()const
{
return data_;
}

View 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/CreateBackupPolicyRequest.h>
using AlibabaCloud::Sas::Model::CreateBackupPolicyRequest;
CreateBackupPolicyRequest::CreateBackupPolicyRequest() :
RpcServiceRequest("sas", "2018-12-03", "CreateBackupPolicy")
{
setMethod(HttpRequest::Method::Post);
}
CreateBackupPolicyRequest::~CreateBackupPolicyRequest()
{}
long CreateBackupPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateBackupPolicyRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateBackupPolicyRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::vector<std::string> CreateBackupPolicyRequest::getUuidList()const
{
return uuidList_;
}
void CreateBackupPolicyRequest::setUuidList(const std::vector<std::string>& uuidList)
{
uuidList_ = uuidList;
for(int dep1 = 0; dep1!= uuidList.size(); dep1++) {
setParameter("UuidList."+ std::to_string(dep1), uuidList.at(dep1));
}
}
std::string CreateBackupPolicyRequest::getPolicy()const
{
return policy_;
}
void CreateBackupPolicyRequest::setPolicy(const std::string& policy)
{
policy_ = policy;
setParameter("Policy", policy);
}
std::string CreateBackupPolicyRequest::getPolicyVersion()const
{
return policyVersion_;
}
void CreateBackupPolicyRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string CreateBackupPolicyRequest::getName()const
{
return name_;
}
void CreateBackupPolicyRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateBackupPolicyRequest::getStatus()const
{
return status_;
}
void CreateBackupPolicyRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View 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/CreateBackupPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
CreateBackupPolicyResult::CreateBackupPolicyResult() :
ServiceResult()
{}
CreateBackupPolicyResult::CreateBackupPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateBackupPolicyResult::~CreateBackupPolicyResult()
{}
void CreateBackupPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -39,6 +39,13 @@ void CreateOrUpdateAssetGroupResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["GroupId"].isNull())
groupId_ = std::stol(value["GroupId"].asString());
}
long CreateOrUpdateAssetGroupResult::getGroupId()const
{
return groupId_;
}

View File

@@ -0,0 +1,139 @@
/*
* 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/CreateRestoreJobRequest.h>
using AlibabaCloud::Sas::Model::CreateRestoreJobRequest;
CreateRestoreJobRequest::CreateRestoreJobRequest() :
RpcServiceRequest("sas", "2018-12-03", "CreateRestoreJob")
{
setMethod(HttpRequest::Method::Post);
}
CreateRestoreJobRequest::~CreateRestoreJobRequest()
{}
long CreateRestoreJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateRestoreJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateRestoreJobRequest::getSnapshotId()const
{
return snapshotId_;
}
void CreateRestoreJobRequest::setSnapshotId(const std::string& snapshotId)
{
snapshotId_ = snapshotId;
setParameter("SnapshotId", snapshotId);
}
std::string CreateRestoreJobRequest::getUuid()const
{
return uuid_;
}
void CreateRestoreJobRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string CreateRestoreJobRequest::getSnapshotHash()const
{
return snapshotHash_;
}
void CreateRestoreJobRequest::setSnapshotHash(const std::string& snapshotHash)
{
snapshotHash_ = snapshotHash;
setParameter("SnapshotHash", snapshotHash);
}
std::string CreateRestoreJobRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateRestoreJobRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateRestoreJobRequest::getSnapshotVersion()const
{
return snapshotVersion_;
}
void CreateRestoreJobRequest::setSnapshotVersion(const std::string& snapshotVersion)
{
snapshotVersion_ = snapshotVersion;
setParameter("SnapshotVersion", snapshotVersion);
}
std::string CreateRestoreJobRequest::getPolicyVersion()const
{
return policyVersion_;
}
void CreateRestoreJobRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string CreateRestoreJobRequest::getIncludes()const
{
return includes_;
}
void CreateRestoreJobRequest::setIncludes(const std::string& includes)
{
includes_ = includes;
setParameter("Includes", includes);
}
std::string CreateRestoreJobRequest::getTarget()const
{
return target_;
}
void CreateRestoreJobRequest::setTarget(const std::string& target)
{
target_ = target;
setParameter("Target", target);
}
std::string CreateRestoreJobRequest::getInstanceId()const
{
return instanceId_;
}
void CreateRestoreJobRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View 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/CreateRestoreJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
CreateRestoreJobResult::CreateRestoreJobResult() :
ServiceResult()
{}
CreateRestoreJobResult::CreateRestoreJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRestoreJobResult::~CreateRestoreJobResult()
{}
void CreateRestoreJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,194 @@
/*
* 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/CreateSasOrderRequest.h>
using AlibabaCloud::Sas::Model::CreateSasOrderRequest;
CreateSasOrderRequest::CreateSasOrderRequest() :
RpcServiceRequest("sas", "2018-12-03", "CreateSasOrder")
{
setMethod(HttpRequest::Method::Post);
}
CreateSasOrderRequest::~CreateSasOrderRequest()
{}
std::string CreateSasOrderRequest::getSasWebguardBoolean()const
{
return sasWebguardBoolean_;
}
void CreateSasOrderRequest::setSasWebguardBoolean(const std::string& sasWebguardBoolean)
{
sasWebguardBoolean_ = sasWebguardBoolean;
setParameter("SasWebguardBoolean", sasWebguardBoolean);
}
bool CreateSasOrderRequest::getAutoUseCoupon()const
{
return autoUseCoupon_;
}
void CreateSasOrderRequest::setAutoUseCoupon(bool autoUseCoupon)
{
autoUseCoupon_ = autoUseCoupon;
setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false");
}
std::string CreateSasOrderRequest::getSpec()const
{
return spec_;
}
void CreateSasOrderRequest::setSpec(const std::string& spec)
{
spec_ = spec;
setParameter("Spec", spec);
}
std::string CreateSasOrderRequest::getInstanceCount()const
{
return instanceCount_;
}
void CreateSasOrderRequest::setInstanceCount(const std::string& instanceCount)
{
instanceCount_ = instanceCount;
setParameter("InstanceCount", instanceCount);
}
std::string CreateSasOrderRequest::getSasWebguardOrderNum()const
{
return sasWebguardOrderNum_;
}
void CreateSasOrderRequest::setSasWebguardOrderNum(const std::string& sasWebguardOrderNum)
{
sasWebguardOrderNum_ = sasWebguardOrderNum;
setParameter("SasWebguardOrderNum", sasWebguardOrderNum);
}
std::string CreateSasOrderRequest::getContainerImageScan()const
{
return containerImageScan_;
}
void CreateSasOrderRequest::setContainerImageScan(const std::string& containerImageScan)
{
containerImageScan_ = containerImageScan;
setParameter("ContainerImageScan", containerImageScan);
}
int CreateSasOrderRequest::getAutoRenewPeriod()const
{
return autoRenewPeriod_;
}
void CreateSasOrderRequest::setAutoRenewPeriod(int autoRenewPeriod)
{
autoRenewPeriod_ = autoRenewPeriod;
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
}
int CreateSasOrderRequest::getPeriod()const
{
return period_;
}
void CreateSasOrderRequest::setPeriod(int period)
{
period_ = period;
setParameter("Period", std::to_string(period));
}
bool CreateSasOrderRequest::getAutoPay()const
{
return autoPay_;
}
void CreateSasOrderRequest::setAutoPay(bool autoPay)
{
autoPay_ = autoPay;
setParameter("AutoPay", autoPay ? "true" : "false");
}
std::string CreateSasOrderRequest::getSasAntiRansomware()const
{
return sasAntiRansomware_;
}
void CreateSasOrderRequest::setSasAntiRansomware(const std::string& sasAntiRansomware)
{
sasAntiRansomware_ = sasAntiRansomware;
setParameter("SasAntiRansomware", sasAntiRansomware);
}
std::string CreateSasOrderRequest::getPeriodUnit()const
{
return periodUnit_;
}
void CreateSasOrderRequest::setPeriodUnit(const std::string& periodUnit)
{
periodUnit_ = periodUnit;
setParameter("PeriodUnit", periodUnit);
}
std::string CreateSasOrderRequest::getSasSc()const
{
return sasSc_;
}
void CreateSasOrderRequest::setSasSc(const std::string& sasSc)
{
sasSc_ = sasSc;
setParameter("SasSc", sasSc);
}
std::string CreateSasOrderRequest::getVcore()const
{
return vcore_;
}
void CreateSasOrderRequest::setVcore(const std::string& vcore)
{
vcore_ = vcore;
setParameter("Vcore", vcore);
}
std::string CreateSasOrderRequest::getSasSlsStorage()const
{
return sasSlsStorage_;
}
void CreateSasOrderRequest::setSasSlsStorage(const std::string& sasSlsStorage)
{
sasSlsStorage_ = sasSlsStorage;
setParameter("SasSlsStorage", sasSlsStorage);
}
std::string CreateSasOrderRequest::getSasProductService()const
{
return sasProductService_;
}
void CreateSasOrderRequest::setSasProductService(const std::string& sasProductService)
{
sasProductService_ = sasProductService;
setParameter("SasProductService", sasProductService);
}

View 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/CreateSasOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
CreateSasOrderResult::CreateSasOrderResult() :
ServiceResult()
{}
CreateSasOrderResult::CreateSasOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSasOrderResult::~CreateSasOrderResult()
{}
void CreateSasOrderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
}
std::string CreateSasOrderResult::getOrderId()const
{
return orderId_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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/CreateServiceLinkedRoleRequest.h>
using AlibabaCloud::Sas::Model::CreateServiceLinkedRoleRequest;
CreateServiceLinkedRoleRequest::CreateServiceLinkedRoleRequest() :
RpcServiceRequest("sas", "2018-12-03", "CreateServiceLinkedRole")
{
setMethod(HttpRequest::Method::Post);
}
CreateServiceLinkedRoleRequest::~CreateServiceLinkedRoleRequest()
{}
std::string CreateServiceLinkedRoleRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateServiceLinkedRoleRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View 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/CreateServiceLinkedRoleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
CreateServiceLinkedRoleResult::CreateServiceLinkedRoleResult() :
ServiceResult()
{}
CreateServiceLinkedRoleResult::CreateServiceLinkedRoleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateServiceLinkedRoleResult::~CreateServiceLinkedRoleResult()
{}
void CreateServiceLinkedRoleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/DeleteBackupPolicyMachineRequest.h>
using AlibabaCloud::Sas::Model::DeleteBackupPolicyMachineRequest;
DeleteBackupPolicyMachineRequest::DeleteBackupPolicyMachineRequest() :
RpcServiceRequest("sas", "2018-12-03", "DeleteBackupPolicyMachine")
{
setMethod(HttpRequest::Method::Post);
}
DeleteBackupPolicyMachineRequest::~DeleteBackupPolicyMachineRequest()
{}
long DeleteBackupPolicyMachineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteBackupPolicyMachineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteBackupPolicyMachineRequest::getPolicyVersion()const
{
return policyVersion_;
}
void DeleteBackupPolicyMachineRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string DeleteBackupPolicyMachineRequest::getUuid()const
{
return uuid_;
}
void DeleteBackupPolicyMachineRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string DeleteBackupPolicyMachineRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteBackupPolicyMachineRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
long DeleteBackupPolicyMachineRequest::getPolicyId()const
{
return policyId_;
}
void DeleteBackupPolicyMachineRequest::setPolicyId(long policyId)
{
policyId_ = policyId;
setParameter("PolicyId", std::to_string(policyId));
}
std::vector<std::string> DeleteBackupPolicyMachineRequest::getUuidList()const
{
return uuidList_;
}
void DeleteBackupPolicyMachineRequest::setUuidList(const std::vector<std::string>& uuidList)
{
uuidList_ = uuidList;
for(int dep1 = 0; dep1!= uuidList.size(); dep1++) {
setParameter("UuidList."+ std::to_string(dep1), uuidList.at(dep1));
}
}

View 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/DeleteBackupPolicyMachineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DeleteBackupPolicyMachineResult::DeleteBackupPolicyMachineResult() :
ServiceResult()
{}
DeleteBackupPolicyMachineResult::DeleteBackupPolicyMachineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteBackupPolicyMachineResult::~DeleteBackupPolicyMachineResult()
{}
void DeleteBackupPolicyMachineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/DeleteBackupPolicyRequest.h>
using AlibabaCloud::Sas::Model::DeleteBackupPolicyRequest;
DeleteBackupPolicyRequest::DeleteBackupPolicyRequest() :
RpcServiceRequest("sas", "2018-12-03", "DeleteBackupPolicy")
{
setMethod(HttpRequest::Method::Post);
}
DeleteBackupPolicyRequest::~DeleteBackupPolicyRequest()
{}
long DeleteBackupPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteBackupPolicyRequest::getPolicyVersion()const
{
return policyVersion_;
}
void DeleteBackupPolicyRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string DeleteBackupPolicyRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteBackupPolicyRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
long DeleteBackupPolicyRequest::getId()const
{
return id_;
}
void DeleteBackupPolicyRequest::setId(long id)
{
id_ = id;
setParameter("Id", std::to_string(id));
}

View 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/DeleteBackupPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DeleteBackupPolicyResult::DeleteBackupPolicyResult() :
ServiceResult()
{}
DeleteBackupPolicyResult::DeleteBackupPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteBackupPolicyResult::~DeleteBackupPolicyResult()
{}
void DeleteBackupPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/DeleteVpcHoneyPotRequest.h>
using AlibabaCloud::Sas::Model::DeleteVpcHoneyPotRequest;
DeleteVpcHoneyPotRequest::DeleteVpcHoneyPotRequest() :
RpcServiceRequest("sas", "2018-12-03", "DeleteVpcHoneyPot")
{
setMethod(HttpRequest::Method::Post);
}
DeleteVpcHoneyPotRequest::~DeleteVpcHoneyPotRequest()
{}
std::string DeleteVpcHoneyPotRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteVpcHoneyPotRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteVpcHoneyPotRequest::getVpcId()const
{
return vpcId_;
}
void DeleteVpcHoneyPotRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}

View 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/DeleteVpcHoneyPotResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DeleteVpcHoneyPotResult::DeleteVpcHoneyPotResult() :
ServiceResult()
{}
DeleteVpcHoneyPotResult::DeleteVpcHoneyPotResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteVpcHoneyPotResult::~DeleteVpcHoneyPotResult()
{}
void DeleteVpcHoneyPotResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View 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/DescribeAccesskeyLeakListRequest.h>
using AlibabaCloud::Sas::Model::DescribeAccesskeyLeakListRequest;
DescribeAccesskeyLeakListRequest::DescribeAccesskeyLeakListRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeAccesskeyLeakList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAccesskeyLeakListRequest::~DescribeAccesskeyLeakListRequest()
{}
std::string DescribeAccesskeyLeakListRequest::getQuery()const
{
return query_;
}
void DescribeAccesskeyLeakListRequest::setQuery(const std::string& query)
{
query_ = query;
setParameter("Query", query);
}
long DescribeAccesskeyLeakListRequest::getStartTs()const
{
return startTs_;
}
void DescribeAccesskeyLeakListRequest::setStartTs(long startTs)
{
startTs_ = startTs;
setParameter("StartTs", std::to_string(startTs));
}
int DescribeAccesskeyLeakListRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAccesskeyLeakListRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeAccesskeyLeakListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAccesskeyLeakListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeAccesskeyLeakListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAccesskeyLeakListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeAccesskeyLeakListRequest::getStatus()const
{
return status_;
}
void DescribeAccesskeyLeakListRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

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

View File

@@ -0,0 +1,185 @@
/*
* 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/DescribeAffectedMaliciousFileImagesRequest.h>
using AlibabaCloud::Sas::Model::DescribeAffectedMaliciousFileImagesRequest;
DescribeAffectedMaliciousFileImagesRequest::DescribeAffectedMaliciousFileImagesRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeAffectedMaliciousFileImages")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAffectedMaliciousFileImagesRequest::~DescribeAffectedMaliciousFileImagesRequest()
{}
std::string DescribeAffectedMaliciousFileImagesRequest::getRepoId()const
{
return repoId_;
}
void DescribeAffectedMaliciousFileImagesRequest::setRepoId(const std::string& repoId)
{
repoId_ = repoId;
setParameter("RepoId", repoId);
}
std::string DescribeAffectedMaliciousFileImagesRequest::getRepoNamespace()const
{
return repoNamespace_;
}
void DescribeAffectedMaliciousFileImagesRequest::setRepoNamespace(const std::string& repoNamespace)
{
repoNamespace_ = repoNamespace;
setParameter("RepoNamespace", repoNamespace);
}
std::string DescribeAffectedMaliciousFileImagesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAffectedMaliciousFileImagesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeAffectedMaliciousFileImagesRequest::getImageDigest()const
{
return imageDigest_;
}
void DescribeAffectedMaliciousFileImagesRequest::setImageDigest(const std::string& imageDigest)
{
imageDigest_ = imageDigest;
setParameter("ImageDigest", imageDigest);
}
std::string DescribeAffectedMaliciousFileImagesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAffectedMaliciousFileImagesRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", pageSize);
}
std::string DescribeAffectedMaliciousFileImagesRequest::getLang()const
{
return lang_;
}
void DescribeAffectedMaliciousFileImagesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeAffectedMaliciousFileImagesRequest::getImageTag()const
{
return imageTag_;
}
void DescribeAffectedMaliciousFileImagesRequest::setImageTag(const std::string& imageTag)
{
imageTag_ = imageTag;
setParameter("ImageTag", imageTag);
}
std::string DescribeAffectedMaliciousFileImagesRequest::getMaliciousMd5()const
{
return maliciousMd5_;
}
void DescribeAffectedMaliciousFileImagesRequest::setMaliciousMd5(const std::string& maliciousMd5)
{
maliciousMd5_ = maliciousMd5;
setParameter("MaliciousMd5", maliciousMd5);
}
int DescribeAffectedMaliciousFileImagesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAffectedMaliciousFileImagesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeAffectedMaliciousFileImagesRequest::getRepoName()const
{
return repoName_;
}
void DescribeAffectedMaliciousFileImagesRequest::setRepoName(const std::string& repoName)
{
repoName_ = repoName;
setParameter("RepoName", repoName);
}
std::string DescribeAffectedMaliciousFileImagesRequest::getRepoInstanceId()const
{
return repoInstanceId_;
}
void DescribeAffectedMaliciousFileImagesRequest::setRepoInstanceId(const std::string& repoInstanceId)
{
repoInstanceId_ = repoInstanceId;
setParameter("RepoInstanceId", repoInstanceId);
}
std::string DescribeAffectedMaliciousFileImagesRequest::getImageLayer()const
{
return imageLayer_;
}
void DescribeAffectedMaliciousFileImagesRequest::setImageLayer(const std::string& imageLayer)
{
imageLayer_ = imageLayer;
setParameter("ImageLayer", imageLayer);
}
std::vector<std::string> DescribeAffectedMaliciousFileImagesRequest::getUuids()const
{
return uuids_;
}
void DescribeAffectedMaliciousFileImagesRequest::setUuids(const std::vector<std::string>& uuids)
{
uuids_ = uuids;
for(int dep1 = 0; dep1!= uuids.size(); dep1++) {
setParameter("Uuids."+ std::to_string(dep1), uuids.at(dep1));
}
}
std::string DescribeAffectedMaliciousFileImagesRequest::getRepoRegionId()const
{
return repoRegionId_;
}
void DescribeAffectedMaliciousFileImagesRequest::setRepoRegionId(const std::string& repoRegionId)
{
repoRegionId_ = repoRegionId;
setParameter("RepoRegionId", repoRegionId);
}

View 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/DescribeAffectedMaliciousFileImagesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeAffectedMaliciousFileImagesResult::DescribeAffectedMaliciousFileImagesResult() :
ServiceResult()
{}
DescribeAffectedMaliciousFileImagesResult::DescribeAffectedMaliciousFileImagesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAffectedMaliciousFileImagesResult::~DescribeAffectedMaliciousFileImagesResult()
{}
void DescribeAffectedMaliciousFileImagesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAffectedMaliciousFileImagesResponseNode = value["AffectedMaliciousFileImagesResponse"]["AffectedMaliciousFileImage"];
for (auto valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage : allAffectedMaliciousFileImagesResponseNode)
{
AffectedMaliciousFileImage affectedMaliciousFileImagesResponseObject;
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Layer"].isNull())
affectedMaliciousFileImagesResponseObject.layer = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Layer"].asString();
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["FirstScanTimestamp"].isNull())
affectedMaliciousFileImagesResponseObject.firstScanTimestamp = std::stol(valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["FirstScanTimestamp"].asString());
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["LatestScanTimestamp"].isNull())
affectedMaliciousFileImagesResponseObject.latestScanTimestamp = std::stol(valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["LatestScanTimestamp"].asString());
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["LatestVerifyTimestamp"].isNull())
affectedMaliciousFileImagesResponseObject.latestVerifyTimestamp = std::stol(valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["LatestVerifyTimestamp"].asString());
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["MaliciousMd5"].isNull())
affectedMaliciousFileImagesResponseObject.maliciousMd5 = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["MaliciousMd5"].asString();
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Status"].isNull())
affectedMaliciousFileImagesResponseObject.status = std::stoi(valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Status"].asString());
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Level"].isNull())
affectedMaliciousFileImagesResponseObject.level = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Level"].asString();
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["ImageUuid"].isNull())
affectedMaliciousFileImagesResponseObject.imageUuid = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["ImageUuid"].asString();
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["FilePath"].isNull())
affectedMaliciousFileImagesResponseObject.filePath = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["FilePath"].asString();
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Digest"].isNull())
affectedMaliciousFileImagesResponseObject.digest = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Digest"].asString();
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["RepoRegionId"].isNull())
affectedMaliciousFileImagesResponseObject.repoRegionId = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["RepoRegionId"].asString();
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["RepoInstanceId"].isNull())
affectedMaliciousFileImagesResponseObject.repoInstanceId = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["RepoInstanceId"].asString();
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["RepoId"].isNull())
affectedMaliciousFileImagesResponseObject.repoId = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["RepoId"].asString();
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["RepoName"].isNull())
affectedMaliciousFileImagesResponseObject.repoName = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["RepoName"].asString();
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Namespace"].isNull())
affectedMaliciousFileImagesResponseObject._namespace = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Namespace"].asString();
if(!valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Tag"].isNull())
affectedMaliciousFileImagesResponseObject.tag = valueAffectedMaliciousFileImagesResponseAffectedMaliciousFileImage["Tag"].asString();
affectedMaliciousFileImagesResponse_.push_back(affectedMaliciousFileImagesResponseObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
std::vector<DescribeAffectedMaliciousFileImagesResult::AffectedMaliciousFileImage> DescribeAffectedMaliciousFileImagesResult::getAffectedMaliciousFileImagesResponse()const
{
return affectedMaliciousFileImagesResponse_;
}
DescribeAffectedMaliciousFileImagesResult::PageInfo DescribeAffectedMaliciousFileImagesResult::getPageInfo()const
{
return pageInfo_;
}

View File

@@ -70,22 +70,44 @@ void DescribeAlarmEventDetailResult::parse(const std::string &payload)
data_.dataSource = dataNode["DataSource"].asString();
if(!dataNode["CanCancelFault"].isNull())
data_.canCancelFault = dataNode["CanCancelFault"].asString() == "true";
if(!dataNode["ContainHwMode"].isNull())
data_.containHwMode = dataNode["ContainHwMode"].asString() == "true";
if(!dataNode["ContainerImageId"].isNull())
data_.containerImageId = dataNode["ContainerImageId"].asString();
if(!dataNode["ContainerImageName"].isNull())
data_.containerImageName = dataNode["ContainerImageName"].asString();
if(!dataNode["ContainerId"].isNull())
data_.containerId = dataNode["ContainerId"].asString();
if(!dataNode["K8sNamespace"].isNull())
data_.k8sNamespace = dataNode["K8sNamespace"].asString();
if(!dataNode["K8sClusterId"].isNull())
data_.k8sClusterId = dataNode["K8sClusterId"].asString();
if(!dataNode["K8sClusterName"].isNull())
data_.k8sClusterName = dataNode["K8sClusterName"].asString();
if(!dataNode["K8sNodeId"].isNull())
data_.k8sNodeId = dataNode["K8sNodeId"].asString();
if(!dataNode["K8sPodName"].isNull())
data_.k8sPodName = dataNode["K8sPodName"].asString();
if(!dataNode["K8sNodeName"].isNull())
data_.k8sNodeName = dataNode["K8sNodeName"].asString();
if(!dataNode["AppName"].isNull())
data_.appName = dataNode["AppName"].asString();
auto allCauseDetailsNode = dataNode["CauseDetails"]["CauseDetail"];
for (auto dataNodeCauseDetailsCauseDetail : allCauseDetailsNode)
{
Data::CauseDetail causeDetailObject;
if(!dataNodeCauseDetailsCauseDetail["Key"].isNull())
causeDetailObject.key = dataNodeCauseDetailsCauseDetail["Key"].asString();
auto allValueNode = allCauseDetailsNode["Value"]["ValueItem"];
for (auto allCauseDetailsNodeValueValueItem : allValueNode)
auto allValueNode = dataNodeCauseDetailsCauseDetail["Value"]["ValueItem"];
for (auto dataNodeCauseDetailsCauseDetailValueValueItem : allValueNode)
{
Data::CauseDetail::ValueItem valueObject;
if(!allCauseDetailsNodeValueValueItem["Name"].isNull())
valueObject.name = allCauseDetailsNodeValueValueItem["Name"].asString();
if(!allCauseDetailsNodeValueValueItem["Type"].isNull())
valueObject.type = allCauseDetailsNodeValueValueItem["Type"].asString();
if(!allCauseDetailsNodeValueValueItem["Value"].isNull())
valueObject.value = allCauseDetailsNodeValueValueItem["Value"].asString();
if(!dataNodeCauseDetailsCauseDetailValueValueItem["Name"].isNull())
valueObject.name = dataNodeCauseDetailsCauseDetailValueValueItem["Name"].asString();
if(!dataNodeCauseDetailsCauseDetailValueValueItem["Type"].isNull())
valueObject.type = dataNodeCauseDetailsCauseDetailValueValueItem["Type"].asString();
if(!dataNodeCauseDetailsCauseDetailValueValueItem["Value"].isNull())
valueObject.value = dataNodeCauseDetailsCauseDetailValueValueItem["Value"].asString();
causeDetailObject.value.push_back(valueObject);
}
data_.causeDetails.push_back(causeDetailObject);

View File

@@ -27,6 +27,17 @@ DescribeAlarmEventListRequest::DescribeAlarmEventListRequest() :
DescribeAlarmEventListRequest::~DescribeAlarmEventListRequest()
{}
std::string DescribeAlarmEventListRequest::getTargetType()const
{
return targetType_;
}
void DescribeAlarmEventListRequest::setTargetType(const std::string& targetType)
{
targetType_ = targetType;
setParameter("TargetType", targetType);
}
std::string DescribeAlarmEventListRequest::getAlarmEventType()const
{
return alarmEventType_;
@@ -49,6 +60,17 @@ void DescribeAlarmEventListRequest::setRemark(const std::string& remark)
setParameter("Remark", remark);
}
std::string DescribeAlarmEventListRequest::getContainerFieldName()const
{
return containerFieldName_;
}
void DescribeAlarmEventListRequest::setContainerFieldName(const std::string& containerFieldName)
{
containerFieldName_ = containerFieldName;
setParameter("ContainerFieldName", containerFieldName);
}
std::string DescribeAlarmEventListRequest::getAlarmEventName()const
{
return alarmEventName_;
@@ -71,6 +93,17 @@ void DescribeAlarmEventListRequest::setSourceIp(const std::string& sourceIp)
setParameter("SourceIp", sourceIp);
}
std::string DescribeAlarmEventListRequest::getContainerFieldValue()const
{
return containerFieldValue_;
}
void DescribeAlarmEventListRequest::setContainerFieldValue(const std::string& containerFieldValue)
{
containerFieldValue_ = containerFieldValue;
setParameter("ContainerFieldValue", containerFieldValue);
}
std::string DescribeAlarmEventListRequest::getPageSize()const
{
return pageSize_;
@@ -137,6 +170,17 @@ void DescribeAlarmEventListRequest::setCurrentPage(int currentPage)
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeAlarmEventListRequest::getClusterId()const
{
return clusterId_;
}
void DescribeAlarmEventListRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::vector<std::string> DescribeAlarmEventListRequest::getOperateErrorCodeList()const
{
return operateErrorCodeList_;

View File

@@ -57,6 +57,8 @@ void DescribeAlarmEventListResult::parse(const std::string &payload)
suspEventsObject.startTime = std::stol(valueSuspEventsSuspEventsItem["StartTime"].asString());
if(!valueSuspEventsSuspEventsItem["EndTime"].isNull())
suspEventsObject.endTime = std::stol(valueSuspEventsSuspEventsItem["EndTime"].asString());
if(!valueSuspEventsSuspEventsItem["OperateTime"].isNull())
suspEventsObject.operateTime = std::stol(valueSuspEventsSuspEventsItem["OperateTime"].asString());
if(!valueSuspEventsSuspEventsItem["AlarmEventType"].isNull())
suspEventsObject.alarmEventType = valueSuspEventsSuspEventsItem["AlarmEventType"].asString();
if(!valueSuspEventsSuspEventsItem["SuspiciousEventCount"].isNull())
@@ -91,6 +93,30 @@ void DescribeAlarmEventListResult::parse(const std::string &payload)
suspEventsObject.alarmEventNameOriginal = valueSuspEventsSuspEventsItem["AlarmEventNameOriginal"].asString();
if(!valueSuspEventsSuspEventsItem["InstanceId"].isNull())
suspEventsObject.instanceId = valueSuspEventsSuspEventsItem["InstanceId"].asString();
if(!valueSuspEventsSuspEventsItem["ContainHwMode"].isNull())
suspEventsObject.containHwMode = valueSuspEventsSuspEventsItem["ContainHwMode"].asString() == "true";
if(!valueSuspEventsSuspEventsItem["Stages"].isNull())
suspEventsObject.stages = valueSuspEventsSuspEventsItem["Stages"].asString();
if(!valueSuspEventsSuspEventsItem["ContainerImageId"].isNull())
suspEventsObject.containerImageId = valueSuspEventsSuspEventsItem["ContainerImageId"].asString();
if(!valueSuspEventsSuspEventsItem["ContainerImageName"].isNull())
suspEventsObject.containerImageName = valueSuspEventsSuspEventsItem["ContainerImageName"].asString();
if(!valueSuspEventsSuspEventsItem["ContainerId"].isNull())
suspEventsObject.containerId = valueSuspEventsSuspEventsItem["ContainerId"].asString();
if(!valueSuspEventsSuspEventsItem["K8sNamespace"].isNull())
suspEventsObject.k8sNamespace = valueSuspEventsSuspEventsItem["K8sNamespace"].asString();
if(!valueSuspEventsSuspEventsItem["K8sClusterId"].isNull())
suspEventsObject.k8sClusterId = valueSuspEventsSuspEventsItem["K8sClusterId"].asString();
if(!valueSuspEventsSuspEventsItem["K8sClusterName"].isNull())
suspEventsObject.k8sClusterName = valueSuspEventsSuspEventsItem["K8sClusterName"].asString();
if(!valueSuspEventsSuspEventsItem["K8sNodeId"].isNull())
suspEventsObject.k8sNodeId = valueSuspEventsSuspEventsItem["K8sNodeId"].asString();
if(!valueSuspEventsSuspEventsItem["K8sPodName"].isNull())
suspEventsObject.k8sPodName = valueSuspEventsSuspEventsItem["K8sPodName"].asString();
if(!valueSuspEventsSuspEventsItem["K8sNodeName"].isNull())
suspEventsObject.k8sNodeName = valueSuspEventsSuspEventsItem["K8sNodeName"].asString();
if(!valueSuspEventsSuspEventsItem["AppName"].isNull())
suspEventsObject.appName = valueSuspEventsSuspEventsItem["AppName"].asString();
suspEvents_.push_back(suspEventsObject);
}
auto pageInfoNode = value["PageInfo"];

View File

@@ -0,0 +1,84 @@
/*
* 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/DescribeAlarmEventStackInfoRequest.h>
using AlibabaCloud::Sas::Model::DescribeAlarmEventStackInfoRequest;
DescribeAlarmEventStackInfoRequest::DescribeAlarmEventStackInfoRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeAlarmEventStackInfo")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAlarmEventStackInfoRequest::~DescribeAlarmEventStackInfoRequest()
{}
std::string DescribeAlarmEventStackInfoRequest::getUniqueInfo()const
{
return uniqueInfo_;
}
void DescribeAlarmEventStackInfoRequest::setUniqueInfo(const std::string& uniqueInfo)
{
uniqueInfo_ = uniqueInfo;
setParameter("UniqueInfo", uniqueInfo);
}
std::string DescribeAlarmEventStackInfoRequest::getUuid()const
{
return uuid_;
}
void DescribeAlarmEventStackInfoRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string DescribeAlarmEventStackInfoRequest::getEventName()const
{
return eventName_;
}
void DescribeAlarmEventStackInfoRequest::setEventName(const std::string& eventName)
{
eventName_ = eventName;
setParameter("EventName", eventName);
}
std::string DescribeAlarmEventStackInfoRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAlarmEventStackInfoRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeAlarmEventStackInfoRequest::getLang()const
{
return lang_;
}
void DescribeAlarmEventStackInfoRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View 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/DescribeAlarmEventStackInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeAlarmEventStackInfoResult::DescribeAlarmEventStackInfoResult() :
ServiceResult()
{}
DescribeAlarmEventStackInfoResult::DescribeAlarmEventStackInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAlarmEventStackInfoResult::~DescribeAlarmEventStackInfoResult()
{}
void DescribeAlarmEventStackInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["StackInfo"].isNull())
stackInfo_ = value["StackInfo"].asString();
}
std::string DescribeAlarmEventStackInfoResult::getStackInfo()const
{
return stackInfo_;
}

View File

@@ -51,6 +51,8 @@ void DescribeAllEntityResult::parse(const std::string &payload)
entityListObject.ip = valueEntityListEntity["Ip"].asString();
if(!valueEntityListEntity["Uuid"].isNull())
entityListObject.uuid = valueEntityListEntity["Uuid"].asString();
if(!valueEntityListEntity["Os"].isNull())
entityListObject.os = valueEntityListEntity["Os"].asString();
if(!valueEntityListEntity["InternetIp"].isNull())
entityListObject.internetIp = valueEntityListEntity["InternetIp"].asString();
if(!valueEntityListEntity["IntranetIp"].isNull())

View 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/DescribeAntiBruteForceRulesRequest.h>
using AlibabaCloud::Sas::Model::DescribeAntiBruteForceRulesRequest;
DescribeAntiBruteForceRulesRequest::DescribeAntiBruteForceRulesRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeAntiBruteForceRules")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAntiBruteForceRulesRequest::~DescribeAntiBruteForceRulesRequest()
{}
long DescribeAntiBruteForceRulesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeAntiBruteForceRulesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeAntiBruteForceRulesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAntiBruteForceRulesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,88 @@
/*
* 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/DescribeAntiBruteForceRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeAntiBruteForceRulesResult::DescribeAntiBruteForceRulesResult() :
ServiceResult()
{}
DescribeAntiBruteForceRulesResult::DescribeAntiBruteForceRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAntiBruteForceRulesResult::~DescribeAntiBruteForceRulesResult()
{}
void DescribeAntiBruteForceRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRulesNode = value["Rules"]["AntiBruteForceRule"];
for (auto valueRulesAntiBruteForceRule : allRulesNode)
{
AntiBruteForceRule rulesObject;
if(!valueRulesAntiBruteForceRule["Id"].isNull())
rulesObject.id = std::stol(valueRulesAntiBruteForceRule["Id"].asString());
if(!valueRulesAntiBruteForceRule["DefaultRule"].isNull())
rulesObject.defaultRule = valueRulesAntiBruteForceRule["DefaultRule"].asString() == "true";
if(!valueRulesAntiBruteForceRule["Name"].isNull())
rulesObject.name = valueRulesAntiBruteForceRule["Name"].asString();
if(!valueRulesAntiBruteForceRule["Span"].isNull())
rulesObject.span = std::stoi(valueRulesAntiBruteForceRule["Span"].asString());
if(!valueRulesAntiBruteForceRule["FailCount"].isNull())
rulesObject.failCount = std::stoi(valueRulesAntiBruteForceRule["FailCount"].asString());
if(!valueRulesAntiBruteForceRule["ForbiddenTime"].isNull())
rulesObject.forbiddenTime = std::stoi(valueRulesAntiBruteForceRule["ForbiddenTime"].asString());
if(!valueRulesAntiBruteForceRule["EnableSmartRule"].isNull())
rulesObject.enableSmartRule = valueRulesAntiBruteForceRule["EnableSmartRule"].asString() == "true";
if(!valueRulesAntiBruteForceRule["MachineCount"].isNull())
rulesObject.machineCount = std::stoi(valueRulesAntiBruteForceRule["MachineCount"].asString());
auto allUuidList = value["UuidList"]["uuid"];
for (auto value : allUuidList)
rulesObject.uuidList.push_back(value.asString());
rules_.push_back(rulesObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
DescribeAntiBruteForceRulesResult::PageInfo DescribeAntiBruteForceRulesResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<DescribeAntiBruteForceRulesResult::AntiBruteForceRule> DescribeAntiBruteForceRulesResult::getRules()const
{
return rules_;
}

View File

@@ -45,9 +45,9 @@ void DescribeAssetDetailByUuidResult::parse(const std::string &payload)
if(!assetDetailNode["IntranetIp"].isNull())
assetDetail_.intranetIp = assetDetailNode["IntranetIp"].asString();
if(!assetDetailNode["InstanceName"].isNull())
assetDetail_.instanceName = std::stoi(assetDetailNode["InstanceName"].asString());
assetDetail_.instanceName = assetDetailNode["InstanceName"].asString();
if(!assetDetailNode["InstanceId"].isNull())
assetDetail_.instanceId = std::stoi(assetDetailNode["InstanceId"].asString());
assetDetail_.instanceId = assetDetailNode["InstanceId"].asString();
if(!assetDetailNode["Ip"].isNull())
assetDetail_.ip = assetDetailNode["Ip"].asString();
if(!assetDetailNode["Uuid"].isNull())
@@ -60,6 +60,8 @@ void DescribeAssetDetailByUuidResult::parse(const std::string &payload)
assetDetail_.clientStatus = assetDetailNode["ClientStatus"].asString();
if(!assetDetailNode["Region"].isNull())
assetDetail_.region = assetDetailNode["Region"].asString();
if(!assetDetailNode["RegionId"].isNull())
assetDetail_.regionId = assetDetailNode["RegionId"].asString();
if(!assetDetailNode["RegionName"].isNull())
assetDetail_.regionName = assetDetailNode["RegionName"].asString();
if(!assetDetailNode["Tag"].isNull())
@@ -84,8 +86,10 @@ void DescribeAssetDetailByUuidResult::parse(const std::string &payload)
assetDetail_.osName = assetDetailNode["OsName"].asString();
if(!assetDetailNode["VpcInstanceId"].isNull())
assetDetail_.vpcInstanceId = assetDetailNode["VpcInstanceId"].asString();
if(!assetDetailNode["OsName"].isNull())
assetDetail_.osName1 = assetDetailNode["OsName"].asString();
if(!assetDetailNode["InstanceStatus"].isNull())
assetDetail_.instanceStatus = assetDetailNode["InstanceStatus"].asString();
if(!assetDetailNode["CreateTime"].isNull())
assetDetail_.createTime = std::stol(assetDetailNode["CreateTime"].asString());
auto allIpList = assetDetailNode["IpList"]["Ip"];
for (auto value : allIpList)
assetDetail_.ipList.push_back(value.asString());

View File

@@ -48,9 +48,9 @@ void DescribeAssetDetailByUuidsResult::parse(const std::string &payload)
if(!valueAssetListAsset["IntranetIp"].isNull())
assetListObject.intranetIp = valueAssetListAsset["IntranetIp"].asString();
if(!valueAssetListAsset["InstanceName"].isNull())
assetListObject.instanceName = std::stoi(valueAssetListAsset["InstanceName"].asString());
assetListObject.instanceName = valueAssetListAsset["InstanceName"].asString();
if(!valueAssetListAsset["InstanceId"].isNull())
assetListObject.instanceId = std::stoi(valueAssetListAsset["InstanceId"].asString());
assetListObject.instanceId = valueAssetListAsset["InstanceId"].asString();
if(!valueAssetListAsset["Ip"].isNull())
assetListObject.ip = valueAssetListAsset["Ip"].asString();
if(!valueAssetListAsset["Uuid"].isNull())
@@ -61,6 +61,8 @@ void DescribeAssetDetailByUuidsResult::parse(const std::string &payload)
assetListObject.os = valueAssetListAsset["Os"].asString();
if(!valueAssetListAsset["ClientStatus"].isNull())
assetListObject.clientStatus = valueAssetListAsset["ClientStatus"].asString();
if(!valueAssetListAsset["RegionId"].isNull())
assetListObject.regionId = valueAssetListAsset["RegionId"].asString();
if(!valueAssetListAsset["Region"].isNull())
assetListObject.region = valueAssetListAsset["Region"].asString();
if(!valueAssetListAsset["RegionName"].isNull())

View 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/DescribeBackupDirsRequest.h>
using AlibabaCloud::Sas::Model::DescribeBackupDirsRequest;
DescribeBackupDirsRequest::DescribeBackupDirsRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeBackupDirs")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBackupDirsRequest::~DescribeBackupDirsRequest()
{}
long DescribeBackupDirsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeBackupDirsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeBackupDirsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeBackupDirsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeBackupDirsRequest::getUuid()const
{
return uuid_;
}
void DescribeBackupDirsRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string DescribeBackupDirsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeBackupDirsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
long DescribeBackupDirsRequest::getPolicyId()const
{
return policyId_;
}
void DescribeBackupDirsRequest::setPolicyId(long policyId)
{
policyId_ = policyId;
setParameter("PolicyId", std::to_string(policyId));
}
int DescribeBackupDirsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeBackupDirsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View 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/DescribeBackupDirsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeBackupDirsResult::DescribeBackupDirsResult() :
ServiceResult()
{}
DescribeBackupDirsResult::DescribeBackupDirsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupDirsResult::~DescribeBackupDirsResult()
{}
void DescribeBackupDirsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBackupDirsNode = value["BackupDirs"]["SimpleBackupJob"];
for (auto valueBackupDirsSimpleBackupJob : allBackupDirsNode)
{
SimpleBackupJob backupDirsObject;
if(!valueBackupDirsSimpleBackupJob["BackupJobId"].isNull())
backupDirsObject.backupJobId = std::stol(valueBackupDirsSimpleBackupJob["BackupJobId"].asString());
if(!valueBackupDirsSimpleBackupJob["Source"].isNull())
backupDirsObject.source = valueBackupDirsSimpleBackupJob["Source"].asString();
backupDirs_.push_back(backupDirsObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
DescribeBackupDirsResult::PageInfo DescribeBackupDirsResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<DescribeBackupDirsResult::SimpleBackupJob> DescribeBackupDirsResult::getBackupDirs()const
{
return backupDirs_;
}

View 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/DescribeBackupFilesRequest.h>
using AlibabaCloud::Sas::Model::DescribeBackupFilesRequest;
DescribeBackupFilesRequest::DescribeBackupFilesRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeBackupFiles")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBackupFilesRequest::~DescribeBackupFilesRequest()
{}
long DescribeBackupFilesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeBackupFilesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeBackupFilesRequest::getUuid()const
{
return uuid_;
}
void DescribeBackupFilesRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string DescribeBackupFilesRequest::getPath()const
{
return path_;
}
void DescribeBackupFilesRequest::setPath(const std::string& path)
{
path_ = path;
setParameter("Path", path);
}
std::string DescribeBackupFilesRequest::getSnapshotHash()const
{
return snapshotHash_;
}
void DescribeBackupFilesRequest::setSnapshotHash(const std::string& snapshotHash)
{
snapshotHash_ = snapshotHash;
setParameter("SnapshotHash", snapshotHash);
}
std::string DescribeBackupFilesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeBackupFilesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeBackupFilesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeBackupFilesRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", pageSize);
}
std::string DescribeBackupFilesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeBackupFilesRequest::setCurrentPage(const std::string& currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", currentPage);
}

View File

@@ -0,0 +1,77 @@
/*
* 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/DescribeBackupFilesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeBackupFilesResult::DescribeBackupFilesResult() :
ServiceResult()
{}
DescribeBackupFilesResult::DescribeBackupFilesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupFilesResult::~DescribeBackupFilesResult()
{}
void DescribeBackupFilesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBackupFilesNode = value["BackupFiles"]["BrowseFile"];
for (auto valueBackupFilesBrowseFile : allBackupFilesNode)
{
BrowseFile backupFilesObject;
if(!valueBackupFilesBrowseFile["Name"].isNull())
backupFilesObject.name = valueBackupFilesBrowseFile["Name"].asString();
if(!valueBackupFilesBrowseFile["Type"].isNull())
backupFilesObject.type = valueBackupFilesBrowseFile["Type"].asString();
if(!valueBackupFilesBrowseFile["Subtree"].isNull())
backupFilesObject.subtree = valueBackupFilesBrowseFile["Subtree"].asString();
if(!valueBackupFilesBrowseFile["Size"].isNull())
backupFilesObject.size = std::stol(valueBackupFilesBrowseFile["Size"].asString());
backupFiles_.push_back(backupFilesObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
DescribeBackupFilesResult::PageInfo DescribeBackupFilesResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<DescribeBackupFilesResult::BrowseFile> DescribeBackupFilesResult::getBackupFiles()const
{
return backupFiles_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/DescribeBackupMachineStatusRequest.h>
using AlibabaCloud::Sas::Model::DescribeBackupMachineStatusRequest;
DescribeBackupMachineStatusRequest::DescribeBackupMachineStatusRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeBackupMachineStatus")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBackupMachineStatusRequest::~DescribeBackupMachineStatusRequest()
{}
long DescribeBackupMachineStatusRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeBackupMachineStatusRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeBackupMachineStatusRequest::getPolicyVersion()const
{
return policyVersion_;
}
void DescribeBackupMachineStatusRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string DescribeBackupMachineStatusRequest::getUuid()const
{
return uuid_;
}
void DescribeBackupMachineStatusRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string DescribeBackupMachineStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeBackupMachineStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
long DescribeBackupMachineStatusRequest::getPolicyId()const
{
return policyId_;
}
void DescribeBackupMachineStatusRequest::setPolicyId(long policyId)
{
policyId_ = policyId;
setParameter("PolicyId", std::to_string(policyId));
}

View File

@@ -0,0 +1,100 @@
/*
* 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/DescribeBackupMachineStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeBackupMachineStatusResult::DescribeBackupMachineStatusResult() :
ServiceResult()
{}
DescribeBackupMachineStatusResult::DescribeBackupMachineStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupMachineStatusResult::~DescribeBackupMachineStatusResult()
{}
void DescribeBackupMachineStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto backupMachineStatusNode = value["BackupMachineStatus"];
if(!backupMachineStatusNode["Uuid"].isNull())
backupMachineStatus_.uuid = backupMachineStatusNode["Uuid"].asString();
if(!backupMachineStatusNode["ClientStatus"].isNull())
backupMachineStatus_.clientStatus = backupMachineStatusNode["ClientStatus"].asString();
if(!backupMachineStatusNode["SavedBackupCount"].isNull())
backupMachineStatus_.savedBackupCount = std::stoi(backupMachineStatusNode["SavedBackupCount"].asString());
if(!backupMachineStatusNode["ErrorCode"].isNull())
backupMachineStatus_.errorCode = backupMachineStatusNode["ErrorCode"].asString();
if(!backupMachineStatusNode["ClientId"].isNull())
backupMachineStatus_.clientId = backupMachineStatusNode["ClientId"].asString();
if(!backupMachineStatusNode["ClientVersion"].isNull())
backupMachineStatus_.clientVersion = backupMachineStatusNode["ClientVersion"].asString();
if(!backupMachineStatusNode["VaultId"].isNull())
backupMachineStatus_.vaultId = backupMachineStatusNode["VaultId"].asString();
if(!backupMachineStatusNode["Status"].isNull())
backupMachineStatus_.status = backupMachineStatusNode["Status"].asString();
if(!backupMachineStatusNode["RegionId"].isNull())
backupMachineStatus_.regionId = backupMachineStatusNode["RegionId"].asString();
if(!backupMachineStatusNode["InstanceId"].isNull())
backupMachineStatus_.instanceId = backupMachineStatusNode["InstanceId"].asString();
if(!backupMachineStatusNode["RequestId"].isNull())
backupMachineStatus_.requestId = backupMachineStatusNode["RequestId"].asString();
if(!backupMachineStatusNode["Jobs"].isNull())
backupMachineStatus_.jobs = backupMachineStatusNode["Jobs"].asString();
auto allErrorListNode = backupMachineStatusNode["ErrorList"]["BackupErrorMsg"];
for (auto backupMachineStatusNodeErrorListBackupErrorMsg : allErrorListNode)
{
BackupMachineStatus::BackupErrorMsg backupErrorMsgObject;
if(!backupMachineStatusNodeErrorListBackupErrorMsg["Key"].isNull())
backupErrorMsgObject.key = backupMachineStatusNodeErrorListBackupErrorMsg["Key"].asString();
if(!backupMachineStatusNodeErrorListBackupErrorMsg["Path"].isNull())
backupErrorMsgObject.path = backupMachineStatusNodeErrorListBackupErrorMsg["Path"].asString();
if(!backupMachineStatusNodeErrorListBackupErrorMsg["ErrorStatus"].isNull())
backupErrorMsgObject.errorStatus = backupMachineStatusNodeErrorListBackupErrorMsg["ErrorStatus"].asString();
if(!backupMachineStatusNodeErrorListBackupErrorMsg["ErrorCode"].isNull())
backupErrorMsgObject.errorCode = backupMachineStatusNodeErrorListBackupErrorMsg["ErrorCode"].asString();
if(!backupMachineStatusNodeErrorListBackupErrorMsg["ErrorType"].isNull())
backupErrorMsgObject.errorType = backupMachineStatusNodeErrorListBackupErrorMsg["ErrorType"].asString();
if(!backupMachineStatusNodeErrorListBackupErrorMsg["ErrorMsg"].isNull())
backupErrorMsgObject.errorMsg = backupMachineStatusNodeErrorListBackupErrorMsg["ErrorMsg"].asString();
if(!backupMachineStatusNodeErrorListBackupErrorMsg["ErrorTime"].isNull())
backupErrorMsgObject.errorTime = std::stol(backupMachineStatusNodeErrorListBackupErrorMsg["ErrorTime"].asString());
if(!backupMachineStatusNodeErrorListBackupErrorMsg["ErrorFile"].isNull())
backupErrorMsgObject.errorFile = backupMachineStatusNodeErrorListBackupErrorMsg["ErrorFile"].asString();
if(!backupMachineStatusNodeErrorListBackupErrorMsg["ErrorFileUrl"].isNull())
backupErrorMsgObject.errorFileUrl = backupMachineStatusNodeErrorListBackupErrorMsg["ErrorFileUrl"].asString();
if(!backupMachineStatusNodeErrorListBackupErrorMsg["RequestId"].isNull())
backupErrorMsgObject.requestId = backupMachineStatusNodeErrorListBackupErrorMsg["RequestId"].asString();
backupMachineStatus_.errorList.push_back(backupErrorMsgObject);
}
}
DescribeBackupMachineStatusResult::BackupMachineStatus DescribeBackupMachineStatusResult::getBackupMachineStatus()const
{
return backupMachineStatus_;
}

View 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/DescribeBackupPoliciesRequest.h>
using AlibabaCloud::Sas::Model::DescribeBackupPoliciesRequest;
DescribeBackupPoliciesRequest::DescribeBackupPoliciesRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeBackupPolicies")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBackupPoliciesRequest::~DescribeBackupPoliciesRequest()
{}
long DescribeBackupPoliciesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeBackupPoliciesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeBackupPoliciesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeBackupPoliciesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeBackupPoliciesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeBackupPoliciesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeBackupPoliciesRequest::getName()const
{
return name_;
}
void DescribeBackupPoliciesRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
int DescribeBackupPoliciesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeBackupPoliciesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeBackupPoliciesRequest::getStatus()const
{
return status_;
}
void DescribeBackupPoliciesRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View 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/DescribeBackupPoliciesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeBackupPoliciesResult::DescribeBackupPoliciesResult() :
ServiceResult()
{}
DescribeBackupPoliciesResult::DescribeBackupPoliciesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupPoliciesResult::~DescribeBackupPoliciesResult()
{}
void DescribeBackupPoliciesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPoliciesNode = value["Policies"]["BackupPolicy"];
for (auto valuePoliciesBackupPolicy : allPoliciesNode)
{
BackupPolicy policiesObject;
if(!valuePoliciesBackupPolicy["Id"].isNull())
policiesObject.id = std::stol(valuePoliciesBackupPolicy["Id"].asString());
if(!valuePoliciesBackupPolicy["Name"].isNull())
policiesObject.name = valuePoliciesBackupPolicy["Name"].asString();
if(!valuePoliciesBackupPolicy["Status"].isNull())
policiesObject.status = valuePoliciesBackupPolicy["Status"].asString();
if(!valuePoliciesBackupPolicy["Policy"].isNull())
policiesObject.policy = valuePoliciesBackupPolicy["Policy"].asString();
if(!valuePoliciesBackupPolicy["PolicyVersion"].isNull())
policiesObject.policyVersion = valuePoliciesBackupPolicy["PolicyVersion"].asString();
if(!valuePoliciesBackupPolicy["ClientStatus"].isNull())
policiesObject.clientStatus = valuePoliciesBackupPolicy["ClientStatus"].asString();
if(!valuePoliciesBackupPolicy["ClientErrorCount"].isNull())
policiesObject.clientErrorCount = std::stoi(valuePoliciesBackupPolicy["ClientErrorCount"].asString());
if(!valuePoliciesBackupPolicy["ServiceErrorCount"].isNull())
policiesObject.serviceErrorCount = std::stoi(valuePoliciesBackupPolicy["ServiceErrorCount"].asString());
if(!valuePoliciesBackupPolicy["HealthClientCount"].isNull())
policiesObject.healthClientCount = std::stoi(valuePoliciesBackupPolicy["HealthClientCount"].asString());
auto allUuidList = value["UuidList"]["StringItem"];
for (auto value : allUuidList)
policiesObject.uuidList.push_back(value.asString());
auto allClientErrorUuidList = value["ClientErrorUuidList"]["StringItem"];
for (auto value : allClientErrorUuidList)
policiesObject.clientErrorUuidList.push_back(value.asString());
auto allServiceErrorUuidList = value["ServiceErrorUuidList"]["StringItem"];
for (auto value : allServiceErrorUuidList)
policiesObject.serviceErrorUuidList.push_back(value.asString());
auto allHealthClientUuidList = value["HealthClientUuidList"]["StringItem"];
for (auto value : allHealthClientUuidList)
policiesObject.healthClientUuidList.push_back(value.asString());
policies_.push_back(policiesObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
DescribeBackupPoliciesResult::PageInfo DescribeBackupPoliciesResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<DescribeBackupPoliciesResult::BackupPolicy> DescribeBackupPoliciesResult::getPolicies()const
{
return policies_;
}

View 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/DescribeBackupPolicyRequest.h>
using AlibabaCloud::Sas::Model::DescribeBackupPolicyRequest;
DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeBackupPolicy")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest()
{}
long DescribeBackupPolicyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeBackupPolicyRequest::getPolicyVersion()const
{
return policyVersion_;
}
void DescribeBackupPolicyRequest::setPolicyVersion(const std::string& policyVersion)
{
policyVersion_ = policyVersion;
setParameter("PolicyVersion", policyVersion);
}
std::string DescribeBackupPolicyRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeBackupPolicyRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
long DescribeBackupPolicyRequest::getId()const
{
return id_;
}
void DescribeBackupPolicyRequest::setId(long id)
{
id_ = id;
setParameter("Id", std::to_string(id));
}

View 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/DescribeBackupPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeBackupPolicyResult::DescribeBackupPolicyResult() :
ServiceResult()
{}
DescribeBackupPolicyResult::DescribeBackupPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupPolicyResult::~DescribeBackupPolicyResult()
{}
void DescribeBackupPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto backupPolicyDetailNode = value["BackupPolicyDetail"];
if(!backupPolicyDetailNode["Id"].isNull())
backupPolicyDetail_.id = std::stol(backupPolicyDetailNode["Id"].asString());
if(!backupPolicyDetailNode["Name"].isNull())
backupPolicyDetail_.name = backupPolicyDetailNode["Name"].asString();
if(!backupPolicyDetailNode["Policy"].isNull())
backupPolicyDetail_.policy = backupPolicyDetailNode["Policy"].asString();
if(!backupPolicyDetailNode["Status"].isNull())
backupPolicyDetail_.status = backupPolicyDetailNode["Status"].asString();
if(!backupPolicyDetailNode["ClientStatus"].isNull())
backupPolicyDetail_.clientStatus = backupPolicyDetailNode["ClientStatus"].asString();
auto allUuidList = backupPolicyDetailNode["UuidList"]["StringItem"];
for (auto value : allUuidList)
backupPolicyDetail_.uuidList.push_back(value.asString());
}
DescribeBackupPolicyResult::BackupPolicyDetail DescribeBackupPolicyResult::getBackupPolicyDetail()const
{
return backupPolicyDetail_;
}

View 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/DescribeBackupRestoreCountRequest.h>
using AlibabaCloud::Sas::Model::DescribeBackupRestoreCountRequest;
DescribeBackupRestoreCountRequest::DescribeBackupRestoreCountRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeBackupRestoreCount")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBackupRestoreCountRequest::~DescribeBackupRestoreCountRequest()
{}
long DescribeBackupRestoreCountRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeBackupRestoreCountRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeBackupRestoreCountRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeBackupRestoreCountRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View 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/DescribeBackupRestoreCountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeBackupRestoreCountResult::DescribeBackupRestoreCountResult() :
ServiceResult()
{}
DescribeBackupRestoreCountResult::DescribeBackupRestoreCountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBackupRestoreCountResult::~DescribeBackupRestoreCountResult()
{}
void DescribeBackupRestoreCountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto backupRestoreCountNode = value["BackupRestoreCount"];
if(!backupRestoreCountNode["Total"].isNull())
backupRestoreCount_.total = std::stoi(backupRestoreCountNode["Total"].asString());
if(!backupRestoreCountNode["Recovering"].isNull())
backupRestoreCount_.recovering = std::stoi(backupRestoreCountNode["Recovering"].asString());
}
DescribeBackupRestoreCountResult::BackupRestoreCount DescribeBackupRestoreCountResult::getBackupRestoreCount()const
{
return backupRestoreCount_;
}

View 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/DescribeBruteForceSummaryRequest.h>
using AlibabaCloud::Sas::Model::DescribeBruteForceSummaryRequest;
DescribeBruteForceSummaryRequest::DescribeBruteForceSummaryRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeBruteForceSummary")
{
setMethod(HttpRequest::Method::Post);
}
DescribeBruteForceSummaryRequest::~DescribeBruteForceSummaryRequest()
{}
long DescribeBruteForceSummaryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeBruteForceSummaryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeBruteForceSummaryRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeBruteForceSummaryRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View 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/DescribeBruteForceSummaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeBruteForceSummaryResult::DescribeBruteForceSummaryResult() :
ServiceResult()
{}
DescribeBruteForceSummaryResult::DescribeBruteForceSummaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeBruteForceSummaryResult::~DescribeBruteForceSummaryResult()
{}
void DescribeBruteForceSummaryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto bruteForceSummaryNode = value["BruteForceSummary"];
if(!bruteForceSummaryNode["AllStrategyCount"].isNull())
bruteForceSummary_.allStrategyCount = std::stoi(bruteForceSummaryNode["AllStrategyCount"].asString());
if(!bruteForceSummaryNode["EffectiveCount"].isNull())
bruteForceSummary_.effectiveCount = std::stoi(bruteForceSummaryNode["EffectiveCount"].asString());
}
DescribeBruteForceSummaryResult::BruteForceSummary DescribeBruteForceSummaryResult::getBruteForceSummary()const
{
return bruteForceSummary_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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/DescribeCheckEcsWarningsRequest.h>
using AlibabaCloud::Sas::Model::DescribeCheckEcsWarningsRequest;
DescribeCheckEcsWarningsRequest::DescribeCheckEcsWarningsRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeCheckEcsWarnings")
{
setMethod(HttpRequest::Method::Post);
}
DescribeCheckEcsWarningsRequest::~DescribeCheckEcsWarningsRequest()
{}
std::string DescribeCheckEcsWarningsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeCheckEcsWarningsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeCheckEcsWarningsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeCheckEcsWarningsResult::DescribeCheckEcsWarningsResult() :
ServiceResult()
{}
DescribeCheckEcsWarningsResult::DescribeCheckEcsWarningsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCheckEcsWarningsResult::~DescribeCheckEcsWarningsResult()
{}
void DescribeCheckEcsWarningsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CanTry"].isNull())
canTry_ = value["CanTry"].asString();
if(!value["SasVersion"].isNull())
sasVersion_ = value["SasVersion"].asString();
if(!value["WeakPasswordCount"].isNull())
weakPasswordCount_ = value["WeakPasswordCount"].asString();
}
std::string DescribeCheckEcsWarningsResult::getSasVersion()const
{
return sasVersion_;
}
std::string DescribeCheckEcsWarningsResult::getCanTry()const
{
return canTry_;
}
std::string DescribeCheckEcsWarningsResult::getWeakPasswordCount()const
{
return weakPasswordCount_;
}

View File

@@ -38,6 +38,17 @@ void DescribeCloudCenterInstancesRequest::setCriteria(const std::string& criteri
setParameter("Criteria", criteria);
}
int DescribeCloudCenterInstancesRequest::getImportance()const
{
return importance_;
}
void DescribeCloudCenterInstancesRequest::setImportance(int importance)
{
importance_ = importance;
setParameter("Importance", std::to_string(importance));
}
std::string DescribeCloudCenterInstancesRequest::getSourceIp()const
{
return sourceIp_;
@@ -49,6 +60,17 @@ void DescribeCloudCenterInstancesRequest::setSourceIp(const std::string& sourceI
setParameter("SourceIp", sourceIp);
}
std::string DescribeCloudCenterInstancesRequest::getRegionId()const
{
return regionId_;
}
void DescribeCloudCenterInstancesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool DescribeCloudCenterInstancesRequest::getNoPage()const
{
return noPage_;

View File

@@ -93,6 +93,24 @@ void DescribeCloudCenterInstancesResult::parse(const std::string &payload)
instancesObject.regionId = valueInstancesInstance["RegionId"].asString();
if(!valueInstancesInstance["GroupId"].isNull())
instancesObject.groupId = valueInstancesInstance["GroupId"].asString();
if(!valueInstancesInstance["Importance"].isNull())
instancesObject.importance = std::stoi(valueInstancesInstance["Importance"].asString());
if(!valueInstancesInstance["ClientVersion"].isNull())
instancesObject.clientVersion = valueInstancesInstance["ClientVersion"].asString();
if(!valueInstancesInstance["RiskCount"].isNull())
instancesObject.riskCount = valueInstancesInstance["RiskCount"].asString();
if(!valueInstancesInstance["ClusterId"].isNull())
instancesObject.clusterId = valueInstancesInstance["ClusterId"].asString();
if(!valueInstancesInstance["ClusterName"].isNull())
instancesObject.clusterName = valueInstancesInstance["ClusterName"].asString();
if(!valueInstancesInstance["CreatedTime"].isNull())
instancesObject.createdTime = std::stol(valueInstancesInstance["CreatedTime"].asString());
if(!valueInstancesInstance["PodCount"].isNull())
instancesObject.podCount = std::stoi(valueInstancesInstance["PodCount"].asString());
if(!valueInstancesInstance["ExposedStatus"].isNull())
instancesObject.exposedStatus = std::stoi(valueInstancesInstance["ExposedStatus"].asString());
if(!valueInstancesInstance["AutoSnapshotsLevel"].isNull())
instancesObject.autoSnapshotsLevel = std::stoi(valueInstancesInstance["AutoSnapshotsLevel"].asString());
instances_.push_back(instancesObject);
}
auto pageInfoNode = value["PageInfo"];

View 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/DescribeContainerStatisticsRequest.h>
using AlibabaCloud::Sas::Model::DescribeContainerStatisticsRequest;
DescribeContainerStatisticsRequest::DescribeContainerStatisticsRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeContainerStatistics")
{
setMethod(HttpRequest::Method::Post);
}
DescribeContainerStatisticsRequest::~DescribeContainerStatisticsRequest()
{}
std::string DescribeContainerStatisticsRequest::getClusterId()const
{
return clusterId_;
}
void DescribeContainerStatisticsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeContainerStatisticsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeContainerStatisticsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeContainerStatisticsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeContainerStatisticsResult::DescribeContainerStatisticsResult() :
ServiceResult()
{}
DescribeContainerStatisticsResult::DescribeContainerStatisticsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeContainerStatisticsResult::~DescribeContainerStatisticsResult()
{}
void DescribeContainerStatisticsResult::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["TotalAlarmCount"].isNull())
data_.totalAlarmCount = std::stoi(dataNode["TotalAlarmCount"].asString());
if(!dataNode["RemindAlarmCount"].isNull())
data_.remindAlarmCount = std::stoi(dataNode["RemindAlarmCount"].asString());
if(!dataNode["SuspiciousAlarmCount"].isNull())
data_.suspiciousAlarmCount = std::stoi(dataNode["SuspiciousAlarmCount"].asString());
if(!dataNode["SeriousAlarmCount"].isNull())
data_.seriousAlarmCount = std::stoi(dataNode["SeriousAlarmCount"].asString());
if(!dataNode["TotalNode"].isNull())
data_.totalNode = std::stoi(dataNode["TotalNode"].asString());
if(!dataNode["hasRiskNode"].isNull())
data_.hasRiskNode = std::stoi(dataNode["hasRiskNode"].asString());
}
DescribeContainerStatisticsResult::Data DescribeContainerStatisticsResult::getData()const
{
return data_;
}

View File

@@ -43,9 +43,16 @@ void DescribeDomainCountResult::parse(const std::string &payload)
totalDomainsCount_ = std::stoi(value["TotalDomainsCount"].asString());
if(!value["RootDomainsCount"].isNull())
rootDomainsCount_ = std::stoi(value["RootDomainsCount"].asString());
if(!value["SubDomainsCount"].isNull())
subDomainsCount_ = std::stoi(value["SubDomainsCount"].asString());
}
int DescribeDomainCountResult::getSubDomainsCount()const
{
return subDomainsCount_;
}
int DescribeDomainCountResult::getTotalDomainsCount()const
{
return totalDomainsCount_;

View File

@@ -63,6 +63,10 @@ void DescribeDomainDetailResult::parse(const std::string &payload)
domain_ = value["Domain"].asString();
if(!value["RootDomain"].isNull())
rootDomain_ = value["RootDomain"].asString();
if(!value["VulCount"].isNull())
vulCount_ = std::stoi(value["VulCount"].asString());
if(!value["AlarmCount"].isNull())
alarmCount_ = std::stoi(value["AlarmCount"].asString());
}
@@ -81,3 +85,13 @@ std::string DescribeDomainDetailResult::getDomain()const
return domain_;
}
int DescribeDomainDetailResult::getVulCount()const
{
return vulCount_;
}
int DescribeDomainDetailResult::getAlarmCount()const
{
return alarmCount_;
}

View File

@@ -1,80 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeEmgVulGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeEmgVulGroupResult::DescribeEmgVulGroupResult() :
ServiceResult()
{}
DescribeEmgVulGroupResult::DescribeEmgVulGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeEmgVulGroupResult::~DescribeEmgVulGroupResult()
{}
void DescribeEmgVulGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allEmgVulGroupListNode = value["EmgVulGroupList"]["EmgVulGroup"];
for (auto valueEmgVulGroupListEmgVulGroup : allEmgVulGroupListNode)
{
EmgVulGroup emgVulGroupListObject;
if(!valueEmgVulGroupListEmgVulGroup["AliasName"].isNull())
emgVulGroupListObject.aliasName = valueEmgVulGroupListEmgVulGroup["AliasName"].asString();
if(!valueEmgVulGroupListEmgVulGroup["PendingCount"].isNull())
emgVulGroupListObject.pendingCount = std::stoi(valueEmgVulGroupListEmgVulGroup["PendingCount"].asString());
if(!valueEmgVulGroupListEmgVulGroup["Name"].isNull())
emgVulGroupListObject.name = valueEmgVulGroupListEmgVulGroup["Name"].asString();
if(!valueEmgVulGroupListEmgVulGroup["GmtPublish"].isNull())
emgVulGroupListObject.gmtPublish = std::stol(valueEmgVulGroupListEmgVulGroup["GmtPublish"].asString());
if(!valueEmgVulGroupListEmgVulGroup["Description"].isNull())
emgVulGroupListObject.description = valueEmgVulGroupListEmgVulGroup["Description"].asString();
if(!valueEmgVulGroupListEmgVulGroup["Type"].isNull())
emgVulGroupListObject.type = valueEmgVulGroupListEmgVulGroup["Type"].asString();
if(!valueEmgVulGroupListEmgVulGroup["Status"].isNull())
emgVulGroupListObject.status = std::stoi(valueEmgVulGroupListEmgVulGroup["Status"].asString());
if(!valueEmgVulGroupListEmgVulGroup["Progress"].isNull())
emgVulGroupListObject.progress = std::stoi(valueEmgVulGroupListEmgVulGroup["Progress"].asString());
if(!valueEmgVulGroupListEmgVulGroup["GmtLastCheck"].isNull())
emgVulGroupListObject.gmtLastCheck = std::stol(valueEmgVulGroupListEmgVulGroup["GmtLastCheck"].asString());
emgVulGroupList_.push_back(emgVulGroupListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeEmgVulGroupResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeEmgVulGroupResult::EmgVulGroup> DescribeEmgVulGroupResult::getEmgVulGroupList()const
{
return emgVulGroupList_;
}

View 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/DescribeEmgVulItemRequest.h>
using AlibabaCloud::Sas::Model::DescribeEmgVulItemRequest;
DescribeEmgVulItemRequest::DescribeEmgVulItemRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeEmgVulItem")
{
setMethod(HttpRequest::Method::Post);
}
DescribeEmgVulItemRequest::~DescribeEmgVulItemRequest()
{}
std::string DescribeEmgVulItemRequest::getScanType()const
{
return scanType_;
}
void DescribeEmgVulItemRequest::setScanType(const std::string& scanType)
{
scanType_ = scanType;
setParameter("ScanType", scanType);
}
std::string DescribeEmgVulItemRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeEmgVulItemRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeEmgVulItemRequest::getPageSize()const
{
return pageSize_;
}
void DescribeEmgVulItemRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeEmgVulItemRequest::getLang()const
{
return lang_;
}
void DescribeEmgVulItemRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int DescribeEmgVulItemRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeEmgVulItemRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeEmgVulItemRequest::getVulName()const
{
return vulName_;
}
void DescribeEmgVulItemRequest::setVulName(const std::string& vulName)
{
vulName_ = vulName;
setParameter("VulName", vulName);
}
std::string DescribeEmgVulItemRequest::getRiskStatus()const
{
return riskStatus_;
}
void DescribeEmgVulItemRequest::setRiskStatus(const std::string& riskStatus)
{
riskStatus_ = riskStatus;
setParameter("RiskStatus", riskStatus);
}

View File

@@ -0,0 +1,94 @@
/*
* 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/DescribeEmgVulItemResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeEmgVulItemResult::DescribeEmgVulItemResult() :
ServiceResult()
{}
DescribeEmgVulItemResult::DescribeEmgVulItemResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeEmgVulItemResult::~DescribeEmgVulItemResult()
{}
void DescribeEmgVulItemResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGroupedVulItemsNode = value["GroupedVulItems"]["GroupedVulItem"];
for (auto valueGroupedVulItemsGroupedVulItem : allGroupedVulItemsNode)
{
GroupedVulItem groupedVulItemsObject;
if(!valueGroupedVulItemsGroupedVulItem["AliasName"].isNull())
groupedVulItemsObject.aliasName = valueGroupedVulItemsGroupedVulItem["AliasName"].asString();
if(!valueGroupedVulItemsGroupedVulItem["PendingCount"].isNull())
groupedVulItemsObject.pendingCount = std::stoi(valueGroupedVulItemsGroupedVulItem["PendingCount"].asString());
if(!valueGroupedVulItemsGroupedVulItem["Name"].isNull())
groupedVulItemsObject.name = valueGroupedVulItemsGroupedVulItem["Name"].asString();
if(!valueGroupedVulItemsGroupedVulItem["GmtPublish"].isNull())
groupedVulItemsObject.gmtPublish = std::stol(valueGroupedVulItemsGroupedVulItem["GmtPublish"].asString());
if(!valueGroupedVulItemsGroupedVulItem["Description"].isNull())
groupedVulItemsObject.description = valueGroupedVulItemsGroupedVulItem["Description"].asString();
if(!valueGroupedVulItemsGroupedVulItem["Type"].isNull())
groupedVulItemsObject.type = valueGroupedVulItemsGroupedVulItem["Type"].asString();
if(!valueGroupedVulItemsGroupedVulItem["Status"].isNull())
groupedVulItemsObject.status = std::stoi(valueGroupedVulItemsGroupedVulItem["Status"].asString());
if(!valueGroupedVulItemsGroupedVulItem["Progress"].isNull())
groupedVulItemsObject.progress = std::stoi(valueGroupedVulItemsGroupedVulItem["Progress"].asString());
if(!valueGroupedVulItemsGroupedVulItem["GmtLastCheck"].isNull())
groupedVulItemsObject.gmtLastCheck = std::stol(valueGroupedVulItemsGroupedVulItem["GmtLastCheck"].asString());
groupedVulItems_.push_back(groupedVulItemsObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeEmgVulItemResult::getTotalCount()const
{
return totalCount_;
}
int DescribeEmgVulItemResult::getPageSize()const
{
return pageSize_;
}
int DescribeEmgVulItemResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeEmgVulItemResult::GroupedVulItem> DescribeEmgVulItemResult::getGroupedVulItems()const
{
return groupedVulItems_;
}

View 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/DescribeExcludeSystemPathRequest.h>
using AlibabaCloud::Sas::Model::DescribeExcludeSystemPathRequest;
DescribeExcludeSystemPathRequest::DescribeExcludeSystemPathRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeExcludeSystemPath")
{
setMethod(HttpRequest::Method::Post);
}
DescribeExcludeSystemPathRequest::~DescribeExcludeSystemPathRequest()
{}
long DescribeExcludeSystemPathRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeExcludeSystemPathRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
int DescribeExcludeSystemPathRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeExcludeSystemPathRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeExcludeSystemPathRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeExcludeSystemPathRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeExcludeSystemPathRequest::getPageSize()const
{
return pageSize_;
}
void DescribeExcludeSystemPathRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,75 @@
/*
* 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/DescribeExcludeSystemPathResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeExcludeSystemPathResult::DescribeExcludeSystemPathResult() :
ServiceResult()
{}
DescribeExcludeSystemPathResult::DescribeExcludeSystemPathResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeExcludeSystemPathResult::~DescribeExcludeSystemPathResult()
{}
void DescribeExcludeSystemPathResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allExcludePathsNode = value["ExcludePaths"]["BaseModelDTO"];
for (auto valueExcludePathsBaseModelDTO : allExcludePathsNode)
{
BaseModelDTO excludePathsObject;
if(!valueExcludePathsBaseModelDTO["Id"].isNull())
excludePathsObject.id = std::stol(valueExcludePathsBaseModelDTO["Id"].asString());
if(!valueExcludePathsBaseModelDTO["Os"].isNull())
excludePathsObject.os = valueExcludePathsBaseModelDTO["Os"].asString();
if(!valueExcludePathsBaseModelDTO["Path"].isNull())
excludePathsObject.path = valueExcludePathsBaseModelDTO["Path"].asString();
excludePaths_.push_back(excludePathsObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
DescribeExcludeSystemPathResult::PageInfo DescribeExcludeSystemPathResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<DescribeExcludeSystemPathResult::BaseModelDTO> DescribeExcludeSystemPathResult::getExcludePaths()const
{
return excludePaths_;
}

View 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/DescribeExposedInstanceCriteriaRequest.h>
using AlibabaCloud::Sas::Model::DescribeExposedInstanceCriteriaRequest;
DescribeExposedInstanceCriteriaRequest::DescribeExposedInstanceCriteriaRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeExposedInstanceCriteria")
{
setMethod(HttpRequest::Method::Post);
}
DescribeExposedInstanceCriteriaRequest::~DescribeExposedInstanceCriteriaRequest()
{}
std::string DescribeExposedInstanceCriteriaRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeExposedInstanceCriteriaRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeExposedInstanceCriteriaRequest::getValue()const
{
return value_;
}
void DescribeExposedInstanceCriteriaRequest::setValue(const std::string& value)
{
value_ = value;
setParameter("Value", value);
}

View 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/DescribeExposedInstanceCriteriaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeExposedInstanceCriteriaResult::DescribeExposedInstanceCriteriaResult() :
ServiceResult()
{}
DescribeExposedInstanceCriteriaResult::DescribeExposedInstanceCriteriaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeExposedInstanceCriteriaResult::~DescribeExposedInstanceCriteriaResult()
{}
void DescribeExposedInstanceCriteriaResult::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["Values"].isNull())
criteriaListObject.values = valueCriteriaListCriteria["Values"].asString();
if(!valueCriteriaListCriteria["Name"].isNull())
criteriaListObject.name = valueCriteriaListCriteria["Name"].asString();
if(!valueCriteriaListCriteria["Type"].isNull())
criteriaListObject.type = valueCriteriaListCriteria["Type"].asString();
criteriaList_.push_back(criteriaListObject);
}
}
std::vector<DescribeExposedInstanceCriteriaResult::Criteria> DescribeExposedInstanceCriteriaResult::getCriteriaList()const
{
return criteriaList_;
}

View 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/DescribeExposedInstanceDetailRequest.h>
using AlibabaCloud::Sas::Model::DescribeExposedInstanceDetailRequest;
DescribeExposedInstanceDetailRequest::DescribeExposedInstanceDetailRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeExposedInstanceDetail")
{
setMethod(HttpRequest::Method::Post);
}
DescribeExposedInstanceDetailRequest::~DescribeExposedInstanceDetailRequest()
{}
std::string DescribeExposedInstanceDetailRequest::getUuid()const
{
return uuid_;
}
void DescribeExposedInstanceDetailRequest::setUuid(const std::string& uuid)
{
uuid_ = uuid;
setParameter("Uuid", uuid);
}
std::string DescribeExposedInstanceDetailRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeExposedInstanceDetailRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,111 @@
/*
* 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/DescribeExposedInstanceDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeExposedInstanceDetailResult::DescribeExposedInstanceDetailResult() :
ServiceResult()
{}
DescribeExposedInstanceDetailResult::DescribeExposedInstanceDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeExposedInstanceDetailResult::~DescribeExposedInstanceDetailResult()
{}
void DescribeExposedInstanceDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allExposedChainsNode = value["ExposedChains"]["ExposedChain"];
for (auto valueExposedChainsExposedChain : allExposedChainsNode)
{
ExposedChain exposedChainsObject;
if(!valueExposedChainsExposedChain["Uuid"].isNull())
exposedChainsObject.uuid = valueExposedChainsExposedChain["Uuid"].asString();
if(!valueExposedChainsExposedChain["IntranetIp"].isNull())
exposedChainsObject.intranetIp = valueExposedChainsExposedChain["IntranetIp"].asString();
if(!valueExposedChainsExposedChain["InternetIp"].isNull())
exposedChainsObject.internetIp = valueExposedChainsExposedChain["InternetIp"].asString();
if(!valueExposedChainsExposedChain["ExposureComponent"].isNull())
exposedChainsObject.exposureComponent = valueExposedChainsExposedChain["ExposureComponent"].asString();
if(!valueExposedChainsExposedChain["ExposureType"].isNull())
exposedChainsObject.exposureType = valueExposedChainsExposedChain["ExposureType"].asString();
if(!valueExposedChainsExposedChain["ExposurePort"].isNull())
exposedChainsObject.exposurePort = valueExposedChainsExposedChain["ExposurePort"].asString();
if(!valueExposedChainsExposedChain["ExposureIp"].isNull())
exposedChainsObject.exposureIp = valueExposedChainsExposedChain["ExposureIp"].asString();
if(!valueExposedChainsExposedChain["ExposureTypeId"].isNull())
exposedChainsObject.exposureTypeId = valueExposedChainsExposedChain["ExposureTypeId"].asString();
if(!valueExposedChainsExposedChain["InstanceId"].isNull())
exposedChainsObject.instanceId = valueExposedChainsExposedChain["InstanceId"].asString();
if(!valueExposedChainsExposedChain["InstanceName"].isNull())
exposedChainsObject.instanceName = valueExposedChainsExposedChain["InstanceName"].asString();
if(!valueExposedChainsExposedChain["RegionId"].isNull())
exposedChainsObject.regionId = valueExposedChainsExposedChain["RegionId"].asString();
if(!valueExposedChainsExposedChain["GroupNo"].isNull())
exposedChainsObject.groupNo = valueExposedChainsExposedChain["GroupNo"].asString();
auto allRealVulListNode = valueExposedChainsExposedChain["RealVulList"]["ScaVulRecord"];
for (auto valueExposedChainsExposedChainRealVulListScaVulRecord : allRealVulListNode)
{
ExposedChain::ScaVulRecord realVulListObject;
if(!valueExposedChainsExposedChainRealVulListScaVulRecord["AliasName"].isNull())
realVulListObject.aliasName = valueExposedChainsExposedChainRealVulListScaVulRecord["AliasName"].asString();
if(!valueExposedChainsExposedChainRealVulListScaVulRecord["Necessity"].isNull())
realVulListObject.necessity = valueExposedChainsExposedChainRealVulListScaVulRecord["Necessity"].asString();
if(!valueExposedChainsExposedChainRealVulListScaVulRecord["Name"].isNull())
realVulListObject.name = valueExposedChainsExposedChainRealVulListScaVulRecord["Name"].asString();
if(!valueExposedChainsExposedChainRealVulListScaVulRecord["Type"].isNull())
realVulListObject.type = valueExposedChainsExposedChainRealVulListScaVulRecord["Type"].asString();
if(!valueExposedChainsExposedChainRealVulListScaVulRecord["Uuid"].isNull())
realVulListObject.uuid = valueExposedChainsExposedChainRealVulListScaVulRecord["Uuid"].asString();
exposedChainsObject.realVulList.push_back(realVulListObject);
}
auto allAllVulListNode = valueExposedChainsExposedChain["AllVulList"]["ScaVulRecord"];
for (auto valueExposedChainsExposedChainAllVulListScaVulRecord : allAllVulListNode)
{
ExposedChain::ScaVulRecord allVulListObject;
if(!valueExposedChainsExposedChainAllVulListScaVulRecord["AliasName"].isNull())
allVulListObject.aliasName = valueExposedChainsExposedChainAllVulListScaVulRecord["AliasName"].asString();
if(!valueExposedChainsExposedChainAllVulListScaVulRecord["Necessity"].isNull())
allVulListObject.necessity = valueExposedChainsExposedChainAllVulListScaVulRecord["Necessity"].asString();
if(!valueExposedChainsExposedChainAllVulListScaVulRecord["Name"].isNull())
allVulListObject.name = valueExposedChainsExposedChainAllVulListScaVulRecord["Name"].asString();
if(!valueExposedChainsExposedChainAllVulListScaVulRecord["Type"].isNull())
allVulListObject.type = valueExposedChainsExposedChainAllVulListScaVulRecord["Type"].asString();
if(!valueExposedChainsExposedChainAllVulListScaVulRecord["Uuid"].isNull())
allVulListObject.uuid = valueExposedChainsExposedChainAllVulListScaVulRecord["Uuid"].asString();
exposedChainsObject.allVulList.push_back(allVulListObject);
}
exposedChains_.push_back(exposedChainsObject);
}
}
std::vector<DescribeExposedInstanceDetailResult::ExposedChain> DescribeExposedInstanceDetailResult::getExposedChains()const
{
return exposedChains_;
}

View File

@@ -0,0 +1,150 @@
/*
* 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/DescribeExposedInstanceListRequest.h>
using AlibabaCloud::Sas::Model::DescribeExposedInstanceListRequest;
DescribeExposedInstanceListRequest::DescribeExposedInstanceListRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeExposedInstanceList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeExposedInstanceListRequest::~DescribeExposedInstanceListRequest()
{}
std::string DescribeExposedInstanceListRequest::getExposurePort()const
{
return exposurePort_;
}
void DescribeExposedInstanceListRequest::setExposurePort(const std::string& exposurePort)
{
exposurePort_ = exposurePort;
setParameter("ExposurePort", exposurePort);
}
std::string DescribeExposedInstanceListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeExposedInstanceListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeExposedInstanceListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeExposedInstanceListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
bool DescribeExposedInstanceListRequest::getVulStatus()const
{
return vulStatus_;
}
void DescribeExposedInstanceListRequest::setVulStatus(bool vulStatus)
{
vulStatus_ = vulStatus;
setParameter("VulStatus", vulStatus ? "true" : "false");
}
std::string DescribeExposedInstanceListRequest::getExposureIp()const
{
return exposureIp_;
}
void DescribeExposedInstanceListRequest::setExposureIp(const std::string& exposureIp)
{
exposureIp_ = exposureIp;
setParameter("ExposureIp", exposureIp);
}
long DescribeExposedInstanceListRequest::getGroupId()const
{
return groupId_;
}
void DescribeExposedInstanceListRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
}
int DescribeExposedInstanceListRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeExposedInstanceListRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeExposedInstanceListRequest::getExposureComponent()const
{
return exposureComponent_;
}
void DescribeExposedInstanceListRequest::setExposureComponent(const std::string& exposureComponent)
{
exposureComponent_ = exposureComponent;
setParameter("ExposureComponent", exposureComponent);
}
std::string DescribeExposedInstanceListRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeExposedInstanceListRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeExposedInstanceListRequest::getInstanceName()const
{
return instanceName_;
}
void DescribeExposedInstanceListRequest::setInstanceName(const std::string& instanceName)
{
instanceName_ = instanceName;
setParameter("InstanceName", instanceName);
}
bool DescribeExposedInstanceListRequest::getHealthStatus()const
{
return healthStatus_;
}
void DescribeExposedInstanceListRequest::setHealthStatus(bool healthStatus)
{
healthStatus_ = healthStatus;
setParameter("HealthStatus", healthStatus ? "true" : "false");
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DescribeExposedInstanceListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeExposedInstanceListResult::DescribeExposedInstanceListResult() :
ServiceResult()
{}
DescribeExposedInstanceListResult::DescribeExposedInstanceListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeExposedInstanceListResult::~DescribeExposedInstanceListResult()
{}
void DescribeExposedInstanceListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allExposedInstancesNode = value["ExposedInstances"]["ExposedInstance"];
for (auto valueExposedInstancesExposedInstance : allExposedInstancesNode)
{
ExposedInstance exposedInstancesObject;
if(!valueExposedInstancesExposedInstance["Uuid"].isNull())
exposedInstancesObject.uuid = valueExposedInstancesExposedInstance["Uuid"].asString();
if(!valueExposedInstancesExposedInstance["IntranetIp"].isNull())
exposedInstancesObject.intranetIp = valueExposedInstancesExposedInstance["IntranetIp"].asString();
if(!valueExposedInstancesExposedInstance["InternetIp"].isNull())
exposedInstancesObject.internetIp = valueExposedInstancesExposedInstance["InternetIp"].asString();
if(!valueExposedInstancesExposedInstance["AsapVulCount"].isNull())
exposedInstancesObject.asapVulCount = std::stoi(valueExposedInstancesExposedInstance["AsapVulCount"].asString());
if(!valueExposedInstancesExposedInstance["LaterVulCount"].isNull())
exposedInstancesObject.laterVulCount = std::stoi(valueExposedInstancesExposedInstance["LaterVulCount"].asString());
if(!valueExposedInstancesExposedInstance["NntfVulCount"].isNull())
exposedInstancesObject.nntfVulCount = std::stoi(valueExposedInstancesExposedInstance["NntfVulCount"].asString());
if(!valueExposedInstancesExposedInstance["TotalVulCount"].isNull())
exposedInstancesObject.totalVulCount = std::stoi(valueExposedInstancesExposedInstance["TotalVulCount"].asString());
if(!valueExposedInstancesExposedInstance["ExploitHealthCount"].isNull())
exposedInstancesObject.exploitHealthCount = std::stoi(valueExposedInstancesExposedInstance["ExploitHealthCount"].asString());
if(!valueExposedInstancesExposedInstance["ExposureComponent"].isNull())
exposedInstancesObject.exposureComponent = valueExposedInstancesExposedInstance["ExposureComponent"].asString();
if(!valueExposedInstancesExposedInstance["ExposureType"].isNull())
exposedInstancesObject.exposureType = valueExposedInstancesExposedInstance["ExposureType"].asString();
if(!valueExposedInstancesExposedInstance["ExposureTypeId"].isNull())
exposedInstancesObject.exposureTypeId = valueExposedInstancesExposedInstance["ExposureTypeId"].asString();
if(!valueExposedInstancesExposedInstance["ExposurePort"].isNull())
exposedInstancesObject.exposurePort = valueExposedInstancesExposedInstance["ExposurePort"].asString();
if(!valueExposedInstancesExposedInstance["ExposureIp"].isNull())
exposedInstancesObject.exposureIp = valueExposedInstancesExposedInstance["ExposureIp"].asString();
if(!valueExposedInstancesExposedInstance["InstanceId"].isNull())
exposedInstancesObject.instanceId = valueExposedInstancesExposedInstance["InstanceId"].asString();
if(!valueExposedInstancesExposedInstance["InstanceName"].isNull())
exposedInstancesObject.instanceName = valueExposedInstancesExposedInstance["InstanceName"].asString();
if(!valueExposedInstancesExposedInstance["RegionId"].isNull())
exposedInstancesObject.regionId = valueExposedInstancesExposedInstance["RegionId"].asString();
if(!valueExposedInstancesExposedInstance["GroupId"].isNull())
exposedInstancesObject.groupId = std::stol(valueExposedInstancesExposedInstance["GroupId"].asString());
if(!valueExposedInstancesExposedInstance["GroupName"].isNull())
exposedInstancesObject.groupName = valueExposedInstancesExposedInstance["GroupName"].asString();
exposedInstances_.push_back(exposedInstancesObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
DescribeExposedInstanceListResult::PageInfo DescribeExposedInstanceListResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<DescribeExposedInstanceListResult::ExposedInstance> DescribeExposedInstanceListResult::getExposedInstances()const
{
return exposedInstances_;
}

View 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/DescribeExposedStatisticsDetailRequest.h>
using AlibabaCloud::Sas::Model::DescribeExposedStatisticsDetailRequest;
DescribeExposedStatisticsDetailRequest::DescribeExposedStatisticsDetailRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeExposedStatisticsDetail")
{
setMethod(HttpRequest::Method::Post);
}
DescribeExposedStatisticsDetailRequest::~DescribeExposedStatisticsDetailRequest()
{}
std::string DescribeExposedStatisticsDetailRequest::getStatisticsType()const
{
return statisticsType_;
}
void DescribeExposedStatisticsDetailRequest::setStatisticsType(const std::string& statisticsType)
{
statisticsType_ = statisticsType;
setParameter("StatisticsType", statisticsType);
}
std::string DescribeExposedStatisticsDetailRequest::getStatisticsTypeGatewayType()const
{
return statisticsTypeGatewayType_;
}
void DescribeExposedStatisticsDetailRequest::setStatisticsTypeGatewayType(const std::string& statisticsTypeGatewayType)
{
statisticsTypeGatewayType_ = statisticsTypeGatewayType;
setParameter("StatisticsTypeGatewayType", statisticsTypeGatewayType);
}
int DescribeExposedStatisticsDetailRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeExposedStatisticsDetailRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeExposedStatisticsDetailRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeExposedStatisticsDetailRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeExposedStatisticsDetailRequest::getStatisticsTypeInstanceValue()const
{
return statisticsTypeInstanceValue_;
}
void DescribeExposedStatisticsDetailRequest::setStatisticsTypeInstanceValue(const std::string& statisticsTypeInstanceValue)
{
statisticsTypeInstanceValue_ = statisticsTypeInstanceValue;
setParameter("StatisticsTypeInstanceValue", statisticsTypeInstanceValue);
}
int DescribeExposedStatisticsDetailRequest::getPageSize()const
{
return pageSize_;
}
void DescribeExposedStatisticsDetailRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,85 @@
/*
* 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/DescribeExposedStatisticsDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeExposedStatisticsDetailResult::DescribeExposedStatisticsDetailResult() :
ServiceResult()
{}
DescribeExposedStatisticsDetailResult::DescribeExposedStatisticsDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeExposedStatisticsDetailResult::~DescribeExposedStatisticsDetailResult()
{}
void DescribeExposedStatisticsDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allStatisticsDetailsNode = value["StatisticsDetails"]["StatisticsDetail"];
for (auto valueStatisticsDetailsStatisticsDetail : allStatisticsDetailsNode)
{
StatisticsDetail statisticsDetailsObject;
if(!valueStatisticsDetailsStatisticsDetail["ExposureComponent"].isNull())
statisticsDetailsObject.exposureComponent = valueStatisticsDetailsStatisticsDetail["ExposureComponent"].asString();
if(!valueStatisticsDetailsStatisticsDetail["ExposureType"].isNull())
statisticsDetailsObject.exposureType = valueStatisticsDetailsStatisticsDetail["ExposureType"].asString();
if(!valueStatisticsDetailsStatisticsDetail["ExposureTypeId"].isNull())
statisticsDetailsObject.exposureTypeId = valueStatisticsDetailsStatisticsDetail["ExposureTypeId"].asString();
if(!valueStatisticsDetailsStatisticsDetail["ExposurePort"].isNull())
statisticsDetailsObject.exposurePort = valueStatisticsDetailsStatisticsDetail["ExposurePort"].asString();
if(!valueStatisticsDetailsStatisticsDetail["ExposureIp"].isNull())
statisticsDetailsObject.exposureIp = valueStatisticsDetailsStatisticsDetail["ExposureIp"].asString();
if(!valueStatisticsDetailsStatisticsDetail["ExposureTypeInstanceName"].isNull())
statisticsDetailsObject.exposureTypeInstanceName = valueStatisticsDetailsStatisticsDetail["ExposureTypeInstanceName"].asString();
if(!valueStatisticsDetailsStatisticsDetail["ExposedCount"].isNull())
statisticsDetailsObject.exposedCount = std::stoi(valueStatisticsDetailsStatisticsDetail["ExposedCount"].asString());
if(!valueStatisticsDetailsStatisticsDetail["RegionId"].isNull())
statisticsDetailsObject.regionId = valueStatisticsDetailsStatisticsDetail["RegionId"].asString();
statisticsDetails_.push_back(statisticsDetailsObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
DescribeExposedStatisticsDetailResult::PageInfo DescribeExposedStatisticsDetailResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<DescribeExposedStatisticsDetailResult::StatisticsDetail> DescribeExposedStatisticsDetailResult::getStatisticsDetails()const
{
return statisticsDetails_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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/DescribeExposedStatisticsRequest.h>
using AlibabaCloud::Sas::Model::DescribeExposedStatisticsRequest;
DescribeExposedStatisticsRequest::DescribeExposedStatisticsRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeExposedStatistics")
{
setMethod(HttpRequest::Method::Post);
}
DescribeExposedStatisticsRequest::~DescribeExposedStatisticsRequest()
{}
std::string DescribeExposedStatisticsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeExposedStatisticsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,107 @@
/*
* 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/DescribeExposedStatisticsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeExposedStatisticsResult::DescribeExposedStatisticsResult() :
ServiceResult()
{}
DescribeExposedStatisticsResult::DescribeExposedStatisticsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeExposedStatisticsResult::~DescribeExposedStatisticsResult()
{}
void DescribeExposedStatisticsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ExposedInstanceCount"].isNull())
exposedInstanceCount_ = std::stoi(value["ExposedInstanceCount"].asString());
if(!value["GatewayAssetCount"].isNull())
gatewayAssetCount_ = std::stoi(value["GatewayAssetCount"].asString());
if(!value["ExposedIpCount"].isNull())
exposedIpCount_ = std::stoi(value["ExposedIpCount"].asString());
if(!value["ExposedPortCount"].isNull())
exposedPortCount_ = std::stoi(value["ExposedPortCount"].asString());
if(!value["ExposedComponentCount"].isNull())
exposedComponentCount_ = std::stoi(value["ExposedComponentCount"].asString());
if(!value["ExposedAsapVulCount"].isNull())
exposedAsapVulCount_ = std::stoi(value["ExposedAsapVulCount"].asString());
if(!value["ExposedLaterVulCount"].isNull())
exposedLaterVulCount_ = std::stoi(value["ExposedLaterVulCount"].asString());
if(!value["ExposedNntfVulCount"].isNull())
exposedNntfVulCount_ = std::stoi(value["ExposedNntfVulCount"].asString());
if(!value["ExposedWeekPasswordMachineCount"].isNull())
exposedWeekPasswordMachineCount_ = std::stoi(value["ExposedWeekPasswordMachineCount"].asString());
}
int DescribeExposedStatisticsResult::getExposedPortCount()const
{
return exposedPortCount_;
}
int DescribeExposedStatisticsResult::getExposedWeekPasswordMachineCount()const
{
return exposedWeekPasswordMachineCount_;
}
int DescribeExposedStatisticsResult::getExposedInstanceCount()const
{
return exposedInstanceCount_;
}
int DescribeExposedStatisticsResult::getGatewayAssetCount()const
{
return gatewayAssetCount_;
}
int DescribeExposedStatisticsResult::getExposedLaterVulCount()const
{
return exposedLaterVulCount_;
}
int DescribeExposedStatisticsResult::getExposedComponentCount()const
{
return exposedComponentCount_;
}
int DescribeExposedStatisticsResult::getExposedIpCount()const
{
return exposedIpCount_;
}
int DescribeExposedStatisticsResult::getExposedNntfVulCount()const
{
return exposedNntfVulCount_;
}
int DescribeExposedStatisticsResult::getExposedAsapVulCount()const
{
return exposedAsapVulCount_;
}

View File

@@ -49,3 +49,14 @@ void DescribeFieldStatisticsRequest::setSourceIp(const std::string& sourceIp)
setParameter("SourceIp", sourceIp);
}
std::string DescribeFieldStatisticsRequest::getRegionId()const
{
return regionId_;
}
void DescribeFieldStatisticsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}

View File

@@ -58,6 +58,14 @@ void DescribeFieldStatisticsResult::parse(const std::string &payload)
groupedFields_.notRunningStatusCount = std::stoi(groupedFieldsNode["NotRunningStatusCount"].asString());
if(!groupedFieldsNode["OfflineInstanceCount"].isNull())
groupedFields_.offlineInstanceCount = std::stoi(groupedFieldsNode["OfflineInstanceCount"].asString());
if(!groupedFieldsNode["ImportantAssetCount"].isNull())
groupedFields_.importantAssetCount = std::stoi(groupedFieldsNode["ImportantAssetCount"].asString());
if(!groupedFieldsNode["GeneralAssetCount"].isNull())
groupedFields_.generalAssetCount = std::stoi(groupedFieldsNode["GeneralAssetCount"].asString());
if(!groupedFieldsNode["TestAssetCount"].isNull())
groupedFields_.testAssetCount = std::stoi(groupedFieldsNode["TestAssetCount"].asString());
if(!groupedFieldsNode["ExposedInstanceCount"].isNull())
groupedFields_.exposedInstanceCount = std::stoi(groupedFieldsNode["ExposedInstanceCount"].asString());
}

View 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/DescribeFrontVulPatchListRequest.h>
using AlibabaCloud::Sas::Model::DescribeFrontVulPatchListRequest;
DescribeFrontVulPatchListRequest::DescribeFrontVulPatchListRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeFrontVulPatchList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFrontVulPatchListRequest::~DescribeFrontVulPatchListRequest()
{}
std::string DescribeFrontVulPatchListRequest::getType()const
{
return type_;
}
void DescribeFrontVulPatchListRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string DescribeFrontVulPatchListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeFrontVulPatchListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeFrontVulPatchListRequest::getOperateType()const
{
return operateType_;
}
void DescribeFrontVulPatchListRequest::setOperateType(const std::string& operateType)
{
operateType_ = operateType;
setParameter("OperateType", operateType);
}
std::string DescribeFrontVulPatchListRequest::getInfo()const
{
return info_;
}
void DescribeFrontVulPatchListRequest::setInfo(const std::string& info)
{
info_ = info;
setParameter("Info", info);
}

View File

@@ -0,0 +1,67 @@
/*
* 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/DescribeFrontVulPatchListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeFrontVulPatchListResult::DescribeFrontVulPatchListResult() :
ServiceResult()
{}
DescribeFrontVulPatchListResult::DescribeFrontVulPatchListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFrontVulPatchListResult::~DescribeFrontVulPatchListResult()
{}
void DescribeFrontVulPatchListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFrontPatchListNode = value["FrontPatchList"]["FrontPatch"];
for (auto valueFrontPatchListFrontPatch : allFrontPatchListNode)
{
FrontPatch frontPatchListObject;
if(!valueFrontPatchListFrontPatch["Uuid"].isNull())
frontPatchListObject.uuid = valueFrontPatchListFrontPatch["Uuid"].asString();
auto allPatchListNode = valueFrontPatchListFrontPatch["PatchList"]["Patch"];
for (auto valueFrontPatchListFrontPatchPatchListPatch : allPatchListNode)
{
FrontPatch::Patch patchListObject;
if(!valueFrontPatchListFrontPatchPatchListPatch["Name"].isNull())
patchListObject.name = valueFrontPatchListFrontPatchPatchListPatch["Name"].asString();
if(!valueFrontPatchListFrontPatchPatchListPatch["AliasName"].isNull())
patchListObject.aliasName = valueFrontPatchListFrontPatchPatchListPatch["AliasName"].asString();
frontPatchListObject.patchList.push_back(patchListObject);
}
frontPatchList_.push_back(frontPatchListObject);
}
}
std::vector<DescribeFrontVulPatchListResult::FrontPatch> DescribeFrontVulPatchListResult::getFrontPatchList()const
{
return frontPatchList_;
}

View File

@@ -62,16 +62,16 @@ void DescribeGraph4InvestigationOnlineResult::parse(const std::string &payload)
vertexObject.positionId = dataNodeVertexListVertex["PositionId"].asString();
if(!dataNodeVertexListVertex["Position"].isNull())
vertexObject.position = dataNodeVertexListVertex["Position"].asString();
auto allNeighborListNode = allVertexListNode["NeighborList"]["Neighbor"];
for (auto allVertexListNodeNeighborListNeighbor : allNeighborListNode)
auto allNeighborListNode = dataNodeVertexListVertex["NeighborList"]["Neighbor"];
for (auto dataNodeVertexListVertexNeighborListNeighbor : allNeighborListNode)
{
Data::Vertex::Neighbor neighborListObject;
if(!allVertexListNodeNeighborListNeighbor["Type"].isNull())
neighborListObject.type = allVertexListNodeNeighborListNeighbor["Type"].asString();
if(!allVertexListNodeNeighborListNeighbor["Count"].isNull())
neighborListObject.count = std::stoi(allVertexListNodeNeighborListNeighbor["Count"].asString());
if(!allVertexListNodeNeighborListNeighbor["HasMore"].isNull())
neighborListObject.hasMore = allVertexListNodeNeighborListNeighbor["HasMore"].asString() == "true";
if(!dataNodeVertexListVertexNeighborListNeighbor["Type"].isNull())
neighborListObject.type = dataNodeVertexListVertexNeighborListNeighbor["Type"].asString();
if(!dataNodeVertexListVertexNeighborListNeighbor["Count"].isNull())
neighborListObject.count = std::stoi(dataNodeVertexListVertexNeighborListNeighbor["Count"].asString());
if(!dataNodeVertexListVertexNeighborListNeighbor["HasMore"].isNull())
neighborListObject.hasMore = dataNodeVertexListVertexNeighborListNeighbor["HasMore"].asString() == "true";
vertexObject.neighborList.push_back(neighborListObject);
}
data_.vertexList.push_back(vertexObject);

View 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/DescribeGroupedContainerInstancesRequest.h>
using AlibabaCloud::Sas::Model::DescribeGroupedContainerInstancesRequest;
DescribeGroupedContainerInstancesRequest::DescribeGroupedContainerInstancesRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeGroupedContainerInstances")
{
setMethod(HttpRequest::Method::Post);
}
DescribeGroupedContainerInstancesRequest::~DescribeGroupedContainerInstancesRequest()
{}
std::string DescribeGroupedContainerInstancesRequest::getCriteria()const
{
return criteria_;
}
void DescribeGroupedContainerInstancesRequest::setCriteria(const std::string& criteria)
{
criteria_ = criteria;
setParameter("Criteria", criteria);
}
std::string DescribeGroupedContainerInstancesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeGroupedContainerInstancesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeGroupedContainerInstancesRequest::getGroupField()const
{
return groupField_;
}
void DescribeGroupedContainerInstancesRequest::setGroupField(const std::string& groupField)
{
groupField_ = groupField;
setParameter("GroupField", groupField);
}
int DescribeGroupedContainerInstancesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGroupedContainerInstancesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeGroupedContainerInstancesRequest::getLogicalExp()const
{
return logicalExp_;
}
void DescribeGroupedContainerInstancesRequest::setLogicalExp(const std::string& logicalExp)
{
logicalExp_ = logicalExp;
setParameter("LogicalExp", logicalExp);
}
std::string DescribeGroupedContainerInstancesRequest::getFieldValue()const
{
return fieldValue_;
}
void DescribeGroupedContainerInstancesRequest::setFieldValue(const std::string& fieldValue)
{
fieldValue_ = fieldValue;
setParameter("FieldValue", fieldValue);
}
int DescribeGroupedContainerInstancesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeGroupedContainerInstancesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}

View File

@@ -0,0 +1,105 @@
/*
* 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/DescribeGroupedContainerInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeGroupedContainerInstancesResult::DescribeGroupedContainerInstancesResult() :
ServiceResult()
{}
DescribeGroupedContainerInstancesResult::DescribeGroupedContainerInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGroupedContainerInstancesResult::~DescribeGroupedContainerInstancesResult()
{}
void DescribeGroupedContainerInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGroupedContainerInstanceListNode = value["GroupedContainerInstanceList"]["GroupedContainerInstance"];
for (auto valueGroupedContainerInstanceListGroupedContainerInstance : allGroupedContainerInstanceListNode)
{
GroupedContainerInstance groupedContainerInstanceListObject;
if(!valueGroupedContainerInstanceListGroupedContainerInstance["InstanceCount"].isNull())
groupedContainerInstanceListObject.instanceCount = std::stoi(valueGroupedContainerInstanceListGroupedContainerInstance["InstanceCount"].asString());
if(!valueGroupedContainerInstanceListGroupedContainerInstance["RiskInstanceCount"].isNull())
groupedContainerInstanceListObject.riskInstanceCount = std::stoi(valueGroupedContainerInstanceListGroupedContainerInstance["RiskInstanceCount"].asString());
if(!valueGroupedContainerInstanceListGroupedContainerInstance["ClusterId"].isNull())
groupedContainerInstanceListObject.clusterId = valueGroupedContainerInstanceListGroupedContainerInstance["ClusterId"].asString();
if(!valueGroupedContainerInstanceListGroupedContainerInstance["RiskStatus"].isNull())
groupedContainerInstanceListObject.riskStatus = valueGroupedContainerInstanceListGroupedContainerInstance["RiskStatus"].asString();
if(!valueGroupedContainerInstanceListGroupedContainerInstance["VulCount"].isNull())
groupedContainerInstanceListObject.vulCount = std::stoi(valueGroupedContainerInstanceListGroupedContainerInstance["VulCount"].asString());
if(!valueGroupedContainerInstanceListGroupedContainerInstance["AlarmCount"].isNull())
groupedContainerInstanceListObject.alarmCount = std::stoi(valueGroupedContainerInstanceListGroupedContainerInstance["AlarmCount"].asString());
if(!valueGroupedContainerInstanceListGroupedContainerInstance["Pod"].isNull())
groupedContainerInstanceListObject.pod = valueGroupedContainerInstanceListGroupedContainerInstance["Pod"].asString();
if(!valueGroupedContainerInstanceListGroupedContainerInstance["PodIp"].isNull())
groupedContainerInstanceListObject.podIp = valueGroupedContainerInstanceListGroupedContainerInstance["PodIp"].asString();
if(!valueGroupedContainerInstanceListGroupedContainerInstance["InstanceId"].isNull())
groupedContainerInstanceListObject.instanceId = valueGroupedContainerInstanceListGroupedContainerInstance["InstanceId"].asString();
if(!valueGroupedContainerInstanceListGroupedContainerInstance["HostIp"].isNull())
groupedContainerInstanceListObject.hostIp = valueGroupedContainerInstanceListGroupedContainerInstance["HostIp"].asString();
if(!valueGroupedContainerInstanceListGroupedContainerInstance["ClusterName"].isNull())
groupedContainerInstanceListObject.clusterName = valueGroupedContainerInstanceListGroupedContainerInstance["ClusterName"].asString();
if(!valueGroupedContainerInstanceListGroupedContainerInstance["CreateTime"].isNull())
groupedContainerInstanceListObject.createTime = std::stol(valueGroupedContainerInstanceListGroupedContainerInstance["CreateTime"].asString());
if(!valueGroupedContainerInstanceListGroupedContainerInstance["AppName"].isNull())
groupedContainerInstanceListObject.appName = valueGroupedContainerInstanceListGroupedContainerInstance["AppName"].asString();
if(!valueGroupedContainerInstanceListGroupedContainerInstance["ClusterType"].isNull())
groupedContainerInstanceListObject.clusterType = valueGroupedContainerInstanceListGroupedContainerInstance["ClusterType"].asString();
if(!valueGroupedContainerInstanceListGroupedContainerInstance["CusterState"].isNull())
groupedContainerInstanceListObject.custerState = valueGroupedContainerInstanceListGroupedContainerInstance["CusterState"].asString();
if(!valueGroupedContainerInstanceListGroupedContainerInstance["RegionId"].isNull())
groupedContainerInstanceListObject.regionId = valueGroupedContainerInstanceListGroupedContainerInstance["RegionId"].asString();
if(!valueGroupedContainerInstanceListGroupedContainerInstance["Namespace"].isNull())
groupedContainerInstanceListObject._namespace = valueGroupedContainerInstanceListGroupedContainerInstance["Namespace"].asString();
if(!valueGroupedContainerInstanceListGroupedContainerInstance["RiskLevel"].isNull())
groupedContainerInstanceListObject.riskLevel = valueGroupedContainerInstanceListGroupedContainerInstance["RiskLevel"].asString();
groupedContainerInstanceList_.push_back(groupedContainerInstanceListObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
std::vector<DescribeGroupedContainerInstancesResult::GroupedContainerInstance> DescribeGroupedContainerInstancesResult::getGroupedContainerInstanceList()const
{
return groupedContainerInstanceList_;
}
DescribeGroupedContainerInstancesResult::PageInfo DescribeGroupedContainerInstancesResult::getPageInfo()const
{
return pageInfo_;
}

View File

@@ -0,0 +1,128 @@
/*
* 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/DescribeGroupedInstancesRequest.h>
using AlibabaCloud::Sas::Model::DescribeGroupedInstancesRequest;
DescribeGroupedInstancesRequest::DescribeGroupedInstancesRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeGroupedInstances")
{
setMethod(HttpRequest::Method::Post);
}
DescribeGroupedInstancesRequest::~DescribeGroupedInstancesRequest()
{}
std::string DescribeGroupedInstancesRequest::getCriteria()const
{
return criteria_;
}
void DescribeGroupedInstancesRequest::setCriteria(const std::string& criteria)
{
criteria_ = criteria;
setParameter("Criteria", criteria);
}
std::string DescribeGroupedInstancesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeGroupedInstancesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeGroupedInstancesRequest::getGroupField()const
{
return groupField_;
}
void DescribeGroupedInstancesRequest::setGroupField(const std::string& groupField)
{
groupField_ = groupField;
setParameter("GroupField", groupField);
}
bool DescribeGroupedInstancesRequest::getNoPage()const
{
return noPage_;
}
void DescribeGroupedInstancesRequest::setNoPage(bool noPage)
{
noPage_ = noPage;
setParameter("NoPage", noPage ? "true" : "false");
}
int DescribeGroupedInstancesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGroupedInstancesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeGroupedInstancesRequest::getLang()const
{
return lang_;
}
void DescribeGroupedInstancesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeGroupedInstancesRequest::getFieldValue()const
{
return fieldValue_;
}
void DescribeGroupedInstancesRequest::setFieldValue(const std::string& fieldValue)
{
fieldValue_ = fieldValue;
setParameter("FieldValue", fieldValue);
}
int DescribeGroupedInstancesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeGroupedInstancesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeGroupedInstancesRequest::getMachineTypes()const
{
return machineTypes_;
}
void DescribeGroupedInstancesRequest::setMachineTypes(const std::string& machineTypes)
{
machineTypes_ = machineTypes;
setParameter("MachineTypes", machineTypes);
}

View File

@@ -0,0 +1,86 @@
/*
* 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/DescribeGroupedInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeGroupedInstancesResult::DescribeGroupedInstancesResult() :
ServiceResult()
{}
DescribeGroupedInstancesResult::DescribeGroupedInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGroupedInstancesResult::~DescribeGroupedInstancesResult()
{}
void DescribeGroupedInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstancesNode = value["Instances"]["Instance"];
for (auto valueInstancesInstance : allInstancesNode)
{
Instance instancesObject;
if(!valueInstancesInstance["UnProtectedInstanceCount"].isNull())
instancesObject.unProtectedInstanceCount = valueInstancesInstance["UnProtectedInstanceCount"].asString();
if(!valueInstancesInstance["FieldAliasName"].isNull())
instancesObject.fieldAliasName = valueInstancesInstance["FieldAliasName"].asString();
if(!valueInstancesInstance["GroupFlag"].isNull())
instancesObject.groupFlag = std::stoi(valueInstancesInstance["GroupFlag"].asString());
if(!valueInstancesInstance["FieldId"].isNull())
instancesObject.fieldId = std::stol(valueInstancesInstance["FieldId"].asString());
if(!valueInstancesInstance["RiskInstanceCount"].isNull())
instancesObject.riskInstanceCount = valueInstancesInstance["RiskInstanceCount"].asString();
if(!valueInstancesInstance["InstanceCount"].isNull())
instancesObject.instanceCount = valueInstancesInstance["InstanceCount"].asString();
if(!valueInstancesInstance["AsapVulInstanceCount"].isNull())
instancesObject.asapVulInstanceCount = std::stol(valueInstancesInstance["AsapVulInstanceCount"].asString());
auto allGroupPath = value["GroupPath"]["groupPath"];
for (auto value : allGroupPath)
instancesObject.groupPath.push_back(value.asString());
instances_.push_back(instancesObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
std::vector<DescribeGroupedInstancesResult::Instance> DescribeGroupedInstancesResult::getInstances()const
{
return instances_;
}
DescribeGroupedInstancesResult::PageInfo DescribeGroupedInstancesResult::getPageInfo()const
{
return pageInfo_;
}

View File

@@ -0,0 +1,196 @@
/*
* 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/DescribeGroupedMaliciousFilesRequest.h>
using AlibabaCloud::Sas::Model::DescribeGroupedMaliciousFilesRequest;
DescribeGroupedMaliciousFilesRequest::DescribeGroupedMaliciousFilesRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeGroupedMaliciousFiles")
{
setMethod(HttpRequest::Method::Post);
}
DescribeGroupedMaliciousFilesRequest::~DescribeGroupedMaliciousFilesRequest()
{}
std::string DescribeGroupedMaliciousFilesRequest::getRepoId()const
{
return repoId_;
}
void DescribeGroupedMaliciousFilesRequest::setRepoId(const std::string& repoId)
{
repoId_ = repoId;
setParameter("RepoId", repoId);
}
std::string DescribeGroupedMaliciousFilesRequest::getFuzzyMaliciousName()const
{
return fuzzyMaliciousName_;
}
void DescribeGroupedMaliciousFilesRequest::setFuzzyMaliciousName(const std::string& fuzzyMaliciousName)
{
fuzzyMaliciousName_ = fuzzyMaliciousName;
setParameter("FuzzyMaliciousName", fuzzyMaliciousName);
}
std::string DescribeGroupedMaliciousFilesRequest::getRepoNamespace()const
{
return repoNamespace_;
}
void DescribeGroupedMaliciousFilesRequest::setRepoNamespace(const std::string& repoNamespace)
{
repoNamespace_ = repoNamespace;
setParameter("RepoNamespace", repoNamespace);
}
std::string DescribeGroupedMaliciousFilesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeGroupedMaliciousFilesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeGroupedMaliciousFilesRequest::getImageDigest()const
{
return imageDigest_;
}
void DescribeGroupedMaliciousFilesRequest::setImageDigest(const std::string& imageDigest)
{
imageDigest_ = imageDigest;
setParameter("ImageDigest", imageDigest);
}
std::string DescribeGroupedMaliciousFilesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeGroupedMaliciousFilesRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", pageSize);
}
std::string DescribeGroupedMaliciousFilesRequest::getLang()const
{
return lang_;
}
void DescribeGroupedMaliciousFilesRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeGroupedMaliciousFilesRequest::getImageTag()const
{
return imageTag_;
}
void DescribeGroupedMaliciousFilesRequest::setImageTag(const std::string& imageTag)
{
imageTag_ = imageTag;
setParameter("ImageTag", imageTag);
}
int DescribeGroupedMaliciousFilesRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeGroupedMaliciousFilesRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeGroupedMaliciousFilesRequest::getRepoName()const
{
return repoName_;
}
void DescribeGroupedMaliciousFilesRequest::setRepoName(const std::string& repoName)
{
repoName_ = repoName;
setParameter("RepoName", repoName);
}
std::string DescribeGroupedMaliciousFilesRequest::getRepoInstanceId()const
{
return repoInstanceId_;
}
void DescribeGroupedMaliciousFilesRequest::setRepoInstanceId(const std::string& repoInstanceId)
{
repoInstanceId_ = repoInstanceId;
setParameter("RepoInstanceId", repoInstanceId);
}
std::string DescribeGroupedMaliciousFilesRequest::getImageLayer()const
{
return imageLayer_;
}
void DescribeGroupedMaliciousFilesRequest::setImageLayer(const std::string& imageLayer)
{
imageLayer_ = imageLayer;
setParameter("ImageLayer", imageLayer);
}
std::string DescribeGroupedMaliciousFilesRequest::getLevels()const
{
return levels_;
}
void DescribeGroupedMaliciousFilesRequest::setLevels(const std::string& levels)
{
levels_ = levels;
setParameter("Levels", levels);
}
std::vector<std::string> DescribeGroupedMaliciousFilesRequest::getUuids()const
{
return uuids_;
}
void DescribeGroupedMaliciousFilesRequest::setUuids(const std::vector<std::string>& uuids)
{
uuids_ = uuids;
for(int dep1 = 0; dep1!= uuids.size(); dep1++) {
setParameter("Uuids."+ std::to_string(dep1), uuids.at(dep1));
}
}
std::string DescribeGroupedMaliciousFilesRequest::getRepoRegionId()const
{
return repoRegionId_;
}
void DescribeGroupedMaliciousFilesRequest::setRepoRegionId(const std::string& repoRegionId)
{
repoRegionId_ = repoRegionId;
setParameter("RepoRegionId", repoRegionId);
}

View File

@@ -0,0 +1,83 @@
/*
* 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/DescribeGroupedMaliciousFilesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeGroupedMaliciousFilesResult::DescribeGroupedMaliciousFilesResult() :
ServiceResult()
{}
DescribeGroupedMaliciousFilesResult::DescribeGroupedMaliciousFilesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeGroupedMaliciousFilesResult::~DescribeGroupedMaliciousFilesResult()
{}
void DescribeGroupedMaliciousFilesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGroupedMaliciousFileResponseNode = value["GroupedMaliciousFileResponse"]["GroupedMaliciousFile"];
for (auto valueGroupedMaliciousFileResponseGroupedMaliciousFile : allGroupedMaliciousFileResponseNode)
{
GroupedMaliciousFile groupedMaliciousFileResponseObject;
if(!valueGroupedMaliciousFileResponseGroupedMaliciousFile["MaliciousName"].isNull())
groupedMaliciousFileResponseObject.maliciousName = valueGroupedMaliciousFileResponseGroupedMaliciousFile["MaliciousName"].asString();
if(!valueGroupedMaliciousFileResponseGroupedMaliciousFile["MaliciousMd5"].isNull())
groupedMaliciousFileResponseObject.maliciousMd5 = valueGroupedMaliciousFileResponseGroupedMaliciousFile["MaliciousMd5"].asString();
if(!valueGroupedMaliciousFileResponseGroupedMaliciousFile["FirstScanTimestamp"].isNull())
groupedMaliciousFileResponseObject.firstScanTimestamp = std::stol(valueGroupedMaliciousFileResponseGroupedMaliciousFile["FirstScanTimestamp"].asString());
if(!valueGroupedMaliciousFileResponseGroupedMaliciousFile["LatestScanTimestamp"].isNull())
groupedMaliciousFileResponseObject.latestScanTimestamp = std::stol(valueGroupedMaliciousFileResponseGroupedMaliciousFile["LatestScanTimestamp"].asString());
if(!valueGroupedMaliciousFileResponseGroupedMaliciousFile["Status"].isNull())
groupedMaliciousFileResponseObject.status = std::stoi(valueGroupedMaliciousFileResponseGroupedMaliciousFile["Status"].asString());
if(!valueGroupedMaliciousFileResponseGroupedMaliciousFile["Level"].isNull())
groupedMaliciousFileResponseObject.level = valueGroupedMaliciousFileResponseGroupedMaliciousFile["Level"].asString();
if(!valueGroupedMaliciousFileResponseGroupedMaliciousFile["ImageCount"].isNull())
groupedMaliciousFileResponseObject.imageCount = std::stol(valueGroupedMaliciousFileResponseGroupedMaliciousFile["ImageCount"].asString());
groupedMaliciousFileResponse_.push_back(groupedMaliciousFileResponseObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
std::vector<DescribeGroupedMaliciousFilesResult::GroupedMaliciousFile> DescribeGroupedMaliciousFilesResult::getGroupedMaliciousFileResponse()const
{
return groupedMaliciousFileResponse_;
}
DescribeGroupedMaliciousFilesResult::PageInfo DescribeGroupedMaliciousFilesResult::getPageInfo()const
{
return pageInfo_;
}

View File

@@ -38,6 +38,28 @@ void DescribeGroupedVulRequest::setStatusList(const std::string& statusList)
setParameter("StatusList", statusList);
}
std::string DescribeGroupedVulRequest::getTargetType()const
{
return targetType_;
}
void DescribeGroupedVulRequest::setTargetType(const std::string& targetType)
{
targetType_ = targetType;
setParameter("TargetType", targetType);
}
int DescribeGroupedVulRequest::getMinScore()const
{
return minScore_;
}
void DescribeGroupedVulRequest::setMinScore(int minScore)
{
minScore_ = minScore;
setParameter("MinScore", std::to_string(minScore));
}
std::string DescribeGroupedVulRequest::getType()const
{
return type_;
@@ -49,6 +71,17 @@ void DescribeGroupedVulRequest::setType(const std::string& type)
setParameter("Type", type);
}
std::string DescribeGroupedVulRequest::getContainerFieldName()const
{
return containerFieldName_;
}
void DescribeGroupedVulRequest::setContainerFieldName(const std::string& containerFieldName)
{
containerFieldName_ = containerFieldName;
setParameter("ContainerFieldName", containerFieldName);
}
std::string DescribeGroupedVulRequest::getSourceIp()const
{
return sourceIp_;
@@ -60,6 +93,17 @@ void DescribeGroupedVulRequest::setSourceIp(const std::string& sourceIp)
setParameter("SourceIp", sourceIp);
}
std::string DescribeGroupedVulRequest::getContainerFieldValue()const
{
return containerFieldValue_;
}
void DescribeGroupedVulRequest::setContainerFieldValue(const std::string& containerFieldValue)
{
containerFieldValue_ = containerFieldValue;
setParameter("ContainerFieldValue", containerFieldValue);
}
int DescribeGroupedVulRequest::getPageSize()const
{
return pageSize_;
@@ -115,6 +159,17 @@ void DescribeGroupedVulRequest::setCurrentPage(int currentPage)
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeGroupedVulRequest::getClusterId()const
{
return clusterId_;
}
void DescribeGroupedVulRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
std::string DescribeGroupedVulRequest::getAliasName()const
{
return aliasName_;

View File

@@ -61,6 +61,8 @@ void DescribeGroupedVulResult::parse(const std::string &payload)
groupedVulItemsObject.handledCount = std::stoi(valueGroupedVulItemsGroupedVulItem["HandledCount"].asString());
if(!valueGroupedVulItemsGroupedVulItem["Tags"].isNull())
groupedVulItemsObject.tags = valueGroupedVulItemsGroupedVulItem["Tags"].asString();
if(!valueGroupedVulItemsGroupedVulItem["TotalFixCount"].isNull())
groupedVulItemsObject.totalFixCount = std::stol(valueGroupedVulItemsGroupedVulItem["TotalFixCount"].asString());
groupedVulItems_.push_back(groupedVulItemsObject);
}
if(!value["PageSize"].isNull())

View File

@@ -0,0 +1,40 @@
/*
* 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/DescribeHoneyPotAuthRequest.h>
using AlibabaCloud::Sas::Model::DescribeHoneyPotAuthRequest;
DescribeHoneyPotAuthRequest::DescribeHoneyPotAuthRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeHoneyPotAuth")
{
setMethod(HttpRequest::Method::Post);
}
DescribeHoneyPotAuthRequest::~DescribeHoneyPotAuthRequest()
{}
std::string DescribeHoneyPotAuthRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeHoneyPotAuthRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/DescribeHoneyPotAuthResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeHoneyPotAuthResult::DescribeHoneyPotAuthResult() :
ServiceResult()
{}
DescribeHoneyPotAuthResult::DescribeHoneyPotAuthResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeHoneyPotAuthResult::~DescribeHoneyPotAuthResult()
{}
void DescribeHoneyPotAuthResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["HoneyPotCount"].isNull())
honeyPotCount_ = std::stoi(value["HoneyPotCount"].asString());
if(!value["HoneyPotAuthCount"].isNull())
honeyPotAuthCount_ = std::stol(value["HoneyPotAuthCount"].asString());
}
long DescribeHoneyPotAuthResult::getHoneyPotAuthCount()const
{
return honeyPotAuthCount_;
}
int DescribeHoneyPotAuthResult::getHoneyPotCount()const
{
return honeyPotCount_;
}

View 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/DescribeHoneyPotSuspStatisticsRequest.h>
using AlibabaCloud::Sas::Model::DescribeHoneyPotSuspStatisticsRequest;
DescribeHoneyPotSuspStatisticsRequest::DescribeHoneyPotSuspStatisticsRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeHoneyPotSuspStatistics")
{
setMethod(HttpRequest::Method::Post);
}
DescribeHoneyPotSuspStatisticsRequest::~DescribeHoneyPotSuspStatisticsRequest()
{}
int DescribeHoneyPotSuspStatisticsRequest::getStatisticsDays()const
{
return statisticsDays_;
}
void DescribeHoneyPotSuspStatisticsRequest::setStatisticsDays(int statisticsDays)
{
statisticsDays_ = statisticsDays;
setParameter("StatisticsDays", std::to_string(statisticsDays));
}
std::string DescribeHoneyPotSuspStatisticsRequest::getStatisticsKeyType()const
{
return statisticsKeyType_;
}
void DescribeHoneyPotSuspStatisticsRequest::setStatisticsKeyType(const std::string& statisticsKeyType)
{
statisticsKeyType_ = statisticsKeyType;
setParameter("StatisticsKeyType", statisticsKeyType);
}
std::string DescribeHoneyPotSuspStatisticsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeHoneyPotSuspStatisticsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeHoneyPotSuspStatisticsRequest::getFrom()const
{
return from_;
}
void DescribeHoneyPotSuspStatisticsRequest::setFrom(const std::string& from)
{
from_ = from;
setParameter("From", from);
}

View File

@@ -0,0 +1,67 @@
/*
* 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/DescribeHoneyPotSuspStatisticsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeHoneyPotSuspStatisticsResult::DescribeHoneyPotSuspStatisticsResult() :
ServiceResult()
{}
DescribeHoneyPotSuspStatisticsResult::DescribeHoneyPotSuspStatisticsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeHoneyPotSuspStatisticsResult::~DescribeHoneyPotSuspStatisticsResult()
{}
void DescribeHoneyPotSuspStatisticsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSuspHoneyPotStatisticsResponseNode = value["SuspHoneyPotStatisticsResponse"]["SuspHoneyPotStatisticsResponseItem"];
for (auto valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem : allSuspHoneyPotStatisticsResponseNode)
{
SuspHoneyPotStatisticsResponseItem suspHoneyPotStatisticsResponseObject;
if(!valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem["Count"].isNull())
suspHoneyPotStatisticsResponseObject.count = std::stoi(valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem["Count"].asString());
if(!valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem["Type"].isNull())
suspHoneyPotStatisticsResponseObject.type = valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem["Type"].asString();
if(!valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem["InstanceId"].isNull())
suspHoneyPotStatisticsResponseObject.instanceId = valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem["InstanceId"].asString();
if(!valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem["InstanceName"].isNull())
suspHoneyPotStatisticsResponseObject.instanceName = valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem["InstanceName"].asString();
if(!valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem["VpcId"].isNull())
suspHoneyPotStatisticsResponseObject.vpcId = valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem["VpcId"].asString();
if(!valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem["VpcName"].isNull())
suspHoneyPotStatisticsResponseObject.vpcName = valueSuspHoneyPotStatisticsResponseSuspHoneyPotStatisticsResponseItem["VpcName"].asString();
suspHoneyPotStatisticsResponse_.push_back(suspHoneyPotStatisticsResponseObject);
}
}
std::vector<DescribeHoneyPotSuspStatisticsResult::SuspHoneyPotStatisticsResponseItem> DescribeHoneyPotSuspStatisticsResult::getSuspHoneyPotStatisticsResponse()const
{
return suspHoneyPotStatisticsResponse_;
}

View File

@@ -0,0 +1,370 @@
/*
* 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/DescribeImageGroupedVulListRequest.h>
using AlibabaCloud::Sas::Model::DescribeImageGroupedVulListRequest;
DescribeImageGroupedVulListRequest::DescribeImageGroupedVulListRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeImageGroupedVulList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeImageGroupedVulListRequest::~DescribeImageGroupedVulListRequest()
{}
std::string DescribeImageGroupedVulListRequest::getType()const
{
return type_;
}
void DescribeImageGroupedVulListRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
long DescribeImageGroupedVulListRequest::getLastTsEnd()const
{
return lastTsEnd_;
}
void DescribeImageGroupedVulListRequest::setLastTsEnd(long lastTsEnd)
{
lastTsEnd_ = lastTsEnd;
setParameter("LastTsEnd", std::to_string(lastTsEnd));
}
long DescribeImageGroupedVulListRequest::getCreateTsStart()const
{
return createTsStart_;
}
void DescribeImageGroupedVulListRequest::setCreateTsStart(long createTsStart)
{
createTsStart_ = createTsStart;
setParameter("CreateTsStart", std::to_string(createTsStart));
}
std::string DescribeImageGroupedVulListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeImageGroupedVulListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeImageGroupedVulListRequest::getImageTag()const
{
return imageTag_;
}
void DescribeImageGroupedVulListRequest::setImageTag(const std::string& imageTag)
{
imageTag_ = imageTag;
setParameter("ImageTag", imageTag);
}
std::string DescribeImageGroupedVulListRequest::getLevel()const
{
return level_;
}
void DescribeImageGroupedVulListRequest::setLevel(const std::string& level)
{
level_ = level;
setParameter("Level", level);
}
std::string DescribeImageGroupedVulListRequest::getGroupId()const
{
return groupId_;
}
void DescribeImageGroupedVulListRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string DescribeImageGroupedVulListRequest::getOrderBy()const
{
return orderBy_;
}
void DescribeImageGroupedVulListRequest::setOrderBy(const std::string& orderBy)
{
orderBy_ = orderBy;
setParameter("OrderBy", orderBy);
}
std::string DescribeImageGroupedVulListRequest::getAliasName()const
{
return aliasName_;
}
void DescribeImageGroupedVulListRequest::setAliasName(const std::string& aliasName)
{
aliasName_ = aliasName;
setParameter("AliasName", aliasName);
}
long DescribeImageGroupedVulListRequest::getPatchId()const
{
return patchId_;
}
void DescribeImageGroupedVulListRequest::setPatchId(long patchId)
{
patchId_ = patchId;
setParameter("PatchId", std::to_string(patchId));
}
std::string DescribeImageGroupedVulListRequest::getName()const
{
return name_;
}
void DescribeImageGroupedVulListRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
long DescribeImageGroupedVulListRequest::getCreateTsEnd()const
{
return createTsEnd_;
}
void DescribeImageGroupedVulListRequest::setCreateTsEnd(long createTsEnd)
{
createTsEnd_ = createTsEnd;
setParameter("CreateTsEnd", std::to_string(createTsEnd));
}
std::string DescribeImageGroupedVulListRequest::getNecessity()const
{
return necessity_;
}
void DescribeImageGroupedVulListRequest::setNecessity(const std::string& necessity)
{
necessity_ = necessity;
setParameter("Necessity", necessity);
}
std::string DescribeImageGroupedVulListRequest::getUuids()const
{
return uuids_;
}
void DescribeImageGroupedVulListRequest::setUuids(const std::string& uuids)
{
uuids_ = uuids;
setParameter("Uuids", uuids);
}
std::string DescribeImageGroupedVulListRequest::getRepoId()const
{
return repoId_;
}
void DescribeImageGroupedVulListRequest::setRepoId(const std::string& repoId)
{
repoId_ = repoId;
setParameter("RepoId", repoId);
}
std::string DescribeImageGroupedVulListRequest::getStatusList()const
{
return statusList_;
}
void DescribeImageGroupedVulListRequest::setStatusList(const std::string& statusList)
{
statusList_ = statusList;
setParameter("StatusList", statusList);
}
std::string DescribeImageGroupedVulListRequest::getCveId()const
{
return cveId_;
}
void DescribeImageGroupedVulListRequest::setCveId(const std::string& cveId)
{
cveId_ = cveId;
setParameter("CveId", cveId);
}
std::string DescribeImageGroupedVulListRequest::getRemark()const
{
return remark_;
}
void DescribeImageGroupedVulListRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setParameter("Remark", remark);
}
std::string DescribeImageGroupedVulListRequest::getRepoNamespace()const
{
return repoNamespace_;
}
void DescribeImageGroupedVulListRequest::setRepoNamespace(const std::string& repoNamespace)
{
repoNamespace_ = repoNamespace;
setParameter("RepoNamespace", repoNamespace);
}
std::string DescribeImageGroupedVulListRequest::getImageDigest()const
{
return imageDigest_;
}
void DescribeImageGroupedVulListRequest::setImageDigest(const std::string& imageDigest)
{
imageDigest_ = imageDigest;
setParameter("ImageDigest", imageDigest);
}
int DescribeImageGroupedVulListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeImageGroupedVulListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeImageGroupedVulListRequest::getLang()const
{
return lang_;
}
void DescribeImageGroupedVulListRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
long DescribeImageGroupedVulListRequest::getLastTsStart()const
{
return lastTsStart_;
}
void DescribeImageGroupedVulListRequest::setLastTsStart(long lastTsStart)
{
lastTsStart_ = lastTsStart;
setParameter("LastTsStart", std::to_string(lastTsStart));
}
std::string DescribeImageGroupedVulListRequest::getDirection()const
{
return direction_;
}
void DescribeImageGroupedVulListRequest::setDirection(const std::string& direction)
{
direction_ = direction;
setParameter("Direction", direction);
}
std::string DescribeImageGroupedVulListRequest::getDealed()const
{
return dealed_;
}
void DescribeImageGroupedVulListRequest::setDealed(const std::string& dealed)
{
dealed_ = dealed;
setParameter("Dealed", dealed);
}
int DescribeImageGroupedVulListRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeImageGroupedVulListRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeImageGroupedVulListRequest::getSearchTags()const
{
return searchTags_;
}
void DescribeImageGroupedVulListRequest::setSearchTags(const std::string& searchTags)
{
searchTags_ = searchTags;
setParameter("SearchTags", searchTags);
}
std::string DescribeImageGroupedVulListRequest::getRepoName()const
{
return repoName_;
}
void DescribeImageGroupedVulListRequest::setRepoName(const std::string& repoName)
{
repoName_ = repoName;
setParameter("RepoName", repoName);
}
std::string DescribeImageGroupedVulListRequest::getRepoInstanceId()const
{
return repoInstanceId_;
}
void DescribeImageGroupedVulListRequest::setRepoInstanceId(const std::string& repoInstanceId)
{
repoInstanceId_ = repoInstanceId;
setParameter("RepoInstanceId", repoInstanceId);
}
std::string DescribeImageGroupedVulListRequest::getImageLayer()const
{
return imageLayer_;
}
void DescribeImageGroupedVulListRequest::setImageLayer(const std::string& imageLayer)
{
imageLayer_ = imageLayer;
setParameter("ImageLayer", imageLayer);
}
std::string DescribeImageGroupedVulListRequest::getRepoRegionId()const
{
return repoRegionId_;
}
void DescribeImageGroupedVulListRequest::setRepoRegionId(const std::string& repoRegionId)
{
repoRegionId_ = repoRegionId;
setParameter("RepoRegionId", repoRegionId);
}

View File

@@ -0,0 +1,96 @@
/*
* 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/DescribeImageGroupedVulListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeImageGroupedVulListResult::DescribeImageGroupedVulListResult() :
ServiceResult()
{}
DescribeImageGroupedVulListResult::DescribeImageGroupedVulListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeImageGroupedVulListResult::~DescribeImageGroupedVulListResult()
{}
void DescribeImageGroupedVulListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGroupedVulItemsNode = value["GroupedVulItems"]["GroupedVulItem"];
for (auto valueGroupedVulItemsGroupedVulItem : allGroupedVulItemsNode)
{
GroupedVulItem groupedVulItemsObject;
if(!valueGroupedVulItemsGroupedVulItem["Name"].isNull())
groupedVulItemsObject.name = valueGroupedVulItemsGroupedVulItem["Name"].asString();
if(!valueGroupedVulItemsGroupedVulItem["AliasName"].isNull())
groupedVulItemsObject.aliasName = valueGroupedVulItemsGroupedVulItem["AliasName"].asString();
if(!valueGroupedVulItemsGroupedVulItem["Type"].isNull())
groupedVulItemsObject.type = valueGroupedVulItemsGroupedVulItem["Type"].asString();
if(!valueGroupedVulItemsGroupedVulItem["Status"].isNull())
groupedVulItemsObject.status = std::stoi(valueGroupedVulItemsGroupedVulItem["Status"].asString());
if(!valueGroupedVulItemsGroupedVulItem["LastScanTime"].isNull())
groupedVulItemsObject.lastScanTime = std::stol(valueGroupedVulItemsGroupedVulItem["LastScanTime"].asString());
if(!valueGroupedVulItemsGroupedVulItem["GmtLast"].isNull())
groupedVulItemsObject.gmtLast = std::stol(valueGroupedVulItemsGroupedVulItem["GmtLast"].asString());
if(!valueGroupedVulItemsGroupedVulItem["AsapCount"].isNull())
groupedVulItemsObject.asapCount = std::stoi(valueGroupedVulItemsGroupedVulItem["AsapCount"].asString());
if(!valueGroupedVulItemsGroupedVulItem["LaterCount"].isNull())
groupedVulItemsObject.laterCount = std::stoi(valueGroupedVulItemsGroupedVulItem["LaterCount"].asString());
if(!valueGroupedVulItemsGroupedVulItem["NntfCount"].isNull())
groupedVulItemsObject.nntfCount = std::stoi(valueGroupedVulItemsGroupedVulItem["NntfCount"].asString());
if(!valueGroupedVulItemsGroupedVulItem["Tags"].isNull())
groupedVulItemsObject.tags = valueGroupedVulItemsGroupedVulItem["Tags"].asString();
groupedVulItems_.push_back(groupedVulItemsObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeImageGroupedVulListResult::getTotalCount()const
{
return totalCount_;
}
int DescribeImageGroupedVulListResult::getPageSize()const
{
return pageSize_;
}
int DescribeImageGroupedVulListResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeImageGroupedVulListResult::GroupedVulItem> DescribeImageGroupedVulListResult::getGroupedVulItems()const
{
return groupedVulItems_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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/DescribeImageStatisticsRequest.h>
using AlibabaCloud::Sas::Model::DescribeImageStatisticsRequest;
DescribeImageStatisticsRequest::DescribeImageStatisticsRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeImageStatistics")
{
setMethod(HttpRequest::Method::Post);
}
DescribeImageStatisticsRequest::~DescribeImageStatisticsRequest()
{}
std::string DescribeImageStatisticsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeImageStatisticsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/DescribeImageStatisticsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeImageStatisticsResult::DescribeImageStatisticsResult() :
ServiceResult()
{}
DescribeImageStatisticsResult::DescribeImageStatisticsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeImageStatisticsResult::~DescribeImageStatisticsResult()
{}
void DescribeImageStatisticsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["InstanceCount"].isNull())
instanceCount_ = std::stoi(value["InstanceCount"].asString());
if(!value["RiskInstanceCount"].isNull())
riskInstanceCount_ = std::stoi(value["RiskInstanceCount"].asString());
}
int DescribeImageStatisticsResult::getInstanceCount()const
{
return instanceCount_;
}
int DescribeImageStatisticsResult::getRiskInstanceCount()const
{
return riskInstanceCount_;
}

View File

@@ -0,0 +1,403 @@
/*
* 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/DescribeImageVulListRequest.h>
using AlibabaCloud::Sas::Model::DescribeImageVulListRequest;
DescribeImageVulListRequest::DescribeImageVulListRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeImageVulList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeImageVulListRequest::~DescribeImageVulListRequest()
{}
std::string DescribeImageVulListRequest::getType()const
{
return type_;
}
void DescribeImageVulListRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
long DescribeImageVulListRequest::getCreateTsStart()const
{
return createTsStart_;
}
void DescribeImageVulListRequest::setCreateTsStart(long createTsStart)
{
createTsStart_ = createTsStart;
setParameter("CreateTsStart", std::to_string(createTsStart));
}
std::string DescribeImageVulListRequest::getContainerFieldName()const
{
return containerFieldName_;
}
void DescribeImageVulListRequest::setContainerFieldName(const std::string& containerFieldName)
{
containerFieldName_ = containerFieldName;
setParameter("ContainerFieldName", containerFieldName);
}
std::string DescribeImageVulListRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeImageVulListRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeImageVulListRequest::getTag()const
{
return tag_;
}
void DescribeImageVulListRequest::setTag(const std::string& tag)
{
tag_ = tag;
setParameter("Tag", tag);
}
long DescribeImageVulListRequest::getModifyTsEnd()const
{
return modifyTsEnd_;
}
void DescribeImageVulListRequest::setModifyTsEnd(long modifyTsEnd)
{
modifyTsEnd_ = modifyTsEnd;
setParameter("ModifyTsEnd", std::to_string(modifyTsEnd));
}
std::string DescribeImageVulListRequest::getLevel()const
{
return level_;
}
void DescribeImageVulListRequest::setLevel(const std::string& level)
{
level_ = level;
setParameter("Level", level);
}
std::string DescribeImageVulListRequest::getResource()const
{
return resource_;
}
void DescribeImageVulListRequest::setResource(const std::string& resource)
{
resource_ = resource;
setParameter("Resource", resource);
}
std::string DescribeImageVulListRequest::getGroupId()const
{
return groupId_;
}
void DescribeImageVulListRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string DescribeImageVulListRequest::getAliasName()const
{
return aliasName_;
}
void DescribeImageVulListRequest::setAliasName(const std::string& aliasName)
{
aliasName_ = aliasName;
setParameter("AliasName", aliasName);
}
std::string DescribeImageVulListRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeImageVulListRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeImageVulListRequest::getName()const
{
return name_;
}
void DescribeImageVulListRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string DescribeImageVulListRequest::getIds()const
{
return ids_;
}
void DescribeImageVulListRequest::setIds(const std::string& ids)
{
ids_ = ids;
setParameter("Ids", ids);
}
long DescribeImageVulListRequest::getCreateTsEnd()const
{
return createTsEnd_;
}
void DescribeImageVulListRequest::setCreateTsEnd(long createTsEnd)
{
createTsEnd_ = createTsEnd;
setParameter("CreateTsEnd", std::to_string(createTsEnd));
}
std::string DescribeImageVulListRequest::getNecessity()const
{
return necessity_;
}
void DescribeImageVulListRequest::setNecessity(const std::string& necessity)
{
necessity_ = necessity;
setParameter("Necessity", necessity);
}
std::string DescribeImageVulListRequest::getUuids()const
{
return uuids_;
}
void DescribeImageVulListRequest::setUuids(const std::string& uuids)
{
uuids_ = uuids;
setParameter("Uuids", uuids);
}
std::string DescribeImageVulListRequest::getRepoId()const
{
return repoId_;
}
void DescribeImageVulListRequest::setRepoId(const std::string& repoId)
{
repoId_ = repoId;
setParameter("RepoId", repoId);
}
std::string DescribeImageVulListRequest::getStatusList()const
{
return statusList_;
}
void DescribeImageVulListRequest::setStatusList(const std::string& statusList)
{
statusList_ = statusList;
setParameter("StatusList", statusList);
}
std::string DescribeImageVulListRequest::getTargetType()const
{
return targetType_;
}
void DescribeImageVulListRequest::setTargetType(const std::string& targetType)
{
targetType_ = targetType;
setParameter("TargetType", targetType);
}
std::string DescribeImageVulListRequest::getCveId()const
{
return cveId_;
}
void DescribeImageVulListRequest::setCveId(const std::string& cveId)
{
cveId_ = cveId;
setParameter("CveId", cveId);
}
std::string DescribeImageVulListRequest::getRemark()const
{
return remark_;
}
void DescribeImageVulListRequest::setRemark(const std::string& remark)
{
remark_ = remark;
setParameter("Remark", remark);
}
std::string DescribeImageVulListRequest::getRepoNamespace()const
{
return repoNamespace_;
}
void DescribeImageVulListRequest::setRepoNamespace(const std::string& repoNamespace)
{
repoNamespace_ = repoNamespace;
setParameter("RepoNamespace", repoNamespace);
}
std::string DescribeImageVulListRequest::getRegionId()const
{
return regionId_;
}
void DescribeImageVulListRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string DescribeImageVulListRequest::getContainerFieldValue()const
{
return containerFieldValue_;
}
void DescribeImageVulListRequest::setContainerFieldValue(const std::string& containerFieldValue)
{
containerFieldValue_ = containerFieldValue;
setParameter("ContainerFieldValue", containerFieldValue);
}
int DescribeImageVulListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeImageVulListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeImageVulListRequest::getDigest()const
{
return digest_;
}
void DescribeImageVulListRequest::setDigest(const std::string& digest)
{
digest_ = digest;
setParameter("Digest", digest);
}
long DescribeImageVulListRequest::getModifyTsStart()const
{
return modifyTsStart_;
}
void DescribeImageVulListRequest::setModifyTsStart(long modifyTsStart)
{
modifyTsStart_ = modifyTsStart;
setParameter("ModifyTsStart", std::to_string(modifyTsStart));
}
std::string DescribeImageVulListRequest::getLang()const
{
return lang_;
}
void DescribeImageVulListRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeImageVulListRequest::getDealed()const
{
return dealed_;
}
void DescribeImageVulListRequest::setDealed(const std::string& dealed)
{
dealed_ = dealed;
setParameter("Dealed", dealed);
}
int DescribeImageVulListRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeImageVulListRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeImageVulListRequest::getBatchName()const
{
return batchName_;
}
void DescribeImageVulListRequest::setBatchName(const std::string& batchName)
{
batchName_ = batchName;
setParameter("BatchName", batchName);
}
std::string DescribeImageVulListRequest::getRepoName()const
{
return repoName_;
}
void DescribeImageVulListRequest::setRepoName(const std::string& repoName)
{
repoName_ = repoName;
setParameter("RepoName", repoName);
}
std::string DescribeImageVulListRequest::getRepoInstanceId()const
{
return repoInstanceId_;
}
void DescribeImageVulListRequest::setRepoInstanceId(const std::string& repoInstanceId)
{
repoInstanceId_ = repoInstanceId;
setParameter("RepoInstanceId", repoInstanceId);
}
std::string DescribeImageVulListRequest::getRepoRegionId()const
{
return repoRegionId_;
}
void DescribeImageVulListRequest::setRepoRegionId(const std::string& repoRegionId)
{
repoRegionId_ = repoRegionId;
setParameter("RepoRegionId", repoRegionId);
}

View File

@@ -0,0 +1,138 @@
/*
* 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/DescribeImageVulListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeImageVulListResult::DescribeImageVulListResult() :
ServiceResult()
{}
DescribeImageVulListResult::DescribeImageVulListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeImageVulListResult::~DescribeImageVulListResult()
{}
void DescribeImageVulListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVulRecordsNode = value["VulRecords"]["VulRecord"];
for (auto valueVulRecordsVulRecord : allVulRecordsNode)
{
VulRecord vulRecordsObject;
if(!valueVulRecordsVulRecord["PrimaryId"].isNull())
vulRecordsObject.primaryId = std::stol(valueVulRecordsVulRecord["PrimaryId"].asString());
if(!valueVulRecordsVulRecord["Uuid"].isNull())
vulRecordsObject.uuid = valueVulRecordsVulRecord["Uuid"].asString();
if(!valueVulRecordsVulRecord["Name"].isNull())
vulRecordsObject.name = valueVulRecordsVulRecord["Name"].asString();
if(!valueVulRecordsVulRecord["Tag"].isNull())
vulRecordsObject.tag = valueVulRecordsVulRecord["Tag"].asString();
if(!valueVulRecordsVulRecord["AliasName"].isNull())
vulRecordsObject.aliasName = valueVulRecordsVulRecord["AliasName"].asString();
if(!valueVulRecordsVulRecord["Type"].isNull())
vulRecordsObject.type = valueVulRecordsVulRecord["Type"].asString();
if(!valueVulRecordsVulRecord["Level"].isNull())
vulRecordsObject.level = valueVulRecordsVulRecord["Level"].asString();
if(!valueVulRecordsVulRecord["FirstTs"].isNull())
vulRecordsObject.firstTs = std::stol(valueVulRecordsVulRecord["FirstTs"].asString());
if(!valueVulRecordsVulRecord["LastTs"].isNull())
vulRecordsObject.lastTs = std::stol(valueVulRecordsVulRecord["LastTs"].asString());
if(!valueVulRecordsVulRecord["Status"].isNull())
vulRecordsObject.status = std::stoi(valueVulRecordsVulRecord["Status"].asString());
if(!valueVulRecordsVulRecord["Progress"].isNull())
vulRecordsObject.progress = std::stoi(valueVulRecordsVulRecord["Progress"].asString());
if(!valueVulRecordsVulRecord["Necessity"].isNull())
vulRecordsObject.necessity = valueVulRecordsVulRecord["Necessity"].asString();
if(!valueVulRecordsVulRecord["Related"].isNull())
vulRecordsObject.related = valueVulRecordsVulRecord["Related"].asString();
if(!valueVulRecordsVulRecord["ModifyTs"].isNull())
vulRecordsObject.modifyTs = std::stol(valueVulRecordsVulRecord["ModifyTs"].asString());
if(!valueVulRecordsVulRecord["ImageDigest"].isNull())
vulRecordsObject.imageDigest = valueVulRecordsVulRecord["ImageDigest"].asString();
if(!valueVulRecordsVulRecord["CanUpdate"].isNull())
vulRecordsObject.canUpdate = valueVulRecordsVulRecord["CanUpdate"].asString() == "true";
auto extendContentJsonNode = value["ExtendContentJson"];
if(!extendContentJsonNode["Os"].isNull())
vulRecordsObject.extendContentJson.os = extendContentJsonNode["Os"].asString();
if(!extendContentJsonNode["OsRelease"].isNull())
vulRecordsObject.extendContentJson.osRelease = extendContentJsonNode["OsRelease"].asString();
auto allRpmEntityListNode = extendContentJsonNode["RpmEntityList"]["RpmEntity"];
for (auto extendContentJsonNodeRpmEntityListRpmEntity : allRpmEntityListNode)
{
VulRecord::ExtendContentJson::RpmEntity rpmEntityObject;
if(!extendContentJsonNodeRpmEntityListRpmEntity["FullVersion"].isNull())
rpmEntityObject.fullVersion = extendContentJsonNodeRpmEntityListRpmEntity["FullVersion"].asString();
if(!extendContentJsonNodeRpmEntityListRpmEntity["MatchDetail"].isNull())
rpmEntityObject.matchDetail = extendContentJsonNodeRpmEntityListRpmEntity["MatchDetail"].asString();
if(!extendContentJsonNodeRpmEntityListRpmEntity["Name"].isNull())
rpmEntityObject.name = extendContentJsonNodeRpmEntityListRpmEntity["Name"].asString();
if(!extendContentJsonNodeRpmEntityListRpmEntity["Path"].isNull())
rpmEntityObject.path = extendContentJsonNodeRpmEntityListRpmEntity["Path"].asString();
if(!extendContentJsonNodeRpmEntityListRpmEntity["UpdateCmd"].isNull())
rpmEntityObject.updateCmd = extendContentJsonNodeRpmEntityListRpmEntity["UpdateCmd"].asString();
if(!extendContentJsonNodeRpmEntityListRpmEntity["Version"].isNull())
rpmEntityObject.version = extendContentJsonNodeRpmEntityListRpmEntity["Version"].asString();
if(!extendContentJsonNodeRpmEntityListRpmEntity["Layer"].isNull())
rpmEntityObject.layer = extendContentJsonNodeRpmEntityListRpmEntity["Layer"].asString();
if(!extendContentJsonNodeRpmEntityListRpmEntity["MatchList"].isNull())
rpmEntityObject.matchList = extendContentJsonNodeRpmEntityListRpmEntity["MatchList"].asString();
vulRecordsObject.extendContentJson.rpmEntityList.push_back(rpmEntityObject);
}
auto allLayers = value["Layers"]["name"];
for (auto value : allLayers)
vulRecordsObject.layers.push_back(value.asString());
vulRecords_.push_back(vulRecordsObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeImageVulListResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeImageVulListResult::VulRecord> DescribeImageVulListResult::getVulRecords()const
{
return vulRecords_;
}
int DescribeImageVulListResult::getPageSize()const
{
return pageSize_;
}
int DescribeImageVulListResult::getCurrentPage()const
{
return currentPage_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/sas/model/DescribeInstallCaptchaRequest.h>
using AlibabaCloud::Sas::Model::DescribeInstallCaptchaRequest;
DescribeInstallCaptchaRequest::DescribeInstallCaptchaRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeInstallCaptcha")
{
setMethod(HttpRequest::Method::Post);
}
DescribeInstallCaptchaRequest::~DescribeInstallCaptchaRequest()
{}
std::string DescribeInstallCaptchaRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeInstallCaptchaRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeInstallCaptchaRequest::getLang()const
{
return lang_;
}
void DescribeInstallCaptchaRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeInstallCaptchaRequest::getDeadline()const
{
return deadline_;
}
void DescribeInstallCaptchaRequest::setDeadline(const std::string& deadline)
{
deadline_ = deadline;
setParameter("Deadline", deadline);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/DescribeInstallCaptchaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeInstallCaptchaResult::DescribeInstallCaptchaResult() :
ServiceResult()
{}
DescribeInstallCaptchaResult::DescribeInstallCaptchaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstallCaptchaResult::~DescribeInstallCaptchaResult()
{}
void DescribeInstallCaptchaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["CaptchaCode"].isNull())
captchaCode_ = value["CaptchaCode"].asString();
if(!value["Deadline"].isNull())
deadline_ = value["Deadline"].asString();
}
std::string DescribeInstallCaptchaResult::getDeadline()const
{
return deadline_;
}
std::string DescribeInstallCaptchaResult::getCaptchaCode()const
{
return captchaCode_;
}

View 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/DescribeInstanceAntiBruteForceRulesRequest.h>
using AlibabaCloud::Sas::Model::DescribeInstanceAntiBruteForceRulesRequest;
DescribeInstanceAntiBruteForceRulesRequest::DescribeInstanceAntiBruteForceRulesRequest() :
RpcServiceRequest("sas", "2018-12-03", "DescribeInstanceAntiBruteForceRules")
{
setMethod(HttpRequest::Method::Post);
}
DescribeInstanceAntiBruteForceRulesRequest::~DescribeInstanceAntiBruteForceRulesRequest()
{}
long DescribeInstanceAntiBruteForceRulesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeInstanceAntiBruteForceRulesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeInstanceAntiBruteForceRulesRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeInstanceAntiBruteForceRulesRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::vector<std::string> DescribeInstanceAntiBruteForceRulesRequest::getUuidList()const
{
return uuidList_;
}
void DescribeInstanceAntiBruteForceRulesRequest::setUuidList(const std::vector<std::string>& uuidList)
{
uuidList_ = uuidList;
for(int dep1 = 0; dep1!= uuidList.size(); dep1++) {
setParameter("UuidList."+ std::to_string(dep1), uuidList.at(dep1));
}
}

View File

@@ -0,0 +1,75 @@
/*
* 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/DescribeInstanceAntiBruteForceRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Sas;
using namespace AlibabaCloud::Sas::Model;
DescribeInstanceAntiBruteForceRulesResult::DescribeInstanceAntiBruteForceRulesResult() :
ServiceResult()
{}
DescribeInstanceAntiBruteForceRulesResult::DescribeInstanceAntiBruteForceRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstanceAntiBruteForceRulesResult::~DescribeInstanceAntiBruteForceRulesResult()
{}
void DescribeInstanceAntiBruteForceRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRulesNode = value["Rules"]["InstanceAntiBruteForceRule"];
for (auto valueRulesInstanceAntiBruteForceRule : allRulesNode)
{
InstanceAntiBruteForceRule rulesObject;
if(!valueRulesInstanceAntiBruteForceRule["Id"].isNull())
rulesObject.id = std::stol(valueRulesInstanceAntiBruteForceRule["Id"].asString());
if(!valueRulesInstanceAntiBruteForceRule["Name"].isNull())
rulesObject.name = valueRulesInstanceAntiBruteForceRule["Name"].asString();
if(!valueRulesInstanceAntiBruteForceRule["Uuid"].isNull())
rulesObject.uuid = valueRulesInstanceAntiBruteForceRule["Uuid"].asString();
rules_.push_back(rulesObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["Count"].isNull())
pageInfo_.count = std::stoi(pageInfoNode["Count"].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["CurrentPage"].isNull())
pageInfo_.currentPage = std::stoi(pageInfoNode["CurrentPage"].asString());
}
DescribeInstanceAntiBruteForceRulesResult::PageInfo DescribeInstanceAntiBruteForceRulesResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<DescribeInstanceAntiBruteForceRulesResult::InstanceAntiBruteForceRule> DescribeInstanceAntiBruteForceRulesResult::getRules()const
{
return rules_;
}

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