Compare commits

..

16 Commits

Author SHA1 Message Date
sdk-team
85b4b44446 Generated 2016-04-08 for Emr. 2021-12-20 08:59:11 +00:00
sdk-team
b7f51abaa3 Support Endpoint Protect. 2021-12-17 08:57:17 +00:00
sdk-team
3a799926cc Supported ACL for SMB. 2021-12-17 07:01:56 +00:00
sdk-team
f640148ecc Release for sprint 2_2_0. 2021-12-16 14:19:17 +00:00
sdk-team
541be1be3e Update OTA API, including CreateOTADynamicUpgradeJob,CreateOTAStaticUpgradeJob,QueryOTAJob. 2021-12-16 08:52:58 +00:00
sdk-team
706b0f8216 Support query resourceType. 2021-12-14 09:42:22 +00:00
sdk-team
892c369789 Generated 2019-09-10 for waf-openapi. 2021-12-14 07:56:52 +00:00
sdk-team
f9c588487c CreateServerlessDBInstance Add CapacityUnit. 2021-12-13 15:23:02 +00:00
sdk-team
feb2350da9 Openapi support querydisplay. 2021-12-13 11:17:26 +00:00
sdk-team
0c4ce878a8 Support query resourceType. 2021-12-13 07:31:45 +00:00
sdk-team
7fa4a0d0a5 Support query resourceType. 2021-12-13 07:09:24 +00:00
sdk-team
269c197a87 Support query resourceType. 2021-12-13 04:23:25 +00:00
sdk-team
6aa3c65c39 Support ACR EE, OSS, EIP for deploy. 2021-12-09 08:28:40 +00:00
sdk-team
1d2cdfa39f Add API for New Features. 2021-12-08 08:56:02 +00:00
sdk-team
e2c355f334 Fixed bugs for UnbindSubscription API. 2021-12-08 06:29:57 +00:00
sdk-team
669f7e68c2 Fix DescribeInstances clusterId. 2021-12-07 13:38:36 +00:00
1242 changed files with 49591 additions and 46867 deletions

View File

@@ -1,3 +1,51 @@
2021-12-20 Version: 1.36.985
- Generated 2016-04-08 for `Emr`.
2021-12-17 Version: 1.36.984
- Support Endpoint Protect.
2021-12-17 Version: 1.36.983
- Supported ACL for SMB.
2021-12-16 Version: 1.36.982
- Release for sprint 2_2_0.
2021-12-16 Version: 1.36.981
- Update OTA API, including CreateOTADynamicUpgradeJob,CreateOTAStaticUpgradeJob,QueryOTAJob.
2021-12-14 Version: 1.36.980
- Support query resourceType.
2021-12-14 Version: 1.36.979
- Generated 2019-09-10 for `waf-openapi`.
2021-12-13 Version: 1.36.978
- CreateServerlessDBInstance Add CapacityUnit.
2021-12-13 Version: 1.36.977
- Openapi support querydisplay.
2021-12-13 Version: 1.36.976
- Support query resourceType.
2021-12-13 Version: 1.36.975
- Support query resourceType.
2021-12-13 Version: 1.36.974
- Support query resourceType.
2021-12-09 Version: 1.36.973
- Support ACR EE, OSS, EIP for deploy.
2021-12-08 Version: 1.36.972
- Add API for New Features.
2021-12-08 Version: 1.36.971
- Fixed bugs for UnbindSubscription API.
2021-12-07 Version: 1.36.970
- Fix DescribeInstances clusterId.
2021-12-07 Version: 1.36.969
- Add MetaTag APIs.

View File

@@ -1 +1 @@
1.36.969
1.36.985

View File

@@ -95,6 +95,7 @@ namespace AlibabaCloud
std::string releaseInitiator;
std::string instanceId;
long startTime;
std::string earlyMediaState;
long callDuration;
std::vector<QueueEventsItem> queueEvents;
std::string calleeLocation;

View File

@@ -45,6 +45,8 @@ namespace AlibabaCloud
void setStartTime(long startTime);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getEarlyMediaStateList()const;
void setEarlyMediaStateList(const std::string& earlyMediaStateList);
std::string getCalledNumber()const;
void setCalledNumber(const std::string& calledNumber);
std::string getSatisfactionList()const;
@@ -78,6 +80,7 @@ namespace AlibabaCloud
std::string orderByField_;
long startTime_;
int pageNumber_;
std::string earlyMediaStateList_;
std::string calledNumber_;
std::string satisfactionList_;
int pageSize_;

View File

@@ -53,6 +53,7 @@ namespace AlibabaCloud
std::string releaseInitiator;
std::string instanceId;
long startTime;
std::string earlyMediaState;
long ringTime;
std::string callDuration;
std::string calleeLocation;

View File

@@ -51,6 +51,8 @@ namespace AlibabaCloud
void setCaller(const std::string& caller);
std::string getInstanceId()const;
void setInstanceId(const std::string& instanceId);
std::string getSkillGroupId()const;
void setSkillGroupId(const std::string& skillGroupId);
private:
std::string contactFlowId_;
@@ -61,6 +63,7 @@ namespace AlibabaCloud
int timeoutSeconds_;
std::string caller_;
std::string instanceId_;
std::string skillGroupId_;
};
}

View File

@@ -82,6 +82,8 @@ void GetCallDetailRecordResult::parse(const std::string &payload)
data_.callerLocation = dataNode["CallerLocation"].asString();
if(!dataNode["CalleeLocation"].isNull())
data_.calleeLocation = dataNode["CalleeLocation"].asString();
if(!dataNode["EarlyMediaState"].isNull())
data_.earlyMediaState = dataNode["EarlyMediaState"].asString();
auto allAgentEventsNode = dataNode["AgentEvents"]["AgentEventsItem"];
for (auto dataNodeAgentEventsAgentEventsItem : allAgentEventsNode)
{

View File

@@ -82,6 +82,17 @@ void ListCallDetailRecordsRequest::setPageNumber(int pageNumber)
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCallDetailRecordsRequest::getEarlyMediaStateList()const
{
return earlyMediaStateList_;
}
void ListCallDetailRecordsRequest::setEarlyMediaStateList(const std::string& earlyMediaStateList)
{
earlyMediaStateList_ = earlyMediaStateList;
setParameter("EarlyMediaStateList", earlyMediaStateList);
}
std::string ListCallDetailRecordsRequest::getCalledNumber()const
{
return calledNumber_;

View File

@@ -108,6 +108,8 @@ void ListCallDetailRecordsResult::parse(const std::string &payload)
callDetailRecordObject.callerLocation = dataNodeListCallDetailRecord["CallerLocation"].asString();
if(!dataNodeListCallDetailRecord["CalleeLocation"].isNull())
callDetailRecordObject.calleeLocation = dataNodeListCallDetailRecord["CalleeLocation"].asString();
if(!dataNodeListCallDetailRecord["EarlyMediaState"].isNull())
callDetailRecordObject.earlyMediaState = dataNodeListCallDetailRecord["EarlyMediaState"].asString();
data_.list.push_back(callDetailRecordObject);
}
if(!value["Code"].isNull())

View File

@@ -115,3 +115,14 @@ void StartPredictiveCallRequest::setInstanceId(const std::string& instanceId)
setParameter("InstanceId", instanceId);
}
std::string StartPredictiveCallRequest::getSkillGroupId()const
{
return skillGroupId_;
}
void StartPredictiveCallRequest::setSkillGroupId(const std::string& skillGroupId)
{
skillGroupId_ = skillGroupId;
setParameter("SkillGroupId", skillGroupId);
}

View File

