发布资源清单下载、高级搜索、合规趋势统计等API.
This commit is contained in:
45
config/src/model/ActiveAggregateConfigRulesRequest.cc
Normal file
45
config/src/model/ActiveAggregateConfigRulesRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/ActiveAggregateConfigRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::ActiveAggregateConfigRulesRequest;
|
||||
|
||||
ActiveAggregateConfigRulesRequest::ActiveAggregateConfigRulesRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "ActiveAggregateConfigRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ActiveAggregateConfigRulesRequest::~ActiveAggregateConfigRulesRequest() {}
|
||||
|
||||
std::string ActiveAggregateConfigRulesRequest::getConfigRuleIds() const {
|
||||
return configRuleIds_;
|
||||
}
|
||||
|
||||
void ActiveAggregateConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) {
|
||||
configRuleIds_ = configRuleIds;
|
||||
setParameter(std::string("ConfigRuleIds"), configRuleIds);
|
||||
}
|
||||
|
||||
std::string ActiveAggregateConfigRulesRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void ActiveAggregateConfigRulesRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
62
config/src/model/ActiveAggregateConfigRulesResult.cc
Normal file
62
config/src/model/ActiveAggregateConfigRulesResult.cc
Normal 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/config/model/ActiveAggregateConfigRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
ActiveAggregateConfigRulesResult::ActiveAggregateConfigRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ActiveAggregateConfigRulesResult::ActiveAggregateConfigRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ActiveAggregateConfigRulesResult::~ActiveAggregateConfigRulesResult()
|
||||
{}
|
||||
|
||||
void ActiveAggregateConfigRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto operateRuleResultNode = value["OperateRuleResult"];
|
||||
auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"];
|
||||
for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode)
|
||||
{
|
||||
OperateRuleResult::OperateRuleItem operateRuleItemObject;
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull())
|
||||
operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString();
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull())
|
||||
operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true";
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull())
|
||||
operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString();
|
||||
operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ActiveAggregateConfigRulesResult::OperateRuleResult ActiveAggregateConfigRulesResult::getOperateRuleResult()const
|
||||
{
|
||||
return operateRuleResult_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Config::Model::ActiveConfigRulesRequest;
|
||||
|
||||
ActiveConfigRulesRequest::ActiveConfigRulesRequest()
|
||||
: RpcServiceRequest("config", "2019-01-08", "ActiveConfigRules") {
|
||||
: RpcServiceRequest("config", "2020-09-07", "ActiveConfigRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
|
||||
@@ -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/config/model/AttachAggregateConfigRuleToCompliancePackRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::AttachAggregateConfigRuleToCompliancePackRequest;
|
||||
|
||||
AttachAggregateConfigRuleToCompliancePackRequest::AttachAggregateConfigRuleToCompliancePackRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "AttachAggregateConfigRuleToCompliancePack") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachAggregateConfigRuleToCompliancePackRequest::~AttachAggregateConfigRuleToCompliancePackRequest() {}
|
||||
|
||||
std::string AttachAggregateConfigRuleToCompliancePackRequest::getConfigRuleIds() const {
|
||||
return configRuleIds_;
|
||||
}
|
||||
|
||||
void AttachAggregateConfigRuleToCompliancePackRequest::setConfigRuleIds(const std::string &configRuleIds) {
|
||||
configRuleIds_ = configRuleIds;
|
||||
setParameter(std::string("ConfigRuleIds"), configRuleIds);
|
||||
}
|
||||
|
||||
std::string AttachAggregateConfigRuleToCompliancePackRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void AttachAggregateConfigRuleToCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string AttachAggregateConfigRuleToCompliancePackRequest::getCompliancePackId() const {
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
void AttachAggregateConfigRuleToCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) {
|
||||
compliancePackId_ = compliancePackId;
|
||||
setParameter(std::string("CompliancePackId"), compliancePackId);
|
||||
}
|
||||
|
||||
@@ -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/config/model/AttachAggregateConfigRuleToCompliancePackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
AttachAggregateConfigRuleToCompliancePackResult::AttachAggregateConfigRuleToCompliancePackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachAggregateConfigRuleToCompliancePackResult::AttachAggregateConfigRuleToCompliancePackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachAggregateConfigRuleToCompliancePackResult::~AttachAggregateConfigRuleToCompliancePackResult()
|
||||
{}
|
||||
|
||||
void AttachAggregateConfigRuleToCompliancePackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto operateRuleResultNode = value["OperateRuleResult"];
|
||||
auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"];
|
||||
for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode)
|
||||
{
|
||||
OperateRuleResult::OperateRuleItem operateRuleItemObject;
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull())
|
||||
operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString();
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull())
|
||||
operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true";
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull())
|
||||
operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString();
|
||||
operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
AttachAggregateConfigRuleToCompliancePackResult::OperateRuleResult AttachAggregateConfigRuleToCompliancePackResult::getOperateRuleResult()const
|
||||
{
|
||||
return operateRuleResult_;
|
||||
}
|
||||
|
||||
45
config/src/model/AttachConfigRuleToCompliancePackRequest.cc
Normal file
45
config/src/model/AttachConfigRuleToCompliancePackRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/AttachConfigRuleToCompliancePackRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::AttachConfigRuleToCompliancePackRequest;
|
||||
|
||||
AttachConfigRuleToCompliancePackRequest::AttachConfigRuleToCompliancePackRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "AttachConfigRuleToCompliancePack") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AttachConfigRuleToCompliancePackRequest::~AttachConfigRuleToCompliancePackRequest() {}
|
||||
|
||||
std::string AttachConfigRuleToCompliancePackRequest::getConfigRuleIds() const {
|
||||
return configRuleIds_;
|
||||
}
|
||||
|
||||
void AttachConfigRuleToCompliancePackRequest::setConfigRuleIds(const std::string &configRuleIds) {
|
||||
configRuleIds_ = configRuleIds;
|
||||
setParameter(std::string("ConfigRuleIds"), configRuleIds);
|
||||
}
|
||||
|
||||
std::string AttachConfigRuleToCompliancePackRequest::getCompliancePackId() const {
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
void AttachConfigRuleToCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) {
|
||||
compliancePackId_ = compliancePackId;
|
||||
setParameter(std::string("CompliancePackId"), compliancePackId);
|
||||
}
|
||||
|
||||
62
config/src/model/AttachConfigRuleToCompliancePackResult.cc
Normal file
62
config/src/model/AttachConfigRuleToCompliancePackResult.cc
Normal 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/config/model/AttachConfigRuleToCompliancePackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
AttachConfigRuleToCompliancePackResult::AttachConfigRuleToCompliancePackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AttachConfigRuleToCompliancePackResult::AttachConfigRuleToCompliancePackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AttachConfigRuleToCompliancePackResult::~AttachConfigRuleToCompliancePackResult()
|
||||
{}
|
||||
|
||||
void AttachConfigRuleToCompliancePackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto operateRuleResultNode = value["OperateRuleResult"];
|
||||
auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"];
|
||||
for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode)
|
||||
{
|
||||
OperateRuleResult::OperateRuleItem operateRuleItemObject;
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull())
|
||||
operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString();
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull())
|
||||
operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true";
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull())
|
||||
operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString();
|
||||
operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
AttachConfigRuleToCompliancePackResult::OperateRuleResult AttachConfigRuleToCompliancePackResult::getOperateRuleResult()const
|
||||
{
|
||||
return operateRuleResult_;
|
||||
}
|
||||
|
||||
54
config/src/model/CopyCompliancePacksRequest.cc
Normal file
54
config/src/model/CopyCompliancePacksRequest.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/config/model/CopyCompliancePacksRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CopyCompliancePacksRequest;
|
||||
|
||||
CopyCompliancePacksRequest::CopyCompliancePacksRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CopyCompliancePacks") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CopyCompliancePacksRequest::~CopyCompliancePacksRequest() {}
|
||||
|
||||
std::string CopyCompliancePacksRequest::getDesAggregatorIds() const {
|
||||
return desAggregatorIds_;
|
||||
}
|
||||
|
||||
void CopyCompliancePacksRequest::setDesAggregatorIds(const std::string &desAggregatorIds) {
|
||||
desAggregatorIds_ = desAggregatorIds;
|
||||
setParameter(std::string("DesAggregatorIds"), desAggregatorIds);
|
||||
}
|
||||
|
||||
std::string CopyCompliancePacksRequest::getSrcAggregatorId() const {
|
||||
return srcAggregatorId_;
|
||||
}
|
||||
|
||||
void CopyCompliancePacksRequest::setSrcAggregatorId(const std::string &srcAggregatorId) {
|
||||
srcAggregatorId_ = srcAggregatorId;
|
||||
setParameter(std::string("SrcAggregatorId"), srcAggregatorId);
|
||||
}
|
||||
|
||||
std::string CopyCompliancePacksRequest::getSrcCompliancePackIds() const {
|
||||
return srcCompliancePackIds_;
|
||||
}
|
||||
|
||||
void CopyCompliancePacksRequest::setSrcCompliancePackIds(const std::string &srcCompliancePackIds) {
|
||||
srcCompliancePackIds_ = srcCompliancePackIds;
|
||||
setParameter(std::string("SrcCompliancePackIds"), srcCompliancePackIds);
|
||||
}
|
||||
|
||||
51
config/src/model/CopyCompliancePacksResult.cc
Normal file
51
config/src/model/CopyCompliancePacksResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CopyCompliancePacksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CopyCompliancePacksResult::CopyCompliancePacksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CopyCompliancePacksResult::CopyCompliancePacksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CopyCompliancePacksResult::~CopyCompliancePacksResult()
|
||||
{}
|
||||
|
||||
void CopyCompliancePacksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CopyRulesResult"].isNull())
|
||||
copyRulesResult_ = value["CopyRulesResult"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CopyCompliancePacksResult::getCopyRulesResult()const
|
||||
{
|
||||
return copyRulesResult_;
|
||||
}
|
||||
|
||||
54
config/src/model/CopyConfigRulesRequest.cc
Normal file
54
config/src/model/CopyConfigRulesRequest.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/config/model/CopyConfigRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CopyConfigRulesRequest;
|
||||
|
||||
CopyConfigRulesRequest::CopyConfigRulesRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CopyConfigRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CopyConfigRulesRequest::~CopyConfigRulesRequest() {}
|
||||
|
||||
std::string CopyConfigRulesRequest::getDesAggregatorIds() const {
|
||||
return desAggregatorIds_;
|
||||
}
|
||||
|
||||
void CopyConfigRulesRequest::setDesAggregatorIds(const std::string &desAggregatorIds) {
|
||||
desAggregatorIds_ = desAggregatorIds;
|
||||
setParameter(std::string("DesAggregatorIds"), desAggregatorIds);
|
||||
}
|
||||
|
||||
std::string CopyConfigRulesRequest::getSrcConfigRuleIds() const {
|
||||
return srcConfigRuleIds_;
|
||||
}
|
||||
|
||||
void CopyConfigRulesRequest::setSrcConfigRuleIds(const std::string &srcConfigRuleIds) {
|
||||
srcConfigRuleIds_ = srcConfigRuleIds;
|
||||
setParameter(std::string("SrcConfigRuleIds"), srcConfigRuleIds);
|
||||
}
|
||||
|
||||
std::string CopyConfigRulesRequest::getSrcAggregatorId() const {
|
||||
return srcAggregatorId_;
|
||||
}
|
||||
|
||||
void CopyConfigRulesRequest::setSrcAggregatorId(const std::string &srcAggregatorId) {
|
||||
srcAggregatorId_ = srcAggregatorId;
|
||||
setParameter(std::string("SrcAggregatorId"), srcAggregatorId);
|
||||
}
|
||||
|
||||
51
config/src/model/CopyConfigRulesResult.cc
Normal file
51
config/src/model/CopyConfigRulesResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CopyConfigRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CopyConfigRulesResult::CopyConfigRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CopyConfigRulesResult::CopyConfigRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CopyConfigRulesResult::~CopyConfigRulesResult()
|
||||
{}
|
||||
|
||||
void CopyConfigRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CopyRulesResult"].isNull())
|
||||
copyRulesResult_ = value["CopyRulesResult"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CopyConfigRulesResult::getCopyRulesResult()const
|
||||
{
|
||||
return copyRulesResult_;
|
||||
}
|
||||
|
||||
45
config/src/model/CreateAdvancedSearchFileRequest.cc
Normal file
45
config/src/model/CreateAdvancedSearchFileRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateAdvancedSearchFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateAdvancedSearchFileRequest;
|
||||
|
||||
CreateAdvancedSearchFileRequest::CreateAdvancedSearchFileRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateAdvancedSearchFile") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAdvancedSearchFileRequest::~CreateAdvancedSearchFileRequest() {}
|
||||
|
||||
std::string CreateAdvancedSearchFileRequest::getSql() const {
|
||||
return sql_;
|
||||
}
|
||||
|
||||
void CreateAdvancedSearchFileRequest::setSql(const std::string &sql) {
|
||||
sql_ = sql;
|
||||
setParameter(std::string("Sql"), sql);
|
||||
}
|
||||
|
||||
bool CreateAdvancedSearchFileRequest::getOnlyBaseLine() const {
|
||||
return onlyBaseLine_;
|
||||
}
|
||||
|
||||
void CreateAdvancedSearchFileRequest::setOnlyBaseLine(bool onlyBaseLine) {
|
||||
onlyBaseLine_ = onlyBaseLine;
|
||||
setParameter(std::string("OnlyBaseLine"), onlyBaseLine ? "true" : "false");
|
||||
}
|
||||
|
||||
51
config/src/model/CreateAdvancedSearchFileResult.cc
Normal file
51
config/src/model/CreateAdvancedSearchFileResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateAdvancedSearchFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CreateAdvancedSearchFileResult::CreateAdvancedSearchFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAdvancedSearchFileResult::CreateAdvancedSearchFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAdvancedSearchFileResult::~CreateAdvancedSearchFileResult()
|
||||
{}
|
||||
|
||||
void CreateAdvancedSearchFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CreateAdvancedSearchFileResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
config/src/model/CreateAggregateAdvancedSearchFileRequest.cc
Normal file
54
config/src/model/CreateAggregateAdvancedSearchFileRequest.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/config/model/CreateAggregateAdvancedSearchFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateAggregateAdvancedSearchFileRequest;
|
||||
|
||||
CreateAggregateAdvancedSearchFileRequest::CreateAggregateAdvancedSearchFileRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateAggregateAdvancedSearchFile") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAggregateAdvancedSearchFileRequest::~CreateAggregateAdvancedSearchFileRequest() {}
|
||||
|
||||
std::string CreateAggregateAdvancedSearchFileRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void CreateAggregateAdvancedSearchFileRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string CreateAggregateAdvancedSearchFileRequest::getSql() const {
|
||||
return sql_;
|
||||
}
|
||||
|
||||
void CreateAggregateAdvancedSearchFileRequest::setSql(const std::string &sql) {
|
||||
sql_ = sql;
|
||||
setParameter(std::string("Sql"), sql);
|
||||
}
|
||||
|
||||
bool CreateAggregateAdvancedSearchFileRequest::getOnlyBaseLine() const {
|
||||
return onlyBaseLine_;
|
||||
}
|
||||
|
||||
void CreateAggregateAdvancedSearchFileRequest::setOnlyBaseLine(bool onlyBaseLine) {
|
||||
onlyBaseLine_ = onlyBaseLine;
|
||||
setParameter(std::string("OnlyBaseLine"), onlyBaseLine ? "true" : "false");
|
||||
}
|
||||
|
||||
51
config/src/model/CreateAggregateAdvancedSearchFileResult.cc
Normal file
51
config/src/model/CreateAggregateAdvancedSearchFileResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateAggregateAdvancedSearchFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CreateAggregateAdvancedSearchFileResult::CreateAggregateAdvancedSearchFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAggregateAdvancedSearchFileResult::CreateAggregateAdvancedSearchFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAggregateAdvancedSearchFileResult::~CreateAggregateAdvancedSearchFileResult()
|
||||
{}
|
||||
|
||||
void CreateAggregateAdvancedSearchFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CreateAggregateAdvancedSearchFileResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
154
config/src/model/CreateAggregateCompliancePackRequest.cc
Normal file
154
config/src/model/CreateAggregateCompliancePackRequest.cc
Normal file
@@ -0,0 +1,154 @@
|
||||
/*
|
||||
* 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/config/model/CreateAggregateCompliancePackRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateAggregateCompliancePackRequest;
|
||||
|
||||
CreateAggregateCompliancePackRequest::CreateAggregateCompliancePackRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateAggregateCompliancePack") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAggregateCompliancePackRequest::~CreateAggregateCompliancePackRequest() {}
|
||||
|
||||
std::string CreateAggregateCompliancePackRequest::getTagKeyScope() const {
|
||||
return tagKeyScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setTagKeyScope(const std::string &tagKeyScope) {
|
||||
tagKeyScope_ = tagKeyScope;
|
||||
setBodyParameter(std::string("TagKeyScope"), tagKeyScope);
|
||||
}
|
||||
|
||||
std::string CreateAggregateCompliancePackRequest::getCompliancePackName() const {
|
||||
return compliancePackName_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setCompliancePackName(const std::string &compliancePackName) {
|
||||
compliancePackName_ = compliancePackName;
|
||||
setBodyParameter(std::string("CompliancePackName"), compliancePackName);
|
||||
}
|
||||
|
||||
std::string CreateAggregateCompliancePackRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateAggregateCompliancePackRequest::getCompliancePackTemplateId() const {
|
||||
return compliancePackTemplateId_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setCompliancePackTemplateId(const std::string &compliancePackTemplateId) {
|
||||
compliancePackTemplateId_ = compliancePackTemplateId;
|
||||
setBodyParameter(std::string("CompliancePackTemplateId"), compliancePackTemplateId);
|
||||
}
|
||||
|
||||
std::string CreateAggregateCompliancePackRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateAggregateCompliancePackRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setBodyParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string CreateAggregateCompliancePackRequest::getTagValueScope() const {
|
||||
return tagValueScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setTagValueScope(const std::string &tagValueScope) {
|
||||
tagValueScope_ = tagValueScope;
|
||||
setBodyParameter(std::string("TagValueScope"), tagValueScope);
|
||||
}
|
||||
|
||||
std::string CreateAggregateCompliancePackRequest::getRegionIdsScope() const {
|
||||
return regionIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setRegionIdsScope(const std::string ®ionIdsScope) {
|
||||
regionIdsScope_ = regionIdsScope;
|
||||
setBodyParameter(std::string("RegionIdsScope"), regionIdsScope);
|
||||
}
|
||||
|
||||
bool CreateAggregateCompliancePackRequest::getDefaultEnable() const {
|
||||
return defaultEnable_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setDefaultEnable(bool defaultEnable) {
|
||||
defaultEnable_ = defaultEnable;
|
||||
setBodyParameter(std::string("DefaultEnable"), defaultEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateAggregateCompliancePackRequest::ConfigRules> CreateAggregateCompliancePackRequest::getConfigRules() const {
|
||||
return configRules_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setConfigRules(const std::vector<CreateAggregateCompliancePackRequest::ConfigRules> &configRules) {
|
||||
configRules_ = configRules;
|
||||
for(int dep1 = 0; dep1 != configRules.size(); dep1++) {
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ManagedRuleIdentifier", configRules[dep1].managedRuleIdentifier);
|
||||
for(int dep2 = 0; dep2 != configRules[dep1].configRuleParameters.size(); dep2++) {
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterValue", configRules[dep1].configRuleParameters[dep2].parameterValue);
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterName", configRules[dep1].configRuleParameters[dep2].parameterName);
|
||||
}
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleId", configRules[dep1].configRuleId);
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleName", configRules[dep1].configRuleName);
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".Description", configRules[dep1].description);
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".RiskLevel", std::to_string(configRules[dep1].riskLevel));
|
||||
}
|
||||
}
|
||||
|
||||
int CreateAggregateCompliancePackRequest::getRiskLevel() const {
|
||||
return riskLevel_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setRiskLevel(int riskLevel) {
|
||||
riskLevel_ = riskLevel;
|
||||
setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel));
|
||||
}
|
||||
|
||||
std::string CreateAggregateCompliancePackRequest::getResourceGroupIdsScope() const {
|
||||
return resourceGroupIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) {
|
||||
resourceGroupIdsScope_ = resourceGroupIdsScope;
|
||||
setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope);
|
||||
}
|
||||
|
||||
std::string CreateAggregateCompliancePackRequest::getExcludeResourceIdsScope() const {
|
||||
return excludeResourceIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateCompliancePackRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) {
|
||||
excludeResourceIdsScope_ = excludeResourceIdsScope;
|
||||
setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
|
||||
}
|
||||
|
||||
51
config/src/model/CreateAggregateCompliancePackResult.cc
Normal file
51
config/src/model/CreateAggregateCompliancePackResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateAggregateCompliancePackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CreateAggregateCompliancePackResult::CreateAggregateCompliancePackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAggregateCompliancePackResult::CreateAggregateCompliancePackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAggregateCompliancePackResult::~CreateAggregateCompliancePackResult()
|
||||
{}
|
||||
|
||||
void CreateAggregateCompliancePackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CompliancePackId"].isNull())
|
||||
compliancePackId_ = value["CompliancePackId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAggregateCompliancePackResult::getCompliancePackId()const
|
||||
{
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
135
config/src/model/CreateAggregateConfigDeliveryChannelRequest.cc
Normal file
135
config/src/model/CreateAggregateConfigDeliveryChannelRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* 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/config/model/CreateAggregateConfigDeliveryChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateAggregateConfigDeliveryChannelRequest;
|
||||
|
||||
CreateAggregateConfigDeliveryChannelRequest::CreateAggregateConfigDeliveryChannelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateAggregateConfigDeliveryChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAggregateConfigDeliveryChannelRequest::~CreateAggregateConfigDeliveryChannelRequest() {}
|
||||
|
||||
bool CreateAggregateConfigDeliveryChannelRequest::getNonCompliantNotification() const {
|
||||
return nonCompliantNotification_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) {
|
||||
nonCompliantNotification_ = nonCompliantNotification;
|
||||
setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool CreateAggregateConfigDeliveryChannelRequest::getConfigurationSnapshot() const {
|
||||
return configurationSnapshot_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) {
|
||||
configurationSnapshot_ = configurationSnapshot;
|
||||
setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const {
|
||||
return deliveryChannelTargetArn_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) {
|
||||
deliveryChannelTargetArn_ = deliveryChannelTargetArn;
|
||||
setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const {
|
||||
return deliveryChannelCondition_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) {
|
||||
deliveryChannelCondition_ = deliveryChannelCondition;
|
||||
setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition);
|
||||
}
|
||||
|
||||
bool CreateAggregateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const {
|
||||
return configurationItemChangeNotification_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) {
|
||||
configurationItemChangeNotification_ = configurationItemChangeNotification;
|
||||
setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelName() const {
|
||||
return deliveryChannelName_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) {
|
||||
deliveryChannelName_ = deliveryChannelName;
|
||||
setParameter(std::string("DeliveryChannelName"), deliveryChannelName);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getDeliverySnapshotTime() const {
|
||||
return deliverySnapshotTime_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setDeliverySnapshotTime(const std::string &deliverySnapshotTime) {
|
||||
deliverySnapshotTime_ = deliverySnapshotTime;
|
||||
setParameter(std::string("DeliverySnapshotTime"), deliverySnapshotTime);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const {
|
||||
return oversizedDataOSSTargetArn_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) {
|
||||
oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn;
|
||||
setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelType() const {
|
||||
return deliveryChannelType_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) {
|
||||
deliveryChannelType_ = deliveryChannelType;
|
||||
setParameter(std::string("DeliveryChannelType"), deliveryChannelType);
|
||||
}
|
||||
|
||||
@@ -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/config/model/CreateAggregateConfigDeliveryChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CreateAggregateConfigDeliveryChannelResult::CreateAggregateConfigDeliveryChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAggregateConfigDeliveryChannelResult::CreateAggregateConfigDeliveryChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAggregateConfigDeliveryChannelResult::~CreateAggregateConfigDeliveryChannelResult()
|
||||
{}
|
||||
|
||||
void CreateAggregateConfigDeliveryChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DeliveryChannelId"].isNull())
|
||||
deliveryChannelId_ = value["DeliveryChannelId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigDeliveryChannelResult::getDeliveryChannelId()const
|
||||
{
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
209
config/src/model/CreateAggregateConfigRuleRequest.cc
Normal file
209
config/src/model/CreateAggregateConfigRuleRequest.cc
Normal file
@@ -0,0 +1,209 @@
|
||||
/*
|
||||
* 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/config/model/CreateAggregateConfigRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateAggregateConfigRuleRequest;
|
||||
|
||||
CreateAggregateConfigRuleRequest::CreateAggregateConfigRuleRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateAggregateConfigRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAggregateConfigRuleRequest::~CreateAggregateConfigRuleRequest() {}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getTagKeyScope() const {
|
||||
return tagKeyScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setTagKeyScope(const std::string &tagKeyScope) {
|
||||
tagKeyScope_ = tagKeyScope;
|
||||
setBodyParameter(std::string("TagKeyScope"), tagKeyScope);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::vector<CreateAggregateConfigRuleRequest::std::string> CreateAggregateConfigRuleRequest::getResourceTypesScope() const {
|
||||
return resourceTypesScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setResourceTypesScope(const std::vector<CreateAggregateConfigRuleRequest::std::string> &resourceTypesScope) {
|
||||
resourceTypesScope_ = resourceTypesScope;
|
||||
for(int dep1 = 0; dep1 != resourceTypesScope.size(); dep1++) {
|
||||
setBodyParameter(std::string("ResourceTypesScope") + "." + std::to_string(dep1 + 1), resourceTypesScope[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setBodyParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getConfigRuleTriggerTypes() const {
|
||||
return configRuleTriggerTypes_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes) {
|
||||
configRuleTriggerTypes_ = configRuleTriggerTypes;
|
||||
setBodyParameter(std::string("ConfigRuleTriggerTypes"), configRuleTriggerTypes);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getSourceIdentifier() const {
|
||||
return sourceIdentifier_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setSourceIdentifier(const std::string &sourceIdentifier) {
|
||||
sourceIdentifier_ = sourceIdentifier;
|
||||
setBodyParameter(std::string("SourceIdentifier"), sourceIdentifier);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getTagValueScope() const {
|
||||
return tagValueScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setTagValueScope(const std::string &tagValueScope) {
|
||||
tagValueScope_ = tagValueScope;
|
||||
setBodyParameter(std::string("TagValueScope"), tagValueScope);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getExcludeAccountIdsScope() const {
|
||||
return excludeAccountIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setExcludeAccountIdsScope(const std::string &excludeAccountIdsScope) {
|
||||
excludeAccountIdsScope_ = excludeAccountIdsScope;
|
||||
setBodyParameter(std::string("ExcludeAccountIdsScope"), excludeAccountIdsScope);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getRegionIdsScope() const {
|
||||
return regionIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) {
|
||||
regionIdsScope_ = regionIdsScope;
|
||||
setBodyParameter(std::string("RegionIdsScope"), regionIdsScope);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getExcludeFolderIdsScope() const {
|
||||
return excludeFolderIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setExcludeFolderIdsScope(const std::string &excludeFolderIdsScope) {
|
||||
excludeFolderIdsScope_ = excludeFolderIdsScope;
|
||||
setBodyParameter(std::string("ExcludeFolderIdsScope"), excludeFolderIdsScope);
|
||||
}
|
||||
|
||||
int CreateAggregateConfigRuleRequest::getRiskLevel() const {
|
||||
return riskLevel_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setRiskLevel(int riskLevel) {
|
||||
riskLevel_ = riskLevel;
|
||||
setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel));
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getSourceOwner() const {
|
||||
return sourceOwner_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setSourceOwner(const std::string &sourceOwner) {
|
||||
sourceOwner_ = sourceOwner;
|
||||
setBodyParameter(std::string("SourceOwner"), sourceOwner);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getResourceGroupIdsScope() const {
|
||||
return resourceGroupIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) {
|
||||
resourceGroupIdsScope_ = resourceGroupIdsScope;
|
||||
setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getInputParameters() const {
|
||||
return inputParameters_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setInputParameters(const std::string &inputParameters) {
|
||||
inputParameters_ = inputParameters;
|
||||
setBodyParameter(std::string("InputParameters"), inputParameters);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getConfigRuleName() const {
|
||||
return configRuleName_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) {
|
||||
configRuleName_ = configRuleName;
|
||||
setBodyParameter(std::string("ConfigRuleName"), configRuleName);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getTagKeyLogicScope() const {
|
||||
return tagKeyLogicScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setTagKeyLogicScope(const std::string &tagKeyLogicScope) {
|
||||
tagKeyLogicScope_ = tagKeyLogicScope;
|
||||
setBodyParameter(std::string("TagKeyLogicScope"), tagKeyLogicScope);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getMaximumExecutionFrequency() const {
|
||||
return maximumExecutionFrequency_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) {
|
||||
maximumExecutionFrequency_ = maximumExecutionFrequency;
|
||||
setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getFolderIdsScope() const {
|
||||
return folderIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setFolderIdsScope(const std::string &folderIdsScope) {
|
||||
folderIdsScope_ = folderIdsScope;
|
||||
setBodyParameter(std::string("FolderIdsScope"), folderIdsScope);
|
||||
}
|
||||
|
||||
std::string CreateAggregateConfigRuleRequest::getExcludeResourceIdsScope() const {
|
||||
return excludeResourceIdsScope_;
|
||||
}
|
||||
|
||||
void CreateAggregateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) {
|
||||
excludeResourceIdsScope_ = excludeResourceIdsScope;
|
||||
setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
|
||||
}
|
||||
|
||||
@@ -14,39 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GetSupportedResourceTypesResult.h>
|
||||
#include <alibabacloud/config/model/CreateAggregateConfigRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetSupportedResourceTypesResult::GetSupportedResourceTypesResult() :
|
||||
CreateAggregateConfigRuleResult::CreateAggregateConfigRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSupportedResourceTypesResult::GetSupportedResourceTypesResult(const std::string &payload) :
|
||||
CreateAggregateConfigRuleResult::CreateAggregateConfigRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSupportedResourceTypesResult::~GetSupportedResourceTypesResult()
|
||||
CreateAggregateConfigRuleResult::~CreateAggregateConfigRuleResult()
|
||||
{}
|
||||
|
||||
void GetSupportedResourceTypesResult::parse(const std::string &payload)
|
||||
void CreateAggregateConfigRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResourceTypes = value["ResourceTypes"]["ResourceType"];
|
||||
for (const auto &item : allResourceTypes)
|
||||
resourceTypes_.push_back(item.asString());
|
||||
if(!value["ConfigRuleId"].isNull())
|
||||
configRuleId_ = value["ConfigRuleId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> GetSupportedResourceTypesResult::getResourceTypes()const
|
||||
std::string CreateAggregateConfigRuleResult::getConfigRuleId()const
|
||||
{
|
||||
return resourceTypes_;
|
||||
return configRuleId_;
|
||||
}
|
||||
|
||||
99
config/src/model/CreateAggregateRemediationRequest.cc
Normal file
99
config/src/model/CreateAggregateRemediationRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateAggregateRemediationRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateAggregateRemediationRequest;
|
||||
|
||||
CreateAggregateRemediationRequest::CreateAggregateRemediationRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateAggregateRemediation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAggregateRemediationRequest::~CreateAggregateRemediationRequest() {}
|
||||
|
||||
std::string CreateAggregateRemediationRequest::getConfigRuleId() const {
|
||||
return configRuleId_;
|
||||
}
|
||||
|
||||
void CreateAggregateRemediationRequest::setConfigRuleId(const std::string &configRuleId) {
|
||||
configRuleId_ = configRuleId;
|
||||
setBodyParameter(std::string("ConfigRuleId"), configRuleId);
|
||||
}
|
||||
|
||||
std::string CreateAggregateRemediationRequest::getRemediationType() const {
|
||||
return remediationType_;
|
||||
}
|
||||
|
||||
void CreateAggregateRemediationRequest::setRemediationType(const std::string &remediationType) {
|
||||
remediationType_ = remediationType;
|
||||
setBodyParameter(std::string("RemediationType"), remediationType);
|
||||
}
|
||||
|
||||
std::string CreateAggregateRemediationRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateAggregateRemediationRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateAggregateRemediationRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void CreateAggregateRemediationRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setBodyParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string CreateAggregateRemediationRequest::getSourceType() const {
|
||||
return sourceType_;
|
||||
}
|
||||
|
||||
void CreateAggregateRemediationRequest::setSourceType(const std::string &sourceType) {
|
||||
sourceType_ = sourceType;
|
||||
setBodyParameter(std::string("SourceType"), sourceType);
|
||||
}
|
||||
|
||||
std::string CreateAggregateRemediationRequest::getRemediationTemplateId() const {
|
||||
return remediationTemplateId_;
|
||||
}
|
||||
|
||||
void CreateAggregateRemediationRequest::setRemediationTemplateId(const std::string &remediationTemplateId) {
|
||||
remediationTemplateId_ = remediationTemplateId;
|
||||
setBodyParameter(std::string("RemediationTemplateId"), remediationTemplateId);
|
||||
}
|
||||
|
||||
std::string CreateAggregateRemediationRequest::getParams() const {
|
||||
return params_;
|
||||
}
|
||||
|
||||
void CreateAggregateRemediationRequest::setParams(const std::string ¶ms) {
|
||||
params_ = params;
|
||||
setBodyParameter(std::string("Params"), params);
|
||||
}
|
||||
|
||||
std::string CreateAggregateRemediationRequest::getInvokeType() const {
|
||||
return invokeType_;
|
||||
}
|
||||
|
||||
void CreateAggregateRemediationRequest::setInvokeType(const std::string &invokeType) {
|
||||
invokeType_ = invokeType;
|
||||
setBodyParameter(std::string("InvokeType"), invokeType);
|
||||
}
|
||||
|
||||
51
config/src/model/CreateAggregateRemediationResult.cc
Normal file
51
config/src/model/CreateAggregateRemediationResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateAggregateRemediationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CreateAggregateRemediationResult::CreateAggregateRemediationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAggregateRemediationResult::CreateAggregateRemediationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAggregateRemediationResult::~CreateAggregateRemediationResult()
|
||||
{}
|
||||
|
||||
void CreateAggregateRemediationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RemediationId"].isNull())
|
||||
remediationId_ = value["RemediationId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAggregateRemediationResult::getRemediationId()const
|
||||
{
|
||||
return remediationId_;
|
||||
}
|
||||
|
||||
76
config/src/model/CreateAggregatorRequest.cc
Normal file
76
config/src/model/CreateAggregatorRequest.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/config/model/CreateAggregatorRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateAggregatorRequest;
|
||||
|
||||
CreateAggregatorRequest::CreateAggregatorRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateAggregator") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAggregatorRequest::~CreateAggregatorRequest() {}
|
||||
|
||||
std::string CreateAggregatorRequest::getAggregatorType() const {
|
||||
return aggregatorType_;
|
||||
}
|
||||
|
||||
void CreateAggregatorRequest::setAggregatorType(const std::string &aggregatorType) {
|
||||
aggregatorType_ = aggregatorType;
|
||||
setBodyParameter(std::string("AggregatorType"), aggregatorType);
|
||||
}
|
||||
|
||||
std::string CreateAggregatorRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateAggregatorRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateAggregatorRequest::getAggregatorName() const {
|
||||
return aggregatorName_;
|
||||
}
|
||||
|
||||
void CreateAggregatorRequest::setAggregatorName(const std::string &aggregatorName) {
|
||||
aggregatorName_ = aggregatorName;
|
||||
setBodyParameter(std::string("AggregatorName"), aggregatorName);
|
||||
}
|
||||
|
||||
std::string CreateAggregatorRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateAggregatorRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::vector<CreateAggregatorRequest::AggregatorAccounts> CreateAggregatorRequest::getAggregatorAccounts() const {
|
||||
return aggregatorAccounts_;
|
||||
}
|
||||
|
||||
void CreateAggregatorRequest::setAggregatorAccounts(const std::vector<CreateAggregatorRequest::AggregatorAccounts> &aggregatorAccounts) {
|
||||
aggregatorAccounts_ = aggregatorAccounts;
|
||||
for(int dep1 = 0; dep1 != aggregatorAccounts.size(); dep1++) {
|
||||
setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountId", std::to_string(aggregatorAccounts[dep1].accountId));
|
||||
setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountName", aggregatorAccounts[dep1].accountName);
|
||||
setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountType", aggregatorAccounts[dep1].accountType);
|
||||
}
|
||||
}
|
||||
|
||||
51
config/src/model/CreateAggregatorResult.cc
Normal file
51
config/src/model/CreateAggregatorResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateAggregatorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CreateAggregatorResult::CreateAggregatorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAggregatorResult::CreateAggregatorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAggregatorResult::~CreateAggregatorResult()
|
||||
{}
|
||||
|
||||
void CreateAggregatorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AggregatorId"].isNull())
|
||||
aggregatorId_ = value["AggregatorId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAggregatorResult::getAggregatorId()const
|
||||
{
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
145
config/src/model/CreateCompliancePackRequest.cc
Normal file
145
config/src/model/CreateCompliancePackRequest.cc
Normal file
@@ -0,0 +1,145 @@
|
||||
/*
|
||||
* 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/config/model/CreateCompliancePackRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateCompliancePackRequest;
|
||||
|
||||
CreateCompliancePackRequest::CreateCompliancePackRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateCompliancePack") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCompliancePackRequest::~CreateCompliancePackRequest() {}
|
||||
|
||||
std::string CreateCompliancePackRequest::getTagKeyScope() const {
|
||||
return tagKeyScope_;
|
||||
}
|
||||
|
||||
void CreateCompliancePackRequest::setTagKeyScope(const std::string &tagKeyScope) {
|
||||
tagKeyScope_ = tagKeyScope;
|
||||
setBodyParameter(std::string("TagKeyScope"), tagKeyScope);
|
||||
}
|
||||
|
||||
std::string CreateCompliancePackRequest::getCompliancePackName() const {
|
||||
return compliancePackName_;
|
||||
}
|
||||
|
||||
void CreateCompliancePackRequest::setCompliancePackName(const std::string &compliancePackName) {
|
||||
compliancePackName_ = compliancePackName;
|
||||
setBodyParameter(std::string("CompliancePackName"), compliancePackName);
|
||||
}
|
||||
|
||||
std::string CreateCompliancePackRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateCompliancePackRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateCompliancePackRequest::getCompliancePackTemplateId() const {
|
||||
return compliancePackTemplateId_;
|
||||
}
|
||||
|
||||
void CreateCompliancePackRequest::setCompliancePackTemplateId(const std::string &compliancePackTemplateId) {
|
||||
compliancePackTemplateId_ = compliancePackTemplateId;
|
||||
setBodyParameter(std::string("CompliancePackTemplateId"), compliancePackTemplateId);
|
||||
}
|
||||
|
||||
std::string CreateCompliancePackRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateCompliancePackRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateCompliancePackRequest::getTagValueScope() const {
|
||||
return tagValueScope_;
|
||||
}
|
||||
|
||||
void CreateCompliancePackRequest::setTagValueScope(const std::string &tagValueScope) {
|
||||
tagValueScope_ = tagValueScope;
|
||||
setBodyParameter(std::string("TagValueScope"), tagValueScope);
|
||||
}
|
||||
|
||||
std::string CreateCompliancePackRequest::getRegionIdsScope() const {
|
||||
return regionIdsScope_;
|
||||
}
|
||||
|
||||
void CreateCompliancePackRequest::setRegionIdsScope(const std::string ®ionIdsScope) {
|
||||
regionIdsScope_ = regionIdsScope;
|
||||
setBodyParameter(std::string("RegionIdsScope"), regionIdsScope);
|
||||
}
|
||||
|
||||
bool CreateCompliancePackRequest::getDefaultEnable() const {
|
||||
return defaultEnable_;
|
||||
}
|
||||
|
||||
void CreateCompliancePackRequest::setDefaultEnable(bool defaultEnable) {
|
||||
defaultEnable_ = defaultEnable;
|
||||
setBodyParameter(std::string("DefaultEnable"), defaultEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateCompliancePackRequest::ConfigRules> CreateCompliancePackRequest::getConfigRules() const {
|
||||
return configRules_;
|
||||
}
|
||||
|
||||
void CreateCompliancePackRequest::setConfigRules(const std::vector<CreateCompliancePackRequest::ConfigRules> &configRules) {
|
||||
configRules_ = configRules;
|
||||
for(int dep1 = 0; dep1 != configRules.size(); dep1++) {
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ManagedRuleIdentifier", configRules[dep1].managedRuleIdentifier);
|
||||
for(int dep2 = 0; dep2 != configRules[dep1].configRuleParameters.size(); dep2++) {
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterValue", configRules[dep1].configRuleParameters[dep2].parameterValue);
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterName", configRules[dep1].configRuleParameters[dep2].parameterName);
|
||||
}
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleId", configRules[dep1].configRuleId);
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleName", configRules[dep1].configRuleName);
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".Description", configRules[dep1].description);
|
||||
setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".RiskLevel", std::to_string(configRules[dep1].riskLevel));
|
||||
}
|
||||
}
|
||||
|
||||
int CreateCompliancePackRequest::getRiskLevel() const {
|
||||
return riskLevel_;
|
||||
}
|
||||
|
||||
void CreateCompliancePackRequest::setRiskLevel(int riskLevel) {
|
||||
riskLevel_ = riskLevel;
|
||||
setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel));
|
||||
}
|
||||
|
||||
std::string CreateCompliancePackRequest::getResourceGroupIdsScope() const {
|
||||
return resourceGroupIdsScope_;
|
||||
}
|
||||
|
||||
void CreateCompliancePackRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) {
|
||||
resourceGroupIdsScope_ = resourceGroupIdsScope;
|
||||
setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope);
|
||||
}
|
||||
|
||||
std::string CreateCompliancePackRequest::getExcludeResourceIdsScope() const {
|
||||
return excludeResourceIdsScope_;
|
||||
}
|
||||
|
||||
void CreateCompliancePackRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) {
|
||||
excludeResourceIdsScope_ = excludeResourceIdsScope;
|
||||
setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
|
||||
}
|
||||
|
||||
51
config/src/model/CreateCompliancePackResult.cc
Normal file
51
config/src/model/CreateCompliancePackResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateCompliancePackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CreateCompliancePackResult::CreateCompliancePackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCompliancePackResult::CreateCompliancePackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCompliancePackResult::~CreateCompliancePackResult()
|
||||
{}
|
||||
|
||||
void CreateCompliancePackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CompliancePackId"].isNull())
|
||||
compliancePackId_ = value["CompliancePackId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCompliancePackResult::getCompliancePackId()const
|
||||
{
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
126
config/src/model/CreateConfigDeliveryChannelRequest.cc
Normal file
126
config/src/model/CreateConfigDeliveryChannelRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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/config/model/CreateConfigDeliveryChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateConfigDeliveryChannelRequest;
|
||||
|
||||
CreateConfigDeliveryChannelRequest::CreateConfigDeliveryChannelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateConfigDeliveryChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateConfigDeliveryChannelRequest::~CreateConfigDeliveryChannelRequest() {}
|
||||
|
||||
bool CreateConfigDeliveryChannelRequest::getNonCompliantNotification() const {
|
||||
return nonCompliantNotification_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) {
|
||||
nonCompliantNotification_ = nonCompliantNotification;
|
||||
setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool CreateConfigDeliveryChannelRequest::getConfigurationSnapshot() const {
|
||||
return configurationSnapshot_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) {
|
||||
configurationSnapshot_ = configurationSnapshot;
|
||||
setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const {
|
||||
return deliveryChannelTargetArn_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) {
|
||||
deliveryChannelTargetArn_ = deliveryChannelTargetArn;
|
||||
setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn);
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const {
|
||||
return deliveryChannelCondition_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) {
|
||||
deliveryChannelCondition_ = deliveryChannelCondition;
|
||||
setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition);
|
||||
}
|
||||
|
||||
bool CreateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const {
|
||||
return configurationItemChangeNotification_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) {
|
||||
configurationItemChangeNotification_ = configurationItemChangeNotification;
|
||||
setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelName() const {
|
||||
return deliveryChannelName_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) {
|
||||
deliveryChannelName_ = deliveryChannelName;
|
||||
setParameter(std::string("DeliveryChannelName"), deliveryChannelName);
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getDeliverySnapshotTime() const {
|
||||
return deliverySnapshotTime_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setDeliverySnapshotTime(const std::string &deliverySnapshotTime) {
|
||||
deliverySnapshotTime_ = deliverySnapshotTime;
|
||||
setParameter(std::string("DeliverySnapshotTime"), deliverySnapshotTime);
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const {
|
||||
return oversizedDataOSSTargetArn_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) {
|
||||
oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn;
|
||||
setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn);
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelType() const {
|
||||
return deliveryChannelType_;
|
||||
}
|
||||
|
||||
void CreateConfigDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) {
|
||||
deliveryChannelType_ = deliveryChannelType;
|
||||
setParameter(std::string("DeliveryChannelType"), deliveryChannelType);
|
||||
}
|
||||
|
||||
51
config/src/model/CreateConfigDeliveryChannelResult.cc
Normal file
51
config/src/model/CreateConfigDeliveryChannelResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateConfigDeliveryChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CreateConfigDeliveryChannelResult::CreateConfigDeliveryChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateConfigDeliveryChannelResult::CreateConfigDeliveryChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateConfigDeliveryChannelResult::~CreateConfigDeliveryChannelResult()
|
||||
{}
|
||||
|
||||
void CreateConfigDeliveryChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DeliveryChannelId"].isNull())
|
||||
deliveryChannelId_ = value["DeliveryChannelId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateConfigDeliveryChannelResult::getDeliveryChannelId()const
|
||||
{
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
173
config/src/model/CreateConfigRuleRequest.cc
Normal file
173
config/src/model/CreateConfigRuleRequest.cc
Normal file
@@ -0,0 +1,173 @@
|
||||
/*
|
||||
* 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/config/model/CreateConfigRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateConfigRuleRequest;
|
||||
|
||||
CreateConfigRuleRequest::CreateConfigRuleRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateConfigRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateConfigRuleRequest::~CreateConfigRuleRequest() {}
|
||||
|
||||
std::string CreateConfigRuleRequest::getTagKeyScope() const {
|
||||
return tagKeyScope_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setTagKeyScope(const std::string &tagKeyScope) {
|
||||
tagKeyScope_ = tagKeyScope;
|
||||
setBodyParameter(std::string("TagKeyScope"), tagKeyScope);
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::vector<CreateConfigRuleRequest::std::string> CreateConfigRuleRequest::getResourceTypesScope() const {
|
||||
return resourceTypesScope_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setResourceTypesScope(const std::vector<CreateConfigRuleRequest::std::string> &resourceTypesScope) {
|
||||
resourceTypesScope_ = resourceTypesScope;
|
||||
for(int dep1 = 0; dep1 != resourceTypesScope.size(); dep1++) {
|
||||
setBodyParameter(std::string("ResourceTypesScope") + "." + std::to_string(dep1 + 1), resourceTypesScope[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getConfigRuleTriggerTypes() const {
|
||||
return configRuleTriggerTypes_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes) {
|
||||
configRuleTriggerTypes_ = configRuleTriggerTypes;
|
||||
setBodyParameter(std::string("ConfigRuleTriggerTypes"), configRuleTriggerTypes);
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getSourceIdentifier() const {
|
||||
return sourceIdentifier_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setSourceIdentifier(const std::string &sourceIdentifier) {
|
||||
sourceIdentifier_ = sourceIdentifier;
|
||||
setBodyParameter(std::string("SourceIdentifier"), sourceIdentifier);
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getTagValueScope() const {
|
||||
return tagValueScope_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setTagValueScope(const std::string &tagValueScope) {
|
||||
tagValueScope_ = tagValueScope;
|
||||
setBodyParameter(std::string("TagValueScope"), tagValueScope);
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getRegionIdsScope() const {
|
||||
return regionIdsScope_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) {
|
||||
regionIdsScope_ = regionIdsScope;
|
||||
setBodyParameter(std::string("RegionIdsScope"), regionIdsScope);
|
||||
}
|
||||
|
||||
int CreateConfigRuleRequest::getRiskLevel() const {
|
||||
return riskLevel_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setRiskLevel(int riskLevel) {
|
||||
riskLevel_ = riskLevel;
|
||||
setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel));
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getSourceOwner() const {
|
||||
return sourceOwner_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setSourceOwner(const std::string &sourceOwner) {
|
||||
sourceOwner_ = sourceOwner;
|
||||
setBodyParameter(std::string("SourceOwner"), sourceOwner);
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getResourceGroupIdsScope() const {
|
||||
return resourceGroupIdsScope_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) {
|
||||
resourceGroupIdsScope_ = resourceGroupIdsScope;
|
||||
setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope);
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getInputParameters() const {
|
||||
return inputParameters_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setInputParameters(const std::string &inputParameters) {
|
||||
inputParameters_ = inputParameters;
|
||||
setBodyParameter(std::string("InputParameters"), inputParameters);
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getConfigRuleName() const {
|
||||
return configRuleName_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) {
|
||||
configRuleName_ = configRuleName;
|
||||
setBodyParameter(std::string("ConfigRuleName"), configRuleName);
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getTagKeyLogicScope() const {
|
||||
return tagKeyLogicScope_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setTagKeyLogicScope(const std::string &tagKeyLogicScope) {
|
||||
tagKeyLogicScope_ = tagKeyLogicScope;
|
||||
setBodyParameter(std::string("TagKeyLogicScope"), tagKeyLogicScope);
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getMaximumExecutionFrequency() const {
|
||||
return maximumExecutionFrequency_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) {
|
||||
maximumExecutionFrequency_ = maximumExecutionFrequency;
|
||||
setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency);
|
||||
}
|
||||
|
||||
std::string CreateConfigRuleRequest::getExcludeResourceIdsScope() const {
|
||||
return excludeResourceIdsScope_;
|
||||
}
|
||||
|
||||
void CreateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) {
|
||||
excludeResourceIdsScope_ = excludeResourceIdsScope;
|
||||
setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/PutConfigRuleResult.h>
|
||||
#include <alibabacloud/config/model/CreateConfigRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
PutConfigRuleResult::PutConfigRuleResult() :
|
||||
CreateConfigRuleResult::CreateConfigRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PutConfigRuleResult::PutConfigRuleResult(const std::string &payload) :
|
||||
CreateConfigRuleResult::CreateConfigRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PutConfigRuleResult::~PutConfigRuleResult()
|
||||
CreateConfigRuleResult::~CreateConfigRuleResult()
|
||||
{}
|
||||
|
||||
void PutConfigRuleResult::parse(const std::string &payload)
|
||||
void CreateConfigRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -44,7 +44,7 @@ void PutConfigRuleResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string PutConfigRuleResult::getConfigRuleId()const
|
||||
std::string CreateConfigRuleResult::getConfigRuleId()const
|
||||
{
|
||||
return configRuleId_;
|
||||
}
|
||||
126
config/src/model/CreateDeliveryChannelRequest.cc
Normal file
126
config/src/model/CreateDeliveryChannelRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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/config/model/CreateDeliveryChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateDeliveryChannelRequest;
|
||||
|
||||
CreateDeliveryChannelRequest::CreateDeliveryChannelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateDeliveryChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDeliveryChannelRequest::~CreateDeliveryChannelRequest() {}
|
||||
|
||||
bool CreateDeliveryChannelRequest::getNonCompliantNotification() const {
|
||||
return nonCompliantNotification_;
|
||||
}
|
||||
|
||||
void CreateDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) {
|
||||
nonCompliantNotification_ = nonCompliantNotification;
|
||||
setBodyParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDeliveryChannelRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDeliveryChannelRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool CreateDeliveryChannelRequest::getConfigurationSnapshot() const {
|
||||
return configurationSnapshot_;
|
||||
}
|
||||
|
||||
void CreateDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) {
|
||||
configurationSnapshot_ = configurationSnapshot;
|
||||
setBodyParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDeliveryChannelRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateDeliveryChannelRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateDeliveryChannelRequest::getDeliveryChannelTargetArn() const {
|
||||
return deliveryChannelTargetArn_;
|
||||
}
|
||||
|
||||
void CreateDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) {
|
||||
deliveryChannelTargetArn_ = deliveryChannelTargetArn;
|
||||
setBodyParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn);
|
||||
}
|
||||
|
||||
std::string CreateDeliveryChannelRequest::getDeliveryChannelCondition() const {
|
||||
return deliveryChannelCondition_;
|
||||
}
|
||||
|
||||
void CreateDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) {
|
||||
deliveryChannelCondition_ = deliveryChannelCondition;
|
||||
setBodyParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition);
|
||||
}
|
||||
|
||||
bool CreateDeliveryChannelRequest::getConfigurationItemChangeNotification() const {
|
||||
return configurationItemChangeNotification_;
|
||||
}
|
||||
|
||||
void CreateDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) {
|
||||
configurationItemChangeNotification_ = configurationItemChangeNotification;
|
||||
setBodyParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDeliveryChannelRequest::getDeliveryChannelAssumeRoleArn() const {
|
||||
return deliveryChannelAssumeRoleArn_;
|
||||
}
|
||||
|
||||
void CreateDeliveryChannelRequest::setDeliveryChannelAssumeRoleArn(const std::string &deliveryChannelAssumeRoleArn) {
|
||||
deliveryChannelAssumeRoleArn_ = deliveryChannelAssumeRoleArn;
|
||||
setBodyParameter(std::string("DeliveryChannelAssumeRoleArn"), deliveryChannelAssumeRoleArn);
|
||||
}
|
||||
|
||||
std::string CreateDeliveryChannelRequest::getDeliveryChannelName() const {
|
||||
return deliveryChannelName_;
|
||||
}
|
||||
|
||||
void CreateDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) {
|
||||
deliveryChannelName_ = deliveryChannelName;
|
||||
setBodyParameter(std::string("DeliveryChannelName"), deliveryChannelName);
|
||||
}
|
||||
|
||||
std::string CreateDeliveryChannelRequest::getOversizedDataOSSTargetArn() const {
|
||||
return oversizedDataOSSTargetArn_;
|
||||
}
|
||||
|
||||
void CreateDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) {
|
||||
oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn;
|
||||
setBodyParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn);
|
||||
}
|
||||
|
||||
std::string CreateDeliveryChannelRequest::getDeliveryChannelType() const {
|
||||
return deliveryChannelType_;
|
||||
}
|
||||
|
||||
void CreateDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) {
|
||||
deliveryChannelType_ = deliveryChannelType;
|
||||
setBodyParameter(std::string("DeliveryChannelType"), deliveryChannelType);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/PutDeliveryChannelResult.h>
|
||||
#include <alibabacloud/config/model/CreateDeliveryChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
PutDeliveryChannelResult::PutDeliveryChannelResult() :
|
||||
CreateDeliveryChannelResult::CreateDeliveryChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PutDeliveryChannelResult::PutDeliveryChannelResult(const std::string &payload) :
|
||||
CreateDeliveryChannelResult::CreateDeliveryChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PutDeliveryChannelResult::~PutDeliveryChannelResult()
|
||||
CreateDeliveryChannelResult::~CreateDeliveryChannelResult()
|
||||
{}
|
||||
|
||||
void PutDeliveryChannelResult::parse(const std::string &payload)
|
||||
void CreateDeliveryChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -44,7 +44,7 @@ void PutDeliveryChannelResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string PutDeliveryChannelResult::getDeliveryChannelId()const
|
||||
std::string CreateDeliveryChannelResult::getDeliveryChannelId()const
|
||||
{
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
90
config/src/model/CreateRemediationRequest.cc
Normal file
90
config/src/model/CreateRemediationRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/config/model/CreateRemediationRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::CreateRemediationRequest;
|
||||
|
||||
CreateRemediationRequest::CreateRemediationRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "CreateRemediation") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRemediationRequest::~CreateRemediationRequest() {}
|
||||
|
||||
std::string CreateRemediationRequest::getConfigRuleId() const {
|
||||
return configRuleId_;
|
||||
}
|
||||
|
||||
void CreateRemediationRequest::setConfigRuleId(const std::string &configRuleId) {
|
||||
configRuleId_ = configRuleId;
|
||||
setBodyParameter(std::string("ConfigRuleId"), configRuleId);
|
||||
}
|
||||
|
||||
std::string CreateRemediationRequest::getRemediationType() const {
|
||||
return remediationType_;
|
||||
}
|
||||
|
||||
void CreateRemediationRequest::setRemediationType(const std::string &remediationType) {
|
||||
remediationType_ = remediationType;
|
||||
setBodyParameter(std::string("RemediationType"), remediationType);
|
||||
}
|
||||
|
||||
std::string CreateRemediationRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateRemediationRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateRemediationRequest::getSourceType() const {
|
||||
return sourceType_;
|
||||
}
|
||||
|
||||
void CreateRemediationRequest::setSourceType(const std::string &sourceType) {
|
||||
sourceType_ = sourceType;
|
||||
setBodyParameter(std::string("SourceType"), sourceType);
|
||||
}
|
||||
|
||||
std::string CreateRemediationRequest::getRemediationTemplateId() const {
|
||||
return remediationTemplateId_;
|
||||
}
|
||||
|
||||
void CreateRemediationRequest::setRemediationTemplateId(const std::string &remediationTemplateId) {
|
||||
remediationTemplateId_ = remediationTemplateId;
|
||||
setBodyParameter(std::string("RemediationTemplateId"), remediationTemplateId);
|
||||
}
|
||||
|
||||
std::string CreateRemediationRequest::getParams() const {
|
||||
return params_;
|
||||
}
|
||||
|
||||
void CreateRemediationRequest::setParams(const std::string ¶ms) {
|
||||
params_ = params;
|
||||
setBodyParameter(std::string("Params"), params);
|
||||
}
|
||||
|
||||
std::string CreateRemediationRequest::getInvokeType() const {
|
||||
return invokeType_;
|
||||
}
|
||||
|
||||
void CreateRemediationRequest::setInvokeType(const std::string &invokeType) {
|
||||
invokeType_ = invokeType;
|
||||
setBodyParameter(std::string("InvokeType"), invokeType);
|
||||
}
|
||||
|
||||
51
config/src/model/CreateRemediationResult.cc
Normal file
51
config/src/model/CreateRemediationResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/CreateRemediationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
CreateRemediationResult::CreateRemediationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRemediationResult::CreateRemediationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRemediationResult::~CreateRemediationResult()
|
||||
{}
|
||||
|
||||
void CreateRemediationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RemediationId"].isNull())
|
||||
remediationId_ = value["RemediationId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateRemediationResult::getRemediationId()const
|
||||
{
|
||||
return remediationId_;
|
||||
}
|
||||
|
||||
45
config/src/model/DeactiveAggregateConfigRulesRequest.cc
Normal file
45
config/src/model/DeactiveAggregateConfigRulesRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/DeactiveAggregateConfigRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DeactiveAggregateConfigRulesRequest;
|
||||
|
||||
DeactiveAggregateConfigRulesRequest::DeactiveAggregateConfigRulesRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "DeactiveAggregateConfigRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeactiveAggregateConfigRulesRequest::~DeactiveAggregateConfigRulesRequest() {}
|
||||
|
||||
std::string DeactiveAggregateConfigRulesRequest::getConfigRuleIds() const {
|
||||
return configRuleIds_;
|
||||
}
|
||||
|
||||
void DeactiveAggregateConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) {
|
||||
configRuleIds_ = configRuleIds;
|
||||
setParameter(std::string("ConfigRuleIds"), configRuleIds);
|
||||
}
|
||||
|
||||
std::string DeactiveAggregateConfigRulesRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void DeactiveAggregateConfigRulesRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
62
config/src/model/DeactiveAggregateConfigRulesResult.cc
Normal file
62
config/src/model/DeactiveAggregateConfigRulesResult.cc
Normal 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/config/model/DeactiveAggregateConfigRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
DeactiveAggregateConfigRulesResult::DeactiveAggregateConfigRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeactiveAggregateConfigRulesResult::DeactiveAggregateConfigRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeactiveAggregateConfigRulesResult::~DeactiveAggregateConfigRulesResult()
|
||||
{}
|
||||
|
||||
void DeactiveAggregateConfigRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto operateRuleResultNode = value["OperateRuleResult"];
|
||||
auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"];
|
||||
for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode)
|
||||
{
|
||||
OperateRuleResult::OperateRuleItem operateRuleItemObject;
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull())
|
||||
operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString();
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull())
|
||||
operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true";
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull())
|
||||
operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString();
|
||||
operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DeactiveAggregateConfigRulesResult::OperateRuleResult DeactiveAggregateConfigRulesResult::getOperateRuleResult()const
|
||||
{
|
||||
return operateRuleResult_;
|
||||
}
|
||||
|
||||
@@ -14,22 +14,22 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/StopConfigRulesRequest.h>
|
||||
#include <alibabacloud/config/model/DeactiveConfigRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::StopConfigRulesRequest;
|
||||
using AlibabaCloud::Config::Model::DeactiveConfigRulesRequest;
|
||||
|
||||
StopConfigRulesRequest::StopConfigRulesRequest()
|
||||
: RpcServiceRequest("config", "2019-01-08", "StopConfigRules") {
|
||||
DeactiveConfigRulesRequest::DeactiveConfigRulesRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "DeactiveConfigRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopConfigRulesRequest::~StopConfigRulesRequest() {}
|
||||
DeactiveConfigRulesRequest::~DeactiveConfigRulesRequest() {}
|
||||
|
||||
std::string StopConfigRulesRequest::getConfigRuleIds() const {
|
||||
std::string DeactiveConfigRulesRequest::getConfigRuleIds() const {
|
||||
return configRuleIds_;
|
||||
}
|
||||
|
||||
void StopConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) {
|
||||
void DeactiveConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) {
|
||||
configRuleIds_ = configRuleIds;
|
||||
setParameter(std::string("ConfigRuleIds"), configRuleIds);
|
||||
}
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/StopConfigRulesResult.h>
|
||||
#include <alibabacloud/config/model/DeactiveConfigRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
StopConfigRulesResult::StopConfigRulesResult() :
|
||||
DeactiveConfigRulesResult::DeactiveConfigRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopConfigRulesResult::StopConfigRulesResult(const std::string &payload) :
|
||||
DeactiveConfigRulesResult::DeactiveConfigRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopConfigRulesResult::~StopConfigRulesResult()
|
||||
DeactiveConfigRulesResult::~DeactiveConfigRulesResult()
|
||||
{}
|
||||
|
||||
void StopConfigRulesResult::parse(const std::string &payload)
|
||||
void DeactiveConfigRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -55,7 +55,7 @@ void StopConfigRulesResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
StopConfigRulesResult::OperateRuleResult StopConfigRulesResult::getOperateRuleResult()const
|
||||
DeactiveConfigRulesResult::OperateRuleResult DeactiveConfigRulesResult::getOperateRuleResult()const
|
||||
{
|
||||
return operateRuleResult_;
|
||||
}
|
||||
63
config/src/model/DeleteAggregateCompliancePacksRequest.cc
Normal file
63
config/src/model/DeleteAggregateCompliancePacksRequest.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/config/model/DeleteAggregateCompliancePacksRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DeleteAggregateCompliancePacksRequest;
|
||||
|
||||
DeleteAggregateCompliancePacksRequest::DeleteAggregateCompliancePacksRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "DeleteAggregateCompliancePacks") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAggregateCompliancePacksRequest::~DeleteAggregateCompliancePacksRequest() {}
|
||||
|
||||
std::string DeleteAggregateCompliancePacksRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteAggregateCompliancePacksRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteAggregateCompliancePacksRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void DeleteAggregateCompliancePacksRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setBodyParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string DeleteAggregateCompliancePacksRequest::getCompliancePackIds() const {
|
||||
return compliancePackIds_;
|
||||
}
|
||||
|
||||
void DeleteAggregateCompliancePacksRequest::setCompliancePackIds(const std::string &compliancePackIds) {
|
||||
compliancePackIds_ = compliancePackIds;
|
||||
setBodyParameter(std::string("CompliancePackIds"), compliancePackIds);
|
||||
}
|
||||
|
||||
bool DeleteAggregateCompliancePacksRequest::getDeleteRule() const {
|
||||
return deleteRule_;
|
||||
}
|
||||
|
||||
void DeleteAggregateCompliancePacksRequest::setDeleteRule(bool deleteRule) {
|
||||
deleteRule_ = deleteRule;
|
||||
setBodyParameter(std::string("DeleteRule"), deleteRule ? "true" : "false");
|
||||
}
|
||||
|
||||
62
config/src/model/DeleteAggregateCompliancePacksResult.cc
Normal file
62
config/src/model/DeleteAggregateCompliancePacksResult.cc
Normal 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/config/model/DeleteAggregateCompliancePacksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
DeleteAggregateCompliancePacksResult::DeleteAggregateCompliancePacksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAggregateCompliancePacksResult::DeleteAggregateCompliancePacksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAggregateCompliancePacksResult::~DeleteAggregateCompliancePacksResult()
|
||||
{}
|
||||
|
||||
void DeleteAggregateCompliancePacksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto operateCompliancePacksResultNode = value["OperateCompliancePacksResult"];
|
||||
auto allOperateCompliancePacksNode = operateCompliancePacksResultNode["OperateCompliancePacks"]["OperateCompliancePacksItem"];
|
||||
for (auto operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem : allOperateCompliancePacksNode)
|
||||
{
|
||||
OperateCompliancePacksResult::OperateCompliancePacksItem operateCompliancePacksItemObject;
|
||||
if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["CompliancePackId"].isNull())
|
||||
operateCompliancePacksItemObject.compliancePackId = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["CompliancePackId"].asString();
|
||||
if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["ErrorCode"].isNull())
|
||||
operateCompliancePacksItemObject.errorCode = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["ErrorCode"].asString();
|
||||
if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["Success"].isNull())
|
||||
operateCompliancePacksItemObject.success = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["Success"].asString() == "true";
|
||||
operateCompliancePacksResult_.operateCompliancePacks.push_back(operateCompliancePacksItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DeleteAggregateCompliancePacksResult::OperateCompliancePacksResult DeleteAggregateCompliancePacksResult::getOperateCompliancePacksResult()const
|
||||
{
|
||||
return operateCompliancePacksResult_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/DeleteAggregateConfigDeliveryChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DeleteAggregateConfigDeliveryChannelRequest;
|
||||
|
||||
DeleteAggregateConfigDeliveryChannelRequest::DeleteAggregateConfigDeliveryChannelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "DeleteAggregateConfigDeliveryChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAggregateConfigDeliveryChannelRequest::~DeleteAggregateConfigDeliveryChannelRequest() {}
|
||||
|
||||
std::string DeleteAggregateConfigDeliveryChannelRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void DeleteAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string DeleteAggregateConfigDeliveryChannelRequest::getDeliveryChannelId() const {
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
void DeleteAggregateConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) {
|
||||
deliveryChannelId_ = deliveryChannelId;
|
||||
setParameter(std::string("DeliveryChannelId"), deliveryChannelId);
|
||||
}
|
||||
|
||||
@@ -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/config/model/DeleteAggregateConfigDeliveryChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
DeleteAggregateConfigDeliveryChannelResult::DeleteAggregateConfigDeliveryChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAggregateConfigDeliveryChannelResult::DeleteAggregateConfigDeliveryChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAggregateConfigDeliveryChannelResult::~DeleteAggregateConfigDeliveryChannelResult()
|
||||
{}
|
||||
|
||||
void DeleteAggregateConfigDeliveryChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DeliveryChannelId"].isNull())
|
||||
deliveryChannelId_ = value["DeliveryChannelId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteAggregateConfigDeliveryChannelResult::getDeliveryChannelId()const
|
||||
{
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
45
config/src/model/DeleteAggregateConfigRulesRequest.cc
Normal file
45
config/src/model/DeleteAggregateConfigRulesRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/DeleteAggregateConfigRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DeleteAggregateConfigRulesRequest;
|
||||
|
||||
DeleteAggregateConfigRulesRequest::DeleteAggregateConfigRulesRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "DeleteAggregateConfigRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAggregateConfigRulesRequest::~DeleteAggregateConfigRulesRequest() {}
|
||||
|
||||
std::string DeleteAggregateConfigRulesRequest::getConfigRuleIds() const {
|
||||
return configRuleIds_;
|
||||
}
|
||||
|
||||
void DeleteAggregateConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) {
|
||||
configRuleIds_ = configRuleIds;
|
||||
setParameter(std::string("ConfigRuleIds"), configRuleIds);
|
||||
}
|
||||
|
||||
std::string DeleteAggregateConfigRulesRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void DeleteAggregateConfigRulesRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
62
config/src/model/DeleteAggregateConfigRulesResult.cc
Normal file
62
config/src/model/DeleteAggregateConfigRulesResult.cc
Normal 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/config/model/DeleteAggregateConfigRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
DeleteAggregateConfigRulesResult::DeleteAggregateConfigRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAggregateConfigRulesResult::DeleteAggregateConfigRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAggregateConfigRulesResult::~DeleteAggregateConfigRulesResult()
|
||||
{}
|
||||
|
||||
void DeleteAggregateConfigRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto operateRuleResultNode = value["OperateRuleResult"];
|
||||
auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"];
|
||||
for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode)
|
||||
{
|
||||
OperateRuleResult::OperateRuleItem operateRuleItemObject;
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull())
|
||||
operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString();
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull())
|
||||
operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true";
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull())
|
||||
operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString();
|
||||
operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DeleteAggregateConfigRulesResult::OperateRuleResult DeleteAggregateConfigRulesResult::getOperateRuleResult()const
|
||||
{
|
||||
return operateRuleResult_;
|
||||
}
|
||||
|
||||
45
config/src/model/DeleteAggregateRemediationsRequest.cc
Normal file
45
config/src/model/DeleteAggregateRemediationsRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/DeleteAggregateRemediationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DeleteAggregateRemediationsRequest;
|
||||
|
||||
DeleteAggregateRemediationsRequest::DeleteAggregateRemediationsRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "DeleteAggregateRemediations") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAggregateRemediationsRequest::~DeleteAggregateRemediationsRequest() {}
|
||||
|
||||
std::string DeleteAggregateRemediationsRequest::getRemediationIds() const {
|
||||
return remediationIds_;
|
||||
}
|
||||
|
||||
void DeleteAggregateRemediationsRequest::setRemediationIds(const std::string &remediationIds) {
|
||||
remediationIds_ = remediationIds;
|
||||
setBodyParameter(std::string("RemediationIds"), remediationIds);
|
||||
}
|
||||
|
||||
std::string DeleteAggregateRemediationsRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void DeleteAggregateRemediationsRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setBodyParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
61
config/src/model/DeleteAggregateRemediationsResult.cc
Normal file
61
config/src/model/DeleteAggregateRemediationsResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/DeleteAggregateRemediationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
DeleteAggregateRemediationsResult::DeleteAggregateRemediationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAggregateRemediationsResult::DeleteAggregateRemediationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAggregateRemediationsResult::~DeleteAggregateRemediationsResult()
|
||||
{}
|
||||
|
||||
void DeleteAggregateRemediationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRemediationDeleteResultsNode = value["RemediationDeleteResults"]["RemediationDeleteResult"];
|
||||
for (auto valueRemediationDeleteResultsRemediationDeleteResult : allRemediationDeleteResultsNode)
|
||||
{
|
||||
RemediationDeleteResult remediationDeleteResultsObject;
|
||||
if(!valueRemediationDeleteResultsRemediationDeleteResult["RemediationId"].isNull())
|
||||
remediationDeleteResultsObject.remediationId = valueRemediationDeleteResultsRemediationDeleteResult["RemediationId"].asString();
|
||||
if(!valueRemediationDeleteResultsRemediationDeleteResult["ErrorMessage"].isNull())
|
||||
remediationDeleteResultsObject.errorMessage = valueRemediationDeleteResultsRemediationDeleteResult["ErrorMessage"].asString();
|
||||
if(!valueRemediationDeleteResultsRemediationDeleteResult["Success"].isNull())
|
||||
remediationDeleteResultsObject.success = valueRemediationDeleteResultsRemediationDeleteResult["Success"].asString() == "true";
|
||||
remediationDeleteResults_.push_back(remediationDeleteResultsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DeleteAggregateRemediationsResult::RemediationDeleteResult> DeleteAggregateRemediationsResult::getRemediationDeleteResults()const
|
||||
{
|
||||
return remediationDeleteResults_;
|
||||
}
|
||||
|
||||
45
config/src/model/DeleteAggregatorsRequest.cc
Normal file
45
config/src/model/DeleteAggregatorsRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/DeleteAggregatorsRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DeleteAggregatorsRequest;
|
||||
|
||||
DeleteAggregatorsRequest::DeleteAggregatorsRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "DeleteAggregators") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAggregatorsRequest::~DeleteAggregatorsRequest() {}
|
||||
|
||||
std::string DeleteAggregatorsRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteAggregatorsRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteAggregatorsRequest::getAggregatorIds() const {
|
||||
return aggregatorIds_;
|
||||
}
|
||||
|
||||
void DeleteAggregatorsRequest::setAggregatorIds(const std::string &aggregatorIds) {
|
||||
aggregatorIds_ = aggregatorIds;
|
||||
setBodyParameter(std::string("AggregatorIds"), aggregatorIds);
|
||||
}
|
||||
|
||||
62
config/src/model/DeleteAggregatorsResult.cc
Normal file
62
config/src/model/DeleteAggregatorsResult.cc
Normal 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/config/model/DeleteAggregatorsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
DeleteAggregatorsResult::DeleteAggregatorsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAggregatorsResult::DeleteAggregatorsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAggregatorsResult::~DeleteAggregatorsResult()
|
||||
{}
|
||||
|
||||
void DeleteAggregatorsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto operateAggregatorsResultNode = value["OperateAggregatorsResult"];
|
||||
auto allOperateAggregatorsNode = operateAggregatorsResultNode["OperateAggregators"]["OperateAggregatorList"];
|
||||
for (auto operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList : allOperateAggregatorsNode)
|
||||
{
|
||||
OperateAggregatorsResult::OperateAggregatorList operateAggregatorListObject;
|
||||
if(!operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["ErrorCode"].isNull())
|
||||
operateAggregatorListObject.errorCode = operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["ErrorCode"].asString();
|
||||
if(!operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["Success"].isNull())
|
||||
operateAggregatorListObject.success = operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["Success"].asString() == "true";
|
||||
if(!operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["AggregatorId"].isNull())
|
||||
operateAggregatorListObject.aggregatorId = operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["AggregatorId"].asString();
|
||||
operateAggregatorsResult_.operateAggregators.push_back(operateAggregatorListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DeleteAggregatorsResult::OperateAggregatorsResult DeleteAggregatorsResult::getOperateAggregatorsResult()const
|
||||
{
|
||||
return operateAggregatorsResult_;
|
||||
}
|
||||
|
||||
54
config/src/model/DeleteCompliancePacksRequest.cc
Normal file
54
config/src/model/DeleteCompliancePacksRequest.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/config/model/DeleteCompliancePacksRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DeleteCompliancePacksRequest;
|
||||
|
||||
DeleteCompliancePacksRequest::DeleteCompliancePacksRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "DeleteCompliancePacks") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteCompliancePacksRequest::~DeleteCompliancePacksRequest() {}
|
||||
|
||||
std::string DeleteCompliancePacksRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteCompliancePacksRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeleteCompliancePacksRequest::getCompliancePackIds() const {
|
||||
return compliancePackIds_;
|
||||
}
|
||||
|
||||
void DeleteCompliancePacksRequest::setCompliancePackIds(const std::string &compliancePackIds) {
|
||||
compliancePackIds_ = compliancePackIds;
|
||||
setBodyParameter(std::string("CompliancePackIds"), compliancePackIds);
|
||||
}
|
||||
|
||||
bool DeleteCompliancePacksRequest::getDeleteRule() const {
|
||||
return deleteRule_;
|
||||
}
|
||||
|
||||
void DeleteCompliancePacksRequest::setDeleteRule(bool deleteRule) {
|
||||
deleteRule_ = deleteRule;
|
||||
setBodyParameter(std::string("DeleteRule"), deleteRule ? "true" : "false");
|
||||
}
|
||||
|
||||
62
config/src/model/DeleteCompliancePacksResult.cc
Normal file
62
config/src/model/DeleteCompliancePacksResult.cc
Normal 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/config/model/DeleteCompliancePacksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
DeleteCompliancePacksResult::DeleteCompliancePacksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteCompliancePacksResult::DeleteCompliancePacksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteCompliancePacksResult::~DeleteCompliancePacksResult()
|
||||
{}
|
||||
|
||||
void DeleteCompliancePacksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto operateCompliancePacksResultNode = value["OperateCompliancePacksResult"];
|
||||
auto allOperateCompliancePacksNode = operateCompliancePacksResultNode["OperateCompliancePacks"]["OperateCompliancePacksItem"];
|
||||
for (auto operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem : allOperateCompliancePacksNode)
|
||||
{
|
||||
OperateCompliancePacksResult::OperateCompliancePacksItem operateCompliancePacksItemObject;
|
||||
if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["CompliancePackId"].isNull())
|
||||
operateCompliancePacksItemObject.compliancePackId = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["CompliancePackId"].asString();
|
||||
if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["ErrorCode"].isNull())
|
||||
operateCompliancePacksItemObject.errorCode = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["ErrorCode"].asString();
|
||||
if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["Success"].isNull())
|
||||
operateCompliancePacksItemObject.success = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["Success"].asString() == "true";
|
||||
operateCompliancePacksResult_.operateCompliancePacks.push_back(operateCompliancePacksItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DeleteCompliancePacksResult::OperateCompliancePacksResult DeleteCompliancePacksResult::getOperateCompliancePacksResult()const
|
||||
{
|
||||
return operateCompliancePacksResult_;
|
||||
}
|
||||
|
||||
36
config/src/model/DeleteConfigDeliveryChannelRequest.cc
Normal file
36
config/src/model/DeleteConfigDeliveryChannelRequest.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/config/model/DeleteConfigDeliveryChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DeleteConfigDeliveryChannelRequest;
|
||||
|
||||
DeleteConfigDeliveryChannelRequest::DeleteConfigDeliveryChannelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "DeleteConfigDeliveryChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteConfigDeliveryChannelRequest::~DeleteConfigDeliveryChannelRequest() {}
|
||||
|
||||
std::string DeleteConfigDeliveryChannelRequest::getDeliveryChannelId() const {
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
void DeleteConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) {
|
||||
deliveryChannelId_ = deliveryChannelId;
|
||||
setParameter(std::string("DeliveryChannelId"), deliveryChannelId);
|
||||
}
|
||||
|
||||
51
config/src/model/DeleteConfigDeliveryChannelResult.cc
Normal file
51
config/src/model/DeleteConfigDeliveryChannelResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/DeleteConfigDeliveryChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
DeleteConfigDeliveryChannelResult::DeleteConfigDeliveryChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteConfigDeliveryChannelResult::DeleteConfigDeliveryChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteConfigDeliveryChannelResult::~DeleteConfigDeliveryChannelResult()
|
||||
{}
|
||||
|
||||
void DeleteConfigDeliveryChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DeliveryChannelId"].isNull())
|
||||
deliveryChannelId_ = value["DeliveryChannelId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteConfigDeliveryChannelResult::getDeliveryChannelId()const
|
||||
{
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Config::Model::DeleteConfigRulesRequest;
|
||||
|
||||
DeleteConfigRulesRequest::DeleteConfigRulesRequest()
|
||||
: RpcServiceRequest("config", "2019-01-08", "DeleteConfigRules") {
|
||||
: RpcServiceRequest("config", "2020-09-07", "DeleteConfigRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
|
||||
36
config/src/model/DeleteRemediationsRequest.cc
Normal file
36
config/src/model/DeleteRemediationsRequest.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/config/model/DeleteRemediationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DeleteRemediationsRequest;
|
||||
|
||||
DeleteRemediationsRequest::DeleteRemediationsRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "DeleteRemediations") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRemediationsRequest::~DeleteRemediationsRequest() {}
|
||||
|
||||
std::string DeleteRemediationsRequest::getRemediationIds() const {
|
||||
return remediationIds_;
|
||||
}
|
||||
|
||||
void DeleteRemediationsRequest::setRemediationIds(const std::string &remediationIds) {
|
||||
remediationIds_ = remediationIds;
|
||||
setBodyParameter(std::string("RemediationIds"), remediationIds);
|
||||
}
|
||||
|
||||
61
config/src/model/DeleteRemediationsResult.cc
Normal file
61
config/src/model/DeleteRemediationsResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/DeleteRemediationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
DeleteRemediationsResult::DeleteRemediationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRemediationsResult::DeleteRemediationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRemediationsResult::~DeleteRemediationsResult()
|
||||
{}
|
||||
|
||||
void DeleteRemediationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRemediationDeleteResultsNode = value["RemediationDeleteResults"]["RemediationDeleteResult"];
|
||||
for (auto valueRemediationDeleteResultsRemediationDeleteResult : allRemediationDeleteResultsNode)
|
||||
{
|
||||
RemediationDeleteResult remediationDeleteResultsObject;
|
||||
if(!valueRemediationDeleteResultsRemediationDeleteResult["RemediationId"].isNull())
|
||||
remediationDeleteResultsObject.remediationId = valueRemediationDeleteResultsRemediationDeleteResult["RemediationId"].asString();
|
||||
if(!valueRemediationDeleteResultsRemediationDeleteResult["ErrorMessage"].isNull())
|
||||
remediationDeleteResultsObject.errorMessage = valueRemediationDeleteResultsRemediationDeleteResult["ErrorMessage"].asString();
|
||||
if(!valueRemediationDeleteResultsRemediationDeleteResult["Success"].isNull())
|
||||
remediationDeleteResultsObject.success = valueRemediationDeleteResultsRemediationDeleteResult["Success"].asString() == "true";
|
||||
remediationDeleteResults_.push_back(remediationDeleteResultsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DeleteRemediationsResult::RemediationDeleteResult> DeleteRemediationsResult::getRemediationDeleteResults()const
|
||||
{
|
||||
return remediationDeleteResults_;
|
||||
}
|
||||
|
||||
@@ -1,81 +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/config/model/DescribeComplianceRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DescribeComplianceRequest;
|
||||
|
||||
DescribeComplianceRequest::DescribeComplianceRequest()
|
||||
: RpcServiceRequest("config", "2019-01-08", "DescribeCompliance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeComplianceRequest::~DescribeComplianceRequest() {}
|
||||
|
||||
std::string DescribeComplianceRequest::getConfigRuleId() const {
|
||||
return configRuleId_;
|
||||
}
|
||||
|
||||
void DescribeComplianceRequest::setConfigRuleId(const std::string &configRuleId) {
|
||||
configRuleId_ = configRuleId;
|
||||
setParameter(std::string("ConfigRuleId"), configRuleId);
|
||||
}
|
||||
|
||||
std::string DescribeComplianceRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DescribeComplianceRequest::setResourceId(const std::string &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), resourceId);
|
||||
}
|
||||
|
||||
bool DescribeComplianceRequest::getMultiAccount() const {
|
||||
return multiAccount_;
|
||||
}
|
||||
|
||||
void DescribeComplianceRequest::setMultiAccount(bool multiAccount) {
|
||||
multiAccount_ = multiAccount;
|
||||
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeComplianceRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeComplianceRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string DescribeComplianceRequest::getComplianceType() const {
|
||||
return complianceType_;
|
||||
}
|
||||
|
||||
void DescribeComplianceRequest::setComplianceType(const std::string &complianceType) {
|
||||
complianceType_ = complianceType;
|
||||
setParameter(std::string("ComplianceType"), complianceType);
|
||||
}
|
||||
|
||||
long DescribeComplianceRequest::getMemberId() const {
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void DescribeComplianceRequest::setMemberId(long memberId) {
|
||||
memberId_ = memberId;
|
||||
setParameter(std::string("MemberId"), std::to_string(memberId));
|
||||
}
|
||||
|
||||
@@ -1,45 +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/config/model/DescribeComplianceSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DescribeComplianceSummaryRequest;
|
||||
|
||||
DescribeComplianceSummaryRequest::DescribeComplianceSummaryRequest()
|
||||
: RpcServiceRequest("config", "2019-01-08", "DescribeComplianceSummary") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeComplianceSummaryRequest::~DescribeComplianceSummaryRequest() {}
|
||||
|
||||
bool DescribeComplianceSummaryRequest::getMultiAccount() const {
|
||||
return multiAccount_;
|
||||
}
|
||||
|
||||
void DescribeComplianceSummaryRequest::setMultiAccount(bool multiAccount) {
|
||||
multiAccount_ = multiAccount;
|
||||
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
|
||||
}
|
||||
|
||||
long DescribeComplianceSummaryRequest::getMemberId() const {
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void DescribeComplianceSummaryRequest::setMemberId(long memberId) {
|
||||
memberId_ = memberId;
|
||||
setParameter(std::string("MemberId"), std::to_string(memberId));
|
||||
}
|
||||
|
||||
@@ -1,54 +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/config/model/DescribeConfigRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DescribeConfigRuleRequest;
|
||||
|
||||
DescribeConfigRuleRequest::DescribeConfigRuleRequest()
|
||||
: RpcServiceRequest("config", "2019-01-08", "DescribeConfigRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeConfigRuleRequest::~DescribeConfigRuleRequest() {}
|
||||
|
||||
std::string DescribeConfigRuleRequest::getConfigRuleId() const {
|
||||
return configRuleId_;
|
||||
}
|
||||
|
||||
void DescribeConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) {
|
||||
configRuleId_ = configRuleId;
|
||||
setParameter(std::string("ConfigRuleId"), configRuleId);
|
||||
}
|
||||
|
||||
bool DescribeConfigRuleRequest::getMultiAccount() const {
|
||||
return multiAccount_;
|
||||
}
|
||||
|
||||
void DescribeConfigRuleRequest::setMultiAccount(bool multiAccount) {
|
||||
multiAccount_ = multiAccount;
|
||||
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
|
||||
}
|
||||
|
||||
long DescribeConfigRuleRequest::getMemberId() const {
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void DescribeConfigRuleRequest::setMemberId(long memberId) {
|
||||
memberId_ = memberId;
|
||||
setParameter(std::string("MemberId"), std::to_string(memberId));
|
||||
}
|
||||
|
||||
@@ -1,72 +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/config/model/DescribeDiscoveredResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DescribeDiscoveredResourceRequest;
|
||||
|
||||
DescribeDiscoveredResourceRequest::DescribeDiscoveredResourceRequest()
|
||||
: RpcServiceRequest("config", "2019-01-08", "DescribeDiscoveredResource") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDiscoveredResourceRequest::~DescribeDiscoveredResourceRequest() {}
|
||||
|
||||
std::string DescribeDiscoveredResourceRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DescribeDiscoveredResourceRequest::setResourceId(const std::string &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), resourceId);
|
||||
}
|
||||
|
||||
bool DescribeDiscoveredResourceRequest::getMultiAccount() const {
|
||||
return multiAccount_;
|
||||
}
|
||||
|
||||
void DescribeDiscoveredResourceRequest::setMultiAccount(bool multiAccount) {
|
||||
multiAccount_ = multiAccount;
|
||||
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeDiscoveredResourceRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeDiscoveredResourceRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string DescribeDiscoveredResourceRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void DescribeDiscoveredResourceRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
long DescribeDiscoveredResourceRequest::getMemberId() const {
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void DescribeDiscoveredResourceRequest::setMemberId(long memberId) {
|
||||
memberId_ = memberId;
|
||||
setParameter(std::string("MemberId"), std::to_string(memberId));
|
||||
}
|
||||
|
||||
@@ -1,99 +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/config/model/DescribeEvaluationResultsRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DescribeEvaluationResultsRequest;
|
||||
|
||||
DescribeEvaluationResultsRequest::DescribeEvaluationResultsRequest()
|
||||
: RpcServiceRequest("config", "2019-01-08", "DescribeEvaluationResults") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeEvaluationResultsRequest::~DescribeEvaluationResultsRequest() {}
|
||||
|
||||
std::string DescribeEvaluationResultsRequest::getConfigRuleId() const {
|
||||
return configRuleId_;
|
||||
}
|
||||
|
||||
void DescribeEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) {
|
||||
configRuleId_ = configRuleId;
|
||||
setParameter(std::string("ConfigRuleId"), configRuleId);
|
||||
}
|
||||
|
||||
bool DescribeEvaluationResultsRequest::getMultiAccount() const {
|
||||
return multiAccount_;
|
||||
}
|
||||
|
||||
void DescribeEvaluationResultsRequest::setMultiAccount(bool multiAccount) {
|
||||
multiAccount_ = multiAccount;
|
||||
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
|
||||
}
|
||||
|
||||
int DescribeEvaluationResultsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeEvaluationResultsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeEvaluationResultsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeEvaluationResultsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeEvaluationResultsRequest::getComplianceType() const {
|
||||
return complianceType_;
|
||||
}
|
||||
|
||||
void DescribeEvaluationResultsRequest::setComplianceType(const std::string &complianceType) {
|
||||
complianceType_ = complianceType;
|
||||
setParameter(std::string("ComplianceType"), complianceType);
|
||||
}
|
||||
|
||||
std::string DescribeEvaluationResultsRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void DescribeEvaluationResultsRequest::setResourceId(const std::string &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), resourceId);
|
||||
}
|
||||
|
||||
std::string DescribeEvaluationResultsRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeEvaluationResultsRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
long DescribeEvaluationResultsRequest::getMemberId() const {
|
||||
return memberId_;
|
||||
}
|
||||
|
||||
void DescribeEvaluationResultsRequest::setMemberId(long memberId) {
|
||||
memberId_ = memberId;
|
||||
setParameter(std::string("MemberId"), std::to_string(memberId));
|
||||
}
|
||||
|
||||
@@ -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/config/model/DetachAggregateConfigRuleToCompliancePackRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DetachAggregateConfigRuleToCompliancePackRequest;
|
||||
|
||||
DetachAggregateConfigRuleToCompliancePackRequest::DetachAggregateConfigRuleToCompliancePackRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "DetachAggregateConfigRuleToCompliancePack") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetachAggregateConfigRuleToCompliancePackRequest::~DetachAggregateConfigRuleToCompliancePackRequest() {}
|
||||
|
||||
std::string DetachAggregateConfigRuleToCompliancePackRequest::getConfigRuleIds() const {
|
||||
return configRuleIds_;
|
||||
}
|
||||
|
||||
void DetachAggregateConfigRuleToCompliancePackRequest::setConfigRuleIds(const std::string &configRuleIds) {
|
||||
configRuleIds_ = configRuleIds;
|
||||
setParameter(std::string("ConfigRuleIds"), configRuleIds);
|
||||
}
|
||||
|
||||
std::string DetachAggregateConfigRuleToCompliancePackRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void DetachAggregateConfigRuleToCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string DetachAggregateConfigRuleToCompliancePackRequest::getCompliancePackId() const {
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
void DetachAggregateConfigRuleToCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) {
|
||||
compliancePackId_ = compliancePackId;
|
||||
setParameter(std::string("CompliancePackId"), compliancePackId);
|
||||
}
|
||||
|
||||
@@ -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/config/model/DetachAggregateConfigRuleToCompliancePackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
DetachAggregateConfigRuleToCompliancePackResult::DetachAggregateConfigRuleToCompliancePackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetachAggregateConfigRuleToCompliancePackResult::DetachAggregateConfigRuleToCompliancePackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetachAggregateConfigRuleToCompliancePackResult::~DetachAggregateConfigRuleToCompliancePackResult()
|
||||
{}
|
||||
|
||||
void DetachAggregateConfigRuleToCompliancePackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto operateRuleResultNode = value["OperateRuleResult"];
|
||||
auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"];
|
||||
for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode)
|
||||
{
|
||||
OperateRuleResult::OperateRuleItem operateRuleItemObject;
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull())
|
||||
operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString();
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull())
|
||||
operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true";
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull())
|
||||
operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString();
|
||||
operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DetachAggregateConfigRuleToCompliancePackResult::OperateRuleResult DetachAggregateConfigRuleToCompliancePackResult::getOperateRuleResult()const
|
||||
{
|
||||
return operateRuleResult_;
|
||||
}
|
||||
|
||||
45
config/src/model/DetachConfigRuleToCompliancePackRequest.cc
Normal file
45
config/src/model/DetachConfigRuleToCompliancePackRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/DetachConfigRuleToCompliancePackRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DetachConfigRuleToCompliancePackRequest;
|
||||
|
||||
DetachConfigRuleToCompliancePackRequest::DetachConfigRuleToCompliancePackRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "DetachConfigRuleToCompliancePack") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetachConfigRuleToCompliancePackRequest::~DetachConfigRuleToCompliancePackRequest() {}
|
||||
|
||||
std::string DetachConfigRuleToCompliancePackRequest::getConfigRuleIds() const {
|
||||
return configRuleIds_;
|
||||
}
|
||||
|
||||
void DetachConfigRuleToCompliancePackRequest::setConfigRuleIds(const std::string &configRuleIds) {
|
||||
configRuleIds_ = configRuleIds;
|
||||
setParameter(std::string("ConfigRuleIds"), configRuleIds);
|
||||
}
|
||||
|
||||
std::string DetachConfigRuleToCompliancePackRequest::getCompliancePackId() const {
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
void DetachConfigRuleToCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) {
|
||||
compliancePackId_ = compliancePackId;
|
||||
setParameter(std::string("CompliancePackId"), compliancePackId);
|
||||
}
|
||||
|
||||
62
config/src/model/DetachConfigRuleToCompliancePackResult.cc
Normal file
62
config/src/model/DetachConfigRuleToCompliancePackResult.cc
Normal 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/config/model/DetachConfigRuleToCompliancePackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
DetachConfigRuleToCompliancePackResult::DetachConfigRuleToCompliancePackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetachConfigRuleToCompliancePackResult::DetachConfigRuleToCompliancePackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetachConfigRuleToCompliancePackResult::~DetachConfigRuleToCompliancePackResult()
|
||||
{}
|
||||
|
||||
void DetachConfigRuleToCompliancePackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto operateRuleResultNode = value["OperateRuleResult"];
|
||||
auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"];
|
||||
for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode)
|
||||
{
|
||||
OperateRuleResult::OperateRuleItem operateRuleItemObject;
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull())
|
||||
operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString();
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull())
|
||||
operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true";
|
||||
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull())
|
||||
operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString();
|
||||
operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DetachConfigRuleToCompliancePackResult::OperateRuleResult DetachConfigRuleToCompliancePackResult::getOperateRuleResult()const
|
||||
{
|
||||
return operateRuleResult_;
|
||||
}
|
||||
|
||||
54
config/src/model/EvaluatePreConfigRulesRequest.cc
Normal file
54
config/src/model/EvaluatePreConfigRulesRequest.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/config/model/EvaluatePreConfigRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::EvaluatePreConfigRulesRequest;
|
||||
|
||||
EvaluatePreConfigRulesRequest::EvaluatePreConfigRulesRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "EvaluatePreConfigRules") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EvaluatePreConfigRulesRequest::~EvaluatePreConfigRulesRequest() {}
|
||||
|
||||
bool EvaluatePreConfigRulesRequest::getEnableManagedRules() const {
|
||||
return enableManagedRules_;
|
||||
}
|
||||
|
||||
void EvaluatePreConfigRulesRequest::setEnableManagedRules(bool enableManagedRules) {
|
||||
enableManagedRules_ = enableManagedRules;
|
||||
setBodyParameter(std::string("EnableManagedRules"), enableManagedRules ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string EvaluatePreConfigRulesRequest::getResourceEvaluateItems() const {
|
||||
return resourceEvaluateItems_;
|
||||
}
|
||||
|
||||
void EvaluatePreConfigRulesRequest::setResourceEvaluateItems(const std::string &resourceEvaluateItems) {
|
||||
resourceEvaluateItems_ = resourceEvaluateItems;
|
||||
setBodyParameter(std::string("ResourceEvaluateItems"), resourceEvaluateItems);
|
||||
}
|
||||
|
||||
std::string EvaluatePreConfigRulesRequest::getResourceTypeFormat() const {
|
||||
return resourceTypeFormat_;
|
||||
}
|
||||
|
||||
void EvaluatePreConfigRulesRequest::setResourceTypeFormat(const std::string &resourceTypeFormat) {
|
||||
resourceTypeFormat_ = resourceTypeFormat;
|
||||
setBodyParameter(std::string("ResourceTypeFormat"), resourceTypeFormat);
|
||||
}
|
||||
|
||||
73
config/src/model/EvaluatePreConfigRulesResult.cc
Normal file
73
config/src/model/EvaluatePreConfigRulesResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/EvaluatePreConfigRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
EvaluatePreConfigRulesResult::EvaluatePreConfigRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EvaluatePreConfigRulesResult::EvaluatePreConfigRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EvaluatePreConfigRulesResult::~EvaluatePreConfigRulesResult()
|
||||
{}
|
||||
|
||||
void EvaluatePreConfigRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResourceEvaluationsNode = value["ResourceEvaluations"]["ResourceEvaluation"];
|
||||
for (auto valueResourceEvaluationsResourceEvaluation : allResourceEvaluationsNode)
|
||||
{
|
||||
ResourceEvaluation resourceEvaluationsObject;
|
||||
if(!valueResourceEvaluationsResourceEvaluation["ResourceLogicalId"].isNull())
|
||||
resourceEvaluationsObject.resourceLogicalId = valueResourceEvaluationsResourceEvaluation["ResourceLogicalId"].asString();
|
||||
if(!valueResourceEvaluationsResourceEvaluation["ResourceType"].isNull())
|
||||
resourceEvaluationsObject.resourceType = valueResourceEvaluationsResourceEvaluation["ResourceType"].asString();
|
||||
auto allRulesNode = valueResourceEvaluationsResourceEvaluation["Rules"]["Rule"];
|
||||
for (auto valueResourceEvaluationsResourceEvaluationRulesRule : allRulesNode)
|
||||
{
|
||||
ResourceEvaluation::Rule rulesObject;
|
||||
if(!valueResourceEvaluationsResourceEvaluationRulesRule["Identifier"].isNull())
|
||||
rulesObject.identifier = valueResourceEvaluationsResourceEvaluationRulesRule["Identifier"].asString();
|
||||
if(!valueResourceEvaluationsResourceEvaluationRulesRule["ComplianceType"].isNull())
|
||||
rulesObject.complianceType = valueResourceEvaluationsResourceEvaluationRulesRule["ComplianceType"].asString();
|
||||
if(!valueResourceEvaluationsResourceEvaluationRulesRule["Annotation"].isNull())
|
||||
rulesObject.annotation = valueResourceEvaluationsResourceEvaluationRulesRule["Annotation"].asString();
|
||||
if(!valueResourceEvaluationsResourceEvaluationRulesRule["HelpUrl"].isNull())
|
||||
rulesObject.helpUrl = valueResourceEvaluationsResourceEvaluationRulesRule["HelpUrl"].asString();
|
||||
resourceEvaluationsObject.rules.push_back(rulesObject);
|
||||
}
|
||||
resourceEvaluations_.push_back(resourceEvaluationsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<EvaluatePreConfigRulesResult::ResourceEvaluation> EvaluatePreConfigRulesResult::getResourceEvaluations()const
|
||||
{
|
||||
return resourceEvaluations_;
|
||||
}
|
||||
|
||||
@@ -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/config/model/GenerateAggregateCompliancePackReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GenerateAggregateCompliancePackReportRequest;
|
||||
|
||||
GenerateAggregateCompliancePackReportRequest::GenerateAggregateCompliancePackReportRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GenerateAggregateCompliancePackReport") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateAggregateCompliancePackReportRequest::~GenerateAggregateCompliancePackReportRequest() {}
|
||||
|
||||
std::string GenerateAggregateCompliancePackReportRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void GenerateAggregateCompliancePackReportRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string GenerateAggregateCompliancePackReportRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GenerateAggregateCompliancePackReportRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setBodyParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string GenerateAggregateCompliancePackReportRequest::getCompliancePackId() const {
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
void GenerateAggregateCompliancePackReportRequest::setCompliancePackId(const std::string &compliancePackId) {
|
||||
compliancePackId_ = compliancePackId;
|
||||
setBodyParameter(std::string("CompliancePackId"), compliancePackId);
|
||||
}
|
||||
|
||||
@@ -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/config/model/GenerateAggregateCompliancePackReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GenerateAggregateCompliancePackReportResult::GenerateAggregateCompliancePackReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateAggregateCompliancePackReportResult::GenerateAggregateCompliancePackReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateAggregateCompliancePackReportResult::~GenerateAggregateCompliancePackReportResult()
|
||||
{}
|
||||
|
||||
void GenerateAggregateCompliancePackReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CompliancePackId"].isNull())
|
||||
compliancePackId_ = value["CompliancePackId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GenerateAggregateCompliancePackReportResult::getCompliancePackId()const
|
||||
{
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
@@ -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/config/model/GenerateAggregateConfigRulesReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GenerateAggregateConfigRulesReportRequest;
|
||||
|
||||
GenerateAggregateConfigRulesReportRequest::GenerateAggregateConfigRulesReportRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GenerateAggregateConfigRulesReport") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateAggregateConfigRulesReportRequest::~GenerateAggregateConfigRulesReportRequest() {}
|
||||
|
||||
std::string GenerateAggregateConfigRulesReportRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void GenerateAggregateConfigRulesReportRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string GenerateAggregateConfigRulesReportRequest::getConfigRuleIds() const {
|
||||
return configRuleIds_;
|
||||
}
|
||||
|
||||
void GenerateAggregateConfigRulesReportRequest::setConfigRuleIds(const std::string &configRuleIds) {
|
||||
configRuleIds_ = configRuleIds;
|
||||
setBodyParameter(std::string("ConfigRuleIds"), configRuleIds);
|
||||
}
|
||||
|
||||
std::string GenerateAggregateConfigRulesReportRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GenerateAggregateConfigRulesReportRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setBodyParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
58
config/src/model/GenerateAggregateConfigRulesReportResult.cc
Normal file
58
config/src/model/GenerateAggregateConfigRulesReportResult.cc
Normal 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/config/model/GenerateAggregateConfigRulesReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GenerateAggregateConfigRulesReportResult::GenerateAggregateConfigRulesReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateAggregateConfigRulesReportResult::GenerateAggregateConfigRulesReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateAggregateConfigRulesReportResult::~GenerateAggregateConfigRulesReportResult()
|
||||
{}
|
||||
|
||||
void GenerateAggregateConfigRulesReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["AggregatorId"].isNull())
|
||||
aggregatorId_ = value["AggregatorId"].asString();
|
||||
if(!value["ReportId"].isNull())
|
||||
reportId_ = value["ReportId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GenerateAggregateConfigRulesReportResult::getReportId()const
|
||||
{
|
||||
return reportId_;
|
||||
}
|
||||
|
||||
std::string GenerateAggregateConfigRulesReportResult::getAggregatorId()const
|
||||
{
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
@@ -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/config/model/GenerateAggregateResourceInventoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GenerateAggregateResourceInventoryRequest;
|
||||
|
||||
GenerateAggregateResourceInventoryRequest::GenerateAggregateResourceInventoryRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GenerateAggregateResourceInventory") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateAggregateResourceInventoryRequest::~GenerateAggregateResourceInventoryRequest() {}
|
||||
|
||||
std::string GenerateAggregateResourceInventoryRequest::getRegions() const {
|
||||
return regions_;
|
||||
}
|
||||
|
||||
void GenerateAggregateResourceInventoryRequest::setRegions(const std::string ®ions) {
|
||||
regions_ = regions;
|
||||
setParameter(std::string("Regions"), regions);
|
||||
}
|
||||
|
||||
std::string GenerateAggregateResourceInventoryRequest::getResourceTypes() const {
|
||||
return resourceTypes_;
|
||||
}
|
||||
|
||||
void GenerateAggregateResourceInventoryRequest::setResourceTypes(const std::string &resourceTypes) {
|
||||
resourceTypes_ = resourceTypes;
|
||||
setParameter(std::string("ResourceTypes"), resourceTypes);
|
||||
}
|
||||
|
||||
std::string GenerateAggregateResourceInventoryRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GenerateAggregateResourceInventoryRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string GenerateAggregateResourceInventoryRequest::getAccountIds() const {
|
||||
return accountIds_;
|
||||
}
|
||||
|
||||
void GenerateAggregateResourceInventoryRequest::setAccountIds(const std::string &accountIds) {
|
||||
accountIds_ = accountIds;
|
||||
setParameter(std::string("AccountIds"), accountIds);
|
||||
}
|
||||
|
||||
44
config/src/model/GenerateAggregateResourceInventoryResult.cc
Normal file
44
config/src/model/GenerateAggregateResourceInventoryResult.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/config/model/GenerateAggregateResourceInventoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GenerateAggregateResourceInventoryResult::GenerateAggregateResourceInventoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateAggregateResourceInventoryResult::GenerateAggregateResourceInventoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateAggregateResourceInventoryResult::~GenerateAggregateResourceInventoryResult()
|
||||
{}
|
||||
|
||||
void GenerateAggregateResourceInventoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
config/src/model/GenerateCompliancePackReportRequest.cc
Normal file
45
config/src/model/GenerateCompliancePackReportRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GenerateCompliancePackReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GenerateCompliancePackReportRequest;
|
||||
|
||||
GenerateCompliancePackReportRequest::GenerateCompliancePackReportRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GenerateCompliancePackReport") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateCompliancePackReportRequest::~GenerateCompliancePackReportRequest() {}
|
||||
|
||||
std::string GenerateCompliancePackReportRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void GenerateCompliancePackReportRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string GenerateCompliancePackReportRequest::getCompliancePackId() const {
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
void GenerateCompliancePackReportRequest::setCompliancePackId(const std::string &compliancePackId) {
|
||||
compliancePackId_ = compliancePackId;
|
||||
setBodyParameter(std::string("CompliancePackId"), compliancePackId);
|
||||
}
|
||||
|
||||
51
config/src/model/GenerateCompliancePackReportResult.cc
Normal file
51
config/src/model/GenerateCompliancePackReportResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GenerateCompliancePackReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GenerateCompliancePackReportResult::GenerateCompliancePackReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateCompliancePackReportResult::GenerateCompliancePackReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateCompliancePackReportResult::~GenerateCompliancePackReportResult()
|
||||
{}
|
||||
|
||||
void GenerateCompliancePackReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CompliancePackId"].isNull())
|
||||
compliancePackId_ = value["CompliancePackId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GenerateCompliancePackReportResult::getCompliancePackId()const
|
||||
{
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
45
config/src/model/GenerateConfigRulesReportRequest.cc
Normal file
45
config/src/model/GenerateConfigRulesReportRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GenerateConfigRulesReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GenerateConfigRulesReportRequest;
|
||||
|
||||
GenerateConfigRulesReportRequest::GenerateConfigRulesReportRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GenerateConfigRulesReport") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateConfigRulesReportRequest::~GenerateConfigRulesReportRequest() {}
|
||||
|
||||
std::string GenerateConfigRulesReportRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void GenerateConfigRulesReportRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string GenerateConfigRulesReportRequest::getConfigRuleIds() const {
|
||||
return configRuleIds_;
|
||||
}
|
||||
|
||||
void GenerateConfigRulesReportRequest::setConfigRuleIds(const std::string &configRuleIds) {
|
||||
configRuleIds_ = configRuleIds;
|
||||
setBodyParameter(std::string("ConfigRuleIds"), configRuleIds);
|
||||
}
|
||||
|
||||
51
config/src/model/GenerateConfigRulesReportResult.cc
Normal file
51
config/src/model/GenerateConfigRulesReportResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GenerateConfigRulesReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GenerateConfigRulesReportResult::GenerateConfigRulesReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateConfigRulesReportResult::GenerateConfigRulesReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateConfigRulesReportResult::~GenerateConfigRulesReportResult()
|
||||
{}
|
||||
|
||||
void GenerateConfigRulesReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ReportId"].isNull())
|
||||
reportId_ = value["ReportId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GenerateConfigRulesReportResult::getReportId()const
|
||||
{
|
||||
return reportId_;
|
||||
}
|
||||
|
||||
45
config/src/model/GenerateResourceInventoryRequest.cc
Normal file
45
config/src/model/GenerateResourceInventoryRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GenerateResourceInventoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GenerateResourceInventoryRequest;
|
||||
|
||||
GenerateResourceInventoryRequest::GenerateResourceInventoryRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GenerateResourceInventory") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateResourceInventoryRequest::~GenerateResourceInventoryRequest() {}
|
||||
|
||||
std::string GenerateResourceInventoryRequest::getRegions() const {
|
||||
return regions_;
|
||||
}
|
||||
|
||||
void GenerateResourceInventoryRequest::setRegions(const std::string ®ions) {
|
||||
regions_ = regions;
|
||||
setParameter(std::string("Regions"), regions);
|
||||
}
|
||||
|
||||
std::string GenerateResourceInventoryRequest::getResourceTypes() const {
|
||||
return resourceTypes_;
|
||||
}
|
||||
|
||||
void GenerateResourceInventoryRequest::setResourceTypes(const std::string &resourceTypes) {
|
||||
resourceTypes_ = resourceTypes;
|
||||
setParameter(std::string("ResourceTypes"), resourceTypes);
|
||||
}
|
||||
|
||||
44
config/src/model/GenerateResourceInventoryResult.cc
Normal file
44
config/src/model/GenerateResourceInventoryResult.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/config/model/GenerateResourceInventoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GenerateResourceInventoryResult::GenerateResourceInventoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateResourceInventoryResult::GenerateResourceInventoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateResourceInventoryResult::~GenerateResourceInventoryResult()
|
||||
{}
|
||||
|
||||
void GenerateResourceInventoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/DescribeConfigurationRecorderRequest.h>
|
||||
#include <alibabacloud/config/model/GetAdvancedSearchFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::DescribeConfigurationRecorderRequest;
|
||||
using AlibabaCloud::Config::Model::GetAdvancedSearchFileRequest;
|
||||
|
||||
DescribeConfigurationRecorderRequest::DescribeConfigurationRecorderRequest()
|
||||
: RpcServiceRequest("config", "2019-01-08", "DescribeConfigurationRecorder") {
|
||||
GetAdvancedSearchFileRequest::GetAdvancedSearchFileRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetAdvancedSearchFile") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeConfigurationRecorderRequest::~DescribeConfigurationRecorderRequest() {}
|
||||
GetAdvancedSearchFileRequest::~GetAdvancedSearchFileRequest() {}
|
||||
|
||||
58
config/src/model/GetAdvancedSearchFileResult.cc
Normal file
58
config/src/model/GetAdvancedSearchFileResult.cc
Normal 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/config/model/GetAdvancedSearchFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetAdvancedSearchFileResult::GetAdvancedSearchFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAdvancedSearchFileResult::GetAdvancedSearchFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAdvancedSearchFileResult::~GetAdvancedSearchFileResult()
|
||||
{}
|
||||
|
||||
void GetAdvancedSearchFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceSearchNode = value["ResourceSearch"];
|
||||
if(!resourceSearchNode["DownloadUrl"].isNull())
|
||||
resourceSearch_.downloadUrl = resourceSearchNode["DownloadUrl"].asString();
|
||||
if(!resourceSearchNode["Status"].isNull())
|
||||
resourceSearch_.status = resourceSearchNode["Status"].asString();
|
||||
if(!resourceSearchNode["AccountId"].isNull())
|
||||
resourceSearch_.accountId = std::stol(resourceSearchNode["AccountId"].asString());
|
||||
if(!resourceSearchNode["ResourceInventoryGenerateTime"].isNull())
|
||||
resourceSearch_.resourceInventoryGenerateTime = std::stol(resourceSearchNode["ResourceInventoryGenerateTime"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetAdvancedSearchFileResult::ResourceSearch GetAdvancedSearchFileResult::getResourceSearch()const
|
||||
{
|
||||
return resourceSearch_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GetAggregateAccountComplianceByPackRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GetAggregateAccountComplianceByPackRequest;
|
||||
|
||||
GetAggregateAccountComplianceByPackRequest::GetAggregateAccountComplianceByPackRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetAggregateAccountComplianceByPack") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetAggregateAccountComplianceByPackRequest::~GetAggregateAccountComplianceByPackRequest() {}
|
||||
|
||||
std::string GetAggregateAccountComplianceByPackRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GetAggregateAccountComplianceByPackRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string GetAggregateAccountComplianceByPackRequest::getCompliancePackId() const {
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
void GetAggregateAccountComplianceByPackRequest::setCompliancePackId(const std::string &compliancePackId) {
|
||||
compliancePackId_ = compliancePackId;
|
||||
setParameter(std::string("CompliancePackId"), compliancePackId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/config/model/GetAggregateAccountComplianceByPackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetAggregateAccountComplianceByPackResult::GetAggregateAccountComplianceByPackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAggregateAccountComplianceByPackResult::GetAggregateAccountComplianceByPackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAggregateAccountComplianceByPackResult::~GetAggregateAccountComplianceByPackResult()
|
||||
{}
|
||||
|
||||
void GetAggregateAccountComplianceByPackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto accountComplianceResultNode = value["AccountComplianceResult"];
|
||||
if(!accountComplianceResultNode["CompliancePackId"].isNull())
|
||||
accountComplianceResult_.compliancePackId = accountComplianceResultNode["CompliancePackId"].asString();
|
||||
if(!accountComplianceResultNode["NonCompliantCount"].isNull())
|
||||
accountComplianceResult_.nonCompliantCount = std::stoi(accountComplianceResultNode["NonCompliantCount"].asString());
|
||||
if(!accountComplianceResultNode["TotalCount"].isNull())
|
||||
accountComplianceResult_.totalCount = std::stoi(accountComplianceResultNode["TotalCount"].asString());
|
||||
auto allAccountCompliancesNode = accountComplianceResultNode["AccountCompliances"]["AccountCompliancesItem"];
|
||||
for (auto accountComplianceResultNodeAccountCompliancesAccountCompliancesItem : allAccountCompliancesNode)
|
||||
{
|
||||
AccountComplianceResult::AccountCompliancesItem accountCompliancesItemObject;
|
||||
if(!accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["ComplianceType"].isNull())
|
||||
accountCompliancesItemObject.complianceType = accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["ComplianceType"].asString();
|
||||
if(!accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["AccountId"].isNull())
|
||||
accountCompliancesItemObject.accountId = std::stol(accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["AccountId"].asString());
|
||||
if(!accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["AccountName"].isNull())
|
||||
accountCompliancesItemObject.accountName = accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["AccountName"].asString();
|
||||
accountComplianceResult_.accountCompliances.push_back(accountCompliancesItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GetAggregateAccountComplianceByPackResult::AccountComplianceResult GetAggregateAccountComplianceByPackResult::getAccountComplianceResult()const
|
||||
{
|
||||
return accountComplianceResult_;
|
||||
}
|
||||
|
||||
36
config/src/model/GetAggregateAdvancedSearchFileRequest.cc
Normal file
36
config/src/model/GetAggregateAdvancedSearchFileRequest.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/config/model/GetAggregateAdvancedSearchFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GetAggregateAdvancedSearchFileRequest;
|
||||
|
||||
GetAggregateAdvancedSearchFileRequest::GetAggregateAdvancedSearchFileRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetAggregateAdvancedSearchFile") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAggregateAdvancedSearchFileRequest::~GetAggregateAdvancedSearchFileRequest() {}
|
||||
|
||||
std::string GetAggregateAdvancedSearchFileRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GetAggregateAdvancedSearchFileRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
58
config/src/model/GetAggregateAdvancedSearchFileResult.cc
Normal file
58
config/src/model/GetAggregateAdvancedSearchFileResult.cc
Normal 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/config/model/GetAggregateAdvancedSearchFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetAggregateAdvancedSearchFileResult::GetAggregateAdvancedSearchFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAggregateAdvancedSearchFileResult::GetAggregateAdvancedSearchFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAggregateAdvancedSearchFileResult::~GetAggregateAdvancedSearchFileResult()
|
||||
{}
|
||||
|
||||
void GetAggregateAdvancedSearchFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resourceSearchNode = value["ResourceSearch"];
|
||||
if(!resourceSearchNode["DownloadUrl"].isNull())
|
||||
resourceSearch_.downloadUrl = resourceSearchNode["DownloadUrl"].asString();
|
||||
if(!resourceSearchNode["Status"].isNull())
|
||||
resourceSearch_.status = resourceSearchNode["Status"].asString();
|
||||
if(!resourceSearchNode["AccountId"].isNull())
|
||||
resourceSearch_.accountId = std::stol(resourceSearchNode["AccountId"].asString());
|
||||
if(!resourceSearchNode["ResourceInventoryGenerateTime"].isNull())
|
||||
resourceSearch_.resourceInventoryGenerateTime = std::stol(resourceSearchNode["ResourceInventoryGenerateTime"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetAggregateAdvancedSearchFileResult::ResourceSearch GetAggregateAdvancedSearchFileResult::getResourceSearch()const
|
||||
{
|
||||
return resourceSearch_;
|
||||
}
|
||||
|
||||
45
config/src/model/GetAggregateCompliancePackReportRequest.cc
Normal file
45
config/src/model/GetAggregateCompliancePackReportRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GetAggregateCompliancePackReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GetAggregateCompliancePackReportRequest;
|
||||
|
||||
GetAggregateCompliancePackReportRequest::GetAggregateCompliancePackReportRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetAggregateCompliancePackReport") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetAggregateCompliancePackReportRequest::~GetAggregateCompliancePackReportRequest() {}
|
||||
|
||||
std::string GetAggregateCompliancePackReportRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GetAggregateCompliancePackReportRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string GetAggregateCompliancePackReportRequest::getCompliancePackId() const {
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
void GetAggregateCompliancePackReportRequest::setCompliancePackId(const std::string &compliancePackId) {
|
||||
compliancePackId_ = compliancePackId;
|
||||
setParameter(std::string("CompliancePackId"), compliancePackId);
|
||||
}
|
||||
|
||||
60
config/src/model/GetAggregateCompliancePackReportResult.cc
Normal file
60
config/src/model/GetAggregateCompliancePackReportResult.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GetAggregateCompliancePackReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetAggregateCompliancePackReportResult::GetAggregateCompliancePackReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAggregateCompliancePackReportResult::GetAggregateCompliancePackReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAggregateCompliancePackReportResult::~GetAggregateCompliancePackReportResult()
|
||||
{}
|
||||
|
||||
void GetAggregateCompliancePackReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto compliancePackReportNode = value["CompliancePackReport"];
|
||||
if(!compliancePackReportNode["ReportUrl"].isNull())
|
||||
compliancePackReport_.reportUrl = compliancePackReportNode["ReportUrl"].asString();
|
||||
if(!compliancePackReportNode["ReportStatus"].isNull())
|
||||
compliancePackReport_.reportStatus = compliancePackReportNode["ReportStatus"].asString();
|
||||
if(!compliancePackReportNode["CompliancePackId"].isNull())
|
||||
compliancePackReport_.compliancePackId = compliancePackReportNode["CompliancePackId"].asString();
|
||||
if(!compliancePackReportNode["AccountId"].isNull())
|
||||
compliancePackReport_.accountId = std::stol(compliancePackReportNode["AccountId"].asString());
|
||||
if(!compliancePackReportNode["ReportCreateTimestamp"].isNull())
|
||||
compliancePackReport_.reportCreateTimestamp = std::stol(compliancePackReportNode["ReportCreateTimestamp"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetAggregateCompliancePackReportResult::CompliancePackReport GetAggregateCompliancePackReportResult::getCompliancePackReport()const
|
||||
{
|
||||
return compliancePackReport_;
|
||||
}
|
||||
|
||||
45
config/src/model/GetAggregateCompliancePackRequest.cc
Normal file
45
config/src/model/GetAggregateCompliancePackRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GetAggregateCompliancePackRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GetAggregateCompliancePackRequest;
|
||||
|
||||
GetAggregateCompliancePackRequest::GetAggregateCompliancePackRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetAggregateCompliancePack") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetAggregateCompliancePackRequest::~GetAggregateCompliancePackRequest() {}
|
||||
|
||||
std::string GetAggregateCompliancePackRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GetAggregateCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string GetAggregateCompliancePackRequest::getCompliancePackId() const {
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
void GetAggregateCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) {
|
||||
compliancePackId_ = compliancePackId;
|
||||
setParameter(std::string("CompliancePackId"), compliancePackId);
|
||||
}
|
||||
|
||||
109
config/src/model/GetAggregateCompliancePackResult.cc
Normal file
109
config/src/model/GetAggregateCompliancePackResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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/config/model/GetAggregateCompliancePackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetAggregateCompliancePackResult::GetAggregateCompliancePackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAggregateCompliancePackResult::GetAggregateCompliancePackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAggregateCompliancePackResult::~GetAggregateCompliancePackResult()
|
||||
{}
|
||||
|
||||
void GetAggregateCompliancePackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto compliancePackNode = value["CompliancePack"];
|
||||
if(!compliancePackNode["Status"].isNull())
|
||||
compliancePack_.status = compliancePackNode["Status"].asString();
|
||||
if(!compliancePackNode["RiskLevel"].isNull())
|
||||
compliancePack_.riskLevel = std::stoi(compliancePackNode["RiskLevel"].asString());
|
||||
if(!compliancePackNode["CompliancePackId"].isNull())
|
||||
compliancePack_.compliancePackId = compliancePackNode["CompliancePackId"].asString();
|
||||
if(!compliancePackNode["Description"].isNull())
|
||||
compliancePack_.description = compliancePackNode["Description"].asString();
|
||||
if(!compliancePackNode["CompliancePackName"].isNull())
|
||||
compliancePack_.compliancePackName = compliancePackNode["CompliancePackName"].asString();
|
||||
if(!compliancePackNode["AccountId"].isNull())
|
||||
compliancePack_.accountId = std::stol(compliancePackNode["AccountId"].asString());
|
||||
if(!compliancePackNode["AggregatorId"].isNull())
|
||||
compliancePack_.aggregatorId = compliancePackNode["AggregatorId"].asString();
|
||||
if(!compliancePackNode["CompliancePackTemplateId"].isNull())
|
||||
compliancePack_.compliancePackTemplateId = compliancePackNode["CompliancePackTemplateId"].asString();
|
||||
if(!compliancePackNode["CreateTimestamp"].isNull())
|
||||
compliancePack_.createTimestamp = std::stol(compliancePackNode["CreateTimestamp"].asString());
|
||||
auto allConfigRulesNode = compliancePackNode["ConfigRules"]["ConfigRulesItem"];
|
||||
for (auto compliancePackNodeConfigRulesConfigRulesItem : allConfigRulesNode)
|
||||
{
|
||||
CompliancePack::ConfigRulesItem configRulesItemObject;
|
||||
if(!compliancePackNodeConfigRulesConfigRulesItem["ManagedRuleIdentifier"].isNull())
|
||||
configRulesItemObject.managedRuleIdentifier = compliancePackNodeConfigRulesConfigRulesItem["ManagedRuleIdentifier"].asString();
|
||||
if(!compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleName"].isNull())
|
||||
configRulesItemObject.configRuleName = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleName"].asString();
|
||||
if(!compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleId"].isNull())
|
||||
configRulesItemObject.configRuleId = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleId"].asString();
|
||||
if(!compliancePackNodeConfigRulesConfigRulesItem["Description"].isNull())
|
||||
configRulesItemObject.description = compliancePackNodeConfigRulesConfigRulesItem["Description"].asString();
|
||||
if(!compliancePackNodeConfigRulesConfigRulesItem["RiskLevel"].isNull())
|
||||
configRulesItemObject.riskLevel = std::stoi(compliancePackNodeConfigRulesConfigRulesItem["RiskLevel"].asString());
|
||||
if(!compliancePackNodeConfigRulesConfigRulesItem["ResourceTypesScope"].isNull())
|
||||
configRulesItemObject.resourceTypesScope = compliancePackNodeConfigRulesConfigRulesItem["ResourceTypesScope"].asString();
|
||||
auto allConfigRuleParametersNode = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleParameters"]["ConfigRuleParametersItem"];
|
||||
for (auto compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem : allConfigRuleParametersNode)
|
||||
{
|
||||
CompliancePack::ConfigRulesItem::ConfigRuleParametersItem configRuleParametersObject;
|
||||
if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].isNull())
|
||||
configRuleParametersObject.required = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].asString() == "true";
|
||||
if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].isNull())
|
||||
configRuleParametersObject.parameterName = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].asString();
|
||||
if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].isNull())
|
||||
configRuleParametersObject.parameterValue = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].asString();
|
||||
configRulesItemObject.configRuleParameters.push_back(configRuleParametersObject);
|
||||
}
|
||||
compliancePack_.configRules.push_back(configRulesItemObject);
|
||||
}
|
||||
auto scopeNode = compliancePackNode["Scope"];
|
||||
if(!scopeNode["RegionIdsScope"].isNull())
|
||||
compliancePack_.scope.regionIdsScope = scopeNode["RegionIdsScope"].asString();
|
||||
if(!scopeNode["ExcludeResourceIdsScope"].isNull())
|
||||
compliancePack_.scope.excludeResourceIdsScope = scopeNode["ExcludeResourceIdsScope"].asString();
|
||||
if(!scopeNode["ResourceGroupIdsScope"].isNull())
|
||||
compliancePack_.scope.resourceGroupIdsScope = scopeNode["ResourceGroupIdsScope"].asString();
|
||||
if(!scopeNode["TagKeyScope"].isNull())
|
||||
compliancePack_.scope.tagKeyScope = scopeNode["TagKeyScope"].asString();
|
||||
if(!scopeNode["TagValueScope"].isNull())
|
||||
compliancePack_.scope.tagValueScope = scopeNode["TagValueScope"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetAggregateCompliancePackResult::CompliancePack GetAggregateCompliancePackResult::getCompliancePack()const
|
||||
{
|
||||
return compliancePack_;
|
||||
}
|
||||
|
||||
36
config/src/model/GetAggregateComplianceSummaryRequest.cc
Normal file
36
config/src/model/GetAggregateComplianceSummaryRequest.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/config/model/GetAggregateComplianceSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GetAggregateComplianceSummaryRequest;
|
||||
|
||||
GetAggregateComplianceSummaryRequest::GetAggregateComplianceSummaryRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetAggregateComplianceSummary") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAggregateComplianceSummaryRequest::~GetAggregateComplianceSummaryRequest() {}
|
||||
|
||||
std::string GetAggregateComplianceSummaryRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GetAggregateComplianceSummaryRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
68
config/src/model/GetAggregateComplianceSummaryResult.cc
Normal file
68
config/src/model/GetAggregateComplianceSummaryResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/config/model/GetAggregateComplianceSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetAggregateComplianceSummaryResult::GetAggregateComplianceSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAggregateComplianceSummaryResult::GetAggregateComplianceSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAggregateComplianceSummaryResult::~GetAggregateComplianceSummaryResult()
|
||||
{}
|
||||
|
||||
void GetAggregateComplianceSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto complianceSummaryNode = value["ComplianceSummary"];
|
||||
auto complianceSummaryByResourceNode = complianceSummaryNode["ComplianceSummaryByResource"];
|
||||
if(!complianceSummaryByResourceNode["CompliantCount"].isNull())
|
||||
complianceSummary_.complianceSummaryByResource.compliantCount = std::stoi(complianceSummaryByResourceNode["CompliantCount"].asString());
|
||||
if(!complianceSummaryByResourceNode["NonCompliantCount"].isNull())
|
||||
complianceSummary_.complianceSummaryByResource.nonCompliantCount = std::stoi(complianceSummaryByResourceNode["NonCompliantCount"].asString());
|
||||
if(!complianceSummaryByResourceNode["ComplianceSummaryTimestamp"].isNull())
|
||||
complianceSummary_.complianceSummaryByResource.complianceSummaryTimestamp = std::stol(complianceSummaryByResourceNode["ComplianceSummaryTimestamp"].asString());
|
||||
if(!complianceSummaryByResourceNode["TotalCount"].isNull())
|
||||
complianceSummary_.complianceSummaryByResource.totalCount = std::stol(complianceSummaryByResourceNode["TotalCount"].asString());
|
||||
auto complianceSummaryByConfigRuleNode = complianceSummaryNode["ComplianceSummaryByConfigRule"];
|
||||
if(!complianceSummaryByConfigRuleNode["CompliantCount"].isNull())
|
||||
complianceSummary_.complianceSummaryByConfigRule.compliantCount = std::stoi(complianceSummaryByConfigRuleNode["CompliantCount"].asString());
|
||||
if(!complianceSummaryByConfigRuleNode["NonCompliantCount"].isNull())
|
||||
complianceSummary_.complianceSummaryByConfigRule.nonCompliantCount = std::stoi(complianceSummaryByConfigRuleNode["NonCompliantCount"].asString());
|
||||
if(!complianceSummaryByConfigRuleNode["ComplianceSummaryTimestamp"].isNull())
|
||||
complianceSummary_.complianceSummaryByConfigRule.complianceSummaryTimestamp = std::stol(complianceSummaryByConfigRuleNode["ComplianceSummaryTimestamp"].asString());
|
||||
if(!complianceSummaryByConfigRuleNode["TotalCount"].isNull())
|
||||
complianceSummary_.complianceSummaryByConfigRule.totalCount = std::stol(complianceSummaryByConfigRuleNode["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetAggregateComplianceSummaryResult::ComplianceSummary GetAggregateComplianceSummaryResult::getComplianceSummary()const
|
||||
{
|
||||
return complianceSummary_;
|
||||
}
|
||||
|
||||
45
config/src/model/GetAggregateConfigDeliveryChannelRequest.cc
Normal file
45
config/src/model/GetAggregateConfigDeliveryChannelRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GetAggregateConfigDeliveryChannelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GetAggregateConfigDeliveryChannelRequest;
|
||||
|
||||
GetAggregateConfigDeliveryChannelRequest::GetAggregateConfigDeliveryChannelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigDeliveryChannel") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAggregateConfigDeliveryChannelRequest::~GetAggregateConfigDeliveryChannelRequest() {}
|
||||
|
||||
std::string GetAggregateConfigDeliveryChannelRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GetAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string GetAggregateConfigDeliveryChannelRequest::getDeliveryChannelId() const {
|
||||
return deliveryChannelId_;
|
||||
}
|
||||
|
||||
void GetAggregateConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) {
|
||||
deliveryChannelId_ = deliveryChannelId;
|
||||
setParameter(std::string("DeliveryChannelId"), deliveryChannelId);
|
||||
}
|
||||
|
||||
80
config/src/model/GetAggregateConfigDeliveryChannelResult.cc
Normal file
80
config/src/model/GetAggregateConfigDeliveryChannelResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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/config/model/GetAggregateConfigDeliveryChannelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetAggregateConfigDeliveryChannelResult::GetAggregateConfigDeliveryChannelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAggregateConfigDeliveryChannelResult::GetAggregateConfigDeliveryChannelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAggregateConfigDeliveryChannelResult::~GetAggregateConfigDeliveryChannelResult()
|
||||
{}
|
||||
|
||||
void GetAggregateConfigDeliveryChannelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto deliveryChannelNode = value["DeliveryChannel"];
|
||||
if(!deliveryChannelNode["Status"].isNull())
|
||||
deliveryChannel_.status = std::stoi(deliveryChannelNode["Status"].asString());
|
||||
if(!deliveryChannelNode["DeliveryChannelId"].isNull())
|
||||
deliveryChannel_.deliveryChannelId = deliveryChannelNode["DeliveryChannelId"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelName"].isNull())
|
||||
deliveryChannel_.deliveryChannelName = deliveryChannelNode["DeliveryChannelName"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelType"].isNull())
|
||||
deliveryChannel_.deliveryChannelType = deliveryChannelNode["DeliveryChannelType"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelTargetArn"].isNull())
|
||||
deliveryChannel_.deliveryChannelTargetArn = deliveryChannelNode["DeliveryChannelTargetArn"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelAssumeRoleArn"].isNull())
|
||||
deliveryChannel_.deliveryChannelAssumeRoleArn = deliveryChannelNode["DeliveryChannelAssumeRoleArn"].asString();
|
||||
if(!deliveryChannelNode["DeliveryChannelCondition"].isNull())
|
||||
deliveryChannel_.deliveryChannelCondition = deliveryChannelNode["DeliveryChannelCondition"].asString();
|
||||
if(!deliveryChannelNode["OversizedDataOSSTargetArn"].isNull())
|
||||
deliveryChannel_.oversizedDataOSSTargetArn = deliveryChannelNode["OversizedDataOSSTargetArn"].asString();
|
||||
if(!deliveryChannelNode["Description"].isNull())
|
||||
deliveryChannel_.description = deliveryChannelNode["Description"].asString();
|
||||
if(!deliveryChannelNode["ConfigurationSnapshot"].isNull())
|
||||
deliveryChannel_.configurationSnapshot = deliveryChannelNode["ConfigurationSnapshot"].asString() == "true";
|
||||
if(!deliveryChannelNode["ConfigurationItemChangeNotification"].isNull())
|
||||
deliveryChannel_.configurationItemChangeNotification = deliveryChannelNode["ConfigurationItemChangeNotification"].asString() == "true";
|
||||
if(!deliveryChannelNode["NonCompliantNotification"].isNull())
|
||||
deliveryChannel_.nonCompliantNotification = deliveryChannelNode["NonCompliantNotification"].asString() == "true";
|
||||
if(!deliveryChannelNode["AggregatorId"].isNull())
|
||||
deliveryChannel_.aggregatorId = deliveryChannelNode["AggregatorId"].asString();
|
||||
if(!deliveryChannelNode["AccountId"].isNull())
|
||||
deliveryChannel_.accountId = deliveryChannelNode["AccountId"].asString();
|
||||
if(!deliveryChannelNode["DeliverySnapshotTime"].isNull())
|
||||
deliveryChannel_.deliverySnapshotTime = deliveryChannelNode["DeliverySnapshotTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetAggregateConfigDeliveryChannelResult::DeliveryChannel GetAggregateConfigDeliveryChannelResult::getDeliveryChannel()const
|
||||
{
|
||||
return deliveryChannel_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GetAggregateConfigRuleComplianceByPackRequest;
|
||||
|
||||
GetAggregateConfigRuleComplianceByPackRequest::GetAggregateConfigRuleComplianceByPackRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRuleComplianceByPack") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetAggregateConfigRuleComplianceByPackRequest::~GetAggregateConfigRuleComplianceByPackRequest() {}
|
||||
|
||||
std::string GetAggregateConfigRuleComplianceByPackRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GetAggregateConfigRuleComplianceByPackRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
std::string GetAggregateConfigRuleComplianceByPackRequest::getCompliancePackId() const {
|
||||
return compliancePackId_;
|
||||
}
|
||||
|
||||
void GetAggregateConfigRuleComplianceByPackRequest::setCompliancePackId(const std::string &compliancePackId) {
|
||||
compliancePackId_ = compliancePackId;
|
||||
setParameter(std::string("CompliancePackId"), compliancePackId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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/config/model/GetAggregateConfigRuleComplianceByPackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetAggregateConfigRuleComplianceByPackResult::GetAggregateConfigRuleComplianceByPackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAggregateConfigRuleComplianceByPackResult::GetAggregateConfigRuleComplianceByPackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAggregateConfigRuleComplianceByPackResult::~GetAggregateConfigRuleComplianceByPackResult()
|
||||
{}
|
||||
|
||||
void GetAggregateConfigRuleComplianceByPackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto configRuleComplianceResultNode = value["ConfigRuleComplianceResult"];
|
||||
if(!configRuleComplianceResultNode["CompliancePackId"].isNull())
|
||||
configRuleComplianceResult_.compliancePackId = configRuleComplianceResultNode["CompliancePackId"].asString();
|
||||
if(!configRuleComplianceResultNode["NonCompliantCount"].isNull())
|
||||
configRuleComplianceResult_.nonCompliantCount = std::stoi(configRuleComplianceResultNode["NonCompliantCount"].asString());
|
||||
if(!configRuleComplianceResultNode["TotalCount"].isNull())
|
||||
configRuleComplianceResult_.totalCount = std::stoi(configRuleComplianceResultNode["TotalCount"].asString());
|
||||
auto allConfigRuleCompliancesNode = configRuleComplianceResultNode["ConfigRuleCompliances"]["ConfigRuleCompliancesItem"];
|
||||
for (auto configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem : allConfigRuleCompliancesNode)
|
||||
{
|
||||
ConfigRuleComplianceResult::ConfigRuleCompliancesItem configRuleCompliancesItemObject;
|
||||
if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ComplianceType"].isNull())
|
||||
configRuleCompliancesItemObject.complianceType = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ComplianceType"].asString();
|
||||
if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleName"].isNull())
|
||||
configRuleCompliancesItemObject.configRuleName = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleName"].asString();
|
||||
if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleId"].isNull())
|
||||
configRuleCompliancesItemObject.configRuleId = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleId"].asString();
|
||||
configRuleComplianceResult_.configRuleCompliances.push_back(configRuleCompliancesItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GetAggregateConfigRuleComplianceByPackResult::ConfigRuleComplianceResult GetAggregateConfigRuleComplianceByPackResult::getConfigRuleComplianceResult()const
|
||||
{
|
||||
return configRuleComplianceResult_;
|
||||
}
|
||||
|
||||
45
config/src/model/GetAggregateConfigRuleRequest.cc
Normal file
45
config/src/model/GetAggregateConfigRuleRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GetAggregateConfigRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GetAggregateConfigRuleRequest;
|
||||
|
||||
GetAggregateConfigRuleRequest::GetAggregateConfigRuleRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAggregateConfigRuleRequest::~GetAggregateConfigRuleRequest() {}
|
||||
|
||||
std::string GetAggregateConfigRuleRequest::getConfigRuleId() const {
|
||||
return configRuleId_;
|
||||
}
|
||||
|
||||
void GetAggregateConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) {
|
||||
configRuleId_ = configRuleId;
|
||||
setParameter(std::string("ConfigRuleId"), configRuleId);
|
||||
}
|
||||
|
||||
std::string GetAggregateConfigRuleRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GetAggregateConfigRuleRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
185
config/src/model/GetAggregateConfigRuleResult.cc
Normal file
185
config/src/model/GetAggregateConfigRuleResult.cc
Normal 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/config/model/GetAggregateConfigRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetAggregateConfigRuleResult::GetAggregateConfigRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAggregateConfigRuleResult::GetAggregateConfigRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAggregateConfigRuleResult::~GetAggregateConfigRuleResult()
|
||||
{}
|
||||
|
||||
void GetAggregateConfigRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto configRuleNode = value["ConfigRule"];
|
||||
if(!configRuleNode["RiskLevel"].isNull())
|
||||
configRule_.riskLevel = std::stoi(configRuleNode["RiskLevel"].asString());
|
||||
if(!configRuleNode["InputParameters"].isNull())
|
||||
configRule_.inputParameters = configRuleNode["InputParameters"].asString();
|
||||
if(!configRuleNode["ConfigRuleState"].isNull())
|
||||
configRule_.configRuleState = configRuleNode["ConfigRuleState"].asString();
|
||||
if(!configRuleNode["MaximumExecutionFrequency"].isNull())
|
||||
configRule_.maximumExecutionFrequency = configRuleNode["MaximumExecutionFrequency"].asString();
|
||||
if(!configRuleNode["ConfigRuleArn"].isNull())
|
||||
configRule_.configRuleArn = configRuleNode["ConfigRuleArn"].asString();
|
||||
if(!configRuleNode["Description"].isNull())
|
||||
configRule_.description = configRuleNode["Description"].asString();
|
||||
if(!configRuleNode["ConfigRuleName"].isNull())
|
||||
configRule_.configRuleName = configRuleNode["ConfigRuleName"].asString();
|
||||
if(!configRuleNode["ConfigRuleId"].isNull())
|
||||
configRule_.configRuleId = configRuleNode["ConfigRuleId"].asString();
|
||||
if(!configRuleNode["ModifiedTimestamp"].isNull())
|
||||
configRule_.modifiedTimestamp = std::stol(configRuleNode["ModifiedTimestamp"].asString());
|
||||
if(!configRuleNode["CreateTimestamp"].isNull())
|
||||
configRule_.createTimestamp = std::stol(configRuleNode["CreateTimestamp"].asString());
|
||||
if(!configRuleNode["ResourceTypesScope"].isNull())
|
||||
configRule_.resourceTypesScope = configRuleNode["ResourceTypesScope"].asString();
|
||||
if(!configRuleNode["RegionIdsScope"].isNull())
|
||||
configRule_.regionIdsScope = configRuleNode["RegionIdsScope"].asString();
|
||||
if(!configRuleNode["ExcludeResourceIdsScope"].isNull())
|
||||
configRule_.excludeResourceIdsScope = configRuleNode["ExcludeResourceIdsScope"].asString();
|
||||
if(!configRuleNode["ResourceGroupIdsScope"].isNull())
|
||||
configRule_.resourceGroupIdsScope = configRuleNode["ResourceGroupIdsScope"].asString();
|
||||
if(!configRuleNode["TagKeyScope"].isNull())
|
||||
configRule_.tagKeyScope = configRuleNode["TagKeyScope"].asString();
|
||||
if(!configRuleNode["TagValueScope"].isNull())
|
||||
configRule_.tagValueScope = configRuleNode["TagValueScope"].asString();
|
||||
if(!configRuleNode["ConfigRuleTriggerTypes"].isNull())
|
||||
configRule_.configRuleTriggerTypes = configRuleNode["ConfigRuleTriggerTypes"].asString();
|
||||
if(!configRuleNode["TagKeyLogicScope"].isNull())
|
||||
configRule_.tagKeyLogicScope = configRuleNode["TagKeyLogicScope"].asString();
|
||||
if(!configRuleNode["FolderIdsScope"].isNull())
|
||||
configRule_.folderIdsScope = configRuleNode["FolderIdsScope"].asString();
|
||||
if(!configRuleNode["ExcludeFolderIdsScope"].isNull())
|
||||
configRule_.excludeFolderIdsScope = configRuleNode["ExcludeFolderIdsScope"].asString();
|
||||
if(!configRuleNode["ExcludeAccountIdsScope"].isNull())
|
||||
configRule_.excludeAccountIdsScope = configRuleNode["ExcludeAccountIdsScope"].asString();
|
||||
if(!configRuleNode["AccountId"].isNull())
|
||||
configRule_.accountId = std::stol(configRuleNode["AccountId"].asString());
|
||||
if(!configRuleNode["ServiceChannel"].isNull())
|
||||
configRule_.serviceChannel = configRuleNode["ServiceChannel"].asString();
|
||||
auto sourceNode = configRuleNode["Source"];
|
||||
if(!sourceNode["Owner"].isNull())
|
||||
configRule_.source.owner = sourceNode["Owner"].asString();
|
||||
if(!sourceNode["Identifier"].isNull())
|
||||
configRule_.source.identifier = sourceNode["Identifier"].asString();
|
||||
auto allSourceDetailsNode = sourceNode["SourceDetails"]["SourceDetailsItem"];
|
||||
for (auto sourceNodeSourceDetailsSourceDetailsItem : allSourceDetailsNode)
|
||||
{
|
||||
ConfigRule::Source::SourceDetailsItem sourceDetailsItemObject;
|
||||
if(!sourceNodeSourceDetailsSourceDetailsItem["MessageType"].isNull())
|
||||
sourceDetailsItemObject.messageType = sourceNodeSourceDetailsSourceDetailsItem["MessageType"].asString();
|
||||
if(!sourceNodeSourceDetailsSourceDetailsItem["EventSource"].isNull())
|
||||
sourceDetailsItemObject.eventSource = sourceNodeSourceDetailsSourceDetailsItem["EventSource"].asString();
|
||||
if(!sourceNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].isNull())
|
||||
sourceDetailsItemObject.maximumExecutionFrequency = sourceNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString();
|
||||
configRule_.source.sourceDetails.push_back(sourceDetailsItemObject);
|
||||
}
|
||||
auto allSourceConditions = sourceNode["SourceConditions"]["SourceConditions"];
|
||||
for (auto value : allSourceConditions)
|
||||
configRule_.source.sourceConditions.push_back(value.asString());
|
||||
auto managedRuleNode = configRuleNode["ManagedRule"];
|
||||
if(!managedRuleNode["HelpUrl"].isNull())
|
||||
configRule_.managedRule.helpUrl = managedRuleNode["HelpUrl"].asString();
|
||||
if(!managedRuleNode["Description"].isNull())
|
||||
configRule_.managedRule.description = managedRuleNode["Description"].asString();
|
||||
if(!managedRuleNode["Identifier"].isNull())
|
||||
configRule_.managedRule.identifier = managedRuleNode["Identifier"].asString();
|
||||
if(!managedRuleNode["OptionalInputParameterDetails"].isNull())
|
||||
configRule_.managedRule.optionalInputParameterDetails = managedRuleNode["OptionalInputParameterDetails"].asString();
|
||||
if(!managedRuleNode["ManagedRuleName"].isNull())
|
||||
configRule_.managedRule.managedRuleName = managedRuleNode["ManagedRuleName"].asString();
|
||||
if(!managedRuleNode["CompulsoryInputParameterDetails"].isNull())
|
||||
configRule_.managedRule.compulsoryInputParameterDetails = managedRuleNode["CompulsoryInputParameterDetails"].asString();
|
||||
auto allSourceDetails1Node = managedRuleNode["SourceDetails"]["SourceDetailsItem"];
|
||||
for (auto managedRuleNodeSourceDetailsSourceDetailsItem : allSourceDetails1Node)
|
||||
{
|
||||
ConfigRule::ManagedRule::SourceDetailsItem2 sourceDetailsItem2Object;
|
||||
if(!managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].isNull())
|
||||
sourceDetailsItem2Object.messageType = managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].asString();
|
||||
if(!managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].isNull())
|
||||
sourceDetailsItem2Object.eventSource = managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].asString();
|
||||
if(!managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].isNull())
|
||||
sourceDetailsItem2Object.maximumExecutionFrequency = managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString();
|
||||
configRule_.managedRule.sourceDetails1.push_back(sourceDetailsItem2Object);
|
||||
}
|
||||
auto allLabels = managedRuleNode["Labels"]["Labels"];
|
||||
for (auto value : allLabels)
|
||||
configRule_.managedRule.labels.push_back(value.asString());
|
||||
auto createByNode = configRuleNode["CreateBy"];
|
||||
if(!createByNode["CompliancePackId"].isNull())
|
||||
configRule_.createBy.compliancePackId = createByNode["CompliancePackId"].asString();
|
||||
if(!createByNode["AggregatorName"].isNull())
|
||||
configRule_.createBy.aggregatorName = createByNode["AggregatorName"].asString();
|
||||
if(!createByNode["CompliancePackName"].isNull())
|
||||
configRule_.createBy.compliancePackName = createByNode["CompliancePackName"].asString();
|
||||
if(!createByNode["CreatorName"].isNull())
|
||||
configRule_.createBy.creatorName = createByNode["CreatorName"].asString();
|
||||
if(!createByNode["CreatorType"].isNull())
|
||||
configRule_.createBy.creatorType = createByNode["CreatorType"].asString();
|
||||
if(!createByNode["CreatorId"].isNull())
|
||||
configRule_.createBy.creatorId = createByNode["CreatorId"].asString();
|
||||
if(!createByNode["AggregatorId"].isNull())
|
||||
configRule_.createBy.aggregatorId = createByNode["AggregatorId"].asString();
|
||||
auto configRuleEvaluationStatusNode = configRuleNode["ConfigRuleEvaluationStatus"];
|
||||
if(!configRuleEvaluationStatusNode["LastErrorCode"].isNull())
|
||||
configRule_.configRuleEvaluationStatus.lastErrorCode = configRuleEvaluationStatusNode["LastErrorCode"].asString();
|
||||
if(!configRuleEvaluationStatusNode["LastSuccessfulEvaluationTimestamp"].isNull())
|
||||
configRule_.configRuleEvaluationStatus.lastSuccessfulEvaluationTimestamp = std::stol(configRuleEvaluationStatusNode["LastSuccessfulEvaluationTimestamp"].asString());
|
||||
if(!configRuleEvaluationStatusNode["FirstActivatedTimestamp"].isNull())
|
||||
configRule_.configRuleEvaluationStatus.firstActivatedTimestamp = std::stol(configRuleEvaluationStatusNode["FirstActivatedTimestamp"].asString());
|
||||
if(!configRuleEvaluationStatusNode["FirstEvaluationStarted"].isNull())
|
||||
configRule_.configRuleEvaluationStatus.firstEvaluationStarted = configRuleEvaluationStatusNode["FirstEvaluationStarted"].asString() == "true";
|
||||
if(!configRuleEvaluationStatusNode["LastSuccessfulInvocationTimestamp"].isNull())
|
||||
configRule_.configRuleEvaluationStatus.lastSuccessfulInvocationTimestamp = std::stol(configRuleEvaluationStatusNode["LastSuccessfulInvocationTimestamp"].asString());
|
||||
if(!configRuleEvaluationStatusNode["LastErrorMessage"].isNull())
|
||||
configRule_.configRuleEvaluationStatus.lastErrorMessage = configRuleEvaluationStatusNode["LastErrorMessage"].asString();
|
||||
if(!configRuleEvaluationStatusNode["LastFailedEvaluationTimestamp"].isNull())
|
||||
configRule_.configRuleEvaluationStatus.lastFailedEvaluationTimestamp = std::stol(configRuleEvaluationStatusNode["LastFailedEvaluationTimestamp"].asString());
|
||||
if(!configRuleEvaluationStatusNode["LastFailedInvocationTimestamp"].isNull())
|
||||
configRule_.configRuleEvaluationStatus.lastFailedInvocationTimestamp = std::stol(configRuleEvaluationStatusNode["LastFailedInvocationTimestamp"].asString());
|
||||
auto scopeNode = configRuleNode["Scope"];
|
||||
auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["ComplianceResourceTypes"];
|
||||
for (auto value : allComplianceResourceTypes)
|
||||
configRule_.scope.complianceResourceTypes.push_back(value.asString());
|
||||
auto complianceNode = configRuleNode["Compliance"];
|
||||
if(!complianceNode["ComplianceType"].isNull())
|
||||
configRule_.compliance.complianceType = complianceNode["ComplianceType"].asString();
|
||||
if(!complianceNode["Count"].isNull())
|
||||
configRule_.compliance.count = std::stoi(complianceNode["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetAggregateConfigRuleResult::ConfigRule GetAggregateConfigRuleResult::getConfigRule()const
|
||||
{
|
||||
return configRule_;
|
||||
}
|
||||
|
||||
@@ -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/config/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GetAggregateConfigRuleSummaryByRiskLevelRequest;
|
||||
|
||||
GetAggregateConfigRuleSummaryByRiskLevelRequest::GetAggregateConfigRuleSummaryByRiskLevelRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRuleSummaryByRiskLevel") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetAggregateConfigRuleSummaryByRiskLevelRequest::~GetAggregateConfigRuleSummaryByRiskLevelRequest() {}
|
||||
|
||||
std::string GetAggregateConfigRuleSummaryByRiskLevelRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GetAggregateConfigRuleSummaryByRiskLevelRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
@@ -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/config/model/GetAggregateConfigRuleSummaryByRiskLevelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Config;
|
||||
using namespace AlibabaCloud::Config::Model;
|
||||
|
||||
GetAggregateConfigRuleSummaryByRiskLevelResult::GetAggregateConfigRuleSummaryByRiskLevelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAggregateConfigRuleSummaryByRiskLevelResult::GetAggregateConfigRuleSummaryByRiskLevelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAggregateConfigRuleSummaryByRiskLevelResult::~GetAggregateConfigRuleSummaryByRiskLevelResult()
|
||||
{}
|
||||
|
||||
void GetAggregateConfigRuleSummaryByRiskLevelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allConfigRuleSummariesNode = value["ConfigRuleSummaries"]["Data"];
|
||||
for (auto valueConfigRuleSummariesData : allConfigRuleSummariesNode)
|
||||
{
|
||||
Data configRuleSummariesObject;
|
||||
if(!valueConfigRuleSummariesData["RiskLevel"].isNull())
|
||||
configRuleSummariesObject.riskLevel = std::stoi(valueConfigRuleSummariesData["RiskLevel"].asString());
|
||||
if(!valueConfigRuleSummariesData["CompliantCount"].isNull())
|
||||
configRuleSummariesObject.compliantCount = std::stoi(valueConfigRuleSummariesData["CompliantCount"].asString());
|
||||
if(!valueConfigRuleSummariesData["NonCompliantCount"].isNull())
|
||||
configRuleSummariesObject.nonCompliantCount = std::stoi(valueConfigRuleSummariesData["NonCompliantCount"].asString());
|
||||
configRuleSummaries_.push_back(configRuleSummariesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetAggregateConfigRuleSummaryByRiskLevelResult::Data> GetAggregateConfigRuleSummaryByRiskLevelResult::getConfigRuleSummaries()const
|
||||
{
|
||||
return configRuleSummaries_;
|
||||
}
|
||||
|
||||
45
config/src/model/GetAggregateConfigRulesReportRequest.cc
Normal file
45
config/src/model/GetAggregateConfigRulesReportRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/config/model/GetAggregateConfigRulesReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Config::Model::GetAggregateConfigRulesReportRequest;
|
||||
|
||||
GetAggregateConfigRulesReportRequest::GetAggregateConfigRulesReportRequest()
|
||||
: RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRulesReport") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAggregateConfigRulesReportRequest::~GetAggregateConfigRulesReportRequest() {}
|
||||
|
||||
std::string GetAggregateConfigRulesReportRequest::getReportId() const {
|
||||
return reportId_;
|
||||
}
|
||||
|
||||
void GetAggregateConfigRulesReportRequest::setReportId(const std::string &reportId) {
|
||||
reportId_ = reportId;
|
||||
setParameter(std::string("ReportId"), reportId);
|
||||
}
|
||||
|
||||
std::string GetAggregateConfigRulesReportRequest::getAggregatorId() const {
|
||||
return aggregatorId_;
|
||||
}
|
||||
|
||||
void GetAggregateConfigRulesReportRequest::setAggregatorId(const std::string &aggregatorId) {
|
||||
aggregatorId_ = aggregatorId;
|
||||
setParameter(std::string("AggregatorId"), aggregatorId);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user