Support managed rule query.
This commit is contained in:
@@ -80,6 +80,10 @@
|
||||
#include "model/GetAggregateResourceComplianceByConfigRuleResult.h"
|
||||
#include "model/GetAggregateResourceComplianceByPackRequest.h"
|
||||
#include "model/GetAggregateResourceComplianceByPackResult.h"
|
||||
#include "model/GetAggregateResourceComplianceGroupByRegionRequest.h"
|
||||
#include "model/GetAggregateResourceComplianceGroupByRegionResult.h"
|
||||
#include "model/GetAggregateResourceComplianceGroupByResourceTypeRequest.h"
|
||||
#include "model/GetAggregateResourceComplianceGroupByResourceTypeResult.h"
|
||||
#include "model/GetAggregateResourceComplianceTimelineRequest.h"
|
||||
#include "model/GetAggregateResourceComplianceTimelineResult.h"
|
||||
#include "model/GetAggregateResourceConfigurationTimelineRequest.h"
|
||||
@@ -106,10 +110,16 @@
|
||||
#include "model/GetDiscoveredResourceCountsGroupByRegionResult.h"
|
||||
#include "model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h"
|
||||
#include "model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h"
|
||||
#include "model/GetManagedRuleRequest.h"
|
||||
#include "model/GetManagedRuleResult.h"
|
||||
#include "model/GetResourceComplianceByConfigRuleRequest.h"
|
||||
#include "model/GetResourceComplianceByConfigRuleResult.h"
|
||||
#include "model/GetResourceComplianceByPackRequest.h"
|
||||
#include "model/GetResourceComplianceByPackResult.h"
|
||||
#include "model/GetResourceComplianceGroupByRegionRequest.h"
|
||||
#include "model/GetResourceComplianceGroupByRegionResult.h"
|
||||
#include "model/GetResourceComplianceGroupByResourceTypeRequest.h"
|
||||
#include "model/GetResourceComplianceGroupByResourceTypeResult.h"
|
||||
#include "model/GetResourceComplianceTimelineRequest.h"
|
||||
#include "model/GetResourceComplianceTimelineResult.h"
|
||||
#include "model/GetResourceConfigurationTimelineRequest.h"
|
||||
@@ -134,6 +144,8 @@
|
||||
#include "model/ListCompliancePacksResult.h"
|
||||
#include "model/ListConfigRuleEvaluationResultsRequest.h"
|
||||
#include "model/ListConfigRuleEvaluationResultsResult.h"
|
||||
#include "model/ListManagedRulesRequest.h"
|
||||
#include "model/ListManagedRulesResult.h"
|
||||
#include "model/ListResourceEvaluationResultsRequest.h"
|
||||
#include "model/ListResourceEvaluationResultsResult.h"
|
||||
#include "model/RevertAggregateEvaluationResultsRequest.h"
|
||||
@@ -248,6 +260,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetAggregateResourceComplianceByPackResult> GetAggregateResourceComplianceByPackOutcome;
|
||||
typedef std::future<GetAggregateResourceComplianceByPackOutcome> GetAggregateResourceComplianceByPackOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetAggregateResourceComplianceByPackRequest&, const GetAggregateResourceComplianceByPackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAggregateResourceComplianceByPackAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAggregateResourceComplianceGroupByRegionResult> GetAggregateResourceComplianceGroupByRegionOutcome;
|
||||
typedef std::future<GetAggregateResourceComplianceGroupByRegionOutcome> GetAggregateResourceComplianceGroupByRegionOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetAggregateResourceComplianceGroupByRegionRequest&, const GetAggregateResourceComplianceGroupByRegionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAggregateResourceComplianceGroupByRegionAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAggregateResourceComplianceGroupByResourceTypeResult> GetAggregateResourceComplianceGroupByResourceTypeOutcome;
|
||||
typedef std::future<GetAggregateResourceComplianceGroupByResourceTypeOutcome> GetAggregateResourceComplianceGroupByResourceTypeOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetAggregateResourceComplianceGroupByResourceTypeRequest&, const GetAggregateResourceComplianceGroupByResourceTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAggregateResourceComplianceGroupByResourceTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAggregateResourceComplianceTimelineResult> GetAggregateResourceComplianceTimelineOutcome;
|
||||
typedef std::future<GetAggregateResourceComplianceTimelineOutcome> GetAggregateResourceComplianceTimelineOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetAggregateResourceComplianceTimelineRequest&, const GetAggregateResourceComplianceTimelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAggregateResourceComplianceTimelineAsyncHandler;
|
||||
@@ -287,12 +305,21 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetDiscoveredResourceCountsGroupByResourceTypeResult> GetDiscoveredResourceCountsGroupByResourceTypeOutcome;
|
||||
typedef std::future<GetDiscoveredResourceCountsGroupByResourceTypeOutcome> GetDiscoveredResourceCountsGroupByResourceTypeOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetDiscoveredResourceCountsGroupByResourceTypeRequest&, const GetDiscoveredResourceCountsGroupByResourceTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDiscoveredResourceCountsGroupByResourceTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetManagedRuleResult> GetManagedRuleOutcome;
|
||||
typedef std::future<GetManagedRuleOutcome> GetManagedRuleOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetManagedRuleRequest&, const GetManagedRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetManagedRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetResourceComplianceByConfigRuleResult> GetResourceComplianceByConfigRuleOutcome;
|
||||
typedef std::future<GetResourceComplianceByConfigRuleOutcome> GetResourceComplianceByConfigRuleOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetResourceComplianceByConfigRuleRequest&, const GetResourceComplianceByConfigRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceComplianceByConfigRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetResourceComplianceByPackResult> GetResourceComplianceByPackOutcome;
|
||||
typedef std::future<GetResourceComplianceByPackOutcome> GetResourceComplianceByPackOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetResourceComplianceByPackRequest&, const GetResourceComplianceByPackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceComplianceByPackAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetResourceComplianceGroupByRegionResult> GetResourceComplianceGroupByRegionOutcome;
|
||||
typedef std::future<GetResourceComplianceGroupByRegionOutcome> GetResourceComplianceGroupByRegionOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetResourceComplianceGroupByRegionRequest&, const GetResourceComplianceGroupByRegionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceComplianceGroupByRegionAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetResourceComplianceGroupByResourceTypeResult> GetResourceComplianceGroupByResourceTypeOutcome;
|
||||
typedef std::future<GetResourceComplianceGroupByResourceTypeOutcome> GetResourceComplianceGroupByResourceTypeOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetResourceComplianceGroupByResourceTypeRequest&, const GetResourceComplianceGroupByResourceTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceComplianceGroupByResourceTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetResourceComplianceTimelineResult> GetResourceComplianceTimelineOutcome;
|
||||
typedef std::future<GetResourceComplianceTimelineOutcome> GetResourceComplianceTimelineOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::GetResourceComplianceTimelineRequest&, const GetResourceComplianceTimelineOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceComplianceTimelineAsyncHandler;
|
||||
@@ -329,6 +356,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListConfigRuleEvaluationResultsResult> ListConfigRuleEvaluationResultsOutcome;
|
||||
typedef std::future<ListConfigRuleEvaluationResultsOutcome> ListConfigRuleEvaluationResultsOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::ListConfigRuleEvaluationResultsRequest&, const ListConfigRuleEvaluationResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListConfigRuleEvaluationResultsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListManagedRulesResult> ListManagedRulesOutcome;
|
||||
typedef std::future<ListManagedRulesOutcome> ListManagedRulesOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::ListManagedRulesRequest&, const ListManagedRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListManagedRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListResourceEvaluationResultsResult> ListResourceEvaluationResultsOutcome;
|
||||
typedef std::future<ListResourceEvaluationResultsOutcome> ListResourceEvaluationResultsOutcomeCallable;
|
||||
typedef std::function<void(const ConfigClient*, const Model::ListResourceEvaluationResultsRequest&, const ListResourceEvaluationResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListResourceEvaluationResultsAsyncHandler;
|
||||
@@ -448,6 +478,12 @@ namespace AlibabaCloud
|
||||
GetAggregateResourceComplianceByPackOutcome getAggregateResourceComplianceByPack(const Model::GetAggregateResourceComplianceByPackRequest &request)const;
|
||||
void getAggregateResourceComplianceByPackAsync(const Model::GetAggregateResourceComplianceByPackRequest& request, const GetAggregateResourceComplianceByPackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAggregateResourceComplianceByPackOutcomeCallable getAggregateResourceComplianceByPackCallable(const Model::GetAggregateResourceComplianceByPackRequest& request) const;
|
||||
GetAggregateResourceComplianceGroupByRegionOutcome getAggregateResourceComplianceGroupByRegion(const Model::GetAggregateResourceComplianceGroupByRegionRequest &request)const;
|
||||
void getAggregateResourceComplianceGroupByRegionAsync(const Model::GetAggregateResourceComplianceGroupByRegionRequest& request, const GetAggregateResourceComplianceGroupByRegionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAggregateResourceComplianceGroupByRegionOutcomeCallable getAggregateResourceComplianceGroupByRegionCallable(const Model::GetAggregateResourceComplianceGroupByRegionRequest& request) const;
|
||||
GetAggregateResourceComplianceGroupByResourceTypeOutcome getAggregateResourceComplianceGroupByResourceType(const Model::GetAggregateResourceComplianceGroupByResourceTypeRequest &request)const;
|
||||
void getAggregateResourceComplianceGroupByResourceTypeAsync(const Model::GetAggregateResourceComplianceGroupByResourceTypeRequest& request, const GetAggregateResourceComplianceGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAggregateResourceComplianceGroupByResourceTypeOutcomeCallable getAggregateResourceComplianceGroupByResourceTypeCallable(const Model::GetAggregateResourceComplianceGroupByResourceTypeRequest& request) const;
|
||||
GetAggregateResourceComplianceTimelineOutcome getAggregateResourceComplianceTimeline(const Model::GetAggregateResourceComplianceTimelineRequest &request)const;
|
||||
void getAggregateResourceComplianceTimelineAsync(const Model::GetAggregateResourceComplianceTimelineRequest& request, const GetAggregateResourceComplianceTimelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAggregateResourceComplianceTimelineOutcomeCallable getAggregateResourceComplianceTimelineCallable(const Model::GetAggregateResourceComplianceTimelineRequest& request) const;
|
||||
@@ -487,12 +523,21 @@ namespace AlibabaCloud
|
||||
GetDiscoveredResourceCountsGroupByResourceTypeOutcome getDiscoveredResourceCountsGroupByResourceType(const Model::GetDiscoveredResourceCountsGroupByResourceTypeRequest &request)const;
|
||||
void getDiscoveredResourceCountsGroupByResourceTypeAsync(const Model::GetDiscoveredResourceCountsGroupByResourceTypeRequest& request, const GetDiscoveredResourceCountsGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDiscoveredResourceCountsGroupByResourceTypeOutcomeCallable getDiscoveredResourceCountsGroupByResourceTypeCallable(const Model::GetDiscoveredResourceCountsGroupByResourceTypeRequest& request) const;
|
||||
GetManagedRuleOutcome getManagedRule(const Model::GetManagedRuleRequest &request)const;
|
||||
void getManagedRuleAsync(const Model::GetManagedRuleRequest& request, const GetManagedRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetManagedRuleOutcomeCallable getManagedRuleCallable(const Model::GetManagedRuleRequest& request) const;
|
||||
GetResourceComplianceByConfigRuleOutcome getResourceComplianceByConfigRule(const Model::GetResourceComplianceByConfigRuleRequest &request)const;
|
||||
void getResourceComplianceByConfigRuleAsync(const Model::GetResourceComplianceByConfigRuleRequest& request, const GetResourceComplianceByConfigRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetResourceComplianceByConfigRuleOutcomeCallable getResourceComplianceByConfigRuleCallable(const Model::GetResourceComplianceByConfigRuleRequest& request) const;
|
||||
GetResourceComplianceByPackOutcome getResourceComplianceByPack(const Model::GetResourceComplianceByPackRequest &request)const;
|
||||
void getResourceComplianceByPackAsync(const Model::GetResourceComplianceByPackRequest& request, const GetResourceComplianceByPackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetResourceComplianceByPackOutcomeCallable getResourceComplianceByPackCallable(const Model::GetResourceComplianceByPackRequest& request) const;
|
||||
GetResourceComplianceGroupByRegionOutcome getResourceComplianceGroupByRegion(const Model::GetResourceComplianceGroupByRegionRequest &request)const;
|
||||
void getResourceComplianceGroupByRegionAsync(const Model::GetResourceComplianceGroupByRegionRequest& request, const GetResourceComplianceGroupByRegionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetResourceComplianceGroupByRegionOutcomeCallable getResourceComplianceGroupByRegionCallable(const Model::GetResourceComplianceGroupByRegionRequest& request) const;
|
||||
GetResourceComplianceGroupByResourceTypeOutcome getResourceComplianceGroupByResourceType(const Model::GetResourceComplianceGroupByResourceTypeRequest &request)const;
|
||||
void getResourceComplianceGroupByResourceTypeAsync(const Model::GetResourceComplianceGroupByResourceTypeRequest& request, const GetResourceComplianceGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetResourceComplianceGroupByResourceTypeOutcomeCallable getResourceComplianceGroupByResourceTypeCallable(const Model::GetResourceComplianceGroupByResourceTypeRequest& request) const;
|
||||
GetResourceComplianceTimelineOutcome getResourceComplianceTimeline(const Model::GetResourceComplianceTimelineRequest &request)const;
|
||||
void getResourceComplianceTimelineAsync(const Model::GetResourceComplianceTimelineRequest& request, const GetResourceComplianceTimelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetResourceComplianceTimelineOutcomeCallable getResourceComplianceTimelineCallable(const Model::GetResourceComplianceTimelineRequest& request) const;
|
||||
@@ -529,6 +574,9 @@ namespace AlibabaCloud
|
||||
ListConfigRuleEvaluationResultsOutcome listConfigRuleEvaluationResults(const Model::ListConfigRuleEvaluationResultsRequest &request)const;
|
||||
void listConfigRuleEvaluationResultsAsync(const Model::ListConfigRuleEvaluationResultsRequest& request, const ListConfigRuleEvaluationResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListConfigRuleEvaluationResultsOutcomeCallable listConfigRuleEvaluationResultsCallable(const Model::ListConfigRuleEvaluationResultsRequest& request) const;
|
||||
ListManagedRulesOutcome listManagedRules(const Model::ListManagedRulesRequest &request)const;
|
||||
void listManagedRulesAsync(const Model::ListManagedRulesRequest& request, const ListManagedRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListManagedRulesOutcomeCallable listManagedRulesCallable(const Model::ListManagedRulesRequest& request) const;
|
||||
ListResourceEvaluationResultsOutcome listResourceEvaluationResults(const Model::ListResourceEvaluationResultsRequest &request)const;
|
||||
void listResourceEvaluationResultsAsync(const Model::ListResourceEvaluationResultsRequest& request, const ListResourceEvaluationResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListResourceEvaluationResultsOutcomeCallable listResourceEvaluationResultsCallable(const Model::ListResourceEvaluationResultsRequest& request) const;
|
||||
|
||||
@@ -58,6 +58,8 @@ public:
|
||||
void setInputParameters(const std::string &inputParameters);
|
||||
std::string getConfigRuleName() const;
|
||||
void setConfigRuleName(const std::string &configRuleName);
|
||||
std::string getTagKeyLogicScope() const;
|
||||
void setTagKeyLogicScope(const std::string &tagKeyLogicScope);
|
||||
std::string getMaximumExecutionFrequency() const;
|
||||
void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency);
|
||||
std::string getExcludeResourceIdsScope() const;
|
||||
@@ -78,6 +80,7 @@ private:
|
||||
std::string resourceGroupIdsScope_;
|
||||
std::string inputParameters_;
|
||||
std::string configRuleName_;
|
||||
std::string tagKeyLogicScope_;
|
||||
std::string maximumExecutionFrequency_;
|
||||
std::string excludeResourceIdsScope_;
|
||||
};
|
||||
|
||||
@@ -56,6 +56,8 @@ public:
|
||||
void setInputParameters(const std::string &inputParameters);
|
||||
std::string getConfigRuleName() const;
|
||||
void setConfigRuleName(const std::string &configRuleName);
|
||||
std::string getTagKeyLogicScope() const;
|
||||
void setTagKeyLogicScope(const std::string &tagKeyLogicScope);
|
||||
std::string getMaximumExecutionFrequency() const;
|
||||
void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency);
|
||||
std::string getExcludeResourceIdsScope() const;
|
||||
@@ -75,6 +77,7 @@ private:
|
||||
std::string resourceGroupIdsScope_;
|
||||
std::string inputParameters_;
|
||||
std::string configRuleName_;
|
||||
std::string tagKeyLogicScope_;
|
||||
std::string maximumExecutionFrequency_;
|
||||
std::string excludeResourceIdsScope_;
|
||||
};
|
||||
|
||||
@@ -32,11 +32,14 @@ public:
|
||||
~GenerateAggregateConfigRulesReportRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getConfigRuleIds() const;
|
||||
void setConfigRuleIds(const std::string &configRuleIds);
|
||||
std::string getAggregatorId() const;
|
||||
void setAggregatorId(const std::string &aggregatorId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string configRuleIds_;
|
||||
std::string aggregatorId_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -37,11 +37,13 @@ namespace AlibabaCloud
|
||||
GenerateAggregateConfigRulesReportResult();
|
||||
explicit GenerateAggregateConfigRulesReportResult(const std::string &payload);
|
||||
~GenerateAggregateConfigRulesReportResult();
|
||||
std::string getReportId()const;
|
||||
std::string getAggregatorId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string reportId_;
|
||||
std::string aggregatorId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -32,9 +32,12 @@ public:
|
||||
~GenerateConfigRulesReportRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getConfigRuleIds() const;
|
||||
void setConfigRuleIds(const std::string &configRuleIds);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string configRuleIds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Config
|
||||
|
||||
@@ -37,10 +37,12 @@ namespace AlibabaCloud
|
||||
GenerateConfigRulesReportResult();
|
||||
explicit GenerateConfigRulesReportResult(const std::string &payload);
|
||||
~GenerateConfigRulesReportResult();
|
||||
std::string getReportId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string reportId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -94,6 +94,7 @@ namespace AlibabaCloud
|
||||
ManagedRule managedRule;
|
||||
std::string description;
|
||||
std::string excludeResourceIdsScope;
|
||||
std::string tagKeyLogicScope;
|
||||
CreateBy createBy;
|
||||
ConfigRuleEvaluationStatus configRuleEvaluationStatus;
|
||||
Source source;
|
||||
|
||||
@@ -30,10 +30,13 @@ class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRulesReportRequest : public R
|
||||
public:
|
||||
GetAggregateConfigRulesReportRequest();
|
||||
~GetAggregateConfigRulesReportRequest();
|
||||
std::string getReportId() const;
|
||||
void setReportId(const std::string &reportId);
|
||||
std::string getAggregatorId() const;
|
||||
void setAggregatorId(const std::string &aggregatorId);
|
||||
|
||||
private:
|
||||
std::string reportId_;
|
||||
std::string aggregatorId_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
long accountId;
|
||||
std::string reportUrl;
|
||||
std::string reportId;
|
||||
std::string reportStatus;
|
||||
std::string aggregatorId;
|
||||
long reportCreateTimestamp;
|
||||
|
||||
@@ -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_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONREQUEST_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 GetAggregateResourceComplianceGroupByRegionRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetAggregateResourceComplianceGroupByRegionRequest();
|
||||
~GetAggregateResourceComplianceGroupByRegionRequest();
|
||||
std::string getConfigRuleIds() const;
|
||||
void setConfigRuleIds(const std::string &configRuleIds);
|
||||
std::string getAggregatorId() const;
|
||||
void setAggregatorId(const std::string &aggregatorId);
|
||||
|
||||
private:
|
||||
std::string configRuleIds_;
|
||||
std::string aggregatorId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Config
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_
|
||||
@@ -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_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONRESULT_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 GetAggregateResourceComplianceGroupByRegionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ComplianceResult
|
||||
{
|
||||
struct ComplianceResultListItem
|
||||
{
|
||||
struct CompliancesItem
|
||||
{
|
||||
std::string complianceType;
|
||||
long count;
|
||||
};
|
||||
std::vector<ComplianceResultListItem::CompliancesItem> compliances;
|
||||
std::string regionId;
|
||||
};
|
||||
std::vector<ComplianceResultListItem> complianceResultList;
|
||||
};
|
||||
|
||||
|
||||
GetAggregateResourceComplianceGroupByRegionResult();
|
||||
explicit GetAggregateResourceComplianceGroupByRegionResult(const std::string &payload);
|
||||
~GetAggregateResourceComplianceGroupByRegionResult();
|
||||
ComplianceResult getComplianceResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ComplianceResult complianceResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_
|
||||
@@ -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_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_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 GetAggregateResourceComplianceGroupByResourceTypeRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetAggregateResourceComplianceGroupByResourceTypeRequest();
|
||||
~GetAggregateResourceComplianceGroupByResourceTypeRequest();
|
||||
std::string getConfigRuleIds() const;
|
||||
void setConfigRuleIds(const std::string &configRuleIds);
|
||||
std::string getAggregatorId() const;
|
||||
void setAggregatorId(const std::string &aggregatorId);
|
||||
|
||||
private:
|
||||
std::string configRuleIds_;
|
||||
std::string aggregatorId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Config
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_
|
||||
@@ -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_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_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 GetAggregateResourceComplianceGroupByResourceTypeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ComplianceResult
|
||||
{
|
||||
struct ComplianceResultListItem
|
||||
{
|
||||
struct CompliancesItem
|
||||
{
|
||||
std::string complianceType;
|
||||
long count;
|
||||
};
|
||||
std::vector<ComplianceResultListItem::CompliancesItem> compliances;
|
||||
std::string resourceType;
|
||||
};
|
||||
std::vector<ComplianceResultListItem> complianceResultList;
|
||||
};
|
||||
|
||||
|
||||
GetAggregateResourceComplianceGroupByResourceTypeResult();
|
||||
explicit GetAggregateResourceComplianceGroupByResourceTypeResult(const std::string &payload);
|
||||
~GetAggregateResourceComplianceGroupByResourceTypeResult();
|
||||
ComplianceResult getComplianceResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ComplianceResult complianceResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_
|
||||
@@ -94,6 +94,7 @@ namespace AlibabaCloud
|
||||
ManagedRule managedRule;
|
||||
std::string description;
|
||||
std::string excludeResourceIdsScope;
|
||||
std::string tagKeyLogicScope;
|
||||
CreateBy createBy;
|
||||
ConfigRuleEvaluationStatus configRuleEvaluationStatus;
|
||||
Source source;
|
||||
|
||||
@@ -30,8 +30,11 @@ class ALIBABACLOUD_CONFIG_EXPORT GetConfigRulesReportRequest : public RpcService
|
||||
public:
|
||||
GetConfigRulesReportRequest();
|
||||
~GetConfigRulesReportRequest();
|
||||
std::string getReportId() const;
|
||||
void setReportId(const std::string &reportId);
|
||||
|
||||
private:
|
||||
std::string reportId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Config
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
long accountId;
|
||||
std::string reportUrl;
|
||||
std::string reportId;
|
||||
std::string reportStatus;
|
||||
long reportCreateTimestamp;
|
||||
};
|
||||
|
||||
@@ -0,0 +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_GETMANAGEDRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULEREQUEST_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 GetManagedRuleRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetManagedRuleRequest();
|
||||
~GetManagedRuleRequest();
|
||||
std::string getIdentifier() const;
|
||||
void setIdentifier(const std::string &identifier);
|
||||
|
||||
private:
|
||||
std::string identifier_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Config
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULEREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULERESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULERESULT_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 GetManagedRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ManagedRule
|
||||
{
|
||||
struct Scope
|
||||
{
|
||||
std::vector<std::string> complianceResourceTypes;
|
||||
};
|
||||
struct SourceDetailsItem
|
||||
{
|
||||
std::string eventSource;
|
||||
std::string messageType;
|
||||
std::string maximumExecutionFrequency;
|
||||
};
|
||||
std::vector<std::string> optionalInputParameterDetails;
|
||||
std::string description;
|
||||
std::vector<std::string> compulsoryInputParameterDetails;
|
||||
std::string helpHint;
|
||||
std::vector<std::string> labels;
|
||||
std::string helpUrls;
|
||||
std::string functionName;
|
||||
std::string identifier;
|
||||
Scope scope;
|
||||
std::vector<std::string> sourceConditions;
|
||||
std::string serviceName;
|
||||
std::string defaultName;
|
||||
std::string helpDoc;
|
||||
std::string configRuleName;
|
||||
std::string regionId;
|
||||
std::vector<SourceDetailsItem> sourceDetails;
|
||||
int riskLevel;
|
||||
long createTimestamp;
|
||||
};
|
||||
|
||||
|
||||
GetManagedRuleResult();
|
||||
explicit GetManagedRuleResult(const std::string &payload);
|
||||
~GetManagedRuleResult();
|
||||
ManagedRule getManagedRule()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ManagedRule managedRule_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULERESULT_H_
|
||||
@@ -0,0 +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_GETRESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONREQUEST_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 GetResourceComplianceGroupByRegionRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetResourceComplianceGroupByRegionRequest();
|
||||
~GetResourceComplianceGroupByRegionRequest();
|
||||
std::string getConfigRuleIds() const;
|
||||
void setConfigRuleIds(const std::string &configRuleIds);
|
||||
|
||||
private:
|
||||
std::string configRuleIds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Config
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_
|
||||
@@ -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_GETRESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONRESULT_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 GetResourceComplianceGroupByRegionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ComplianceResult
|
||||
{
|
||||
struct ComplianceResultListItem
|
||||
{
|
||||
struct CompliancesItem
|
||||
{
|
||||
std::string complianceType;
|
||||
long count;
|
||||
};
|
||||
std::vector<ComplianceResultListItem::CompliancesItem> compliances;
|
||||
std::string regionId;
|
||||
};
|
||||
std::vector<ComplianceResultListItem> complianceResultList;
|
||||
};
|
||||
|
||||
|
||||
GetResourceComplianceGroupByRegionResult();
|
||||
explicit GetResourceComplianceGroupByRegionResult(const std::string &payload);
|
||||
~GetResourceComplianceGroupByRegionResult();
|
||||
ComplianceResult getComplianceResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ComplianceResult complianceResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_
|
||||
@@ -0,0 +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_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_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 GetResourceComplianceGroupByResourceTypeRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetResourceComplianceGroupByResourceTypeRequest();
|
||||
~GetResourceComplianceGroupByResourceTypeRequest();
|
||||
std::string getConfigRuleIds() const;
|
||||
void setConfigRuleIds(const std::string &configRuleIds);
|
||||
|
||||
private:
|
||||
std::string configRuleIds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Config
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_
|
||||
@@ -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_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_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 GetResourceComplianceGroupByResourceTypeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ComplianceResult
|
||||
{
|
||||
struct ComplianceResultListItem
|
||||
{
|
||||
struct CompliancesItem
|
||||
{
|
||||
std::string complianceType;
|
||||
long count;
|
||||
};
|
||||
std::vector<ComplianceResultListItem::CompliancesItem> compliances;
|
||||
std::string resourceType;
|
||||
};
|
||||
std::vector<ComplianceResultListItem> complianceResultList;
|
||||
};
|
||||
|
||||
|
||||
GetResourceComplianceGroupByResourceTypeResult();
|
||||
explicit GetResourceComplianceGroupByResourceTypeResult(const std::string &payload);
|
||||
~GetResourceComplianceGroupByResourceTypeResult();
|
||||
ComplianceResult getComplianceResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ComplianceResult complianceResult_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESREQUEST_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 ListManagedRulesRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListManagedRulesRequest();
|
||||
~ListManagedRulesRequest();
|
||||
int getRiskLevel() const;
|
||||
void setRiskLevel(int riskLevel);
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getKeyword() const;
|
||||
void setKeyword(const std::string &keyword);
|
||||
|
||||
private:
|
||||
int riskLevel_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string keyword_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Config
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESREQUEST_H_
|
||||
@@ -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_LISTMANAGEDRULESRESULT_H_
|
||||
#define ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESRESULT_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 ListManagedRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ManagedRule
|
||||
{
|
||||
std::string description;
|
||||
std::string identifier;
|
||||
std::string configRuleName;
|
||||
std::vector<std::string> labels;
|
||||
std::string useCases;
|
||||
int riskLevel;
|
||||
std::string helpUrls;
|
||||
int referenceCount;
|
||||
};
|
||||
long totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<Data::ManagedRule> managedRuleList;
|
||||
};
|
||||
|
||||
|
||||
ListManagedRulesResult();
|
||||
explicit ListManagedRulesResult(const std::string &payload);
|
||||
~ListManagedRulesResult();
|
||||
std::vector<Data> getManagedRules()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Data> managedRules_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESRESULT_H_
|
||||
@@ -56,6 +56,8 @@ public:
|
||||
void setInputParameters(const std::string &inputParameters);
|
||||
std::string getConfigRuleName() const;
|
||||
void setConfigRuleName(const std::string &configRuleName);
|
||||
std::string getTagKeyLogicScope() const;
|
||||
void setTagKeyLogicScope(const std::string &tagKeyLogicScope);
|
||||
std::string getMaximumExecutionFrequency() const;
|
||||
void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency);
|
||||
std::string getExcludeResourceIdsScope() const;
|
||||
@@ -75,6 +77,7 @@ private:
|
||||
std::string resourceGroupIdsScope_;
|
||||
std::string inputParameters_;
|
||||
std::string configRuleName_;
|
||||
std::string tagKeyLogicScope_;
|
||||
std::string maximumExecutionFrequency_;
|
||||
std::string excludeResourceIdsScope_;
|
||||
};
|
||||
|
||||
@@ -54,6 +54,8 @@ public:
|
||||
void setInputParameters(const std::string &inputParameters);
|
||||
std::string getConfigRuleName() const;
|
||||
void setConfigRuleName(const std::string &configRuleName);
|
||||
std::string getTagKeyLogicScope() const;
|
||||
void setTagKeyLogicScope(const std::string &tagKeyLogicScope);
|
||||
std::string getMaximumExecutionFrequency() const;
|
||||
void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency);
|
||||
std::string getExcludeResourceIdsScope() const;
|
||||
@@ -72,6 +74,7 @@ private:
|
||||
std::string resourceGroupIdsScope_;
|
||||
std::string inputParameters_;
|
||||
std::string configRuleName_;
|
||||
std::string tagKeyLogicScope_;
|
||||
std::string maximumExecutionFrequency_;
|
||||
std::string excludeResourceIdsScope_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user