@@ -39,6 +39,8 @@ set(config_public_header_model
include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h
include/alibabacloud/config/model/DescribeEvaluationResultsRequest.h
include/alibabacloud/config/model/DescribeEvaluationResultsResult.h
include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h
include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h
include/alibabacloud/config/model/GetDiscoveredResourceCountsRequest.h
include/alibabacloud/config/model/GetDiscoveredResourceCountsResult.h
include/alibabacloud/config/model/GetDiscoveredResourceSummaryRequest.h
@@ -49,10 +51,14 @@ set(config_public_header_model
include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h
include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h
include/alibabacloud/config/model/GetSupportedResourceTypesResult.h
include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h
include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h
include/alibabacloud/config/model/ListConfigRulesRequest.h
include/alibabacloud/config/model/ListConfigRulesResult.h
include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h
include/alibabacloud/config/model/ListDiscoveredResourcesResult.h
include/alibabacloud/config/model/ListRemediationTemplatesRequest.h
include/alibabacloud/config/model/ListRemediationTemplatesResult.h
include/alibabacloud/config/model/PutConfigRuleRequest.h
include/alibabacloud/config/model/PutConfigRuleResult.h
include/alibabacloud/config/model/PutConfigurationRecorderRequest.h
@@ -88,6 +94,8 @@ set(config_src
src/model/DescribeDiscoveredResourceResult.cc
src/model/DescribeEvaluationResultsRequest.cc
src/model/DescribeEvaluationResultsResult.cc
src/model/GetAggregateDiscoveredResourceRequest.cc
src/model/GetAggregateDiscoveredResourceResult.cc
src/model/GetDiscoveredResourceCountsRequest.cc
src/model/GetDiscoveredResourceCountsResult.cc
src/model/GetDiscoveredResourceSummaryRequest.cc
@@ -98,10 +106,14 @@ set(config_src
src/model/GetResourceConfigurationTimelineResult.cc
src/model/GetSupportedResourceTypesRequest.cc
src/model/GetSupportedResourceTypesResult.cc
src/model/ListAggregateDiscoveredResourcesRequest.cc
src/model/ListAggregateDiscoveredResourcesResult.cc
src/model/ListConfigRulesRequest.cc
src/model/ListConfigRulesResult.cc
src/model/ListDiscoveredResourcesRequest.cc
src/model/ListDiscoveredResourcesResult.cc
src/model/ListRemediationTemplatesRequest.cc
src/model/ListRemediationTemplatesResult.cc
src/model/PutConfigRuleRequest.cc
src/model/PutConfigRuleResult.cc
src/model/PutConfigurationRecorderRequest.cc

View File

@@ -40,6 +40,8 @@
#include "model/DescribeDiscoveredResourceResult.h"
#include "model/DescribeEvaluationResultsRequest.h"
#include "model/DescribeEvaluationResultsResult.h"
#include "model/GetAggregateDiscoveredResourceRequest.h"
#include "model/GetAggregateDiscoveredResourceResult.h"
#include "model/GetDiscoveredResourceCountsRequest.h"
#include "model/GetDiscoveredResourceCountsResult.h"
#include "model/GetDiscoveredResourceSummaryRequest.h"
@@ -50,10 +52,14 @@
#include "model/GetResourceConfigurationTimelineResult.h"
#include "model/GetSupportedResourceTypesRequest.h"
#include "model/GetSupportedResourceTypesResult.h"
#include "model/ListAggregateDiscoveredResourcesRequest.h"
#include "model/ListAggregateDiscoveredResourcesResult.h"
#include "model/ListConfigRulesRequest.h"
#include "model/ListConfigRulesResult.h"
#include "model/ListDiscoveredResourcesRequest.h"
#include "model/ListDiscoveredResourcesResult.h"
#include "model/ListRemediationTemplatesRequest.h"
#include "model/ListRemediationTemplatesResult.h"
#include "model/PutConfigRuleRequest.h"
#include "model/PutConfigRuleResult.h"
#include "model/PutConfigurationRecorderRequest.h"
@@ -104,6 +110,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeEvaluationResultsResult> DescribeEvaluationResultsOutcome;
typedef std::future<DescribeEvaluationResultsOutcome> DescribeEvaluationResultsOutcomeCallable;
typedef std::function<void(const ConfigClient*, const Model::DescribeEvaluationResultsRequest&, const DescribeEvaluationResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEvaluationResultsAsyncHandler;
typedef Outcome<Error, Model::GetAggregateDiscoveredResourceResult> GetAggregateDiscoveredResourceOutcome;
typedef std::future<GetAggregateDiscoveredResourceOutcome> GetAggregateDiscoveredResourceOutcomeCallable;
typedef std::function<void(const ConfigClient*, const Model::GetAggregateDiscoveredResourceRequest&, const GetAggregateDiscoveredResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAggregateDiscoveredResourceAsyncHandler;
typedef Outcome<Error, Model::GetDiscoveredResourceCountsResult> GetDiscoveredResourceCountsOutcome;
typedef std::future<GetDiscoveredResourceCountsOutcome> GetDiscoveredResourceCountsOutcomeCallable;
typedef std::function<void(const ConfigClient*, const Model::GetDiscoveredResourceCountsRequest&, const GetDiscoveredResourceCountsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDiscoveredResourceCountsAsyncHandler;
@@ -119,12 +128,18 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetSupportedResourceTypesResult> GetSupportedResourceTypesOutcome;
typedef std::future<GetSupportedResourceTypesOutcome> GetSupportedResourceTypesOutcomeCallable;
typedef std::function<void(const ConfigClient*, const Model::GetSupportedResourceTypesRequest&, const GetSupportedResourceTypesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSupportedResourceTypesAsyncHandler;
typedef Outcome<Error, Model::ListAggregateDiscoveredResourcesResult> ListAggregateDiscoveredResourcesOutcome;
typedef std::future<ListAggregateDiscoveredResourcesOutcome> ListAggregateDiscoveredResourcesOutcomeCallable;
typedef std::function<void(const ConfigClient*, const Model::ListAggregateDiscoveredResourcesRequest&, const ListAggregateDiscoveredResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAggregateDiscoveredResourcesAsyncHandler;
typedef Outcome<Error, Model::ListConfigRulesResult> ListConfigRulesOutcome;
typedef std::future<ListConfigRulesOutcome> ListConfigRulesOutcomeCallable;
typedef std::function<void(const ConfigClient*, const Model::ListConfigRulesRequest&, const ListConfigRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListConfigRulesAsyncHandler;
typedef Outcome<Error, Model::ListDiscoveredResourcesResult> ListDiscoveredResourcesOutcome;
typedef std::future<ListDiscoveredResourcesOutcome> ListDiscoveredResourcesOutcomeCallable;
typedef std::function<void(const ConfigClient*, const Model::ListDiscoveredResourcesRequest&, const ListDiscoveredResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDiscoveredResourcesAsyncHandler;
typedef Outcome<Error, Model::ListRemediationTemplatesResult> ListRemediationTemplatesOutcome;
typedef std::future<ListRemediationTemplatesOutcome> ListRemediationTemplatesOutcomeCallable;
typedef std::function<void(const ConfigClient*, const Model::ListRemediationTemplatesRequest&, const ListRemediationTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRemediationTemplatesAsyncHandler;
typedef Outcome<Error, Model::PutConfigRuleResult> PutConfigRuleOutcome;
typedef std::future<PutConfigRuleOutcome> PutConfigRuleOutcomeCallable;
typedef std::function<void(const ConfigClient*, const Model::PutConfigRuleRequest&, const PutConfigRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutConfigRuleAsyncHandler;
@@ -178,6 +193,9 @@ namespace AlibabaCloud
DescribeEvaluationResultsOutcome describeEvaluationResults(const Model::DescribeEvaluationResultsRequest &request)const;
void describeEvaluationResultsAsync(const Model::DescribeEvaluationResultsRequest& request, const DescribeEvaluationResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeEvaluationResultsOutcomeCallable describeEvaluationResultsCallable(const Model::DescribeEvaluationResultsRequest& request) const;
GetAggregateDiscoveredResourceOutcome getAggregateDiscoveredResource(const Model::GetAggregateDiscoveredResourceRequest &request)const;
void getAggregateDiscoveredResourceAsync(const Model::GetAggregateDiscoveredResourceRequest& request, const GetAggregateDiscoveredResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetAggregateDiscoveredResourceOutcomeCallable getAggregateDiscoveredResourceCallable(const Model::GetAggregateDiscoveredResourceRequest& request) const;
GetDiscoveredResourceCountsOutcome getDiscoveredResourceCounts(const Model::GetDiscoveredResourceCountsRequest &request)const;
void getDiscoveredResourceCountsAsync(const Model::GetDiscoveredResourceCountsRequest& request, const GetDiscoveredResourceCountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDiscoveredResourceCountsOutcomeCallable getDiscoveredResourceCountsCallable(const Model::GetDiscoveredResourceCountsRequest& request) const;
@@ -193,12 +211,18 @@ namespace AlibabaCloud
GetSupportedResourceTypesOutcome getSupportedResourceTypes(const Model::GetSupportedResourceTypesRequest &request)const;
void getSupportedResourceTypesAsync(const Model::GetSupportedResourceTypesRequest& request, const GetSupportedResourceTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSupportedResourceTypesOutcomeCallable getSupportedResourceTypesCallable(const Model::GetSupportedResourceTypesRequest& request) const;
ListAggregateDiscoveredResourcesOutcome listAggregateDiscoveredResources(const Model::ListAggregateDiscoveredResourcesRequest &request)const;
void listAggregateDiscoveredResourcesAsync(const Model::ListAggregateDiscoveredResourcesRequest& request, const ListAggregateDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListAggregateDiscoveredResourcesOutcomeCallable listAggregateDiscoveredResourcesCallable(const Model::ListAggregateDiscoveredResourcesRequest& request) const;
ListConfigRulesOutcome listConfigRules(const Model::ListConfigRulesRequest &request)const;
void listConfigRulesAsync(const Model::ListConfigRulesRequest& request, const ListConfigRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListConfigRulesOutcomeCallable listConfigRulesCallable(const Model::ListConfigRulesRequest& request) const;
ListDiscoveredResourcesOutcome listDiscoveredResources(const Model::ListDiscoveredResourcesRequest &request)const;
void listDiscoveredResourcesAsync(const Model::ListDiscoveredResourcesRequest& request, const ListDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListDiscoveredResourcesOutcomeCallable listDiscoveredResourcesCallable(const Model::ListDiscoveredResourcesRequest& request) const;
ListRemediationTemplatesOutcome listRemediationTemplates(const Model::ListRemediationTemplatesRequest &request)const;
void listRemediationTemplatesAsync(const Model::ListRemediationTemplatesRequest& request, const ListRemediationTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRemediationTemplatesOutcomeCallable listRemediationTemplatesCallable(const Model::ListRemediationTemplatesRequest& request) const;
PutConfigRuleOutcome putConfigRule(const Model::PutConfigRuleRequest &request)const;
void putConfigRuleAsync(const Model::PutConfigRuleRequest& request, const PutConfigRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PutConfigRuleOutcomeCallable putConfigRuleCallable(const Model::PutConfigRuleRequest& request) const;

View File

@@ -1,48 +1,42 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT ActiveConfigRulesRequest : public RpcServiceRequest
{
public:
ActiveConfigRulesRequest();
~ActiveConfigRulesRequest();
std::string getConfigRuleIds()const;
void setConfigRuleIds(const std::string& configRuleIds);
private:
std::string configRuleIds_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT ActiveConfigRulesRequest : public RpcServiceRequest {
public:
ActiveConfigRulesRequest();
~ActiveConfigRulesRequest();
std::string getConfigRuleIds() const;
void setConfigRuleIds(const std::string &configRuleIds);
private:
std::string configRuleIds_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT DeleteConfigRulesRequest : public RpcServiceRequest
{
public:
DeleteConfigRulesRequest();
~DeleteConfigRulesRequest();
std::string getConfigRuleIds()const;
void setConfigRuleIds(const std::string& configRuleIds);
private:
std::string configRuleIds_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT DeleteConfigRulesRequest : public RpcServiceRequest {
public:
DeleteConfigRulesRequest();
~DeleteConfigRulesRequest();
std::string getConfigRuleIds() const;
void setConfigRuleIds(const std::string &configRuleIds);
private:
std::string configRuleIds_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_

View File

@@ -1,63 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceRequest : public RpcServiceRequest
{
public:
DescribeComplianceRequest();
~DescribeComplianceRequest();
std::string getConfigRuleId()const;
void setConfigRuleId(const std::string& configRuleId);
std::string getResourceId()const;
void setResourceId(const std::string& resourceId);
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
std::string getComplianceType()const;
void setComplianceType(const std::string& complianceType);
long getMemberId()const;
void setMemberId(long memberId);
private:
std::string configRuleId_;
std::string resourceId_;
bool multiAccount_;
std::string resourceType_;
std::string complianceType_;
long memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceRequest : public RpcServiceRequest {
public:
DescribeComplianceRequest();
~DescribeComplianceRequest();
std::string getConfigRuleId() const;
void setConfigRuleId(const std::string &configRuleId);
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getComplianceType() const;
void setComplianceType(const std::string &complianceType);
long getMemberId() const;
void setMemberId(long memberId);
private:
std::string configRuleId_;
std::string resourceId_;
bool multiAccount_;
std::string resourceType_;
std::string complianceType_;
long memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_

View File

@@ -1,51 +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.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceSummaryRequest : public RpcServiceRequest
{
public:
DescribeComplianceSummaryRequest();
~DescribeComplianceSummaryRequest();
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
long getMemberId()const;
void setMemberId(long memberId);
private:
bool multiAccount_;
long memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceSummaryRequest : public RpcServiceRequest {
public:
DescribeComplianceSummaryRequest();
~DescribeComplianceSummaryRequest();
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
long getMemberId() const;
void setMemberId(long memberId);
private:
bool multiAccount_;
long memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_

View File

@@ -34,14 +34,14 @@ namespace AlibabaCloud
public:
struct ComplianceSummary
{
struct ComplianceSummaryByConfigRule
struct ComplianceSummaryByResource
{
long totalCount;
int compliantCount;
int nonCompliantCount;
long complianceSummaryTimestamp;
};
struct ComplianceSummaryByResource
struct ComplianceSummaryByConfigRule
{
long totalCount;
int compliantCount;

View File

@@ -1,54 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigRuleRequest : public RpcServiceRequest
{
public:
DescribeConfigRuleRequest();
~DescribeConfigRuleRequest();
std::string getConfigRuleId()const;
void setConfigRuleId(const std::string& configRuleId);
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
long getMemberId()const;
void setMemberId(long memberId);
private:
std::string configRuleId_;
bool multiAccount_;
long memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigRuleRequest : public RpcServiceRequest {
public:
DescribeConfigRuleRequest();
~DescribeConfigRuleRequest();
std::string getConfigRuleId() const;
void setConfigRuleId(const std::string &configRuleId);
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
long getMemberId() const;
void setMemberId(long memberId);
private:
std::string configRuleId_;
bool multiAccount_;
long memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_

View File

@@ -34,6 +34,45 @@ namespace AlibabaCloud
public:
struct ConfigRule
{
struct Source
{
struct SourceDetailsItem
{
std::string eventSource;
std::string messageType;
std::string maximumExecutionFrequency;
};
struct SourceConditionsItem
{
std::string desiredValue;
bool required;
std::string _operator;
std::string selectPath;
std::string tips;
std::string name;
};
std::string owner;
std::string identifier;
std::vector<SourceConditionsItem> sourceConditions;
std::vector<SourceDetailsItem> sourceDetails;
};
struct ManagedRule
{
struct SourceDetailsItem2
{
std::string eventSource;
std::string messageType;
std::string maximumExecutionFrequency;
};
std::string managedRuleName;
std::string optionalInputParameterDetails;
std::string description;
std::string identifier;
std::string compulsoryInputParameterDetails;
std::vector<std::string> labels;
std::vector<SourceDetailsItem2> sourceDetails1;
std::string helpUrl;
};
struct CreateBy
{
std::string creatorId;
@@ -42,61 +81,22 @@ namespace AlibabaCloud
std::string creatorType;
std::string creatorName;
};
struct ConfigRuleEvaluationStatus
{
std::string lastErrorMessage;
long lastFailedInvocationTimestamp;
long firstActivatedTimestamp;
long lastSuccessfulEvaluationTimestamp;
bool firstEvaluationStarted;
long lastFailedEvaluationTimestamp;
std::string lastErrorCode;
long lastSuccessfulInvocationTimestamp;
};
struct ManagedRule
{
struct SourceDetailsItem
{
std::string eventSource;
std::string maximumExecutionFrequency;
std::string messageType;
};
std::string managedRuleName;
std::string optionalInputParameterDetails;
std::string description;
std::string identifier;
std::string compulsoryInputParameterDetails;
std::vector<std::string> labels;
std::vector<SourceDetailsItem> sourceDetails;
std::string helpUrl;
};
struct Source
{
struct SourceConditionsItem
{
std::string desiredValue;
bool required;
std::string _operator;
std::string selectPath;
std::string name;
std::string tips;
};
struct SourceDetailsItem2
{
std::string eventSource;
std::string maximumExecutionFrequency;
std::string messageType;
};
std::string owner;
std::string identifier;
std::vector<SourceConditionsItem> sourceConditions;
std::vector<SourceDetailsItem2> sourceDetails1;
};
struct Scope
{
std::string complianceResourceId;
std::vector<std::string> complianceResourceTypes;
};
struct ConfigRuleEvaluationStatus
{
std::string lastErrorMessage;
long lastFailedInvocationTimestamp;
long lastSuccessfulEvaluationTimestamp;
long firstActivatedTimestamp;
bool firstEvaluationStarted;
long lastFailedEvaluationTimestamp;
std::string lastErrorCode;
long lastSuccessfulInvocationTimestamp;
};
ManagedRule managedRule;
std::string description;
CreateBy createBy;
@@ -104,13 +104,14 @@ namespace AlibabaCloud
Source source;
std::string configRuleState;
std::string maximumExecutionFrequency;
bool organizationRule;
std::string configRuleId;
Scope scope;
std::string configRuleArn;
long modifiedTimestamp;
std::string configRuleName;
long createTimestamp;
int riskLevel;
long createTimestamp;
std::string inputParameters;
};

View File

@@ -1,45 +1,39 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigurationRecorderRequest : public RpcServiceRequest
{
public:
DescribeConfigurationRecorderRequest();
~DescribeConfigurationRecorderRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigurationRecorderRequest : public RpcServiceRequest {
public:
DescribeConfigurationRecorderRequest();
~DescribeConfigurationRecorderRequest();
private:
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT DescribeDeliveryChannelsRequest : public RpcServiceRequest
{
public:
DescribeDeliveryChannelsRequest();
~DescribeDeliveryChannelsRequest();
std::string getDeliveryChannelIds()const;
void setDeliveryChannelIds(const std::string& deliveryChannelIds);
private:
std::string deliveryChannelIds_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT DescribeDeliveryChannelsRequest : public RpcServiceRequest {
public:
DescribeDeliveryChannelsRequest();
~DescribeDeliveryChannelsRequest();
std::string getDeliveryChannelIds() const;
void setDeliveryChannelIds(const std::string &deliveryChannelIds);
private:
std::string deliveryChannelIds_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_

View File

@@ -35,13 +35,17 @@ namespace AlibabaCloud
struct DeliveryChannel
{
int status;
bool configurationSnapshot;
std::string oversizedDataOSSTargetArn;
std::string description;
std::string deliveryChannelId;
std::string deliveryChannelName;
std::string deliveryChannelId;
std::string deliveryChannelTargetArn;
std::string deliveryChannelAssumeRoleArn;
bool configurationItemChangeNotification;
std::string deliveryChannelType;
std::string deliveryChannelCondition;
bool nonCompliantNotification;
};

View File

@@ -1,60 +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.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT DescribeDiscoveredResourceRequest : public RpcServiceRequest
{
public:
DescribeDiscoveredResourceRequest();
~DescribeDiscoveredResourceRequest();
std::string getResourceId()const;
void setResourceId(const std::string& resourceId);
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
std::string getRegion()const;
void setRegion(const std::string& region);
long getMemberId()const;
void setMemberId(long memberId);
private:
std::string resourceId_;
bool multiAccount_;
std::string resourceType_;
std::string region_;
long memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT DescribeDiscoveredResourceRequest : public RpcServiceRequest {
public:
DescribeDiscoveredResourceRequest();
~DescribeDiscoveredResourceRequest();
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getRegion() const;
void setRegion(const std::string &region);
long getMemberId() const;
void setMemberId(long memberId);
private:
std::string resourceId_;
bool multiAccount_;
std::string resourceType_;
std::string region_;
long memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_

View File

@@ -34,17 +34,17 @@ namespace AlibabaCloud
public:
struct DiscoveredResourceDetail
{
long accountId;
long resourceCreationTime;
long accountId;
std::string configuration;
std::string resourceId;
std::string resourceName;
std::string region;
std::string availabilityZone;
std::string region;
std::string resourceStatus;
std::string resourceType;
int resourceDeleted;
std::string tags;
int resourceDeleted;
};

View File

@@ -1,69 +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.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT DescribeEvaluationResultsRequest : public RpcServiceRequest
{
public:
DescribeEvaluationResultsRequest();
~DescribeEvaluationResultsRequest();
std::string getConfigRuleId()const;
void setConfigRuleId(const std::string& configRuleId);
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
int getPageNumber()const;
void setPageNumber(int pageNumber);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getComplianceType()const;
void setComplianceType(const std::string& complianceType);
std::string getResourceId()const;
void setResourceId(const std::string& resourceId);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
long getMemberId()const;
void setMemberId(long memberId);
private:
std::string configRuleId_;
bool multiAccount_;
int pageNumber_;
int pageSize_;
std::string complianceType_;
std::string resourceId_;
std::string resourceType_;
long memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT DescribeEvaluationResultsRequest : public RpcServiceRequest {
public:
DescribeEvaluationResultsRequest();
~DescribeEvaluationResultsRequest();
std::string getConfigRuleId() const;
void setConfigRuleId(const std::string &configRuleId);
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
int getPageNumber() const;
void setPageNumber(int pageNumber);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getComplianceType() const;
void setComplianceType(const std::string &complianceType);
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
long getMemberId() const;
void setMemberId(long memberId);
private:
std::string configRuleId_;
bool multiAccount_;
int pageNumber_;
int pageSize_;
std::string complianceType_;
std::string resourceId_;
std::string resourceType_;
long memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_

View File

@@ -43,6 +43,7 @@ namespace AlibabaCloud
std::string configRuleId;
std::string configRuleArn;
std::string resourceId;
std::string resourceName;
std::string configRuleName;
std::string resourceType;
std::string regionId;
@@ -56,6 +57,7 @@ namespace AlibabaCloud
std::string invokingEventMessageType;
EvaluationResultIdentifier evaluationResultIdentifier;
int riskLevel;
bool remediationEnabled;
std::string annotation;
};
std::vector<EvaluationResult> evaluationResultList;

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCEREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT GetAggregateDiscoveredResourceRequest : public RpcServiceRequest {
public:
GetAggregateDiscoveredResourceRequest();
~GetAggregateDiscoveredResourceRequest();
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAggregatorId() const;
void setAggregatorId(const std::string &aggregatorId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getRegion() const;
void setRegion(const std::string &region);
private:
std::string resourceId_;
long resourceOwnerId_;
std::string aggregatorId_;
std::string resourceType_;
std::string region_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCEREQUEST_H_

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCERESULT_H_
#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT GetAggregateDiscoveredResourceResult : public ServiceResult
{
public:
struct DiscoveredResourceDetail
{
long resourceCreationTime;
long accountId;
std::string configuration;
std::string resourceId;
std::string resourceName;
std::string availabilityZone;
std::string region;
std::string resourceStatus;
std::string resourceType;
std::string tags;
int resourceDeleted;
};
GetAggregateDiscoveredResourceResult();
explicit GetAggregateDiscoveredResourceResult(const std::string &payload);
~GetAggregateDiscoveredResourceResult();
DiscoveredResourceDetail getDiscoveredResourceDetail()const;
protected:
void parse(const std::string &payload);
private:
DiscoveredResourceDetail discoveredResourceDetail_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCERESULT_H_

View File

@@ -1,54 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsRequest : public RpcServiceRequest
{
public:
GetDiscoveredResourceCountsRequest();
~GetDiscoveredResourceCountsRequest();
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
std::string getGroupByKey()const;
void setGroupByKey(const std::string& groupByKey);
long getMemberId()const;
void setMemberId(long memberId);
private:
bool multiAccount_;
std::string groupByKey_;
long memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsRequest : public RpcServiceRequest {
public:
GetDiscoveredResourceCountsRequest();
~GetDiscoveredResourceCountsRequest();
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
std::string getGroupByKey() const;
void setGroupByKey(const std::string &groupByKey);
long getMemberId() const;
void setMemberId(long memberId);
private:
bool multiAccount_;
std::string groupByKey_;
long memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_

View File

@@ -1,51 +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.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceSummaryRequest : public RpcServiceRequest
{
public:
GetDiscoveredResourceSummaryRequest();
~GetDiscoveredResourceSummaryRequest();
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
long getMemberId()const;
void setMemberId(long memberId);
private:
bool multiAccount_;
long memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceSummaryRequest : public RpcServiceRequest {
public:
GetDiscoveredResourceSummaryRequest();
~GetDiscoveredResourceSummaryRequest();
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
long getMemberId() const;
void setMemberId(long memberId);
private:
bool multiAccount_;
long memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_

View File

@@ -35,8 +35,8 @@ namespace AlibabaCloud
struct DiscoveredResourceSummary
{
int resourceTypeCount;
int resourceCount;
int regionCount;
int resourceCount;
};

View File

@@ -1,72 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCETIMELINEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCETIMELINEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceTimelineRequest : public RpcServiceRequest
{
public:
GetResourceComplianceTimelineRequest();
~GetResourceComplianceTimelineRequest();
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
long getStartTime()const;
void setStartTime(long startTime);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
int getLimit()const;
void setLimit(int limit);
std::string getResourceId()const;
void setResourceId(const std::string& resourceId);
long getEndTime()const;
void setEndTime(long endTime);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
std::string getRegion()const;
void setRegion(const std::string& region);
std::string getMemberId()const;
void setMemberId(const std::string& memberId);
private:
bool multiAccount_;
long startTime_;
std::string nextToken_;
int limit_;
std::string resourceId_;
long endTime_;
std::string resourceType_;
std::string region_;
std::string memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCETIMELINEREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCETIMELINEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCETIMELINEREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceTimelineRequest : public RpcServiceRequest {
public:
GetResourceComplianceTimelineRequest();
~GetResourceComplianceTimelineRequest();
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
long getStartTime() const;
void setStartTime(long startTime);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
int getLimit() const;
void setLimit(int limit);
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
long getEndTime() const;
void setEndTime(long endTime);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getRegion() const;
void setRegion(const std::string &region);
std::string getMemberId() const;
void setMemberId(const std::string &memberId);
private:
bool multiAccount_;
long startTime_;
std::string nextToken_;
int limit_;
std::string resourceId_;
long endTime_;
std::string resourceType_;
std::string region_;
std::string memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCETIMELINEREQUEST_H_

View File

@@ -1,72 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECONFIGURATIONTIMELINEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECONFIGURATIONTIMELINEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT GetResourceConfigurationTimelineRequest : public RpcServiceRequest
{
public:
GetResourceConfigurationTimelineRequest();
~GetResourceConfigurationTimelineRequest();
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
long getStartTime()const;
void setStartTime(long startTime);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
int getLimit()const;
void setLimit(int limit);
std::string getResourceId()const;
void setResourceId(const std::string& resourceId);
long getEndTime()const;
void setEndTime(long endTime);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
std::string getRegion()const;
void setRegion(const std::string& region);
long getMemberId()const;
void setMemberId(long memberId);
private:
bool multiAccount_;
long startTime_;
std::string nextToken_;
int limit_;
std::string resourceId_;
long endTime_;
std::string resourceType_;
std::string region_;
long memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECONFIGURATIONTIMELINEREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECONFIGURATIONTIMELINEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECONFIGURATIONTIMELINEREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT GetResourceConfigurationTimelineRequest : public RpcServiceRequest {
public:
GetResourceConfigurationTimelineRequest();
~GetResourceConfigurationTimelineRequest();
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
long getStartTime() const;
void setStartTime(long startTime);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
int getLimit() const;
void setLimit(int limit);
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
long getEndTime() const;
void setEndTime(long endTime);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getRegion() const;
void setRegion(const std::string &region);
long getMemberId() const;
void setMemberId(long memberId);
private:
bool multiAccount_;
long startTime_;
std::string nextToken_;
int limit_;
std::string resourceId_;
long endTime_;
std::string resourceType_;
std::string region_;
long memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECONFIGURATIONTIMELINEREQUEST_H_

View File

@@ -1,45 +1,39 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT GetSupportedResourceTypesRequest : public RpcServiceRequest
{
public:
GetSupportedResourceTypesRequest();
~GetSupportedResourceTypesRequest();
private:
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT GetSupportedResourceTypesRequest : public RpcServiceRequest {
public:
GetSupportedResourceTypesRequest();
~GetSupportedResourceTypesRequest();
private:
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT ListAggregateDiscoveredResourcesRequest : public RpcServiceRequest {
public:
ListAggregateDiscoveredResourcesRequest();
~ListAggregateDiscoveredResourcesRequest();
int getResourceDeleted() const;
void setResourceDeleted(int resourceDeleted);
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getRegions() const;
void setRegions(const std::string &regions);
std::string getAggregatorId() const;
void setAggregatorId(const std::string &aggregatorId);
int getPageNumber() const;
void setPageNumber(int pageNumber);
std::string getFolderId() const;
void setFolderId(const std::string &folderId);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getComplianceType() const;
void setComplianceType(const std::string &complianceType);
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
std::string getResourceTypes() const;
void setResourceTypes(const std::string &resourceTypes);
private:
int resourceDeleted_;
long resourceOwnerId_;
std::string regions_;
std::string aggregatorId_;
int pageNumber_;
std::string folderId_;
int pageSize_;
std::string complianceType_;
std::string resourceId_;
std::string resourceTypes_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESRESULT_H_
#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT ListAggregateDiscoveredResourcesResult : public ServiceResult
{
public:
struct DiscoveredResourceProfiles
{
struct DiscoveredResourceProfile
{
long resourceCreationTime;
long accountId;
std::string resourceId;
std::string resourceName;
std::string region;
std::string resourceStatus;
std::string resourceType;
long resourceOwnerId;
std::string tags;
int resourceDeleted;
};
int totalCount;
int pageSize;
int pageNumber;
std::vector<DiscoveredResourceProfile> discoveredResourceProfileList;
};
ListAggregateDiscoveredResourcesResult();
explicit ListAggregateDiscoveredResourcesResult(const std::string &payload);
~ListAggregateDiscoveredResourcesResult();
DiscoveredResourceProfiles getDiscoveredResourceProfiles()const;
protected:
void parse(const std::string &payload);
private:
DiscoveredResourceProfiles discoveredResourceProfiles_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESRESULT_H_

View File

@@ -1,72 +1,78 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT ListConfigRulesRequest : public RpcServiceRequest
{
public:
ListConfigRulesRequest();
~ListConfigRulesRequest();
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
std::string getMessageType()const;
void setMessageType(const std::string& messageType);
std::string getConfigRuleState()const;
void setConfigRuleState(const std::string& configRuleState);
int getPageNumber()const;
void setPageNumber(int pageNumber);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getComplianceType()const;
void setComplianceType(const std::string& complianceType);
std::string getConfigRuleSceneId()const;
void setConfigRuleSceneId(const std::string& configRuleSceneId);
int getRiskLevel()const;
void setRiskLevel(int riskLevel);
long getMemberId()const;
void setMemberId(long memberId);
private:
bool multiAccount_;
std::string messageType_;
std::string configRuleState_;
int pageNumber_;
int pageSize_;
std::string complianceType_;
std::string configRuleSceneId_;
int riskLevel_;
long memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT ListConfigRulesRequest : public RpcServiceRequest {
public:
ListConfigRulesRequest();
~ListConfigRulesRequest();
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
bool getFilterInCompliancePack() const;
void setFilterInCompliancePack(bool filterInCompliancePack);
std::string getMessageType() const;
void setMessageType(const std::string &messageType);
std::string getConfigRuleState() const;
void setConfigRuleState(const std::string &configRuleState);
std::string getFilterInCompliancePackExcludeIds() const;
void setFilterInCompliancePackExcludeIds(const std::string &filterInCompliancePackExcludeIds);
int getPageNumber() const;
void setPageNumber(int pageNumber);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getCompliancePackId() const;
void setCompliancePackId(const std::string &compliancePackId);
std::string getComplianceType() const;
void setComplianceType(const std::string &complianceType);
std::string getConfigRuleSceneId() const;
void setConfigRuleSceneId(const std::string &configRuleSceneId);
int getRiskLevel() const;
void setRiskLevel(int riskLevel);
std::string getConfigRuleName() const;
void setConfigRuleName(const std::string &configRuleName);
long getMemberId() const;
void setMemberId(long memberId);
private:
bool multiAccount_;
bool filterInCompliancePack_;
std::string messageType_;
std::string configRuleState_;
std::string filterInCompliancePackExcludeIds_;
int pageNumber_;
int pageSize_;
std::string compliancePackId_;
std::string complianceType_;
std::string configRuleSceneId_;
int riskLevel_;
std::string configRuleName_;
long memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_

View File

@@ -43,24 +43,27 @@ namespace AlibabaCloud
};
struct CreateBy
{
std::string compliancePackId;
std::string compliancePackName;
std::string creatorId;
std::string configRuleSceneName;
std::string configRuleSceneId;
std::string creatorType;
std::string creatorName;
};
std::string configRuleId;
long accountId;
std::string description;
Compliance compliance;
std::string configRuleArn;
std::string automationType;
std::string sourceOwner;
CreateBy createBy;
std::string sourceIdentifier;
std::string configRuleState;
std::string compliancePackId;
std::string configRuleId;
std::string configRuleArn;
std::string automationType;
std::string configRuleName;
int riskLevel;
std::string configRuleState;
};
long totalCount;
int pageSize;

View File

@@ -1,72 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT ListDiscoveredResourcesRequest : public RpcServiceRequest
{
public:
ListDiscoveredResourcesRequest();
~ListDiscoveredResourcesRequest();
int getResourceDeleted()const;
void setResourceDeleted(int resourceDeleted);
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
std::string getRegions()const;
void setRegions(const std::string& regions);
int getPageNumber()const;
void setPageNumber(int pageNumber);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getComplianceType()const;
void setComplianceType(const std::string& complianceType);
std::string getResourceId()const;
void setResourceId(const std::string& resourceId);
std::string getResourceTypes()const;
void setResourceTypes(const std::string& resourceTypes);
long getMemberId()const;
void setMemberId(long memberId);
private:
int resourceDeleted_;
bool multiAccount_;
std::string regions_;
int pageNumber_;
int pageSize_;
std::string complianceType_;
std::string resourceId_;
std::string resourceTypes_;
long memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT ListDiscoveredResourcesRequest : public RpcServiceRequest {
public:
ListDiscoveredResourcesRequest();
~ListDiscoveredResourcesRequest();
int getResourceDeleted() const;
void setResourceDeleted(int resourceDeleted);
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
std::string getRegions() const;
void setRegions(const std::string &regions);
int getPageNumber() const;
void setPageNumber(int pageNumber);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getComplianceType() const;
void setComplianceType(const std::string &complianceType);
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
std::string getResourceTypes() const;
void setResourceTypes(const std::string &resourceTypes);
long getMemberId() const;
void setMemberId(long memberId);
private:
int resourceDeleted_;
bool multiAccount_;
std::string regions_;
int pageNumber_;
int pageSize_;
std::string complianceType_;
std::string resourceId_;
std::string resourceTypes_;
long memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_

View File

@@ -36,15 +36,15 @@ namespace AlibabaCloud
{
struct DiscoveredResourceProfile
{
long accountId;
long resourceCreationTime;
long accountId;
std::string resourceId;
std::string resourceName;
std::string region;
std::string resourceStatus;
std::string resourceType;
int resourceDeleted;
std::string tags;
int resourceDeleted;
};
int totalCount;
int pageSize;

View 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.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT ListRemediationTemplatesRequest : public RpcServiceRequest {
public:
ListRemediationTemplatesRequest();
~ListRemediationTemplatesRequest();
std::string getManagedRuleIdentifier() const;
void setManagedRuleIdentifier(const std::string &managedRuleIdentifier);
std::string getRemediationType() const;
void setRemediationType(const std::string &remediationType);
private:
std::string managedRuleIdentifier_;
std::string remediationType_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESREQUEST_H_

View File

@@ -14,43 +14,46 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_EMR_MODEL_GETUSERINPUTSTATISTICINFORESULT_H_
#define ALIBABACLOUD_EMR_MODEL_GETUSERINPUTSTATISTICINFORESULT_H_
#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESRESULT_H_
#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/emr/EmrExport.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Emr
namespace Config
{
namespace Model
{
class ALIBABACLOUD_EMR_EXPORT GetUserInputStatisticInfoResult : public ServiceResult
class ALIBABACLOUD_CONFIG_EXPORT ListRemediationTemplatesResult : public ServiceResult
{
public:
struct ClusterStatUserInput
struct RemediationTemplate
{
std::string user;
long bytesInput;
std::string templateIdentifier;
std::string compulsoryParameters;
std::string templateName;
std::string templateDefinition;
std::string remediationType;
};
GetUserInputStatisticInfoResult();
explicit GetUserInputStatisticInfoResult(const std::string &payload);
~GetUserInputStatisticInfoResult();
std::vector<ClusterStatUserInput> getUserInputList()const;
ListRemediationTemplatesResult();
explicit ListRemediationTemplatesResult(const std::string &payload);
~ListRemediationTemplatesResult();
std::vector<RemediationTemplate> getRemediationTemplates()const;
protected:
void parse(const std::string &payload);
private:
std::vector<ClusterStatUserInput> userInputList_;
std::vector<RemediationTemplate> remediationTemplates_;
};
}
}
}
#endif // !ALIBABACLOUD_EMR_MODEL_GETUSERINPUTSTATISTICINFORESULT_H_
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESRESULT_H_

View File

@@ -1,87 +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.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT PutConfigRuleRequest : public RpcServiceRequest
{
public:
PutConfigRuleRequest();
~PutConfigRuleRequest();
std::string getConfigRuleId()const;
void setConfigRuleId(const std::string& configRuleId);
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getSourceIdentifier()const;
void setSourceIdentifier(const std::string& sourceIdentifier);
std::string getSourceMaximumExecutionFrequency()const;
void setSourceMaximumExecutionFrequency(const std::string& sourceMaximumExecutionFrequency);
std::string getScopeComplianceResourceTypes()const;
void setScopeComplianceResourceTypes(const std::string& scopeComplianceResourceTypes);
std::string getSourceDetailMessageType()const;
void setSourceDetailMessageType(const std::string& sourceDetailMessageType);
int getRiskLevel()const;
void setRiskLevel(int riskLevel);
std::string getSourceOwner()const;
void setSourceOwner(const std::string& sourceOwner);
std::string getInputParameters()const;
void setInputParameters(const std::string& inputParameters);
std::string getConfigRuleName()const;
void setConfigRuleName(const std::string& configRuleName);
std::string getScopeComplianceResourceId()const;
void setScopeComplianceResourceId(const std::string& scopeComplianceResourceId);
long getMemberId()const;
void setMemberId(long memberId);
private:
std::string configRuleId_;
bool multiAccount_;
std::string clientToken_;
std::string description_;
std::string sourceIdentifier_;
std::string sourceMaximumExecutionFrequency_;
std::string scopeComplianceResourceTypes_;
std::string sourceDetailMessageType_;
int riskLevel_;
std::string sourceOwner_;
std::string inputParameters_;
std::string configRuleName_;
std::string scopeComplianceResourceId_;
long memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT PutConfigRuleRequest : public RpcServiceRequest {
public:
PutConfigRuleRequest();
~PutConfigRuleRequest();
std::string getConfigRuleId() const;
void setConfigRuleId(const std::string &configRuleId);
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getSourceIdentifier() const;
void setSourceIdentifier(const std::string &sourceIdentifier);
std::string getSourceMaximumExecutionFrequency() const;
void setSourceMaximumExecutionFrequency(const std::string &sourceMaximumExecutionFrequency);
std::string getScopeComplianceResourceTypes() const;
void setScopeComplianceResourceTypes(const std::string &scopeComplianceResourceTypes);
std::string getSourceDetailMessageType() const;
void setSourceDetailMessageType(const std::string &sourceDetailMessageType);
int getRiskLevel() const;
void setRiskLevel(int riskLevel);
std::string getSourceOwner() const;
void setSourceOwner(const std::string &sourceOwner);
std::string getInputParameters() const;
void setInputParameters(const std::string &inputParameters);
std::string getScopeComplianceExcludeResourceIds() const;
void setScopeComplianceExcludeResourceIds(const std::string &scopeComplianceExcludeResourceIds);
std::string getConfigRuleName() const;
void setConfigRuleName(const std::string &configRuleName);
std::string getScopeComplianceResourceId() const;
void setScopeComplianceResourceId(const std::string &scopeComplianceResourceId);
std::string getScopeComplianceResourceIds() const;
void setScopeComplianceResourceIds(const std::string &scopeComplianceResourceIds);
std::string getScopeComplianceRegionIds() const;
void setScopeComplianceRegionIds(const std::string &scopeComplianceRegionIds);
long getMemberId() const;
void setMemberId(long memberId);
private:
std::string configRuleId_;
bool multiAccount_;
std::string clientToken_;
std::string description_;
std::string sourceIdentifier_;
std::string sourceMaximumExecutionFrequency_;
std::string scopeComplianceResourceTypes_;
std::string sourceDetailMessageType_;
int riskLevel_;
std::string sourceOwner_;
std::string inputParameters_;
std::string scopeComplianceExcludeResourceIds_;
std::string configRuleName_;
std::string scopeComplianceResourceId_;
std::string scopeComplianceResourceIds_;
std::string scopeComplianceRegionIds_;
long memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT PutConfigurationRecorderRequest : public RpcServiceRequest
{
public:
PutConfigurationRecorderRequest();
~PutConfigurationRecorderRequest();
std::string getResourceTypes()const;
void setResourceTypes(const std::string& resourceTypes);
private:
std::string resourceTypes_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT PutConfigurationRecorderRequest : public RpcServiceRequest {
public:
PutConfigurationRecorderRequest();
~PutConfigurationRecorderRequest();
std::string getResourceTypes() const;
void setResourceTypes(const std::string &resourceTypes);
private:
std::string resourceTypes_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_

View File

@@ -1,72 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT PutDeliveryChannelRequest : public RpcServiceRequest
{
public:
PutDeliveryChannelRequest();
~PutDeliveryChannelRequest();
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getDescription()const;
void setDescription(const std::string& description);
std::string getDeliveryChannelTargetArn()const;
void setDeliveryChannelTargetArn(const std::string& deliveryChannelTargetArn);
std::string getDeliveryChannelCondition()const;
void setDeliveryChannelCondition(const std::string& deliveryChannelCondition);
std::string getDeliveryChannelAssumeRoleArn()const;
void setDeliveryChannelAssumeRoleArn(const std::string& deliveryChannelAssumeRoleArn);
std::string getDeliveryChannelName()const;
void setDeliveryChannelName(const std::string& deliveryChannelName);
std::string getDeliveryChannelId()const;
void setDeliveryChannelId(const std::string& deliveryChannelId);
std::string getDeliveryChannelType()const;
void setDeliveryChannelType(const std::string& deliveryChannelType);
int getStatus()const;
void setStatus(int status);
private:
std::string clientToken_;
std::string description_;
std::string deliveryChannelTargetArn_;
std::string deliveryChannelCondition_;
std::string deliveryChannelAssumeRoleArn_;
std::string deliveryChannelName_;
std::string deliveryChannelId_;
std::string deliveryChannelType_;
int status_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT PutDeliveryChannelRequest : public RpcServiceRequest {
public:
PutDeliveryChannelRequest();
~PutDeliveryChannelRequest();
std::string getClientToken() const;
void setClientToken(const std::string &clientToken);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getDeliveryChannelTargetArn() const;
void setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn);
std::string getDeliveryChannelCondition() const;
void setDeliveryChannelCondition(const std::string &deliveryChannelCondition);
std::string getDeliveryChannelAssumeRoleArn() const;
void setDeliveryChannelAssumeRoleArn(const std::string &deliveryChannelAssumeRoleArn);
std::string getDeliveryChannelName() const;
void setDeliveryChannelName(const std::string &deliveryChannelName);
std::string getDeliveryChannelId() const;
void setDeliveryChannelId(const std::string &deliveryChannelId);
std::string getDeliveryChannelType() const;
void setDeliveryChannelType(const std::string &deliveryChannelType);
int getStatus() const;
void setStatus(int status);
private:
std::string clientToken_;
std::string description_;
std::string deliveryChannelTargetArn_;
std::string deliveryChannelCondition_;
std::string deliveryChannelAssumeRoleArn_;
std::string deliveryChannelName_;
std::string deliveryChannelId_;
std::string deliveryChannelType_;
int status_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_

View File

@@ -1,51 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT PutEvaluationsRequest : public RpcServiceRequest
{
public:
PutEvaluationsRequest();
~PutEvaluationsRequest();
std::string getEvaluations()const;
void setEvaluations(const std::string& evaluations);
std::string getResultToken()const;
void setResultToken(const std::string& resultToken);
private:
std::string evaluations_;
std::string resultToken_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT PutEvaluationsRequest : public RpcServiceRequest {
public:
PutEvaluationsRequest();
~PutEvaluationsRequest();
std::string getEvaluations() const;
void setEvaluations(const std::string &evaluations);
bool getDeleteMode() const;
void setDeleteMode(bool deleteMode);
std::string getResultToken() const;
void setResultToken(const std::string &resultToken);
private:
std::string evaluations_;
bool deleteMode_;
std::string resultToken_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_

View File

@@ -1,54 +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.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT StartConfigRuleEvaluationRequest : public RpcServiceRequest
{
public:
StartConfigRuleEvaluationRequest();
~StartConfigRuleEvaluationRequest();
std::string getConfigRuleId()const;
void setConfigRuleId(const std::string& configRuleId);
bool getMultiAccount()const;
void setMultiAccount(bool multiAccount);
long getMemberId()const;
void setMemberId(long memberId);
private:
std::string configRuleId_;
bool multiAccount_;
long memberId_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT StartConfigRuleEvaluationRequest : public RpcServiceRequest {
public:
StartConfigRuleEvaluationRequest();
~StartConfigRuleEvaluationRequest();
std::string getConfigRuleId() const;
void setConfigRuleId(const std::string &configRuleId);
bool getMultiAccount() const;
void setMultiAccount(bool multiAccount);
std::string getCompliancePackId() const;
void setCompliancePackId(const std::string &compliancePackId);
bool getRevertEvaluation() const;
void setRevertEvaluation(bool revertEvaluation);
long getMemberId() const;
void setMemberId(long memberId);
private:
std::string configRuleId_;
bool multiAccount_;
std::string compliancePackId_;
bool revertEvaluation_;
long memberId_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT StartConfigurationRecorderRequest : public RpcServiceRequest
{
public:
StartConfigurationRecorderRequest();
~StartConfigurationRecorderRequest();
bool getEnterpriseEdition()const;
void setEnterpriseEdition(bool enterpriseEdition);
private:
bool enterpriseEdition_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT StartConfigurationRecorderRequest : public RpcServiceRequest {
public:
StartConfigurationRecorderRequest();
~StartConfigurationRecorderRequest();
bool getEnterpriseEdition() const;
void setEnterpriseEdition(bool enterpriseEdition);
private:
bool enterpriseEdition_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_

View File

@@ -1,48 +1,42 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/config/ConfigExport.h>
namespace AlibabaCloud
{
namespace Config
{
namespace Model
{
class ALIBABACLOUD_CONFIG_EXPORT StopConfigRulesRequest : public RpcServiceRequest
{
public:
StopConfigRulesRequest();
~StopConfigRulesRequest();
std::string getConfigRuleIds()const;
void setConfigRuleIds(const std::string& configRuleIds);
private:
std::string configRuleIds_;
};
}
}
}
#endif // !ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_
*/
#ifndef ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_
#define ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_
#include <alibabacloud/config/ConfigExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Config {
namespace Model {
class ALIBABACLOUD_CONFIG_EXPORT StopConfigRulesRequest : public RpcServiceRequest {
public:
StopConfigRulesRequest();
~StopConfigRulesRequest();
std::string getConfigRuleIds() const;
void setConfigRuleIds(const std::string &configRuleIds);
private:
std::string configRuleIds_;
};
} // namespace Model
} // namespace Config
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_

View File

@@ -31,21 +31,21 @@ ConfigClient::ConfigClient(const Credentials &credentials, const ClientConfigura
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "Config");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
ConfigClient::ConfigClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "Config");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
ConfigClient::ConfigClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "Config");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
}
ConfigClient::~ConfigClient()
@@ -375,6 +375,42 @@ ConfigClient::DescribeEvaluationResultsOutcomeCallable ConfigClient::describeEva
return task->get_future();
}
ConfigClient::GetAggregateDiscoveredResourceOutcome ConfigClient::getAggregateDiscoveredResource(const GetAggregateDiscoveredResourceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetAggregateDiscoveredResourceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetAggregateDiscoveredResourceOutcome(GetAggregateDiscoveredResourceResult(outcome.result()));
else
return GetAggregateDiscoveredResourceOutcome(outcome.error());
}
void ConfigClient::getAggregateDiscoveredResourceAsync(const GetAggregateDiscoveredResourceRequest& request, const GetAggregateDiscoveredResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getAggregateDiscoveredResource(request), context);
};
asyncExecute(new Runnable(fn));
}
ConfigClient::GetAggregateDiscoveredResourceOutcomeCallable ConfigClient::getAggregateDiscoveredResourceCallable(const GetAggregateDiscoveredResourceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetAggregateDiscoveredResourceOutcome()>>(
[this, request]()
{
return this->getAggregateDiscoveredResource(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ConfigClient::GetDiscoveredResourceCountsOutcome ConfigClient::getDiscoveredResourceCounts(const GetDiscoveredResourceCountsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -555,6 +591,42 @@ ConfigClient::GetSupportedResourceTypesOutcomeCallable ConfigClient::getSupporte
return task->get_future();
}
ConfigClient::ListAggregateDiscoveredResourcesOutcome ConfigClient::listAggregateDiscoveredResources(const ListAggregateDiscoveredResourcesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListAggregateDiscoveredResourcesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListAggregateDiscoveredResourcesOutcome(ListAggregateDiscoveredResourcesResult(outcome.result()));
else
return ListAggregateDiscoveredResourcesOutcome(outcome.error());
}
void ConfigClient::listAggregateDiscoveredResourcesAsync(const ListAggregateDiscoveredResourcesRequest& request, const ListAggregateDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listAggregateDiscoveredResources(request), context);
};
asyncExecute(new Runnable(fn));
}
ConfigClient::ListAggregateDiscoveredResourcesOutcomeCallable ConfigClient::listAggregateDiscoveredResourcesCallable(const ListAggregateDiscoveredResourcesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListAggregateDiscoveredResourcesOutcome()>>(
[this, request]()
{
return this->listAggregateDiscoveredResources(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ConfigClient::ListConfigRulesOutcome ConfigClient::listConfigRules(const ListConfigRulesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -627,6 +699,42 @@ ConfigClient::ListDiscoveredResourcesOutcomeCallable ConfigClient::listDiscovere
return task->get_future();
}
ConfigClient::ListRemediationTemplatesOutcome ConfigClient::listRemediationTemplates(const ListRemediationTemplatesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListRemediationTemplatesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListRemediationTemplatesOutcome(ListRemediationTemplatesResult(outcome.result()));
else
return ListRemediationTemplatesOutcome(outcome.error());
}
void ConfigClient::listRemediationTemplatesAsync(const ListRemediationTemplatesRequest& request, const ListRemediationTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listRemediationTemplates(request), context);
};
asyncExecute(new Runnable(fn));
}
ConfigClient::ListRemediationTemplatesOutcomeCallable ConfigClient::listRemediationTemplatesCallable(const ListRemediationTemplatesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListRemediationTemplatesOutcome()>>(
[this, request]()
{
return this->listRemediationTemplates(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ConfigClient::PutConfigRuleOutcome ConfigClient::putConfigRule(const PutConfigRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -1,40 +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/ActiveConfigRulesRequest.h>
using AlibabaCloud::Config::Model::ActiveConfigRulesRequest;
ActiveConfigRulesRequest::ActiveConfigRulesRequest() :
RpcServiceRequest("config", "2019-01-08", "ActiveConfigRules")
{
setMethod(HttpRequest::Method::Post);
}
ActiveConfigRulesRequest::~ActiveConfigRulesRequest()
{}
std::string ActiveConfigRulesRequest::getConfigRuleIds()const
{
return configRuleIds_;
*/
#include <alibabacloud/config/model/ActiveConfigRulesRequest.h>
using AlibabaCloud::Config::Model::ActiveConfigRulesRequest;
ActiveConfigRulesRequest::ActiveConfigRulesRequest()
: RpcServiceRequest("config", "2019-01-08", "ActiveConfigRules") {
setMethod(HttpRequest::Method::Post);
}
void ActiveConfigRulesRequest::setConfigRuleIds(const std::string& configRuleIds)
{
configRuleIds_ = configRuleIds;
setParameter("ConfigRuleIds", configRuleIds);
ActiveConfigRulesRequest::~ActiveConfigRulesRequest() {}
std::string ActiveConfigRulesRequest::getConfigRuleIds() const {
return configRuleIds_;
}
void ActiveConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) {
configRuleIds_ = configRuleIds;
setParameter(std::string("ConfigRuleIds"), configRuleIds);
}

View File

@@ -44,12 +44,12 @@ void ActiveConfigRulesResult::parse(const std::string &payload)
for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode)
{
OperateRuleResult::OperateRuleItem operateRuleItemObject;
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull())
operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString();
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);
}

View File

@@ -1,40 +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/DeleteConfigRulesRequest.h>
using AlibabaCloud::Config::Model::DeleteConfigRulesRequest;
DeleteConfigRulesRequest::DeleteConfigRulesRequest() :
RpcServiceRequest("config", "2019-01-08", "DeleteConfigRules")
{
setMethod(HttpRequest::Method::Post);
}
DeleteConfigRulesRequest::~DeleteConfigRulesRequest()
{}
std::string DeleteConfigRulesRequest::getConfigRuleIds()const
{
return configRuleIds_;
*/
#include <alibabacloud/config/model/DeleteConfigRulesRequest.h>
using AlibabaCloud::Config::Model::DeleteConfigRulesRequest;
DeleteConfigRulesRequest::DeleteConfigRulesRequest()
: RpcServiceRequest("config", "2019-01-08", "DeleteConfigRules") {
setMethod(HttpRequest::Method::Post);
}
void DeleteConfigRulesRequest::setConfigRuleIds(const std::string& configRuleIds)
{
configRuleIds_ = configRuleIds;
setParameter("ConfigRuleIds", configRuleIds);
DeleteConfigRulesRequest::~DeleteConfigRulesRequest() {}
std::string DeleteConfigRulesRequest::getConfigRuleIds() const {
return configRuleIds_;
}
void DeleteConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) {
configRuleIds_ = configRuleIds;
setParameter(std::string("ConfigRuleIds"), configRuleIds);
}

View File

@@ -44,12 +44,12 @@ void DeleteConfigRulesResult::parse(const std::string &payload)
for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode)
{
OperateRuleResult::OperateRuleItem operateRuleItemObject;
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull())
operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString();
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);
}

View File

@@ -1,95 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/DescribeComplianceRequest.h>
using AlibabaCloud::Config::Model::DescribeComplianceRequest;
DescribeComplianceRequest::DescribeComplianceRequest() :
RpcServiceRequest("config", "2019-01-08", "DescribeCompliance")
{
setMethod(HttpRequest::Method::Get);
}
DescribeComplianceRequest::~DescribeComplianceRequest()
{}
std::string DescribeComplianceRequest::getConfigRuleId()const
{
return configRuleId_;
*/
#include <alibabacloud/config/model/DescribeComplianceRequest.h>
using AlibabaCloud::Config::Model::DescribeComplianceRequest;
DescribeComplianceRequest::DescribeComplianceRequest()
: RpcServiceRequest("config", "2019-01-08", "DescribeCompliance") {
setMethod(HttpRequest::Method::Get);
}
void DescribeComplianceRequest::setConfigRuleId(const std::string& configRuleId)
{
configRuleId_ = configRuleId;
setParameter("ConfigRuleId", configRuleId);
DescribeComplianceRequest::~DescribeComplianceRequest() {}
std::string DescribeComplianceRequest::getConfigRuleId() const {
return configRuleId_;
}
std::string DescribeComplianceRequest::getResourceId()const
{
return resourceId_;
void DescribeComplianceRequest::setConfigRuleId(const std::string &configRuleId) {
configRuleId_ = configRuleId;
setParameter(std::string("ConfigRuleId"), configRuleId);
}
void DescribeComplianceRequest::setResourceId(const std::string& resourceId)
{
resourceId_ = resourceId;
setParameter("ResourceId", resourceId);
std::string DescribeComplianceRequest::getResourceId() const {
return resourceId_;
}
bool DescribeComplianceRequest::getMultiAccount()const
{
return multiAccount_;
void DescribeComplianceRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
void DescribeComplianceRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
bool DescribeComplianceRequest::getMultiAccount() const {
return multiAccount_;
}
std::string DescribeComplianceRequest::getResourceType()const
{
return resourceType_;
void DescribeComplianceRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void DescribeComplianceRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
std::string DescribeComplianceRequest::getResourceType() const {
return resourceType_;
}
std::string DescribeComplianceRequest::getComplianceType()const
{
return complianceType_;
void DescribeComplianceRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
void DescribeComplianceRequest::setComplianceType(const std::string& complianceType)
{
complianceType_ = complianceType;
setParameter("ComplianceType", complianceType);
std::string DescribeComplianceRequest::getComplianceType() const {
return complianceType_;
}
long DescribeComplianceRequest::getMemberId()const
{
return memberId_;
void DescribeComplianceRequest::setComplianceType(const std::string &complianceType) {
complianceType_ = complianceType;
setParameter(std::string("ComplianceType"), complianceType);
}
void DescribeComplianceRequest::setMemberId(long memberId)
{
memberId_ = memberId;
setParameter("MemberId", std::to_string(memberId));
long DescribeComplianceRequest::getMemberId() const {
return memberId_;
}
void DescribeComplianceRequest::setMemberId(long memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), std::to_string(memberId));
}

View File

@@ -1,51 +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/DescribeComplianceSummaryRequest.h>
using AlibabaCloud::Config::Model::DescribeComplianceSummaryRequest;
DescribeComplianceSummaryRequest::DescribeComplianceSummaryRequest() :
RpcServiceRequest("config", "2019-01-08", "DescribeComplianceSummary")
{
setMethod(HttpRequest::Method::Get);
}
DescribeComplianceSummaryRequest::~DescribeComplianceSummaryRequest()
{}
bool DescribeComplianceSummaryRequest::getMultiAccount()const
{
return multiAccount_;
*/
#include <alibabacloud/config/model/DescribeComplianceSummaryRequest.h>
using AlibabaCloud::Config::Model::DescribeComplianceSummaryRequest;
DescribeComplianceSummaryRequest::DescribeComplianceSummaryRequest()
: RpcServiceRequest("config", "2019-01-08", "DescribeComplianceSummary") {
setMethod(HttpRequest::Method::Get);
}
void DescribeComplianceSummaryRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
DescribeComplianceSummaryRequest::~DescribeComplianceSummaryRequest() {}
bool DescribeComplianceSummaryRequest::getMultiAccount() const {
return multiAccount_;
}
long DescribeComplianceSummaryRequest::getMemberId()const
{
return memberId_;
void DescribeComplianceSummaryRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void DescribeComplianceSummaryRequest::setMemberId(long memberId)
{
memberId_ = memberId;
setParameter("MemberId", std::to_string(memberId));
long DescribeComplianceSummaryRequest::getMemberId() const {
return memberId_;
}
void DescribeComplianceSummaryRequest::setMemberId(long memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), std::to_string(memberId));
}

View File

@@ -40,24 +40,24 @@ void DescribeComplianceSummaryResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto complianceSummaryNode = value["ComplianceSummary"];
auto complianceSummaryByConfigRuleNode = complianceSummaryNode["ComplianceSummaryByConfigRule"];
if(!complianceSummaryByConfigRuleNode["ComplianceSummaryTimestamp"].isNull())
complianceSummary_.complianceSummaryByConfigRule.complianceSummaryTimestamp = std::stol(complianceSummaryByConfigRuleNode["ComplianceSummaryTimestamp"].asString());
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["TotalCount"].isNull())
complianceSummary_.complianceSummaryByConfigRule.totalCount = std::stol(complianceSummaryByConfigRuleNode["TotalCount"].asString());
auto complianceSummaryByResourceNode = complianceSummaryNode["ComplianceSummaryByResource"];
if(!complianceSummaryByResourceNode["ComplianceSummaryTimestamp"].isNull())
complianceSummary_.complianceSummaryByResource.complianceSummaryTimestamp = std::stol(complianceSummaryByResourceNode["ComplianceSummaryTimestamp"].asString());
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());
}

View File

@@ -1,62 +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/DescribeConfigRuleRequest.h>
using AlibabaCloud::Config::Model::DescribeConfigRuleRequest;
DescribeConfigRuleRequest::DescribeConfigRuleRequest() :
RpcServiceRequest("config", "2019-01-08", "DescribeConfigRule")
{
setMethod(HttpRequest::Method::Get);
}
DescribeConfigRuleRequest::~DescribeConfigRuleRequest()
{}
std::string DescribeConfigRuleRequest::getConfigRuleId()const
{
return configRuleId_;
*/
#include <alibabacloud/config/model/DescribeConfigRuleRequest.h>
using AlibabaCloud::Config::Model::DescribeConfigRuleRequest;
DescribeConfigRuleRequest::DescribeConfigRuleRequest()
: RpcServiceRequest("config", "2019-01-08", "DescribeConfigRule") {
setMethod(HttpRequest::Method::Get);
}
void DescribeConfigRuleRequest::setConfigRuleId(const std::string& configRuleId)
{
configRuleId_ = configRuleId;
setParameter("ConfigRuleId", configRuleId);
DescribeConfigRuleRequest::~DescribeConfigRuleRequest() {}
std::string DescribeConfigRuleRequest::getConfigRuleId() const {
return configRuleId_;
}
bool DescribeConfigRuleRequest::getMultiAccount()const
{
return multiAccount_;
void DescribeConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) {
configRuleId_ = configRuleId;
setParameter(std::string("ConfigRuleId"), configRuleId);
}
void DescribeConfigRuleRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
bool DescribeConfigRuleRequest::getMultiAccount() const {
return multiAccount_;
}
long DescribeConfigRuleRequest::getMemberId()const
{
return memberId_;
void DescribeConfigRuleRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void DescribeConfigRuleRequest::setMemberId(long memberId)
{
memberId_ = memberId;
setParameter("MemberId", std::to_string(memberId));
long DescribeConfigRuleRequest::getMemberId() const {
return memberId_;
}
void DescribeConfigRuleRequest::setMemberId(long memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), std::to_string(memberId));
}

View File

@@ -40,123 +40,125 @@ void DescribeConfigRuleResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto configRuleNode = value["ConfigRule"];
if(!configRuleNode["ConfigRuleArn"].isNull())
configRule_.configRuleArn = configRuleNode["ConfigRuleArn"].asString();
if(!configRuleNode["ConfigRuleId"].isNull())
configRule_.configRuleId = configRuleNode["ConfigRuleId"].asString();
if(!configRuleNode["ConfigRuleName"].isNull())
configRule_.configRuleName = configRuleNode["ConfigRuleName"].asString();
if(!configRuleNode["ConfigRuleState"].isNull())
configRule_.configRuleState = configRuleNode["ConfigRuleState"].asString();
if(!configRuleNode["CreateTimestamp"].isNull())
configRule_.createTimestamp = std::stol(configRuleNode["CreateTimestamp"].asString());
if(!configRuleNode["Description"].isNull())
configRule_.description = configRuleNode["Description"].asString();
if(!configRuleNode["InputParameters"].isNull())
configRule_.inputParameters = configRuleNode["InputParameters"].asString();
if(!configRuleNode["ModifiedTimestamp"].isNull())
configRule_.modifiedTimestamp = std::stol(configRuleNode["ModifiedTimestamp"].asString());
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();
auto createByNode = configRuleNode["CreateBy"];
if(!createByNode["CreatorType"].isNull())
configRule_.createBy.creatorType = createByNode["CreatorType"].asString();
if(!createByNode["CreatorId"].isNull())
configRule_.createBy.creatorId = createByNode["CreatorId"].asString();
if(!createByNode["CreatorName"].isNull())
configRule_.createBy.creatorName = createByNode["CreatorName"].asString();
if(!createByNode["ConfigRuleSceneId"].isNull())
configRule_.createBy.configRuleSceneId = createByNode["ConfigRuleSceneId"].asString();
if(!createByNode["ConfigRuleSceneName"].isNull())
configRule_.createBy.configRuleSceneName = createByNode["ConfigRuleSceneName"].asString();
auto configRuleEvaluationStatusNode = configRuleNode["ConfigRuleEvaluationStatus"];
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["LastErrorCode"].isNull())
configRule_.configRuleEvaluationStatus.lastErrorCode = configRuleEvaluationStatusNode["LastErrorCode"].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());
if(!configRuleEvaluationStatusNode["LastSuccessfulEvaluationTimestamp"].isNull())
configRule_.configRuleEvaluationStatus.lastSuccessfulEvaluationTimestamp = std::stol(configRuleEvaluationStatusNode["LastSuccessfulEvaluationTimestamp"].asString());
if(!configRuleEvaluationStatusNode["LastSuccessfulInvocationTimestamp"].isNull())
configRule_.configRuleEvaluationStatus.lastSuccessfulInvocationTimestamp = std::stol(configRuleEvaluationStatusNode["LastSuccessfulInvocationTimestamp"].asString());
auto managedRuleNode = configRuleNode["ManagedRule"];
if(!managedRuleNode["ManagedRuleName"].isNull())
configRule_.managedRule.managedRuleName = managedRuleNode["ManagedRuleName"].asString();
if(!managedRuleNode["Description"].isNull())
configRule_.managedRule.description = managedRuleNode["Description"].asString();
if(!managedRuleNode["Identifier"].isNull())
configRule_.managedRule.identifier = managedRuleNode["Identifier"].asString();
if(!managedRuleNode["CompulsoryInputParameterDetails"].isNull())
configRule_.managedRule.compulsoryInputParameterDetails = managedRuleNode["CompulsoryInputParameterDetails"].asString();
if(!managedRuleNode["OptionalInputParameterDetails"].isNull())
configRule_.managedRule.optionalInputParameterDetails = managedRuleNode["OptionalInputParameterDetails"].asString();
if(!managedRuleNode["HelpUrl"].isNull())
configRule_.managedRule.helpUrl = managedRuleNode["HelpUrl"].asString();
auto allSourceDetailsNode = managedRuleNode["SourceDetails"]["SourceDetailsItem"];
for (auto managedRuleNodeSourceDetailsSourceDetailsItem : allSourceDetailsNode)
{
ConfigRule::ManagedRule::SourceDetailsItem sourceDetailsItemObject;
if(!managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].isNull())
sourceDetailsItemObject.eventSource = managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].asString();
if(!managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].isNull())
sourceDetailsItemObject.maximumExecutionFrequency = managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString();
if(!managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].isNull())
sourceDetailsItemObject.messageType = managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].asString();
configRule_.managedRule.sourceDetails.push_back(sourceDetailsItemObject);
}
auto allLabels = managedRuleNode["Labels"]["Labels"];
for (auto value : allLabels)
configRule_.managedRule.labels.push_back(value.asString());
if(!configRuleNode["OrganizationRule"].isNull())
configRule_.organizationRule = configRuleNode["OrganizationRule"].asString() == "true";
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());
auto sourceNode = configRuleNode["Source"];
if(!sourceNode["Identifier"].isNull())
configRule_.source.identifier = sourceNode["Identifier"].asString();
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 allSourceConditionsNode = sourceNode["SourceConditions"]["SourceConditionsItem"];
for (auto sourceNodeSourceConditionsSourceConditionsItem : allSourceConditionsNode)
{
ConfigRule::Source::SourceConditionsItem sourceConditionsItemObject;
if(!sourceNodeSourceConditionsSourceConditionsItem["DesiredValue"].isNull())
sourceConditionsItemObject.desiredValue = sourceNodeSourceConditionsSourceConditionsItem["DesiredValue"].asString();
if(!sourceNodeSourceConditionsSourceConditionsItem["Name"].isNull())
sourceConditionsItemObject.name = sourceNodeSourceConditionsSourceConditionsItem["Name"].asString();
if(!sourceNodeSourceConditionsSourceConditionsItem["Operator"].isNull())
sourceConditionsItemObject._operator = sourceNodeSourceConditionsSourceConditionsItem["Operator"].asString();
if(!sourceNodeSourceConditionsSourceConditionsItem["Required"].isNull())
sourceConditionsItemObject.required = sourceNodeSourceConditionsSourceConditionsItem["Required"].asString() == "true";
if(!sourceNodeSourceConditionsSourceConditionsItem["SelectPath"].isNull())
sourceConditionsItemObject.selectPath = sourceNodeSourceConditionsSourceConditionsItem["SelectPath"].asString();
if(!sourceNodeSourceConditionsSourceConditionsItem["Tips"].isNull())
sourceConditionsItemObject.tips = sourceNodeSourceConditionsSourceConditionsItem["Tips"].asString();
if(!sourceNodeSourceConditionsSourceConditionsItem["Operator"].isNull())
sourceConditionsItemObject._operator = sourceNodeSourceConditionsSourceConditionsItem["Operator"].asString();
if(!sourceNodeSourceConditionsSourceConditionsItem["Name"].isNull())
sourceConditionsItemObject.name = sourceNodeSourceConditionsSourceConditionsItem["Name"].asString();
if(!sourceNodeSourceConditionsSourceConditionsItem["SelectPath"].isNull())
sourceConditionsItemObject.selectPath = sourceNodeSourceConditionsSourceConditionsItem["SelectPath"].asString();
configRule_.source.sourceConditions.push_back(sourceConditionsItemObject);
}
auto allSourceDetails1Node = sourceNode["SourceDetails"]["SourceDetailsItem"];
for (auto sourceNodeSourceDetailsSourceDetailsItem : allSourceDetails1Node)
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::Source::SourceDetailsItem2 sourceDetailsItem2Object;
if(!sourceNodeSourceDetailsSourceDetailsItem["EventSource"].isNull())
sourceDetailsItem2Object.eventSource = sourceNodeSourceDetailsSourceDetailsItem["EventSource"].asString();
if(!sourceNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].isNull())
sourceDetailsItem2Object.maximumExecutionFrequency = sourceNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString();
if(!sourceNodeSourceDetailsSourceDetailsItem["MessageType"].isNull())
sourceDetailsItem2Object.messageType = sourceNodeSourceDetailsSourceDetailsItem["MessageType"].asString();
configRule_.source.sourceDetails1.push_back(sourceDetailsItem2Object);
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["ConfigRuleSceneId"].isNull())
configRule_.createBy.configRuleSceneId = createByNode["ConfigRuleSceneId"].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["ConfigRuleSceneName"].isNull())
configRule_.createBy.configRuleSceneName = createByNode["ConfigRuleSceneName"].asString();
auto scopeNode = configRuleNode["Scope"];
if(!scopeNode["ComplianceResourceId"].isNull())
configRule_.scope.complianceResourceId = scopeNode["ComplianceResourceId"].asString();
auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["ComplianceResourceTypes"];
for (auto value : allComplianceResourceTypes)
configRule_.scope.complianceResourceTypes.push_back(value.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());
}

View File

@@ -1,29 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/DescribeConfigurationRecorderRequest.h>
using AlibabaCloud::Config::Model::DescribeConfigurationRecorderRequest;
DescribeConfigurationRecorderRequest::DescribeConfigurationRecorderRequest() :
RpcServiceRequest("config", "2019-01-08", "DescribeConfigurationRecorder")
{
setMethod(HttpRequest::Method::Get);
}
DescribeConfigurationRecorderRequest::~DescribeConfigurationRecorderRequest()
{}
*/
#include <alibabacloud/config/model/DescribeConfigurationRecorderRequest.h>
using AlibabaCloud::Config::Model::DescribeConfigurationRecorderRequest;
DescribeConfigurationRecorderRequest::DescribeConfigurationRecorderRequest()
: RpcServiceRequest("config", "2019-01-08", "DescribeConfigurationRecorder") {
setMethod(HttpRequest::Method::Get);
}
DescribeConfigurationRecorderRequest::~DescribeConfigurationRecorderRequest() {}

View File

@@ -40,14 +40,14 @@ void DescribeConfigurationRecorderResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto configurationRecorderNode = value["ConfigurationRecorder"];
if(!configurationRecorderNode["AccountId"].isNull())
configurationRecorder_.accountId = std::stol(configurationRecorderNode["AccountId"].asString());
if(!configurationRecorderNode["OrganizationEnableStatus"].isNull())
configurationRecorder_.organizationEnableStatus = configurationRecorderNode["OrganizationEnableStatus"].asString();
if(!configurationRecorderNode["ConfigurationRecorderStatus"].isNull())
configurationRecorder_.configurationRecorderStatus = configurationRecorderNode["ConfigurationRecorderStatus"].asString();
if(!configurationRecorderNode["OrganizationMasterId"].isNull())
configurationRecorder_.organizationMasterId = std::stol(configurationRecorderNode["OrganizationMasterId"].asString());
if(!configurationRecorderNode["OrganizationEnableStatus"].isNull())
configurationRecorder_.organizationEnableStatus = configurationRecorderNode["OrganizationEnableStatus"].asString();
if(!configurationRecorderNode["AccountId"].isNull())
configurationRecorder_.accountId = std::stol(configurationRecorderNode["AccountId"].asString());
auto allResourceTypes = configurationRecorderNode["ResourceTypes"]["ResourceType"];
for (auto value : allResourceTypes)
configurationRecorder_.resourceTypes.push_back(value.asString());

View File

@@ -1,40 +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/DescribeDeliveryChannelsRequest.h>
using AlibabaCloud::Config::Model::DescribeDeliveryChannelsRequest;
DescribeDeliveryChannelsRequest::DescribeDeliveryChannelsRequest() :
RpcServiceRequest("config", "2019-01-08", "DescribeDeliveryChannels")
{
setMethod(HttpRequest::Method::Get);
}
DescribeDeliveryChannelsRequest::~DescribeDeliveryChannelsRequest()
{}
std::string DescribeDeliveryChannelsRequest::getDeliveryChannelIds()const
{
return deliveryChannelIds_;
*/
#include <alibabacloud/config/model/DescribeDeliveryChannelsRequest.h>
using AlibabaCloud::Config::Model::DescribeDeliveryChannelsRequest;
DescribeDeliveryChannelsRequest::DescribeDeliveryChannelsRequest()
: RpcServiceRequest("config", "2019-01-08", "DescribeDeliveryChannels") {
setMethod(HttpRequest::Method::Get);
}
void DescribeDeliveryChannelsRequest::setDeliveryChannelIds(const std::string& deliveryChannelIds)
{
deliveryChannelIds_ = deliveryChannelIds;
setParameter("DeliveryChannelIds", deliveryChannelIds);
DescribeDeliveryChannelsRequest::~DescribeDeliveryChannelsRequest() {}
std::string DescribeDeliveryChannelsRequest::getDeliveryChannelIds() const {
return deliveryChannelIds_;
}
void DescribeDeliveryChannelsRequest::setDeliveryChannelIds(const std::string &deliveryChannelIds) {
deliveryChannelIds_ = deliveryChannelIds;
setParameter(std::string("DeliveryChannelIds"), deliveryChannelIds);
}

View File

@@ -43,22 +43,30 @@ void DescribeDeliveryChannelsResult::parse(const std::string &payload)
for (auto valueDeliveryChannelsDeliveryChannel : allDeliveryChannelsNode)
{
DeliveryChannel deliveryChannelsObject;
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].isNull())
deliveryChannelsObject.deliveryChannelId = valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].asString();
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelName"].isNull())
deliveryChannelsObject.deliveryChannelName = valueDeliveryChannelsDeliveryChannel["DeliveryChannelName"].asString();
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].isNull())
deliveryChannelsObject.deliveryChannelType = valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].asString();
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].isNull())
deliveryChannelsObject.deliveryChannelTargetArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].asString();
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].isNull())
deliveryChannelsObject.deliveryChannelAssumeRoleArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].asString();
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].isNull())
deliveryChannelsObject.deliveryChannelCondition = valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].asString();
if(!valueDeliveryChannelsDeliveryChannel["Description"].isNull())
deliveryChannelsObject.description = valueDeliveryChannelsDeliveryChannel["Description"].asString();
if(!valueDeliveryChannelsDeliveryChannel["Status"].isNull())
deliveryChannelsObject.status = std::stoi(valueDeliveryChannelsDeliveryChannel["Status"].asString());
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelName"].isNull())
deliveryChannelsObject.deliveryChannelName = valueDeliveryChannelsDeliveryChannel["DeliveryChannelName"].asString();
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].isNull())
deliveryChannelsObject.deliveryChannelId = valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].asString();
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].isNull())
deliveryChannelsObject.deliveryChannelType = valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].asString();
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].isNull())
deliveryChannelsObject.deliveryChannelAssumeRoleArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].asString();
if(!valueDeliveryChannelsDeliveryChannel["Description"].isNull())
deliveryChannelsObject.description = valueDeliveryChannelsDeliveryChannel["Description"].asString();
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].isNull())
deliveryChannelsObject.deliveryChannelCondition = valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].asString();
if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].isNull())
deliveryChannelsObject.deliveryChannelTargetArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].asString();
if(!valueDeliveryChannelsDeliveryChannel["ConfigurationSnapshot"].isNull())
deliveryChannelsObject.configurationSnapshot = valueDeliveryChannelsDeliveryChannel["ConfigurationSnapshot"].asString() == "true";
if(!valueDeliveryChannelsDeliveryChannel["ConfigurationItemChangeNotification"].isNull())
deliveryChannelsObject.configurationItemChangeNotification = valueDeliveryChannelsDeliveryChannel["ConfigurationItemChangeNotification"].asString() == "true";
if(!valueDeliveryChannelsDeliveryChannel["NonCompliantNotification"].isNull())
deliveryChannelsObject.nonCompliantNotification = valueDeliveryChannelsDeliveryChannel["NonCompliantNotification"].asString() == "true";
if(!valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].isNull())
deliveryChannelsObject.oversizedDataOSSTargetArn = valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].asString();
deliveryChannels_.push_back(deliveryChannelsObject);
}

View File

@@ -1,84 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/DescribeDiscoveredResourceRequest.h>
using AlibabaCloud::Config::Model::DescribeDiscoveredResourceRequest;
DescribeDiscoveredResourceRequest::DescribeDiscoveredResourceRequest() :
RpcServiceRequest("config", "2019-01-08", "DescribeDiscoveredResource")
{
setMethod(HttpRequest::Method::Get);
}
DescribeDiscoveredResourceRequest::~DescribeDiscoveredResourceRequest()
{}
std::string DescribeDiscoveredResourceRequest::getResourceId()const
{
return resourceId_;
*/
#include <alibabacloud/config/model/DescribeDiscoveredResourceRequest.h>
using AlibabaCloud::Config::Model::DescribeDiscoveredResourceRequest;
DescribeDiscoveredResourceRequest::DescribeDiscoveredResourceRequest()
: RpcServiceRequest("config", "2019-01-08", "DescribeDiscoveredResource") {
setMethod(HttpRequest::Method::Get);
}
void DescribeDiscoveredResourceRequest::setResourceId(const std::string& resourceId)
{
resourceId_ = resourceId;
setParameter("ResourceId", resourceId);
DescribeDiscoveredResourceRequest::~DescribeDiscoveredResourceRequest() {}
std::string DescribeDiscoveredResourceRequest::getResourceId() const {
return resourceId_;
}
bool DescribeDiscoveredResourceRequest::getMultiAccount()const
{
return multiAccount_;
void DescribeDiscoveredResourceRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
void DescribeDiscoveredResourceRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
bool DescribeDiscoveredResourceRequest::getMultiAccount() const {
return multiAccount_;
}
std::string DescribeDiscoveredResourceRequest::getResourceType()const
{
return resourceType_;
void DescribeDiscoveredResourceRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void DescribeDiscoveredResourceRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
std::string DescribeDiscoveredResourceRequest::getResourceType() const {
return resourceType_;
}
std::string DescribeDiscoveredResourceRequest::getRegion()const
{
return region_;
void DescribeDiscoveredResourceRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
void DescribeDiscoveredResourceRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
std::string DescribeDiscoveredResourceRequest::getRegion() const {
return region_;
}
long DescribeDiscoveredResourceRequest::getMemberId()const
{
return memberId_;
void DescribeDiscoveredResourceRequest::setRegion(const std::string &region) {
region_ = region;
setParameter(std::string("Region"), region);
}
void DescribeDiscoveredResourceRequest::setMemberId(long memberId)
{
memberId_ = memberId;
setParameter("MemberId", std::to_string(memberId));
long DescribeDiscoveredResourceRequest::getMemberId() const {
return memberId_;
}
void DescribeDiscoveredResourceRequest::setMemberId(long memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), std::to_string(memberId));
}

View File

@@ -40,28 +40,28 @@ void DescribeDiscoveredResourceResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto discoveredResourceDetailNode = value["DiscoveredResourceDetail"];
if(!discoveredResourceDetailNode["AvailabilityZone"].isNull())
discoveredResourceDetail_.availabilityZone = discoveredResourceDetailNode["AvailabilityZone"].asString();
if(!discoveredResourceDetailNode["ResourceType"].isNull())
discoveredResourceDetail_.resourceType = discoveredResourceDetailNode["ResourceType"].asString();
if(!discoveredResourceDetailNode["Configuration"].isNull())
discoveredResourceDetail_.configuration = discoveredResourceDetailNode["Configuration"].asString();
if(!discoveredResourceDetailNode["Region"].isNull())
discoveredResourceDetail_.region = discoveredResourceDetailNode["Region"].asString();
if(!discoveredResourceDetailNode["ResourceCreationTime"].isNull())
discoveredResourceDetail_.resourceCreationTime = std::stol(discoveredResourceDetailNode["ResourceCreationTime"].asString());
if(!discoveredResourceDetailNode["Tags"].isNull())
discoveredResourceDetail_.tags = discoveredResourceDetailNode["Tags"].asString();
if(!discoveredResourceDetailNode["AccountId"].isNull())
discoveredResourceDetail_.accountId = std::stol(discoveredResourceDetailNode["AccountId"].asString());
if(!discoveredResourceDetailNode["ResourceId"].isNull())
discoveredResourceDetail_.resourceId = discoveredResourceDetailNode["ResourceId"].asString();
if(!discoveredResourceDetailNode["ResourceType"].isNull())
discoveredResourceDetail_.resourceType = discoveredResourceDetailNode["ResourceType"].asString();
if(!discoveredResourceDetailNode["ResourceName"].isNull())
discoveredResourceDetail_.resourceName = discoveredResourceDetailNode["ResourceName"].asString();
if(!discoveredResourceDetailNode["Region"].isNull())
discoveredResourceDetail_.region = discoveredResourceDetailNode["Region"].asString();
if(!discoveredResourceDetailNode["AvailabilityZone"].isNull())
discoveredResourceDetail_.availabilityZone = discoveredResourceDetailNode["AvailabilityZone"].asString();
if(!discoveredResourceDetailNode["ResourceCreationTime"].isNull())
discoveredResourceDetail_.resourceCreationTime = std::stol(discoveredResourceDetailNode["ResourceCreationTime"].asString());
if(!discoveredResourceDetailNode["ResourceStatus"].isNull())
discoveredResourceDetail_.resourceStatus = discoveredResourceDetailNode["ResourceStatus"].asString();
if(!discoveredResourceDetailNode["ResourceDeleted"].isNull())
discoveredResourceDetail_.resourceDeleted = std::stoi(discoveredResourceDetailNode["ResourceDeleted"].asString());
if(!discoveredResourceDetailNode["Tags"].isNull())
discoveredResourceDetail_.tags = discoveredResourceDetailNode["Tags"].asString();
if(!discoveredResourceDetailNode["Configuration"].isNull())
discoveredResourceDetail_.configuration = discoveredResourceDetailNode["Configuration"].asString();
if(!discoveredResourceDetailNode["ResourceName"].isNull())
discoveredResourceDetail_.resourceName = discoveredResourceDetailNode["ResourceName"].asString();
if(!discoveredResourceDetailNode["ResourceStatus"].isNull())
discoveredResourceDetail_.resourceStatus = discoveredResourceDetailNode["ResourceStatus"].asString();
}

View File

@@ -1,117 +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/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_;
*/
#include <alibabacloud/config/model/DescribeEvaluationResultsRequest.h>
using AlibabaCloud::Config::Model::DescribeEvaluationResultsRequest;
DescribeEvaluationResultsRequest::DescribeEvaluationResultsRequest()
: RpcServiceRequest("config", "2019-01-08", "DescribeEvaluationResults") {
setMethod(HttpRequest::Method::Get);
}
void DescribeEvaluationResultsRequest::setConfigRuleId(const std::string& configRuleId)
{
configRuleId_ = configRuleId;
setParameter("ConfigRuleId", configRuleId);
DescribeEvaluationResultsRequest::~DescribeEvaluationResultsRequest() {}
std::string DescribeEvaluationResultsRequest::getConfigRuleId() const {
return configRuleId_;
}
bool DescribeEvaluationResultsRequest::getMultiAccount()const
{
return multiAccount_;
void DescribeEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) {
configRuleId_ = configRuleId;
setParameter(std::string("ConfigRuleId"), configRuleId);
}
void DescribeEvaluationResultsRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
bool DescribeEvaluationResultsRequest::getMultiAccount() const {
return multiAccount_;
}
int DescribeEvaluationResultsRequest::getPageNumber()const
{
return pageNumber_;
void DescribeEvaluationResultsRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void DescribeEvaluationResultsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
int DescribeEvaluationResultsRequest::getPageNumber() const {
return pageNumber_;
}
int DescribeEvaluationResultsRequest::getPageSize()const
{
return pageSize_;
void DescribeEvaluationResultsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
void DescribeEvaluationResultsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
int DescribeEvaluationResultsRequest::getPageSize() const {
return pageSize_;
}
std::string DescribeEvaluationResultsRequest::getComplianceType()const
{
return complianceType_;
void DescribeEvaluationResultsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
void DescribeEvaluationResultsRequest::setComplianceType(const std::string& complianceType)
{
complianceType_ = complianceType;
setParameter("ComplianceType", complianceType);
std::string DescribeEvaluationResultsRequest::getComplianceType() const {
return complianceType_;
}
std::string DescribeEvaluationResultsRequest::getResourceId()const
{
return resourceId_;
void DescribeEvaluationResultsRequest::setComplianceType(const std::string &complianceType) {
complianceType_ = complianceType;
setParameter(std::string("ComplianceType"), complianceType);
}
void DescribeEvaluationResultsRequest::setResourceId(const std::string& resourceId)
{
resourceId_ = resourceId;
setParameter("ResourceId", resourceId);
std::string DescribeEvaluationResultsRequest::getResourceId() const {
return resourceId_;
}
std::string DescribeEvaluationResultsRequest::getResourceType()const
{
return resourceType_;
void DescribeEvaluationResultsRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
void DescribeEvaluationResultsRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
std::string DescribeEvaluationResultsRequest::getResourceType() const {
return resourceType_;
}
long DescribeEvaluationResultsRequest::getMemberId()const
{
return memberId_;
void DescribeEvaluationResultsRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
void DescribeEvaluationResultsRequest::setMemberId(long memberId)
{
memberId_ = memberId;
setParameter("MemberId", std::to_string(memberId));
long DescribeEvaluationResultsRequest::getMemberId() const {
return memberId_;
}
void DescribeEvaluationResultsRequest::setMemberId(long memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), std::to_string(memberId));
}

View File

@@ -50,32 +50,36 @@ void DescribeEvaluationResultsResult::parse(const std::string &payload)
for (auto evaluationResultsNodeEvaluationResultListEvaluationResult : allEvaluationResultListNode)
{
EvaluationResults::EvaluationResult evaluationResultObject;
if(!evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].isNull())
evaluationResultObject.annotation = evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].asString();
if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].isNull())
evaluationResultObject.riskLevel = std::stoi(evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].asString());
if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].isNull())
evaluationResultObject.complianceType = evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].asString();
if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].isNull())
evaluationResultObject.resultRecordedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].asString());
if(!evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].isNull())
evaluationResultObject.annotation = evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].asString();
if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].isNull())
evaluationResultObject.configRuleInvokedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].asString());
if(!evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].isNull())
evaluationResultObject.invokingEventMessageType = evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].asString();
if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].isNull())
evaluationResultObject.resultRecordedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].asString());
if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].isNull())
evaluationResultObject.riskLevel = std::stoi(evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].asString());
if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].isNull())
evaluationResultObject.remediationEnabled = evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].asString() == "true";
auto evaluationResultIdentifierNode = value["EvaluationResultIdentifier"];
if(!evaluationResultIdentifierNode["OrderingTimestamp"].isNull())
evaluationResultObject.evaluationResultIdentifier.orderingTimestamp = std::stol(evaluationResultIdentifierNode["OrderingTimestamp"].asString());
auto evaluationResultQualifierNode = evaluationResultIdentifierNode["EvaluationResultQualifier"];
if(!evaluationResultQualifierNode["ConfigRuleArn"].isNull())
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleArn = evaluationResultQualifierNode["ConfigRuleArn"].asString();
if(!evaluationResultQualifierNode["ConfigRuleId"].isNull())
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleId = evaluationResultQualifierNode["ConfigRuleId"].asString();
if(!evaluationResultQualifierNode["ResourceType"].isNull())
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceType = evaluationResultQualifierNode["ResourceType"].asString();
if(!evaluationResultQualifierNode["ConfigRuleName"].isNull())
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleName = evaluationResultQualifierNode["ConfigRuleName"].asString();
if(!evaluationResultQualifierNode["ResourceId"].isNull())
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceId = evaluationResultQualifierNode["ResourceId"].asString();
if(!evaluationResultQualifierNode["ResourceType"].isNull())
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceType = evaluationResultQualifierNode["ResourceType"].asString();
if(!evaluationResultQualifierNode["ConfigRuleId"].isNull())
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleId = evaluationResultQualifierNode["ConfigRuleId"].asString();
if(!evaluationResultQualifierNode["ResourceName"].isNull())
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceName = evaluationResultQualifierNode["ResourceName"].asString();
if(!evaluationResultQualifierNode["RegionId"].isNull())
evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString();
evaluationResults_.evaluationResultList.push_back(evaluationResultObject);

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h>
using AlibabaCloud::Config::Model::GetAggregateDiscoveredResourceRequest;
GetAggregateDiscoveredResourceRequest::GetAggregateDiscoveredResourceRequest()
: RpcServiceRequest("config", "2019-01-08", "GetAggregateDiscoveredResource") {
setMethod(HttpRequest::Method::Get);
}
GetAggregateDiscoveredResourceRequest::~GetAggregateDiscoveredResourceRequest() {}
std::string GetAggregateDiscoveredResourceRequest::getResourceId() const {
return resourceId_;
}
void GetAggregateDiscoveredResourceRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
long GetAggregateDiscoveredResourceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void GetAggregateDiscoveredResourceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string GetAggregateDiscoveredResourceRequest::getAggregatorId() const {
return aggregatorId_;
}
void GetAggregateDiscoveredResourceRequest::setAggregatorId(const std::string &aggregatorId) {
aggregatorId_ = aggregatorId;
setParameter(std::string("AggregatorId"), aggregatorId);
}
std::string GetAggregateDiscoveredResourceRequest::getResourceType() const {
return resourceType_;
}
void GetAggregateDiscoveredResourceRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string GetAggregateDiscoveredResourceRequest::getRegion() const {
return region_;
}
void GetAggregateDiscoveredResourceRequest::setRegion(const std::string &region) {
region_ = region;
setParameter(std::string("Region"), region);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Config;
using namespace AlibabaCloud::Config::Model;
GetAggregateDiscoveredResourceResult::GetAggregateDiscoveredResourceResult() :
ServiceResult()
{}
GetAggregateDiscoveredResourceResult::GetAggregateDiscoveredResourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAggregateDiscoveredResourceResult::~GetAggregateDiscoveredResourceResult()
{}
void GetAggregateDiscoveredResourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto discoveredResourceDetailNode = value["DiscoveredResourceDetail"];
if(!discoveredResourceDetailNode["AvailabilityZone"].isNull())
discoveredResourceDetail_.availabilityZone = discoveredResourceDetailNode["AvailabilityZone"].asString();
if(!discoveredResourceDetailNode["ResourceType"].isNull())
discoveredResourceDetail_.resourceType = discoveredResourceDetailNode["ResourceType"].asString();
if(!discoveredResourceDetailNode["Configuration"].isNull())
discoveredResourceDetail_.configuration = discoveredResourceDetailNode["Configuration"].asString();
if(!discoveredResourceDetailNode["Region"].isNull())
discoveredResourceDetail_.region = discoveredResourceDetailNode["Region"].asString();
if(!discoveredResourceDetailNode["ResourceCreationTime"].isNull())
discoveredResourceDetail_.resourceCreationTime = std::stol(discoveredResourceDetailNode["ResourceCreationTime"].asString());
if(!discoveredResourceDetailNode["Tags"].isNull())
discoveredResourceDetail_.tags = discoveredResourceDetailNode["Tags"].asString();
if(!discoveredResourceDetailNode["AccountId"].isNull())
discoveredResourceDetail_.accountId = std::stol(discoveredResourceDetailNode["AccountId"].asString());
if(!discoveredResourceDetailNode["ResourceId"].isNull())
discoveredResourceDetail_.resourceId = discoveredResourceDetailNode["ResourceId"].asString();
if(!discoveredResourceDetailNode["ResourceDeleted"].isNull())
discoveredResourceDetail_.resourceDeleted = std::stoi(discoveredResourceDetailNode["ResourceDeleted"].asString());
if(!discoveredResourceDetailNode["ResourceName"].isNull())
discoveredResourceDetail_.resourceName = discoveredResourceDetailNode["ResourceName"].asString();
if(!discoveredResourceDetailNode["ResourceStatus"].isNull())
discoveredResourceDetail_.resourceStatus = discoveredResourceDetailNode["ResourceStatus"].asString();
}
GetAggregateDiscoveredResourceResult::DiscoveredResourceDetail GetAggregateDiscoveredResourceResult::getDiscoveredResourceDetail()const
{
return discoveredResourceDetail_;
}

View File

@@ -1,62 +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/GetDiscoveredResourceCountsRequest.h>
using AlibabaCloud::Config::Model::GetDiscoveredResourceCountsRequest;
GetDiscoveredResourceCountsRequest::GetDiscoveredResourceCountsRequest() :
RpcServiceRequest("config", "2019-01-08", "GetDiscoveredResourceCounts")
{
setMethod(HttpRequest::Method::Get);
}
GetDiscoveredResourceCountsRequest::~GetDiscoveredResourceCountsRequest()
{}
bool GetDiscoveredResourceCountsRequest::getMultiAccount()const
{
return multiAccount_;
*/
#include <alibabacloud/config/model/GetDiscoveredResourceCountsRequest.h>
using AlibabaCloud::Config::Model::GetDiscoveredResourceCountsRequest;
GetDiscoveredResourceCountsRequest::GetDiscoveredResourceCountsRequest()
: RpcServiceRequest("config", "2019-01-08", "GetDiscoveredResourceCounts") {
setMethod(HttpRequest::Method::Get);
}
void GetDiscoveredResourceCountsRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
GetDiscoveredResourceCountsRequest::~GetDiscoveredResourceCountsRequest() {}
bool GetDiscoveredResourceCountsRequest::getMultiAccount() const {
return multiAccount_;
}
std::string GetDiscoveredResourceCountsRequest::getGroupByKey()const
{
return groupByKey_;
void GetDiscoveredResourceCountsRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void GetDiscoveredResourceCountsRequest::setGroupByKey(const std::string& groupByKey)
{
groupByKey_ = groupByKey;
setParameter("GroupByKey", groupByKey);
std::string GetDiscoveredResourceCountsRequest::getGroupByKey() const {
return groupByKey_;
}
long GetDiscoveredResourceCountsRequest::getMemberId()const
{
return memberId_;
void GetDiscoveredResourceCountsRequest::setGroupByKey(const std::string &groupByKey) {
groupByKey_ = groupByKey;
setParameter(std::string("GroupByKey"), groupByKey);
}
void GetDiscoveredResourceCountsRequest::setMemberId(long memberId)
{
memberId_ = memberId;
setParameter("MemberId", std::to_string(memberId));
long GetDiscoveredResourceCountsRequest::getMemberId() const {
return memberId_;
}
void GetDiscoveredResourceCountsRequest::setMemberId(long memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), std::to_string(memberId));
}

View File

@@ -46,10 +46,10 @@ void GetDiscoveredResourceCountsResult::parse(const std::string &payload)
for (auto groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount : allGroupedResourceCountListNode)
{
GroupedResourceCounts::GroupedResourceCount groupedResourceCountObject;
if(!groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["GroupName"].isNull())
groupedResourceCountObject.groupName = groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["GroupName"].asString();
if(!groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["ResourceCount"].isNull())
groupedResourceCountObject.resourceCount = std::stol(groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["ResourceCount"].asString());
if(!groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["GroupName"].isNull())
groupedResourceCountObject.groupName = groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["GroupName"].asString();
groupedResourceCounts_.groupedResourceCountList.push_back(groupedResourceCountObject);
}

View File

@@ -1,51 +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/GetDiscoveredResourceSummaryRequest.h>
using AlibabaCloud::Config::Model::GetDiscoveredResourceSummaryRequest;
GetDiscoveredResourceSummaryRequest::GetDiscoveredResourceSummaryRequest() :
RpcServiceRequest("config", "2019-01-08", "GetDiscoveredResourceSummary")
{
setMethod(HttpRequest::Method::Get);
}
GetDiscoveredResourceSummaryRequest::~GetDiscoveredResourceSummaryRequest()
{}
bool GetDiscoveredResourceSummaryRequest::getMultiAccount()const
{
return multiAccount_;
*/
#include <alibabacloud/config/model/GetDiscoveredResourceSummaryRequest.h>
using AlibabaCloud::Config::Model::GetDiscoveredResourceSummaryRequest;
GetDiscoveredResourceSummaryRequest::GetDiscoveredResourceSummaryRequest()
: RpcServiceRequest("config", "2019-01-08", "GetDiscoveredResourceSummary") {
setMethod(HttpRequest::Method::Get);
}
void GetDiscoveredResourceSummaryRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
GetDiscoveredResourceSummaryRequest::~GetDiscoveredResourceSummaryRequest() {}
bool GetDiscoveredResourceSummaryRequest::getMultiAccount() const {
return multiAccount_;
}
long GetDiscoveredResourceSummaryRequest::getMemberId()const
{
return memberId_;
void GetDiscoveredResourceSummaryRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void GetDiscoveredResourceSummaryRequest::setMemberId(long memberId)
{
memberId_ = memberId;
setParameter("MemberId", std::to_string(memberId));
long GetDiscoveredResourceSummaryRequest::getMemberId() const {
return memberId_;
}
void GetDiscoveredResourceSummaryRequest::setMemberId(long memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), std::to_string(memberId));
}

View File

@@ -40,12 +40,12 @@ void GetDiscoveredResourceSummaryResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto discoveredResourceSummaryNode = value["DiscoveredResourceSummary"];
if(!discoveredResourceSummaryNode["RegionCount"].isNull())
discoveredResourceSummary_.regionCount = std::stoi(discoveredResourceSummaryNode["RegionCount"].asString());
if(!discoveredResourceSummaryNode["ResourceCount"].isNull())
discoveredResourceSummary_.resourceCount = std::stoi(discoveredResourceSummaryNode["ResourceCount"].asString());
if(!discoveredResourceSummaryNode["ResourceTypeCount"].isNull())
discoveredResourceSummary_.resourceTypeCount = std::stoi(discoveredResourceSummaryNode["ResourceTypeCount"].asString());
if(!discoveredResourceSummaryNode["RegionCount"].isNull())
discoveredResourceSummary_.regionCount = std::stoi(discoveredResourceSummaryNode["RegionCount"].asString());
}

View File

@@ -1,128 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/GetResourceComplianceTimelineRequest.h>
using AlibabaCloud::Config::Model::GetResourceComplianceTimelineRequest;
GetResourceComplianceTimelineRequest::GetResourceComplianceTimelineRequest() :
RpcServiceRequest("config", "2019-01-08", "GetResourceComplianceTimeline")
{
setMethod(HttpRequest::Method::Get);
}
GetResourceComplianceTimelineRequest::~GetResourceComplianceTimelineRequest()
{}
bool GetResourceComplianceTimelineRequest::getMultiAccount()const
{
return multiAccount_;
*/
#include <alibabacloud/config/model/GetResourceComplianceTimelineRequest.h>
using AlibabaCloud::Config::Model::GetResourceComplianceTimelineRequest;
GetResourceComplianceTimelineRequest::GetResourceComplianceTimelineRequest()
: RpcServiceRequest("config", "2019-01-08", "GetResourceComplianceTimeline") {
setMethod(HttpRequest::Method::Get);
}
void GetResourceComplianceTimelineRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
GetResourceComplianceTimelineRequest::~GetResourceComplianceTimelineRequest() {}
bool GetResourceComplianceTimelineRequest::getMultiAccount() const {
return multiAccount_;
}
long GetResourceComplianceTimelineRequest::getStartTime()const
{
return startTime_;
void GetResourceComplianceTimelineRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void GetResourceComplianceTimelineRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
long GetResourceComplianceTimelineRequest::getStartTime() const {
return startTime_;
}
std::string GetResourceComplianceTimelineRequest::getNextToken()const
{
return nextToken_;
void GetResourceComplianceTimelineRequest::setStartTime(long startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), std::to_string(startTime));
}
void GetResourceComplianceTimelineRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
std::string GetResourceComplianceTimelineRequest::getNextToken() const {
return nextToken_;
}
int GetResourceComplianceTimelineRequest::getLimit()const
{
return limit_;
void GetResourceComplianceTimelineRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
void GetResourceComplianceTimelineRequest::setLimit(int limit)
{
limit_ = limit;
setParameter("Limit", std::to_string(limit));
int GetResourceComplianceTimelineRequest::getLimit() const {
return limit_;
}
std::string GetResourceComplianceTimelineRequest::getResourceId()const
{
return resourceId_;
void GetResourceComplianceTimelineRequest::setLimit(int limit) {
limit_ = limit;
setParameter(std::string("Limit"), std::to_string(limit));
}
void GetResourceComplianceTimelineRequest::setResourceId(const std::string& resourceId)
{
resourceId_ = resourceId;
setParameter("ResourceId", resourceId);
std::string GetResourceComplianceTimelineRequest::getResourceId() const {
return resourceId_;
}
long GetResourceComplianceTimelineRequest::getEndTime()const
{
return endTime_;
void GetResourceComplianceTimelineRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
void GetResourceComplianceTimelineRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
long GetResourceComplianceTimelineRequest::getEndTime() const {
return endTime_;
}
std::string GetResourceComplianceTimelineRequest::getResourceType()const
{
return resourceType_;
void GetResourceComplianceTimelineRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
void GetResourceComplianceTimelineRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
std::string GetResourceComplianceTimelineRequest::getResourceType() const {
return resourceType_;
}
std::string GetResourceComplianceTimelineRequest::getRegion()const
{
return region_;
void GetResourceComplianceTimelineRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
void GetResourceComplianceTimelineRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
std::string GetResourceComplianceTimelineRequest::getRegion() const {
return region_;
}
std::string GetResourceComplianceTimelineRequest::getMemberId()const
{
return memberId_;
void GetResourceComplianceTimelineRequest::setRegion(const std::string &region) {
region_ = region;
setParameter(std::string("Region"), region);
}
void GetResourceComplianceTimelineRequest::setMemberId(const std::string& memberId)
{
memberId_ = memberId;
setParameter("MemberId", memberId);
std::string GetResourceComplianceTimelineRequest::getMemberId() const {
return memberId_;
}
void GetResourceComplianceTimelineRequest::setMemberId(const std::string &memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), memberId);
}

View File

@@ -40,40 +40,40 @@ void GetResourceComplianceTimelineResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resourceComplianceTimelineNode = value["ResourceComplianceTimeline"];
if(!resourceComplianceTimelineNode["NextToken"].isNull())
resourceComplianceTimeline_.nextToken = resourceComplianceTimelineNode["NextToken"].asString();
if(!resourceComplianceTimelineNode["Limit"].isNull())
resourceComplianceTimeline_.limit = std::stoi(resourceComplianceTimelineNode["Limit"].asString());
if(!resourceComplianceTimelineNode["TotalCount"].isNull())
resourceComplianceTimeline_.totalCount = std::stol(resourceComplianceTimelineNode["TotalCount"].asString());
if(!resourceComplianceTimelineNode["NextToken"].isNull())
resourceComplianceTimeline_.nextToken = resourceComplianceTimelineNode["NextToken"].asString();
auto allComplianceListNode = resourceComplianceTimelineNode["ComplianceList"]["ComplianceListItem"];
for (auto resourceComplianceTimelineNodeComplianceListComplianceListItem : allComplianceListNode)
{
ResourceComplianceTimeline::ComplianceListItem complianceListItemObject;
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["Tags"].isNull())
complianceListItemObject.tags = resourceComplianceTimelineNodeComplianceListComplianceListItem["Tags"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["AccountId"].isNull())
complianceListItemObject.accountId = resourceComplianceTimelineNodeComplianceListComplianceListItem["AccountId"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["AvailabilityZone"].isNull())
complianceListItemObject.availabilityZone = resourceComplianceTimelineNodeComplianceListComplianceListItem["AvailabilityZone"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["CaptureTime"].isNull())
complianceListItemObject.captureTime = std::stol(resourceComplianceTimelineNodeComplianceListComplianceListItem["CaptureTime"].asString());
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["Configuration"].isNull())
complianceListItemObject.configuration = resourceComplianceTimelineNodeComplianceListComplianceListItem["Configuration"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ConfigurationDiff"].isNull())
complianceListItemObject.configurationDiff = resourceComplianceTimelineNodeComplianceListComplianceListItem["ConfigurationDiff"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["Region"].isNull())
complianceListItemObject.region = resourceComplianceTimelineNodeComplianceListComplianceListItem["Region"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceType"].isNull())
complianceListItemObject.resourceType = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceType"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceCreateTime"].isNull())
complianceListItemObject.resourceCreateTime = std::stol(resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceCreateTime"].asString());
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["Region"].isNull())
complianceListItemObject.region = resourceComplianceTimelineNodeComplianceListComplianceListItem["Region"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["Configuration"].isNull())
complianceListItemObject.configuration = resourceComplianceTimelineNodeComplianceListComplianceListItem["Configuration"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["CaptureTime"].isNull())
complianceListItemObject.captureTime = std::stol(resourceComplianceTimelineNodeComplianceListComplianceListItem["CaptureTime"].asString());
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ConfigurationDiff"].isNull())
complianceListItemObject.configurationDiff = resourceComplianceTimelineNodeComplianceListComplianceListItem["ConfigurationDiff"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceId"].isNull())
complianceListItemObject.resourceId = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceId"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceName"].isNull())
complianceListItemObject.resourceName = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceName"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceStatus"].isNull())
complianceListItemObject.resourceStatus = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceStatus"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceType"].isNull())
complianceListItemObject.resourceType = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceType"].asString();
if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["Tags"].isNull())
complianceListItemObject.tags = resourceComplianceTimelineNodeComplianceListComplianceListItem["Tags"].asString();
resourceComplianceTimeline_.complianceList.push_back(complianceListItemObject);
}

View File

@@ -1,128 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h>
using AlibabaCloud::Config::Model::GetResourceConfigurationTimelineRequest;
GetResourceConfigurationTimelineRequest::GetResourceConfigurationTimelineRequest() :
RpcServiceRequest("config", "2019-01-08", "GetResourceConfigurationTimeline")
{
setMethod(HttpRequest::Method::Get);
}
GetResourceConfigurationTimelineRequest::~GetResourceConfigurationTimelineRequest()
{}
bool GetResourceConfigurationTimelineRequest::getMultiAccount()const
{
return multiAccount_;
*/
#include <alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h>
using AlibabaCloud::Config::Model::GetResourceConfigurationTimelineRequest;
GetResourceConfigurationTimelineRequest::GetResourceConfigurationTimelineRequest()
: RpcServiceRequest("config", "2019-01-08", "GetResourceConfigurationTimeline") {
setMethod(HttpRequest::Method::Get);
}
void GetResourceConfigurationTimelineRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
GetResourceConfigurationTimelineRequest::~GetResourceConfigurationTimelineRequest() {}
bool GetResourceConfigurationTimelineRequest::getMultiAccount() const {
return multiAccount_;
}
long GetResourceConfigurationTimelineRequest::getStartTime()const
{
return startTime_;
void GetResourceConfigurationTimelineRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void GetResourceConfigurationTimelineRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
long GetResourceConfigurationTimelineRequest::getStartTime() const {
return startTime_;
}
std::string GetResourceConfigurationTimelineRequest::getNextToken()const
{
return nextToken_;
void GetResourceConfigurationTimelineRequest::setStartTime(long startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), std::to_string(startTime));
}
void GetResourceConfigurationTimelineRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
std::string GetResourceConfigurationTimelineRequest::getNextToken() const {
return nextToken_;
}
int GetResourceConfigurationTimelineRequest::getLimit()const
{
return limit_;
void GetResourceConfigurationTimelineRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
void GetResourceConfigurationTimelineRequest::setLimit(int limit)
{
limit_ = limit;
setParameter("Limit", std::to_string(limit));
int GetResourceConfigurationTimelineRequest::getLimit() const {
return limit_;
}
std::string GetResourceConfigurationTimelineRequest::getResourceId()const
{
return resourceId_;
void GetResourceConfigurationTimelineRequest::setLimit(int limit) {
limit_ = limit;
setParameter(std::string("Limit"), std::to_string(limit));
}
void GetResourceConfigurationTimelineRequest::setResourceId(const std::string& resourceId)
{
resourceId_ = resourceId;
setParameter("ResourceId", resourceId);
std::string GetResourceConfigurationTimelineRequest::getResourceId() const {
return resourceId_;
}
long GetResourceConfigurationTimelineRequest::getEndTime()const
{
return endTime_;
void GetResourceConfigurationTimelineRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
void GetResourceConfigurationTimelineRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
long GetResourceConfigurationTimelineRequest::getEndTime() const {
return endTime_;
}
std::string GetResourceConfigurationTimelineRequest::getResourceType()const
{
return resourceType_;
void GetResourceConfigurationTimelineRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
void GetResourceConfigurationTimelineRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
std::string GetResourceConfigurationTimelineRequest::getResourceType() const {
return resourceType_;
}
std::string GetResourceConfigurationTimelineRequest::getRegion()const
{
return region_;
void GetResourceConfigurationTimelineRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
void GetResourceConfigurationTimelineRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
std::string GetResourceConfigurationTimelineRequest::getRegion() const {
return region_;
}
long GetResourceConfigurationTimelineRequest::getMemberId()const
{
return memberId_;
void GetResourceConfigurationTimelineRequest::setRegion(const std::string &region) {
region_ = region;
setParameter(std::string("Region"), region);
}
void GetResourceConfigurationTimelineRequest::setMemberId(long memberId)
{
memberId_ = memberId;
setParameter("MemberId", std::to_string(memberId));
long GetResourceConfigurationTimelineRequest::getMemberId() const {
return memberId_;
}
void GetResourceConfigurationTimelineRequest::setMemberId(long memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), std::to_string(memberId));
}

View File

@@ -50,32 +50,32 @@ void GetResourceConfigurationTimelineResult::parse(const std::string &payload)
for (auto resourceConfigurationTimelineNodeConfigurationListConfigurationListItem : allConfigurationListNode)
{
ResourceConfigurationTimeline::ConfigurationListItem configurationListItemObject;
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].isNull())
configurationListItemObject.relationship = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].isNull())
configurationListItemObject.tags = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AccountId"].isNull())
configurationListItemObject.accountId = std::stol(resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AccountId"].asString());
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].isNull())
configurationListItemObject.resourceEventType = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].isNull())
configurationListItemObject.relationshipDiff = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AvailabilityZone"].isNull())
configurationListItemObject.availabilityZone = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AvailabilityZone"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceType"].isNull())
configurationListItemObject.resourceType = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceType"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceCreateTime"].isNull())
configurationListItemObject.resourceCreateTime = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceCreateTime"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Region"].isNull())
configurationListItemObject.region = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Region"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["CaptureTime"].isNull())
configurationListItemObject.captureTime = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["CaptureTime"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ConfigurationDiff"].isNull())
configurationListItemObject.configurationDiff = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ConfigurationDiff"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Region"].isNull())
configurationListItemObject.region = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Region"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].isNull())
configurationListItemObject.relationship = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].isNull())
configurationListItemObject.relationshipDiff = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceCreateTime"].isNull())
configurationListItemObject.resourceCreateTime = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceCreateTime"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceId"].isNull())
configurationListItemObject.resourceId = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceId"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceName"].isNull())
configurationListItemObject.resourceName = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceName"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceType"].isNull())
configurationListItemObject.resourceType = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceType"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].isNull())
configurationListItemObject.tags = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].asString();
if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].isNull())
configurationListItemObject.resourceEventType = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].asString();
resourceConfigurationTimeline_.configurationList.push_back(configurationListItemObject);
}

View File

@@ -1,29 +1,27 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/GetSupportedResourceTypesRequest.h>
using AlibabaCloud::Config::Model::GetSupportedResourceTypesRequest;
GetSupportedResourceTypesRequest::GetSupportedResourceTypesRequest() :
RpcServiceRequest("config", "2019-01-08", "GetSupportedResourceTypes")
{
setMethod(HttpRequest::Method::Get);
}
GetSupportedResourceTypesRequest::~GetSupportedResourceTypesRequest()
{}
*/
#include <alibabacloud/config/model/GetSupportedResourceTypesRequest.h>
using AlibabaCloud::Config::Model::GetSupportedResourceTypesRequest;
GetSupportedResourceTypesRequest::GetSupportedResourceTypesRequest()
: RpcServiceRequest("config", "2019-01-08", "GetSupportedResourceTypes") {
setMethod(HttpRequest::Method::Get);
}
GetSupportedResourceTypesRequest::~GetSupportedResourceTypesRequest() {}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h>
using AlibabaCloud::Config::Model::ListAggregateDiscoveredResourcesRequest;
ListAggregateDiscoveredResourcesRequest::ListAggregateDiscoveredResourcesRequest()
: RpcServiceRequest("config", "2019-01-08", "ListAggregateDiscoveredResources") {
setMethod(HttpRequest::Method::Get);
}
ListAggregateDiscoveredResourcesRequest::~ListAggregateDiscoveredResourcesRequest() {}
int ListAggregateDiscoveredResourcesRequest::getResourceDeleted() const {
return resourceDeleted_;
}
void ListAggregateDiscoveredResourcesRequest::setResourceDeleted(int resourceDeleted) {
resourceDeleted_ = resourceDeleted;
setParameter(std::string("ResourceDeleted"), std::to_string(resourceDeleted));
}
long ListAggregateDiscoveredResourcesRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void ListAggregateDiscoveredResourcesRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string ListAggregateDiscoveredResourcesRequest::getRegions() const {
return regions_;
}
void ListAggregateDiscoveredResourcesRequest::setRegions(const std::string &regions) {
regions_ = regions;
setParameter(std::string("Regions"), regions);
}
std::string ListAggregateDiscoveredResourcesRequest::getAggregatorId() const {
return aggregatorId_;
}
void ListAggregateDiscoveredResourcesRequest::setAggregatorId(const std::string &aggregatorId) {
aggregatorId_ = aggregatorId;
setParameter(std::string("AggregatorId"), aggregatorId);
}
int ListAggregateDiscoveredResourcesRequest::getPageNumber() const {
return pageNumber_;
}
void ListAggregateDiscoveredResourcesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListAggregateDiscoveredResourcesRequest::getFolderId() const {
return folderId_;
}
void ListAggregateDiscoveredResourcesRequest::setFolderId(const std::string &folderId) {
folderId_ = folderId;
setParameter(std::string("FolderId"), folderId);
}
int ListAggregateDiscoveredResourcesRequest::getPageSize() const {
return pageSize_;
}
void ListAggregateDiscoveredResourcesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListAggregateDiscoveredResourcesRequest::getComplianceType() const {
return complianceType_;
}
void ListAggregateDiscoveredResourcesRequest::setComplianceType(const std::string &complianceType) {
complianceType_ = complianceType;
setParameter(std::string("ComplianceType"), complianceType);
}
std::string ListAggregateDiscoveredResourcesRequest::getResourceId() const {
return resourceId_;
}
void ListAggregateDiscoveredResourcesRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
std::string ListAggregateDiscoveredResourcesRequest::getResourceTypes() const {
return resourceTypes_;
}
void ListAggregateDiscoveredResourcesRequest::setResourceTypes(const std::string &resourceTypes) {
resourceTypes_ = resourceTypes;
setParameter(std::string("ResourceTypes"), resourceTypes);
}

View File

@@ -0,0 +1,82 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Config;
using namespace AlibabaCloud::Config::Model;
ListAggregateDiscoveredResourcesResult::ListAggregateDiscoveredResourcesResult() :
ServiceResult()
{}
ListAggregateDiscoveredResourcesResult::ListAggregateDiscoveredResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAggregateDiscoveredResourcesResult::~ListAggregateDiscoveredResourcesResult()
{}
void ListAggregateDiscoveredResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto discoveredResourceProfilesNode = value["DiscoveredResourceProfiles"];
if(!discoveredResourceProfilesNode["PageNumber"].isNull())
discoveredResourceProfiles_.pageNumber = std::stoi(discoveredResourceProfilesNode["PageNumber"].asString());
if(!discoveredResourceProfilesNode["PageSize"].isNull())
discoveredResourceProfiles_.pageSize = std::stoi(discoveredResourceProfilesNode["PageSize"].asString());
if(!discoveredResourceProfilesNode["TotalCount"].isNull())
discoveredResourceProfiles_.totalCount = std::stoi(discoveredResourceProfilesNode["TotalCount"].asString());
auto allDiscoveredResourceProfileListNode = discoveredResourceProfilesNode["DiscoveredResourceProfileList"]["DiscoveredResourceProfile"];
for (auto discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile : allDiscoveredResourceProfileListNode)
{
DiscoveredResourceProfiles::DiscoveredResourceProfile discoveredResourceProfileObject;
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceType"].isNull())
discoveredResourceProfileObject.resourceType = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceType"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Region"].isNull())
discoveredResourceProfileObject.region = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Region"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceCreationTime"].isNull())
discoveredResourceProfileObject.resourceCreationTime = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceCreationTime"].asString());
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Tags"].isNull())
discoveredResourceProfileObject.tags = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Tags"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AccountId"].isNull())
discoveredResourceProfileObject.accountId = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AccountId"].asString());
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceId"].isNull())
discoveredResourceProfileObject.resourceId = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceId"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceName"].isNull())
discoveredResourceProfileObject.resourceName = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceName"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceDeleted"].isNull())
discoveredResourceProfileObject.resourceDeleted = std::stoi(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceDeleted"].asString());
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceStatus"].isNull())
discoveredResourceProfileObject.resourceStatus = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceStatus"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceOwnerId"].isNull())
discoveredResourceProfileObject.resourceOwnerId = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceOwnerId"].asString());
discoveredResourceProfiles_.discoveredResourceProfileList.push_back(discoveredResourceProfileObject);
}
}
ListAggregateDiscoveredResourcesResult::DiscoveredResourceProfiles ListAggregateDiscoveredResourcesResult::getDiscoveredResourceProfiles()const
{
return discoveredResourceProfiles_;
}

