Change ListCheckInstanceResult Public.
This commit is contained in:
@@ -51,6 +51,42 @@ SasClient::SasClient(const std::string & accessKeyId, const std::string & access
|
||||
SasClient::~SasClient()
|
||||
{}
|
||||
|
||||
SasClient::AddInstallCodeOutcome SasClient::addInstallCode(const AddInstallCodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddInstallCodeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddInstallCodeOutcome(AddInstallCodeResult(outcome.result()));
|
||||
else
|
||||
return AddInstallCodeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::addInstallCodeAsync(const AddInstallCodeRequest& request, const AddInstallCodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addInstallCode(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::AddInstallCodeOutcomeCallable SasClient::addInstallCodeCallable(const AddInstallCodeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddInstallCodeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addInstallCode(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::AddVpcHoneyPotOutcome SasClient::addVpcHoneyPot(const AddVpcHoneyPotRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1635,6 +1671,42 @@ SasClient::DescribeCloudProductFieldStatisticsOutcomeCallable SasClient::describ
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeCommonOverallConfigOutcome SasClient::describeCommonOverallConfig(const DescribeCommonOverallConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCommonOverallConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCommonOverallConfigOutcome(DescribeCommonOverallConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeCommonOverallConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeCommonOverallConfigAsync(const DescribeCommonOverallConfigRequest& request, const DescribeCommonOverallConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCommonOverallConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeCommonOverallConfigOutcomeCallable SasClient::describeCommonOverallConfigCallable(const DescribeCommonOverallConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCommonOverallConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCommonOverallConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeConcernNecessityOutcome SasClient::describeConcernNecessity(const DescribeConcernNecessityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4443,6 +4515,42 @@ SasClient::DescribeSuspEventsOutcomeCallable SasClient::describeSuspEventsCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeSuspiciousOverallConfigOutcome SasClient::describeSuspiciousOverallConfig(const DescribeSuspiciousOverallConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSuspiciousOverallConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSuspiciousOverallConfigOutcome(DescribeSuspiciousOverallConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeSuspiciousOverallConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeSuspiciousOverallConfigAsync(const DescribeSuspiciousOverallConfigRequest& request, const DescribeSuspiciousOverallConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSuspiciousOverallConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeSuspiciousOverallConfigOutcomeCallable SasClient::describeSuspiciousOverallConfigCallable(const DescribeSuspiciousOverallConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSuspiciousOverallConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSuspiciousOverallConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeSuspiciousUUIDConfigOutcome SasClient::describeSuspiciousUUIDConfig(const DescribeSuspiciousUUIDConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4623,6 +4731,42 @@ SasClient::DescribeUuidsByVulNamesOutcomeCallable SasClient::describeUuidsByVulN
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeVendorListOutcome SasClient::describeVendorList(const DescribeVendorListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVendorListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVendorListOutcome(DescribeVendorListResult(outcome.result()));
|
||||
else
|
||||
return DescribeVendorListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::describeVendorListAsync(const DescribeVendorListRequest& request, const DescribeVendorListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVendorList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::DescribeVendorListOutcomeCallable SasClient::describeVendorListCallable(const DescribeVendorListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVendorListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVendorList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::DescribeVersionConfigOutcome SasClient::describeVersionConfig(const DescribeVersionConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6747,6 +6891,78 @@ SasClient::OperateAgentClientInstallOutcomeCallable SasClient::operateAgentClien
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::OperateCommonOverallConfigOutcome SasClient::operateCommonOverallConfig(const OperateCommonOverallConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OperateCommonOverallConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OperateCommonOverallConfigOutcome(OperateCommonOverallConfigResult(outcome.result()));
|
||||
else
|
||||
return OperateCommonOverallConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::operateCommonOverallConfigAsync(const OperateCommonOverallConfigRequest& request, const OperateCommonOverallConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, operateCommonOverallConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::OperateCommonOverallConfigOutcomeCallable SasClient::operateCommonOverallConfigCallable(const OperateCommonOverallConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OperateCommonOverallConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->operateCommonOverallConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::OperateSuspiciousOverallConfigOutcome SasClient::operateSuspiciousOverallConfig(const OperateSuspiciousOverallConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OperateSuspiciousOverallConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OperateSuspiciousOverallConfigOutcome(OperateSuspiciousOverallConfigResult(outcome.result()));
|
||||
else
|
||||
return OperateSuspiciousOverallConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SasClient::operateSuspiciousOverallConfigAsync(const OperateSuspiciousOverallConfigRequest& request, const OperateSuspiciousOverallConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, operateSuspiciousOverallConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SasClient::OperateSuspiciousOverallConfigOutcomeCallable SasClient::operateSuspiciousOverallConfigCallable(const OperateSuspiciousOverallConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OperateSuspiciousOverallConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->operateSuspiciousOverallConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SasClient::OperateSuspiciousTargetConfigOutcome SasClient::operateSuspiciousTargetConfig(const OperateSuspiciousTargetConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
81
sas/src/model/AddInstallCodeRequest.cc
Normal file
81
sas/src/model/AddInstallCodeRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/AddInstallCodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::AddInstallCodeRequest;
|
||||
|
||||
AddInstallCodeRequest::AddInstallCodeRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "AddInstallCode") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddInstallCodeRequest::~AddInstallCodeRequest() {}
|
||||
|
||||
long AddInstallCodeRequest::getExpiredDate() const {
|
||||
return expiredDate_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setExpiredDate(long expiredDate) {
|
||||
expiredDate_ = expiredDate;
|
||||
setParameter(std::string("ExpiredDate"), std::to_string(expiredDate));
|
||||
}
|
||||
|
||||
std::string AddInstallCodeRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string AddInstallCodeRequest::getOs() const {
|
||||
return os_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setOs(const std::string &os) {
|
||||
os_ = os;
|
||||
setParameter(std::string("Os"), os);
|
||||
}
|
||||
|
||||
long AddInstallCodeRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setGroupId(long groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), std::to_string(groupId));
|
||||
}
|
||||
|
||||
bool AddInstallCodeRequest::getOnlyImage() const {
|
||||
return onlyImage_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setOnlyImage(bool onlyImage) {
|
||||
onlyImage_ = onlyImage;
|
||||
setParameter(std::string("OnlyImage"), onlyImage ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddInstallCodeRequest::getVendorName() const {
|
||||
return vendorName_;
|
||||
}
|
||||
|
||||
void AddInstallCodeRequest::setVendorName(const std::string &vendorName) {
|
||||
vendorName_ = vendorName;
|
||||
setParameter(std::string("VendorName"), vendorName);
|
||||
}
|
||||
|
||||
44
sas/src/model/AddInstallCodeResult.cc
Normal file
44
sas/src/model/AddInstallCodeResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/AddInstallCodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
AddInstallCodeResult::AddInstallCodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddInstallCodeResult::AddInstallCodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddInstallCodeResult::~AddInstallCodeResult()
|
||||
{}
|
||||
|
||||
void AddInstallCodeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
sas/src/model/DescribeCommonOverallConfigRequest.cc
Normal file
54
sas/src/model/DescribeCommonOverallConfigRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeCommonOverallConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeCommonOverallConfigRequest;
|
||||
|
||||
DescribeCommonOverallConfigRequest::DescribeCommonOverallConfigRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "DescribeCommonOverallConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCommonOverallConfigRequest::~DescribeCommonOverallConfigRequest() {}
|
||||
|
||||
std::string DescribeCommonOverallConfigRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribeCommonOverallConfigRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string DescribeCommonOverallConfigRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeCommonOverallConfigRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeCommonOverallConfigRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void DescribeCommonOverallConfigRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
54
sas/src/model/DescribeCommonOverallConfigResult.cc
Normal file
54
sas/src/model/DescribeCommonOverallConfigResult.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeCommonOverallConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeCommonOverallConfigResult::DescribeCommonOverallConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCommonOverallConfigResult::DescribeCommonOverallConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCommonOverallConfigResult::~DescribeCommonOverallConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeCommonOverallConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto overallConfigNode = value["OverallConfig"];
|
||||
if(!overallConfigNode["Type"].isNull())
|
||||
overallConfig_.type = overallConfigNode["Type"].asString();
|
||||
if(!overallConfigNode["Config"].isNull())
|
||||
overallConfig_.config = overallConfigNode["Config"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeCommonOverallConfigResult::OverallConfig DescribeCommonOverallConfigResult::getOverallConfig()const
|
||||
{
|
||||
return overallConfig_;
|
||||
}
|
||||
|
||||
@@ -80,6 +80,8 @@ void DescribeFieldStatisticsResult::parse(const std::string &payload)
|
||||
groupedFields_.huaweiInstanceCount = std::stoi(groupedFieldsNode["HuaweiInstanceCount"].asString());
|
||||
if(!groupedFieldsNode["AwsInstanceCount"].isNull())
|
||||
groupedFields_.awsInstanceCount = std::stoi(groupedFieldsNode["AwsInstanceCount"].asString());
|
||||
if(!groupedFieldsNode["OutMachineInstanceCount"].isNull())
|
||||
groupedFields_.outMachineInstanceCount = std::stoi(groupedFieldsNode["OutMachineInstanceCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
54
sas/src/model/DescribeSuspiciousOverallConfigRequest.cc
Normal file
54
sas/src/model/DescribeSuspiciousOverallConfigRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSuspiciousOverallConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeSuspiciousOverallConfigRequest;
|
||||
|
||||
DescribeSuspiciousOverallConfigRequest::DescribeSuspiciousOverallConfigRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "DescribeSuspiciousOverallConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSuspiciousOverallConfigRequest::~DescribeSuspiciousOverallConfigRequest() {}
|
||||
|
||||
std::string DescribeSuspiciousOverallConfigRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribeSuspiciousOverallConfigRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string DescribeSuspiciousOverallConfigRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeSuspiciousOverallConfigRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeSuspiciousOverallConfigRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void DescribeSuspiciousOverallConfigRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
54
sas/src/model/DescribeSuspiciousOverallConfigResult.cc
Normal file
54
sas/src/model/DescribeSuspiciousOverallConfigResult.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeSuspiciousOverallConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeSuspiciousOverallConfigResult::DescribeSuspiciousOverallConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSuspiciousOverallConfigResult::DescribeSuspiciousOverallConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSuspiciousOverallConfigResult::~DescribeSuspiciousOverallConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeSuspiciousOverallConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto overallConfigNode = value["OverallConfig"];
|
||||
if(!overallConfigNode["Type"].isNull())
|
||||
overallConfig_.type = overallConfigNode["Type"].asString();
|
||||
if(!overallConfigNode["Config"].isNull())
|
||||
overallConfig_.config = overallConfigNode["Config"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeSuspiciousOverallConfigResult::OverallConfig DescribeSuspiciousOverallConfigResult::getOverallConfig()const
|
||||
{
|
||||
return overallConfig_;
|
||||
}
|
||||
|
||||
36
sas/src/model/DescribeVendorListRequest.cc
Normal file
36
sas/src/model/DescribeVendorListRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeVendorListRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::DescribeVendorListRequest;
|
||||
|
||||
DescribeVendorListRequest::DescribeVendorListRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "DescribeVendorList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeVendorListRequest::~DescribeVendorListRequest() {}
|
||||
|
||||
std::string DescribeVendorListRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeVendorListRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
52
sas/src/model/DescribeVendorListResult.cc
Normal file
52
sas/src/model/DescribeVendorListResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/DescribeVendorListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
DescribeVendorListResult::DescribeVendorListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeVendorListResult::DescribeVendorListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeVendorListResult::~DescribeVendorListResult()
|
||||
{}
|
||||
|
||||
void DescribeVendorListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVendorNameList = value["VendorNameList"]["VendorName"];
|
||||
for (const auto &item : allVendorNameList)
|
||||
vendorNameList_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeVendorListResult::getVendorNameList()const
|
||||
{
|
||||
return vendorNameList_;
|
||||
}
|
||||
|
||||
63
sas/src/model/OperateCommonOverallConfigRequest.cc
Normal file
63
sas/src/model/OperateCommonOverallConfigRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/OperateCommonOverallConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::OperateCommonOverallConfigRequest;
|
||||
|
||||
OperateCommonOverallConfigRequest::OperateCommonOverallConfigRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "OperateCommonOverallConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OperateCommonOverallConfigRequest::~OperateCommonOverallConfigRequest() {}
|
||||
|
||||
std::string OperateCommonOverallConfigRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void OperateCommonOverallConfigRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string OperateCommonOverallConfigRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void OperateCommonOverallConfigRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string OperateCommonOverallConfigRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void OperateCommonOverallConfigRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
std::string OperateCommonOverallConfigRequest::getConfig() const {
|
||||
return config_;
|
||||
}
|
||||
|
||||
void OperateCommonOverallConfigRequest::setConfig(const std::string &config) {
|
||||
config_ = config;
|
||||
setParameter(std::string("Config"), config);
|
||||
}
|
||||
|
||||
44
sas/src/model/OperateCommonOverallConfigResult.cc
Normal file
44
sas/src/model/OperateCommonOverallConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/OperateCommonOverallConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
OperateCommonOverallConfigResult::OperateCommonOverallConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OperateCommonOverallConfigResult::OperateCommonOverallConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OperateCommonOverallConfigResult::~OperateCommonOverallConfigResult()
|
||||
{}
|
||||
|
||||
void OperateCommonOverallConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
81
sas/src/model/OperateSuspiciousOverallConfigRequest.cc
Normal file
81
sas/src/model/OperateSuspiciousOverallConfigRequest.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/OperateSuspiciousOverallConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sas::Model::OperateSuspiciousOverallConfigRequest;
|
||||
|
||||
OperateSuspiciousOverallConfigRequest::OperateSuspiciousOverallConfigRequest()
|
||||
: RpcServiceRequest("sas", "2018-12-03", "OperateSuspiciousOverallConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OperateSuspiciousOverallConfigRequest::~OperateSuspiciousOverallConfigRequest() {}
|
||||
|
||||
std::string OperateSuspiciousOverallConfigRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void OperateSuspiciousOverallConfigRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string OperateSuspiciousOverallConfigRequest::getSourceIp() const {
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void OperateSuspiciousOverallConfigRequest::setSourceIp(const std::string &sourceIp) {
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter(std::string("SourceIp"), sourceIp);
|
||||
}
|
||||
|
||||
std::string OperateSuspiciousOverallConfigRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void OperateSuspiciousOverallConfigRequest::setLang(const std::string &lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("Lang"), lang);
|
||||
}
|
||||
|
||||
std::string OperateSuspiciousOverallConfigRequest::getResourceDirectoryAccountId() const {
|
||||
return resourceDirectoryAccountId_;
|
||||
}
|
||||
|
||||
void OperateSuspiciousOverallConfigRequest::setResourceDirectoryAccountId(const std::string &resourceDirectoryAccountId) {
|
||||
resourceDirectoryAccountId_ = resourceDirectoryAccountId;
|
||||
setParameter(std::string("ResourceDirectoryAccountId"), resourceDirectoryAccountId);
|
||||
}
|
||||
|
||||
bool OperateSuspiciousOverallConfigRequest::getNoTargetAsOn() const {
|
||||
return noTargetAsOn_;
|
||||
}
|
||||
|
||||
void OperateSuspiciousOverallConfigRequest::setNoTargetAsOn(bool noTargetAsOn) {
|
||||
noTargetAsOn_ = noTargetAsOn;
|
||||
setParameter(std::string("NoTargetAsOn"), noTargetAsOn ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string OperateSuspiciousOverallConfigRequest::getConfig() const {
|
||||
return config_;
|
||||
}
|
||||
|
||||
void OperateSuspiciousOverallConfigRequest::setConfig(const std::string &config) {
|
||||
config_ = config;
|
||||
setParameter(std::string("Config"), config);
|
||||
}
|
||||
|
||||
44
sas/src/model/OperateSuspiciousOverallConfigResult.cc
Normal file
44
sas/src/model/OperateSuspiciousOverallConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sas/model/OperateSuspiciousOverallConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sas;
|
||||
using namespace AlibabaCloud::Sas::Model;
|
||||
|
||||
OperateSuspiciousOverallConfigResult::OperateSuspiciousOverallConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
OperateSuspiciousOverallConfigResult::OperateSuspiciousOverallConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
OperateSuspiciousOverallConfigResult::~OperateSuspiciousOverallConfigResult()
|
||||
{}
|
||||
|
||||
void OperateSuspiciousOverallConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user