View File

@@ -1,128 +1,144 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/ListConfigRulesRequest.h>
using AlibabaCloud::Config::Model::ListConfigRulesRequest;
ListConfigRulesRequest::ListConfigRulesRequest() :
RpcServiceRequest("config", "2019-01-08", "ListConfigRules")
{
setMethod(HttpRequest::Method::Get);
}
ListConfigRulesRequest::~ListConfigRulesRequest()
{}
bool ListConfigRulesRequest::getMultiAccount()const
{
return multiAccount_;
*/
#include <alibabacloud/config/model/ListConfigRulesRequest.h>
using AlibabaCloud::Config::Model::ListConfigRulesRequest;
ListConfigRulesRequest::ListConfigRulesRequest()
: RpcServiceRequest("config", "2019-01-08", "ListConfigRules") {
setMethod(HttpRequest::Method::Get);
}
void ListConfigRulesRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
ListConfigRulesRequest::~ListConfigRulesRequest() {}
bool ListConfigRulesRequest::getMultiAccount() const {
return multiAccount_;
}
std::string ListConfigRulesRequest::getMessageType()const
{
return messageType_;
void ListConfigRulesRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void ListConfigRulesRequest::setMessageType(const std::string& messageType)
{
messageType_ = messageType;
setParameter("MessageType", messageType);
bool ListConfigRulesRequest::getFilterInCompliancePack() const {
return filterInCompliancePack_;
}
std::string ListConfigRulesRequest::getConfigRuleState()const
{
return configRuleState_;
void ListConfigRulesRequest::setFilterInCompliancePack(bool filterInCompliancePack) {
filterInCompliancePack_ = filterInCompliancePack;
setParameter(std::string("FilterInCompliancePack"), filterInCompliancePack ? "true" : "false");
}
void ListConfigRulesRequest::setConfigRuleState(const std::string& configRuleState)
{
configRuleState_ = configRuleState;
setParameter("ConfigRuleState", configRuleState);
std::string ListConfigRulesRequest::getMessageType() const {
return messageType_;
}
int ListConfigRulesRequest::getPageNumber()const
{
return pageNumber_;
void ListConfigRulesRequest::setMessageType(const std::string &messageType) {
messageType_ = messageType;
setParameter(std::string("MessageType"), messageType);
}
void ListConfigRulesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
std::string ListConfigRulesRequest::getConfigRuleState() const {
return configRuleState_;
}
int ListConfigRulesRequest::getPageSize()const
{
return pageSize_;
void ListConfigRulesRequest::setConfigRuleState(const std::string &configRuleState) {
configRuleState_ = configRuleState;
setParameter(std::string("ConfigRuleState"), configRuleState);
}
void ListConfigRulesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
std::string ListConfigRulesRequest::getFilterInCompliancePackExcludeIds() const {
return filterInCompliancePackExcludeIds_;
}
std::string ListConfigRulesRequest::getComplianceType()const
{
return complianceType_;
void ListConfigRulesRequest::setFilterInCompliancePackExcludeIds(const std::string &filterInCompliancePackExcludeIds) {
filterInCompliancePackExcludeIds_ = filterInCompliancePackExcludeIds;
setParameter(std::string("FilterInCompliancePackExcludeIds"), filterInCompliancePackExcludeIds);
}
void ListConfigRulesRequest::setComplianceType(const std::string& complianceType)
{
complianceType_ = complianceType;
setParameter("ComplianceType", complianceType);
int ListConfigRulesRequest::getPageNumber() const {
return pageNumber_;
}
std::string ListConfigRulesRequest::getConfigRuleSceneId()const
{
return configRuleSceneId_;
void ListConfigRulesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
void ListConfigRulesRequest::setConfigRuleSceneId(const std::string& configRuleSceneId)
{
configRuleSceneId_ = configRuleSceneId;
setParameter("ConfigRuleSceneId", configRuleSceneId);
int ListConfigRulesRequest::getPageSize() const {
return pageSize_;
}
int ListConfigRulesRequest::getRiskLevel()const
{
return riskLevel_;
void ListConfigRulesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
void ListConfigRulesRequest::setRiskLevel(int riskLevel)
{
riskLevel_ = riskLevel;
setParameter("RiskLevel", std::to_string(riskLevel));
std::string ListConfigRulesRequest::getCompliancePackId() const {
return compliancePackId_;
}
long ListConfigRulesRequest::getMemberId()const
{
return memberId_;
void ListConfigRulesRequest::setCompliancePackId(const std::string &compliancePackId) {
compliancePackId_ = compliancePackId;
setParameter(std::string("CompliancePackId"), compliancePackId);
}
void ListConfigRulesRequest::setMemberId(long memberId)
{
memberId_ = memberId;
setParameter("MemberId", std::to_string(memberId));
std::string ListConfigRulesRequest::getComplianceType() const {
return complianceType_;
}
void ListConfigRulesRequest::setComplianceType(const std::string &complianceType) {
complianceType_ = complianceType;
setParameter(std::string("ComplianceType"), complianceType);
}
std::string ListConfigRulesRequest::getConfigRuleSceneId() const {
return configRuleSceneId_;
}
void ListConfigRulesRequest::setConfigRuleSceneId(const std::string &configRuleSceneId) {
configRuleSceneId_ = configRuleSceneId;
setParameter(std::string("ConfigRuleSceneId"), configRuleSceneId);
}
int ListConfigRulesRequest::getRiskLevel() const {
return riskLevel_;
}
void ListConfigRulesRequest::setRiskLevel(int riskLevel) {
riskLevel_ = riskLevel;
setParameter(std::string("RiskLevel"), std::to_string(riskLevel));
}
std::string ListConfigRulesRequest::getConfigRuleName() const {
return configRuleName_;
}
void ListConfigRulesRequest::setConfigRuleName(const std::string &configRuleName) {
configRuleName_ = configRuleName;
setParameter(std::string("ConfigRuleName"), configRuleName);
}
long ListConfigRulesRequest::getMemberId() const {
return memberId_;
}
void ListConfigRulesRequest::setMemberId(long memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), std::to_string(memberId));
}

View File

@@ -50,40 +50,46 @@ void ListConfigRulesResult::parse(const std::string &payload)
for (auto configRulesNodeConfigRuleListConfigRule : allConfigRuleListNode)
{
ConfigRules::ConfigRule configRuleObject;
if(!configRulesNodeConfigRuleListConfigRule["AccountId"].isNull())
configRuleObject.accountId = std::stol(configRulesNodeConfigRuleListConfigRule["AccountId"].asString());
if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleArn"].isNull())
configRuleObject.configRuleArn = configRulesNodeConfigRuleListConfigRule["ConfigRuleArn"].asString();
if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleId"].isNull())
configRuleObject.configRuleId = configRulesNodeConfigRuleListConfigRule["ConfigRuleId"].asString();
if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleName"].isNull())
configRuleObject.configRuleName = configRulesNodeConfigRuleListConfigRule["ConfigRuleName"].asString();
if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleState"].isNull())
configRuleObject.configRuleState = configRulesNodeConfigRuleListConfigRule["ConfigRuleState"].asString();
if(!configRulesNodeConfigRuleListConfigRule["Description"].isNull())
configRuleObject.description = configRulesNodeConfigRuleListConfigRule["Description"].asString();
if(!configRulesNodeConfigRuleListConfigRule["CompliancePackId"].isNull())
configRuleObject.compliancePackId = configRulesNodeConfigRuleListConfigRule["CompliancePackId"].asString();
if(!configRulesNodeConfigRuleListConfigRule["RiskLevel"].isNull())
configRuleObject.riskLevel = std::stoi(configRulesNodeConfigRuleListConfigRule["RiskLevel"].asString());
if(!configRulesNodeConfigRuleListConfigRule["SourceIdentifier"].isNull())
configRuleObject.sourceIdentifier = configRulesNodeConfigRuleListConfigRule["SourceIdentifier"].asString();
if(!configRulesNodeConfigRuleListConfigRule["SourceOwner"].isNull())
configRuleObject.sourceOwner = configRulesNodeConfigRuleListConfigRule["SourceOwner"].asString();
if(!configRulesNodeConfigRuleListConfigRule["AccountId"].isNull())
configRuleObject.accountId = std::stol(configRulesNodeConfigRuleListConfigRule["AccountId"].asString());
if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleState"].isNull())
configRuleObject.configRuleState = configRulesNodeConfigRuleListConfigRule["ConfigRuleState"].asString();
if(!configRulesNodeConfigRuleListConfigRule["SourceIdentifier"].isNull())
configRuleObject.sourceIdentifier = configRulesNodeConfigRuleListConfigRule["SourceIdentifier"].asString();
if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleArn"].isNull())
configRuleObject.configRuleArn = configRulesNodeConfigRuleListConfigRule["ConfigRuleArn"].asString();
if(!configRulesNodeConfigRuleListConfigRule["Description"].isNull())
configRuleObject.description = configRulesNodeConfigRuleListConfigRule["Description"].asString();
if(!configRulesNodeConfigRuleListConfigRule["AutomationType"].isNull())
configRuleObject.automationType = configRulesNodeConfigRuleListConfigRule["AutomationType"].asString();
if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleName"].isNull())
configRuleObject.configRuleName = configRulesNodeConfigRuleListConfigRule["ConfigRuleName"].asString();
if(!configRulesNodeConfigRuleListConfigRule["ConfigRuleId"].isNull())
configRuleObject.configRuleId = configRulesNodeConfigRuleListConfigRule["ConfigRuleId"].asString();
auto complianceNode = value["Compliance"];
if(!complianceNode["ComplianceType"].isNull())
configRuleObject.compliance.complianceType = complianceNode["ComplianceType"].asString();
if(!complianceNode["Count"].isNull())
configRuleObject.compliance.count = std::stoi(complianceNode["Count"].asString());
auto createByNode = value["CreateBy"];
if(!createByNode["CreatorId"].isNull())
configRuleObject.createBy.creatorId = createByNode["CreatorId"].asString();
if(!createByNode["CompliancePackId"].isNull())
configRuleObject.createBy.compliancePackId = createByNode["CompliancePackId"].asString();
if(!createByNode["ConfigRuleSceneId"].isNull())
configRuleObject.createBy.configRuleSceneId = createByNode["ConfigRuleSceneId"].asString();
if(!createByNode["CompliancePackName"].isNull())
configRuleObject.createBy.compliancePackName = createByNode["CompliancePackName"].asString();
if(!createByNode["CreatorName"].isNull())
configRuleObject.createBy.creatorName = createByNode["CreatorName"].asString();
if(!createByNode["CreatorType"].isNull())
configRuleObject.createBy.creatorType = createByNode["CreatorType"].asString();
if(!createByNode["ConfigRuleSceneId"].isNull())
configRuleObject.createBy.configRuleSceneId = createByNode["ConfigRuleSceneId"].asString();
if(!createByNode["CreatorId"].isNull())
configRuleObject.createBy.creatorId = createByNode["CreatorId"].asString();
if(!createByNode["ConfigRuleSceneName"].isNull())
configRuleObject.createBy.configRuleSceneName = createByNode["ConfigRuleSceneName"].asString();
configRules_.configRuleList.push_back(configRuleObject);

View File

@@ -1,128 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/ListDiscoveredResourcesRequest.h>
using AlibabaCloud::Config::Model::ListDiscoveredResourcesRequest;
ListDiscoveredResourcesRequest::ListDiscoveredResourcesRequest() :
RpcServiceRequest("config", "2019-01-08", "ListDiscoveredResources")
{
setMethod(HttpRequest::Method::Get);
}
ListDiscoveredResourcesRequest::~ListDiscoveredResourcesRequest()
{}
int ListDiscoveredResourcesRequest::getResourceDeleted()const
{
return resourceDeleted_;
*/
#include <alibabacloud/config/model/ListDiscoveredResourcesRequest.h>
using AlibabaCloud::Config::Model::ListDiscoveredResourcesRequest;
ListDiscoveredResourcesRequest::ListDiscoveredResourcesRequest()
: RpcServiceRequest("config", "2019-01-08", "ListDiscoveredResources") {
setMethod(HttpRequest::Method::Get);
}
void ListDiscoveredResourcesRequest::setResourceDeleted(int resourceDeleted)
{
resourceDeleted_ = resourceDeleted;
setParameter("ResourceDeleted", std::to_string(resourceDeleted));
ListDiscoveredResourcesRequest::~ListDiscoveredResourcesRequest() {}
int ListDiscoveredResourcesRequest::getResourceDeleted() const {
return resourceDeleted_;
}
bool ListDiscoveredResourcesRequest::getMultiAccount()const
{
return multiAccount_;
void ListDiscoveredResourcesRequest::setResourceDeleted(int resourceDeleted) {
resourceDeleted_ = resourceDeleted;
setParameter(std::string("ResourceDeleted"), std::to_string(resourceDeleted));
}
void ListDiscoveredResourcesRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
bool ListDiscoveredResourcesRequest::getMultiAccount() const {
return multiAccount_;
}
std::string ListDiscoveredResourcesRequest::getRegions()const
{
return regions_;
void ListDiscoveredResourcesRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void ListDiscoveredResourcesRequest::setRegions(const std::string& regions)
{
regions_ = regions;
setParameter("Regions", regions);
std::string ListDiscoveredResourcesRequest::getRegions() const {
return regions_;
}
int ListDiscoveredResourcesRequest::getPageNumber()const
{
return pageNumber_;
void ListDiscoveredResourcesRequest::setRegions(const std::string &regions) {
regions_ = regions;
setParameter(std::string("Regions"), regions);
}
void ListDiscoveredResourcesRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
int ListDiscoveredResourcesRequest::getPageNumber() const {
return pageNumber_;
}
int ListDiscoveredResourcesRequest::getPageSize()const
{
return pageSize_;
void ListDiscoveredResourcesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
void ListDiscoveredResourcesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
int ListDiscoveredResourcesRequest::getPageSize() const {
return pageSize_;
}
std::string ListDiscoveredResourcesRequest::getComplianceType()const
{
return complianceType_;
void ListDiscoveredResourcesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
void ListDiscoveredResourcesRequest::setComplianceType(const std::string& complianceType)
{
complianceType_ = complianceType;
setParameter("ComplianceType", complianceType);
std::string ListDiscoveredResourcesRequest::getComplianceType() const {
return complianceType_;
}
std::string ListDiscoveredResourcesRequest::getResourceId()const
{
return resourceId_;
void ListDiscoveredResourcesRequest::setComplianceType(const std::string &complianceType) {
complianceType_ = complianceType;
setParameter(std::string("ComplianceType"), complianceType);
}
void ListDiscoveredResourcesRequest::setResourceId(const std::string& resourceId)
{
resourceId_ = resourceId;
setParameter("ResourceId", resourceId);
std::string ListDiscoveredResourcesRequest::getResourceId() const {
return resourceId_;
}
std::string ListDiscoveredResourcesRequest::getResourceTypes()const
{
return resourceTypes_;
void ListDiscoveredResourcesRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
void ListDiscoveredResourcesRequest::setResourceTypes(const std::string& resourceTypes)
{
resourceTypes_ = resourceTypes;
setParameter("ResourceTypes", resourceTypes);
std::string ListDiscoveredResourcesRequest::getResourceTypes() const {
return resourceTypes_;
}
long ListDiscoveredResourcesRequest::getMemberId()const
{
return memberId_;
void ListDiscoveredResourcesRequest::setResourceTypes(const std::string &resourceTypes) {
resourceTypes_ = resourceTypes;
setParameter(std::string("ResourceTypes"), resourceTypes);
}
void ListDiscoveredResourcesRequest::setMemberId(long memberId)
{
memberId_ = memberId;
setParameter("MemberId", std::to_string(memberId));
long ListDiscoveredResourcesRequest::getMemberId() const {
return memberId_;
}
void ListDiscoveredResourcesRequest::setMemberId(long memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), std::to_string(memberId));
}

View File

@@ -50,24 +50,24 @@ void ListDiscoveredResourcesResult::parse(const std::string &payload)
for (auto discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile : allDiscoveredResourceProfileListNode)
{
DiscoveredResourceProfiles::DiscoveredResourceProfile discoveredResourceProfileObject;
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AccountId"].isNull())
discoveredResourceProfileObject.accountId = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AccountId"].asString());
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceType"].isNull())
discoveredResourceProfileObject.resourceType = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceType"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Region"].isNull())
discoveredResourceProfileObject.region = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Region"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceCreationTime"].isNull())
discoveredResourceProfileObject.resourceCreationTime = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceCreationTime"].asString());
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceDeleted"].isNull())
discoveredResourceProfileObject.resourceDeleted = std::stoi(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceDeleted"].asString());
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Tags"].isNull())
discoveredResourceProfileObject.tags = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Tags"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AccountId"].isNull())
discoveredResourceProfileObject.accountId = std::stol(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["AccountId"].asString());
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceId"].isNull())
discoveredResourceProfileObject.resourceId = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceId"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceName"].isNull())
discoveredResourceProfileObject.resourceName = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceName"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceDeleted"].isNull())
discoveredResourceProfileObject.resourceDeleted = std::stoi(discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceDeleted"].asString());
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceStatus"].isNull())
discoveredResourceProfileObject.resourceStatus = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceStatus"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceType"].isNull())
discoveredResourceProfileObject.resourceType = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["ResourceType"].asString();
if(!discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Tags"].isNull())
discoveredResourceProfileObject.tags = discoveredResourceProfilesNodeDiscoveredResourceProfileListDiscoveredResourceProfile["Tags"].asString();
discoveredResourceProfiles_.discoveredResourceProfileList.push_back(discoveredResourceProfileObject);
}

View 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/ListRemediationTemplatesRequest.h>
using AlibabaCloud::Config::Model::ListRemediationTemplatesRequest;
ListRemediationTemplatesRequest::ListRemediationTemplatesRequest()
: RpcServiceRequest("config", "2019-01-08", "ListRemediationTemplates") {
setMethod(HttpRequest::Method::Post);
}
ListRemediationTemplatesRequest::~ListRemediationTemplatesRequest() {}
std::string ListRemediationTemplatesRequest::getManagedRuleIdentifier() const {
return managedRuleIdentifier_;
}
void ListRemediationTemplatesRequest::setManagedRuleIdentifier(const std::string &managedRuleIdentifier) {
managedRuleIdentifier_ = managedRuleIdentifier;
setParameter(std::string("ManagedRuleIdentifier"), managedRuleIdentifier);
}
std::string ListRemediationTemplatesRequest::getRemediationType() const {
return remediationType_;
}
void ListRemediationTemplatesRequest::setRemediationType(const std::string &remediationType) {
remediationType_ = remediationType;
setParameter(std::string("RemediationType"), remediationType);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/ListRemediationTemplatesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Config;
using namespace AlibabaCloud::Config::Model;
ListRemediationTemplatesResult::ListRemediationTemplatesResult() :
ServiceResult()
{}
ListRemediationTemplatesResult::ListRemediationTemplatesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListRemediationTemplatesResult::~ListRemediationTemplatesResult()
{}
void ListRemediationTemplatesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRemediationTemplatesNode = value["RemediationTemplates"]["RemediationTemplate"];
for (auto valueRemediationTemplatesRemediationTemplate : allRemediationTemplatesNode)
{
RemediationTemplate remediationTemplatesObject;
if(!valueRemediationTemplatesRemediationTemplate["CompulsoryParameters"].isNull())
remediationTemplatesObject.compulsoryParameters = valueRemediationTemplatesRemediationTemplate["CompulsoryParameters"].asString();
if(!valueRemediationTemplatesRemediationTemplate["RemediationType"].isNull())
remediationTemplatesObject.remediationType = valueRemediationTemplatesRemediationTemplate["RemediationType"].asString();
if(!valueRemediationTemplatesRemediationTemplate["TemplateIdentifier"].isNull())
remediationTemplatesObject.templateIdentifier = valueRemediationTemplatesRemediationTemplate["TemplateIdentifier"].asString();
if(!valueRemediationTemplatesRemediationTemplate["TemplateName"].isNull())
remediationTemplatesObject.templateName = valueRemediationTemplatesRemediationTemplate["TemplateName"].asString();
if(!valueRemediationTemplatesRemediationTemplate["TemplateDefinition"].isNull())
remediationTemplatesObject.templateDefinition = valueRemediationTemplatesRemediationTemplate["TemplateDefinition"].asString();
remediationTemplates_.push_back(remediationTemplatesObject);
}
}
std::vector<ListRemediationTemplatesResult::RemediationTemplate> ListRemediationTemplatesResult::getRemediationTemplates()const
{
return remediationTemplates_;
}

View File

@@ -1,183 +1,180 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/PutConfigRuleRequest.h>
using AlibabaCloud::Config::Model::PutConfigRuleRequest;
PutConfigRuleRequest::PutConfigRuleRequest() :
RpcServiceRequest("config", "2019-01-08", "PutConfigRule")
{
setMethod(HttpRequest::Method::Post);
}
PutConfigRuleRequest::~PutConfigRuleRequest()
{}
std::string PutConfigRuleRequest::getConfigRuleId()const
{
return configRuleId_;
*/
#include <alibabacloud/config/model/PutConfigRuleRequest.h>
using AlibabaCloud::Config::Model::PutConfigRuleRequest;
PutConfigRuleRequest::PutConfigRuleRequest()
: RpcServiceRequest("config", "2019-01-08", "PutConfigRule") {
setMethod(HttpRequest::Method::Post);
}
void PutConfigRuleRequest::setConfigRuleId(const std::string& configRuleId)
{
configRuleId_ = configRuleId;
setBodyParameter("ConfigRuleId", configRuleId);
PutConfigRuleRequest::~PutConfigRuleRequest() {}
std::string PutConfigRuleRequest::getConfigRuleId() const {
return configRuleId_;
}
bool PutConfigRuleRequest::getMultiAccount()const
{
return multiAccount_;
void PutConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) {
configRuleId_ = configRuleId;
setBodyParameter(std::string("ConfigRuleId"), configRuleId);
}
void PutConfigRuleRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
bool PutConfigRuleRequest::getMultiAccount() const {
return multiAccount_;
}
std::string PutConfigRuleRequest::getClientToken()const
{
return clientToken_;
void PutConfigRuleRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void PutConfigRuleRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
std::string PutConfigRuleRequest::getClientToken() const {
return clientToken_;
}
std::string PutConfigRuleRequest::getDescription()const
{
return description_;
void PutConfigRuleRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
void PutConfigRuleRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
std::string PutConfigRuleRequest::getDescription() const {
return description_;
}
std::string PutConfigRuleRequest::getSourceIdentifier()const
{
return sourceIdentifier_;
void PutConfigRuleRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
void PutConfigRuleRequest::setSourceIdentifier(const std::string& sourceIdentifier)
{
sourceIdentifier_ = sourceIdentifier;
setBodyParameter("SourceIdentifier", sourceIdentifier);
std::string PutConfigRuleRequest::getSourceIdentifier() const {
return sourceIdentifier_;
}
std::string PutConfigRuleRequest::getSourceMaximumExecutionFrequency()const
{
return sourceMaximumExecutionFrequency_;
void PutConfigRuleRequest::setSourceIdentifier(const std::string &sourceIdentifier) {
sourceIdentifier_ = sourceIdentifier;
setBodyParameter(std::string("SourceIdentifier"), sourceIdentifier);
}
void PutConfigRuleRequest::setSourceMaximumExecutionFrequency(const std::string& sourceMaximumExecutionFrequency)
{
sourceMaximumExecutionFrequency_ = sourceMaximumExecutionFrequency;
setBodyParameter("SourceMaximumExecutionFrequency", sourceMaximumExecutionFrequency);
std::string PutConfigRuleRequest::getSourceMaximumExecutionFrequency() const {
return sourceMaximumExecutionFrequency_;
}
std::string PutConfigRuleRequest::getScopeComplianceResourceTypes()const
{
return scopeComplianceResourceTypes_;
void PutConfigRuleRequest::setSourceMaximumExecutionFrequency(const std::string &sourceMaximumExecutionFrequency) {
sourceMaximumExecutionFrequency_ = sourceMaximumExecutionFrequency;
setBodyParameter(std::string("SourceMaximumExecutionFrequency"), sourceMaximumExecutionFrequency);
}
void PutConfigRuleRequest::setScopeComplianceResourceTypes(const std::string& scopeComplianceResourceTypes)
{
scopeComplianceResourceTypes_ = scopeComplianceResourceTypes;
setBodyParameter("ScopeComplianceResourceTypes", scopeComplianceResourceTypes);
std::string PutConfigRuleRequest::getScopeComplianceResourceTypes() const {
return scopeComplianceResourceTypes_;
}
std::string PutConfigRuleRequest::getSourceDetailMessageType()const
{
return sourceDetailMessageType_;
void PutConfigRuleRequest::setScopeComplianceResourceTypes(const std::string &scopeComplianceResourceTypes) {
scopeComplianceResourceTypes_ = scopeComplianceResourceTypes;
setBodyParameter(std::string("ScopeComplianceResourceTypes"), scopeComplianceResourceTypes);
}
void PutConfigRuleRequest::setSourceDetailMessageType(const std::string& sourceDetailMessageType)
{
sourceDetailMessageType_ = sourceDetailMessageType;
setBodyParameter("SourceDetailMessageType", sourceDetailMessageType);
std::string PutConfigRuleRequest::getSourceDetailMessageType() const {
return sourceDetailMessageType_;
}
int PutConfigRuleRequest::getRiskLevel()const
{
return riskLevel_;
void PutConfigRuleRequest::setSourceDetailMessageType(const std::string &sourceDetailMessageType) {
sourceDetailMessageType_ = sourceDetailMessageType;
setBodyParameter(std::string("SourceDetailMessageType"), sourceDetailMessageType);
}
void PutConfigRuleRequest::setRiskLevel(int riskLevel)
{
riskLevel_ = riskLevel;
setBodyParameter("RiskLevel", std::to_string(riskLevel));
int PutConfigRuleRequest::getRiskLevel() const {
return riskLevel_;
}
std::string PutConfigRuleRequest::getSourceOwner()const
{
return sourceOwner_;
void PutConfigRuleRequest::setRiskLevel(int riskLevel) {
riskLevel_ = riskLevel;
setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel));
}
void PutConfigRuleRequest::setSourceOwner(const std::string& sourceOwner)
{
sourceOwner_ = sourceOwner;
setBodyParameter("SourceOwner", sourceOwner);
std::string PutConfigRuleRequest::getSourceOwner() const {
return sourceOwner_;
}
std::string PutConfigRuleRequest::getInputParameters()const
{
return inputParameters_;
void PutConfigRuleRequest::setSourceOwner(const std::string &sourceOwner) {
sourceOwner_ = sourceOwner;
setBodyParameter(std::string("SourceOwner"), sourceOwner);
}
void PutConfigRuleRequest::setInputParameters(const std::string& inputParameters)
{
inputParameters_ = inputParameters;
setBodyParameter("InputParameters", inputParameters);
std::string PutConfigRuleRequest::getInputParameters() const {
return inputParameters_;
}
std::string PutConfigRuleRequest::getConfigRuleName()const
{
return configRuleName_;
void PutConfigRuleRequest::setInputParameters(const std::string &inputParameters) {
inputParameters_ = inputParameters;
setBodyParameter(std::string("InputParameters"), inputParameters);
}
void PutConfigRuleRequest::setConfigRuleName(const std::string& configRuleName)
{
configRuleName_ = configRuleName;
setBodyParameter("ConfigRuleName", configRuleName);
std::string PutConfigRuleRequest::getScopeComplianceExcludeResourceIds() const {
return scopeComplianceExcludeResourceIds_;
}
std::string PutConfigRuleRequest::getScopeComplianceResourceId()const
{
return scopeComplianceResourceId_;
void PutConfigRuleRequest::setScopeComplianceExcludeResourceIds(const std::string &scopeComplianceExcludeResourceIds) {
scopeComplianceExcludeResourceIds_ = scopeComplianceExcludeResourceIds;
setBodyParameter(std::string("ScopeComplianceExcludeResourceIds"), scopeComplianceExcludeResourceIds);
}
void PutConfigRuleRequest::setScopeComplianceResourceId(const std::string& scopeComplianceResourceId)
{
scopeComplianceResourceId_ = scopeComplianceResourceId;
setBodyParameter("ScopeComplianceResourceId", scopeComplianceResourceId);
std::string PutConfigRuleRequest::getConfigRuleName() const {
return configRuleName_;
}
long PutConfigRuleRequest::getMemberId()const
{
return memberId_;
void PutConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) {
configRuleName_ = configRuleName;
setBodyParameter(std::string("ConfigRuleName"), configRuleName);
}
void PutConfigRuleRequest::setMemberId(long memberId)
{
memberId_ = memberId;
setParameter("MemberId", std::to_string(memberId));
std::string PutConfigRuleRequest::getScopeComplianceResourceId() const {
return scopeComplianceResourceId_;
}
void PutConfigRuleRequest::setScopeComplianceResourceId(const std::string &scopeComplianceResourceId) {
scopeComplianceResourceId_ = scopeComplianceResourceId;
setBodyParameter(std::string("ScopeComplianceResourceId"), scopeComplianceResourceId);
}
std::string PutConfigRuleRequest::getScopeComplianceResourceIds() const {
return scopeComplianceResourceIds_;
}
void PutConfigRuleRequest::setScopeComplianceResourceIds(const std::string &scopeComplianceResourceIds) {
scopeComplianceResourceIds_ = scopeComplianceResourceIds;
setBodyParameter(std::string("ScopeComplianceResourceIds"), scopeComplianceResourceIds);
}
std::string PutConfigRuleRequest::getScopeComplianceRegionIds() const {
return scopeComplianceRegionIds_;
}
void PutConfigRuleRequest::setScopeComplianceRegionIds(const std::string &scopeComplianceRegionIds) {
scopeComplianceRegionIds_ = scopeComplianceRegionIds;
setBodyParameter(std::string("ScopeComplianceRegionIds"), scopeComplianceRegionIds);
}
long PutConfigRuleRequest::getMemberId() const {
return memberId_;
}
void PutConfigRuleRequest::setMemberId(long memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), std::to_string(memberId));
}

View File

@@ -1,40 +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/PutConfigurationRecorderRequest.h>
using AlibabaCloud::Config::Model::PutConfigurationRecorderRequest;
PutConfigurationRecorderRequest::PutConfigurationRecorderRequest() :
RpcServiceRequest("config", "2019-01-08", "PutConfigurationRecorder")
{
setMethod(HttpRequest::Method::Post);
}
PutConfigurationRecorderRequest::~PutConfigurationRecorderRequest()
{}
std::string PutConfigurationRecorderRequest::getResourceTypes()const
{
return resourceTypes_;
*/
#include <alibabacloud/config/model/PutConfigurationRecorderRequest.h>
using AlibabaCloud::Config::Model::PutConfigurationRecorderRequest;
PutConfigurationRecorderRequest::PutConfigurationRecorderRequest()
: RpcServiceRequest("config", "2019-01-08", "PutConfigurationRecorder") {
setMethod(HttpRequest::Method::Post);
}
void PutConfigurationRecorderRequest::setResourceTypes(const std::string& resourceTypes)
{
resourceTypes_ = resourceTypes;
setBodyParameter("ResourceTypes", resourceTypes);
PutConfigurationRecorderRequest::~PutConfigurationRecorderRequest() {}
std::string PutConfigurationRecorderRequest::getResourceTypes() const {
return resourceTypes_;
}
void PutConfigurationRecorderRequest::setResourceTypes(const std::string &resourceTypes) {
resourceTypes_ = resourceTypes;
setBodyParameter(std::string("ResourceTypes"), resourceTypes);
}

View File

@@ -40,14 +40,14 @@ void PutConfigurationRecorderResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto configurationRecorderNode = value["ConfigurationRecorder"];
if(!configurationRecorderNode["AccountId"].isNull())
configurationRecorder_.accountId = std::stol(configurationRecorderNode["AccountId"].asString());
if(!configurationRecorderNode["OrganizationEnableStatus"].isNull())
configurationRecorder_.organizationEnableStatus = configurationRecorderNode["OrganizationEnableStatus"].asString();
if(!configurationRecorderNode["ConfigurationRecorderStatus"].isNull())
configurationRecorder_.configurationRecorderStatus = configurationRecorderNode["ConfigurationRecorderStatus"].asString();
if(!configurationRecorderNode["OrganizationMasterId"].isNull())
configurationRecorder_.organizationMasterId = std::stol(configurationRecorderNode["OrganizationMasterId"].asString());
if(!configurationRecorderNode["OrganizationEnableStatus"].isNull())
configurationRecorder_.organizationEnableStatus = configurationRecorderNode["OrganizationEnableStatus"].asString();
if(!configurationRecorderNode["AccountId"].isNull())
configurationRecorder_.accountId = std::stol(configurationRecorderNode["AccountId"].asString());
auto allResourceTypes = configurationRecorderNode["ResourceTypes"]["ResourceType"];
for (auto value : allResourceTypes)
configurationRecorder_.resourceTypes.push_back(value.asString());

View File

@@ -1,128 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/PutDeliveryChannelRequest.h>
using AlibabaCloud::Config::Model::PutDeliveryChannelRequest;
PutDeliveryChannelRequest::PutDeliveryChannelRequest() :
RpcServiceRequest("config", "2019-01-08", "PutDeliveryChannel")
{
setMethod(HttpRequest::Method::Post);
}
PutDeliveryChannelRequest::~PutDeliveryChannelRequest()
{}
std::string PutDeliveryChannelRequest::getClientToken()const
{
return clientToken_;
*/
#include <alibabacloud/config/model/PutDeliveryChannelRequest.h>
using AlibabaCloud::Config::Model::PutDeliveryChannelRequest;
PutDeliveryChannelRequest::PutDeliveryChannelRequest()
: RpcServiceRequest("config", "2019-01-08", "PutDeliveryChannel") {
setMethod(HttpRequest::Method::Post);
}
void PutDeliveryChannelRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setBodyParameter("ClientToken", clientToken);
PutDeliveryChannelRequest::~PutDeliveryChannelRequest() {}
std::string PutDeliveryChannelRequest::getClientToken() const {
return clientToken_;
}
std::string PutDeliveryChannelRequest::getDescription()const
{
return description_;
void PutDeliveryChannelRequest::setClientToken(const std::string &clientToken) {
clientToken_ = clientToken;
setBodyParameter(std::string("ClientToken"), clientToken);
}
void PutDeliveryChannelRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
std::string PutDeliveryChannelRequest::getDescription() const {
return description_;
}
std::string PutDeliveryChannelRequest::getDeliveryChannelTargetArn()const
{
return deliveryChannelTargetArn_;
void PutDeliveryChannelRequest::setDescription(const std::string &description) {
description_ = description;
setBodyParameter(std::string("Description"), description);
}
void PutDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string& deliveryChannelTargetArn)
{
deliveryChannelTargetArn_ = deliveryChannelTargetArn;
setBodyParameter("DeliveryChannelTargetArn", deliveryChannelTargetArn);
std::string PutDeliveryChannelRequest::getDeliveryChannelTargetArn() const {
return deliveryChannelTargetArn_;
}
std::string PutDeliveryChannelRequest::getDeliveryChannelCondition()const
{
return deliveryChannelCondition_;
void PutDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) {
deliveryChannelTargetArn_ = deliveryChannelTargetArn;
setBodyParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn);
}
void PutDeliveryChannelRequest::setDeliveryChannelCondition(const std::string& deliveryChannelCondition)
{
deliveryChannelCondition_ = deliveryChannelCondition;
setBodyParameter("DeliveryChannelCondition", deliveryChannelCondition);
std::string PutDeliveryChannelRequest::getDeliveryChannelCondition() const {
return deliveryChannelCondition_;
}
std::string PutDeliveryChannelRequest::getDeliveryChannelAssumeRoleArn()const
{
return deliveryChannelAssumeRoleArn_;
void PutDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) {
deliveryChannelCondition_ = deliveryChannelCondition;
setBodyParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition);
}
void PutDeliveryChannelRequest::setDeliveryChannelAssumeRoleArn(const std::string& deliveryChannelAssumeRoleArn)
{
deliveryChannelAssumeRoleArn_ = deliveryChannelAssumeRoleArn;
setBodyParameter("DeliveryChannelAssumeRoleArn", deliveryChannelAssumeRoleArn);
std::string PutDeliveryChannelRequest::getDeliveryChannelAssumeRoleArn() const {
return deliveryChannelAssumeRoleArn_;
}
std::string PutDeliveryChannelRequest::getDeliveryChannelName()const
{
return deliveryChannelName_;
void PutDeliveryChannelRequest::setDeliveryChannelAssumeRoleArn(const std::string &deliveryChannelAssumeRoleArn) {
deliveryChannelAssumeRoleArn_ = deliveryChannelAssumeRoleArn;
setBodyParameter(std::string("DeliveryChannelAssumeRoleArn"), deliveryChannelAssumeRoleArn);
}
void PutDeliveryChannelRequest::setDeliveryChannelName(const std::string& deliveryChannelName)
{
deliveryChannelName_ = deliveryChannelName;
setBodyParameter("DeliveryChannelName", deliveryChannelName);
std::string PutDeliveryChannelRequest::getDeliveryChannelName() const {
return deliveryChannelName_;
}
std::string PutDeliveryChannelRequest::getDeliveryChannelId()const
{
return deliveryChannelId_;
void PutDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) {
deliveryChannelName_ = deliveryChannelName;
setBodyParameter(std::string("DeliveryChannelName"), deliveryChannelName);
}
void PutDeliveryChannelRequest::setDeliveryChannelId(const std::string& deliveryChannelId)
{
deliveryChannelId_ = deliveryChannelId;
setBodyParameter("DeliveryChannelId", deliveryChannelId);
std::string PutDeliveryChannelRequest::getDeliveryChannelId() const {
return deliveryChannelId_;
}
std::string PutDeliveryChannelRequest::getDeliveryChannelType()const
{
return deliveryChannelType_;
void PutDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) {
deliveryChannelId_ = deliveryChannelId;
setBodyParameter(std::string("DeliveryChannelId"), deliveryChannelId);
}
void PutDeliveryChannelRequest::setDeliveryChannelType(const std::string& deliveryChannelType)
{
deliveryChannelType_ = deliveryChannelType;
setBodyParameter("DeliveryChannelType", deliveryChannelType);
std::string PutDeliveryChannelRequest::getDeliveryChannelType() const {
return deliveryChannelType_;
}
int PutDeliveryChannelRequest::getStatus()const
{
return status_;
void PutDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) {
deliveryChannelType_ = deliveryChannelType;
setBodyParameter(std::string("DeliveryChannelType"), deliveryChannelType);
}
void PutDeliveryChannelRequest::setStatus(int status)
{
status_ = status;
setBodyParameter("Status", std::to_string(status));
int PutDeliveryChannelRequest::getStatus() const {
return status_;
}
void PutDeliveryChannelRequest::setStatus(int status) {
status_ = status;
setBodyParameter(std::string("Status"), std::to_string(status));
}

View File

@@ -1,51 +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/PutEvaluationsRequest.h>
using AlibabaCloud::Config::Model::PutEvaluationsRequest;
PutEvaluationsRequest::PutEvaluationsRequest() :
RpcServiceRequest("config", "2019-01-08", "PutEvaluations")
{
setMethod(HttpRequest::Method::Post);
}
PutEvaluationsRequest::~PutEvaluationsRequest()
{}
std::string PutEvaluationsRequest::getEvaluations()const
{
return evaluations_;
*/
#include <alibabacloud/config/model/PutEvaluationsRequest.h>
using AlibabaCloud::Config::Model::PutEvaluationsRequest;
PutEvaluationsRequest::PutEvaluationsRequest()
: RpcServiceRequest("config", "2019-01-08", "PutEvaluations") {
setMethod(HttpRequest::Method::Post);
}
void PutEvaluationsRequest::setEvaluations(const std::string& evaluations)
{
evaluations_ = evaluations;
setBodyParameter("Evaluations", evaluations);
PutEvaluationsRequest::~PutEvaluationsRequest() {}
std::string PutEvaluationsRequest::getEvaluations() const {
return evaluations_;
}
std::string PutEvaluationsRequest::getResultToken()const
{
return resultToken_;
void PutEvaluationsRequest::setEvaluations(const std::string &evaluations) {
evaluations_ = evaluations;
setBodyParameter(std::string("Evaluations"), evaluations);
}
void PutEvaluationsRequest::setResultToken(const std::string& resultToken)
{
resultToken_ = resultToken;
setBodyParameter("ResultToken", resultToken);
bool PutEvaluationsRequest::getDeleteMode() const {
return deleteMode_;
}
void PutEvaluationsRequest::setDeleteMode(bool deleteMode) {
deleteMode_ = deleteMode;
setBodyParameter(std::string("DeleteMode"), deleteMode ? "true" : "false");
}
std::string PutEvaluationsRequest::getResultToken() const {
return resultToken_;
}
void PutEvaluationsRequest::setResultToken(const std::string &resultToken) {
resultToken_ = resultToken;
setBodyParameter(std::string("ResultToken"), resultToken);
}

View File

@@ -1,62 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/config/model/StartConfigRuleEvaluationRequest.h>
using AlibabaCloud::Config::Model::StartConfigRuleEvaluationRequest;
StartConfigRuleEvaluationRequest::StartConfigRuleEvaluationRequest() :
RpcServiceRequest("config", "2019-01-08", "StartConfigRuleEvaluation")
{
setMethod(HttpRequest::Method::Post);
}
StartConfigRuleEvaluationRequest::~StartConfigRuleEvaluationRequest()
{}
std::string StartConfigRuleEvaluationRequest::getConfigRuleId()const
{
return configRuleId_;
*/
#include <alibabacloud/config/model/StartConfigRuleEvaluationRequest.h>
using AlibabaCloud::Config::Model::StartConfigRuleEvaluationRequest;
StartConfigRuleEvaluationRequest::StartConfigRuleEvaluationRequest()
: RpcServiceRequest("config", "2019-01-08", "StartConfigRuleEvaluation") {
setMethod(HttpRequest::Method::Post);
}
void StartConfigRuleEvaluationRequest::setConfigRuleId(const std::string& configRuleId)
{
configRuleId_ = configRuleId;
setParameter("ConfigRuleId", configRuleId);
StartConfigRuleEvaluationRequest::~StartConfigRuleEvaluationRequest() {}
std::string StartConfigRuleEvaluationRequest::getConfigRuleId() const {
return configRuleId_;
}
bool StartConfigRuleEvaluationRequest::getMultiAccount()const
{
return multiAccount_;
void StartConfigRuleEvaluationRequest::setConfigRuleId(const std::string &configRuleId) {
configRuleId_ = configRuleId;
setParameter(std::string("ConfigRuleId"), configRuleId);
}
void StartConfigRuleEvaluationRequest::setMultiAccount(bool multiAccount)
{
multiAccount_ = multiAccount;
setParameter("MultiAccount", multiAccount ? "true" : "false");
bool StartConfigRuleEvaluationRequest::getMultiAccount() const {
return multiAccount_;
}
long StartConfigRuleEvaluationRequest::getMemberId()const
{
return memberId_;
void StartConfigRuleEvaluationRequest::setMultiAccount(bool multiAccount) {
multiAccount_ = multiAccount;
setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false");
}
void StartConfigRuleEvaluationRequest::setMemberId(long memberId)
{
memberId_ = memberId;
setParameter("MemberId", std::to_string(memberId));
std::string StartConfigRuleEvaluationRequest::getCompliancePackId() const {
return compliancePackId_;
}
void StartConfigRuleEvaluationRequest::setCompliancePackId(const std::string &compliancePackId) {
compliancePackId_ = compliancePackId;
setParameter(std::string("CompliancePackId"), compliancePackId);
}
bool StartConfigRuleEvaluationRequest::getRevertEvaluation() const {
return revertEvaluation_;
}
void StartConfigRuleEvaluationRequest::setRevertEvaluation(bool revertEvaluation) {
revertEvaluation_ = revertEvaluation;
setParameter(std::string("RevertEvaluation"), revertEvaluation ? "true" : "false");
}
long StartConfigRuleEvaluationRequest::getMemberId() const {
return memberId_;
}
void StartConfigRuleEvaluationRequest::setMemberId(long memberId) {
memberId_ = memberId;
setParameter(std::string("MemberId"), std::to_string(memberId));
}

View File

@@ -1,40 +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/StartConfigurationRecorderRequest.h>
using AlibabaCloud::Config::Model::StartConfigurationRecorderRequest;
StartConfigurationRecorderRequest::StartConfigurationRecorderRequest() :
RpcServiceRequest("config", "2019-01-08", "StartConfigurationRecorder")
{
setMethod(HttpRequest::Method::Post);
}
StartConfigurationRecorderRequest::~StartConfigurationRecorderRequest()
{}
bool StartConfigurationRecorderRequest::getEnterpriseEdition()const
{
return enterpriseEdition_;
*/
#include <alibabacloud/config/model/StartConfigurationRecorderRequest.h>
using AlibabaCloud::Config::Model::StartConfigurationRecorderRequest;
StartConfigurationRecorderRequest::StartConfigurationRecorderRequest()
: RpcServiceRequest("config", "2019-01-08", "StartConfigurationRecorder") {
setMethod(HttpRequest::Method::Post);
}
void StartConfigurationRecorderRequest::setEnterpriseEdition(bool enterpriseEdition)
{
enterpriseEdition_ = enterpriseEdition;
setBodyParameter("EnterpriseEdition", enterpriseEdition ? "true" : "false");
StartConfigurationRecorderRequest::~StartConfigurationRecorderRequest() {}
bool StartConfigurationRecorderRequest::getEnterpriseEdition() const {
return enterpriseEdition_;
}
void StartConfigurationRecorderRequest::setEnterpriseEdition(bool enterpriseEdition) {
enterpriseEdition_ = enterpriseEdition;
setBodyParameter(std::string("EnterpriseEdition"), enterpriseEdition ? "true" : "false");
}

View File

@@ -40,14 +40,14 @@ void StartConfigurationRecorderResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto configurationRecorderNode = value["ConfigurationRecorder"];
if(!configurationRecorderNode["AccountId"].isNull())
configurationRecorder_.accountId = std::stol(configurationRecorderNode["AccountId"].asString());
if(!configurationRecorderNode["OrganizationEnableStatus"].isNull())
configurationRecorder_.organizationEnableStatus = configurationRecorderNode["OrganizationEnableStatus"].asString();
if(!configurationRecorderNode["ConfigurationRecorderStatus"].isNull())
configurationRecorder_.configurationRecorderStatus = configurationRecorderNode["ConfigurationRecorderStatus"].asString();
if(!configurationRecorderNode["OrganizationMasterId"].isNull())
configurationRecorder_.organizationMasterId = std::stol(configurationRecorderNode["OrganizationMasterId"].asString());
if(!configurationRecorderNode["OrganizationEnableStatus"].isNull())
configurationRecorder_.organizationEnableStatus = configurationRecorderNode["OrganizationEnableStatus"].asString();
if(!configurationRecorderNode["AccountId"].isNull())
configurationRecorder_.accountId = std::stol(configurationRecorderNode["AccountId"].asString());
auto allResourceTypes = configurationRecorderNode["ResourceTypes"]["ResourceType"];
for (auto value : allResourceTypes)
configurationRecorder_.resourceTypes.push_back(value.asString());

View File

@@ -1,40 +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/StopConfigRulesRequest.h>
using AlibabaCloud::Config::Model::StopConfigRulesRequest;
StopConfigRulesRequest::StopConfigRulesRequest() :
RpcServiceRequest("config", "2019-01-08", "StopConfigRules")
{
setMethod(HttpRequest::Method::Post);
}
StopConfigRulesRequest::~StopConfigRulesRequest()
{}
std::string StopConfigRulesRequest::getConfigRuleIds()const
{
return configRuleIds_;
*/
#include <alibabacloud/config/model/StopConfigRulesRequest.h>
using AlibabaCloud::Config::Model::StopConfigRulesRequest;
StopConfigRulesRequest::StopConfigRulesRequest()
: RpcServiceRequest("config", "2019-01-08", "StopConfigRules") {
setMethod(HttpRequest::Method::Post);
}
void StopConfigRulesRequest::setConfigRuleIds(const std::string& configRuleIds)
{
configRuleIds_ = configRuleIds;
setParameter("ConfigRuleIds", configRuleIds);
StopConfigRulesRequest::~StopConfigRulesRequest() {}
std::string StopConfigRulesRequest::getConfigRuleIds() const {
return configRuleIds_;
}
void StopConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) {
configRuleIds_ = configRuleIds;
setParameter(std::string("ConfigRuleIds"), configRuleIds);
}

View File

@@ -44,12 +44,12 @@ void StopConfigRulesResult::parse(const std::string &payload)
for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode)
{
OperateRuleResult::OperateRuleItem operateRuleItemObject;
if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull())
operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString();
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);
}

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
CreateServerlessDBInstanceRequest();
~CreateServerlessDBInstanceRequest();
std::string getCapacityUnit()const;
void setCapacityUnit(const std::string& capacityUnit);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
int getDBInstanceStorage()const;
@@ -85,6 +87,7 @@ namespace AlibabaCloud
void setChargeType(const std::string& chargeType);
private:
std::string capacityUnit_;
long resourceOwnerId_;
int dBInstanceStorage_;
std::string clientToken_;

View File

@@ -37,10 +37,14 @@ namespace AlibabaCloud
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getReadonlyReplicas()const;
void setReadonlyReplicas(const std::string& readonlyReplicas);
std::string getEngineVersion()const;
void setEngineVersion(const std::string& engineVersion);
std::string getShardsInfo()const;
void setShardsInfo(const std::string& shardsInfo);
std::string getReplicationFactor()const;
void setReplicationFactor(const std::string& replicationFactor);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getSecurityToken()const;
@@ -64,8 +68,10 @@ namespace AlibabaCloud
private:
long resourceOwnerId_;
std::string readonlyReplicas_;
std::string engineVersion_;
std::string shardsInfo_;
std::string replicationFactor_;
std::string accessKeyId_;
std::string securityToken_;
std::string regionId_;

View File

@@ -27,6 +27,17 @@ CreateServerlessDBInstanceRequest::CreateServerlessDBInstanceRequest() :
CreateServerlessDBInstanceRequest::~CreateServerlessDBInstanceRequest()
{}
std::string CreateServerlessDBInstanceRequest::getCapacityUnit()const
{
return capacityUnit_;
}
void CreateServerlessDBInstanceRequest::setCapacityUnit(const std::string& capacityUnit)
{
capacityUnit_ = capacityUnit;
setParameter("CapacityUnit", capacityUnit);
}
long CreateServerlessDBInstanceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;

View File

@@ -38,6 +38,17 @@ void EvaluateResourceRequest::setResourceOwnerId(long resourceOwnerId)
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string EvaluateResourceRequest::getReadonlyReplicas()const
{
return readonlyReplicas_;
}
void EvaluateResourceRequest::setReadonlyReplicas(const std::string& readonlyReplicas)
{
readonlyReplicas_ = readonlyReplicas;
setParameter("ReadonlyReplicas", readonlyReplicas);
}
std::string EvaluateResourceRequest::getEngineVersion()const
{
return engineVersion_;
@@ -60,6 +71,17 @@ void EvaluateResourceRequest::setShardsInfo(const std::string& shardsInfo)
setParameter("ShardsInfo", shardsInfo);
}
std::string EvaluateResourceRequest::getReplicationFactor()const
{
return replicationFactor_;
}
void EvaluateResourceRequest::setReplicationFactor(const std::string& replicationFactor)
{
replicationFactor_ = replicationFactor;
setParameter("ReplicationFactor", replicationFactor);
}
std::string EvaluateResourceRequest::getAccessKeyId()const
{
return accessKeyId_;

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