diff --git a/CHANGELOG b/CHANGELOG index e25b952e8..b696f761a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-02-23 Version: 1.36.1065 +- Support remediation. + 2022-02-22 Version: 1.36.1064 - Deprecated the OnsTopicUpdate api, and will be offline soon. diff --git a/VERSION b/VERSION index 300d83bf5..7d5db0153 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1064 \ No newline at end of file +1.36.1065 \ No newline at end of file diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt index e4d5dcebb..39658e22d 100644 --- a/config/CMakeLists.txt +++ b/config/CMakeLists.txt @@ -31,12 +31,16 @@ set(config_public_header_model include/alibabacloud/config/model/CreateAggregateCompliancePackResult.h include/alibabacloud/config/model/CreateAggregateConfigRuleRequest.h include/alibabacloud/config/model/CreateAggregateConfigRuleResult.h + include/alibabacloud/config/model/CreateAggregateRemediationRequest.h + include/alibabacloud/config/model/CreateAggregateRemediationResult.h include/alibabacloud/config/model/CreateAggregatorRequest.h include/alibabacloud/config/model/CreateAggregatorResult.h include/alibabacloud/config/model/CreateCompliancePackRequest.h include/alibabacloud/config/model/CreateCompliancePackResult.h include/alibabacloud/config/model/CreateConfigRuleRequest.h include/alibabacloud/config/model/CreateConfigRuleResult.h + include/alibabacloud/config/model/CreateRemediationRequest.h + include/alibabacloud/config/model/CreateRemediationResult.h include/alibabacloud/config/model/DeactiveAggregateConfigRulesRequest.h include/alibabacloud/config/model/DeactiveAggregateConfigRulesResult.h include/alibabacloud/config/model/DeactiveConfigRulesRequest.h @@ -45,10 +49,14 @@ set(config_public_header_model include/alibabacloud/config/model/DeleteAggregateCompliancePacksResult.h include/alibabacloud/config/model/DeleteAggregateConfigRulesRequest.h include/alibabacloud/config/model/DeleteAggregateConfigRulesResult.h + include/alibabacloud/config/model/DeleteAggregateRemediationsRequest.h + include/alibabacloud/config/model/DeleteAggregateRemediationsResult.h include/alibabacloud/config/model/DeleteAggregatorsRequest.h include/alibabacloud/config/model/DeleteAggregatorsResult.h include/alibabacloud/config/model/DeleteCompliancePacksRequest.h include/alibabacloud/config/model/DeleteCompliancePacksResult.h + include/alibabacloud/config/model/DeleteRemediationsRequest.h + include/alibabacloud/config/model/DeleteRemediationsResult.h include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackRequest.h include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackResult.h include/alibabacloud/config/model/DetachConfigRuleToCompliancePackRequest.h @@ -75,6 +83,8 @@ set(config_public_header_model include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelResult.h include/alibabacloud/config/model/GetAggregateConfigRulesReportRequest.h include/alibabacloud/config/model/GetAggregateConfigRulesReportResult.h + include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h + include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleResult.h include/alibabacloud/config/model/GetAggregateResourceComplianceByPackRequest.h @@ -105,6 +115,8 @@ set(config_public_header_model include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelResult.h include/alibabacloud/config/model/GetConfigRulesReportRequest.h include/alibabacloud/config/model/GetConfigRulesReportResult.h + include/alibabacloud/config/model/GetDiscoveredResourceRequest.h + include/alibabacloud/config/model/GetDiscoveredResourceResult.h include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionRequest.h include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionResult.h include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h @@ -133,6 +145,10 @@ set(config_public_header_model include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsResult.h include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h include/alibabacloud/config/model/ListAggregateConfigRulesResult.h + include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h + include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h + include/alibabacloud/config/model/ListAggregateRemediationsRequest.h + include/alibabacloud/config/model/ListAggregateRemediationsResult.h include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsRequest.h include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsResult.h include/alibabacloud/config/model/ListAggregatorsRequest.h @@ -143,8 +159,14 @@ set(config_public_header_model include/alibabacloud/config/model/ListCompliancePacksResult.h include/alibabacloud/config/model/ListConfigRuleEvaluationResultsRequest.h include/alibabacloud/config/model/ListConfigRuleEvaluationResultsResult.h + include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h + include/alibabacloud/config/model/ListDiscoveredResourcesResult.h include/alibabacloud/config/model/ListManagedRulesRequest.h include/alibabacloud/config/model/ListManagedRulesResult.h + include/alibabacloud/config/model/ListRemediationTemplatesRequest.h + include/alibabacloud/config/model/ListRemediationTemplatesResult.h + include/alibabacloud/config/model/ListRemediationsRequest.h + include/alibabacloud/config/model/ListRemediationsResult.h include/alibabacloud/config/model/ListResourceEvaluationResultsRequest.h include/alibabacloud/config/model/ListResourceEvaluationResultsResult.h include/alibabacloud/config/model/RevertAggregateEvaluationResultsRequest.h @@ -153,10 +175,16 @@ set(config_public_header_model include/alibabacloud/config/model/RevertEvaluationResultsResult.h include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationRequest.h include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationResult.h + include/alibabacloud/config/model/StartAggregateRemediationRequest.h + include/alibabacloud/config/model/StartAggregateRemediationResult.h + include/alibabacloud/config/model/StartRemediationRequest.h + include/alibabacloud/config/model/StartRemediationResult.h include/alibabacloud/config/model/UpdateAggregateCompliancePackRequest.h include/alibabacloud/config/model/UpdateAggregateCompliancePackResult.h include/alibabacloud/config/model/UpdateAggregateConfigRuleRequest.h include/alibabacloud/config/model/UpdateAggregateConfigRuleResult.h + include/alibabacloud/config/model/UpdateAggregateRemediationRequest.h + include/alibabacloud/config/model/UpdateAggregateRemediationResult.h include/alibabacloud/config/model/UpdateAggregatorRequest.h include/alibabacloud/config/model/UpdateAggregatorResult.h include/alibabacloud/config/model/UpdateCompliancePackRequest.h @@ -176,12 +204,16 @@ set(config_src src/model/CreateAggregateCompliancePackResult.cc src/model/CreateAggregateConfigRuleRequest.cc src/model/CreateAggregateConfigRuleResult.cc + src/model/CreateAggregateRemediationRequest.cc + src/model/CreateAggregateRemediationResult.cc src/model/CreateAggregatorRequest.cc src/model/CreateAggregatorResult.cc src/model/CreateCompliancePackRequest.cc src/model/CreateCompliancePackResult.cc src/model/CreateConfigRuleRequest.cc src/model/CreateConfigRuleResult.cc + src/model/CreateRemediationRequest.cc + src/model/CreateRemediationResult.cc src/model/DeactiveAggregateConfigRulesRequest.cc src/model/DeactiveAggregateConfigRulesResult.cc src/model/DeactiveConfigRulesRequest.cc @@ -190,10 +222,14 @@ set(config_src src/model/DeleteAggregateCompliancePacksResult.cc src/model/DeleteAggregateConfigRulesRequest.cc src/model/DeleteAggregateConfigRulesResult.cc + src/model/DeleteAggregateRemediationsRequest.cc + src/model/DeleteAggregateRemediationsResult.cc src/model/DeleteAggregatorsRequest.cc src/model/DeleteAggregatorsResult.cc src/model/DeleteCompliancePacksRequest.cc src/model/DeleteCompliancePacksResult.cc + src/model/DeleteRemediationsRequest.cc + src/model/DeleteRemediationsResult.cc src/model/DetachAggregateConfigRuleToCompliancePackRequest.cc src/model/DetachAggregateConfigRuleToCompliancePackResult.cc src/model/DetachConfigRuleToCompliancePackRequest.cc @@ -220,6 +256,8 @@ set(config_src src/model/GetAggregateConfigRuleSummaryByRiskLevelResult.cc src/model/GetAggregateConfigRulesReportRequest.cc src/model/GetAggregateConfigRulesReportResult.cc + src/model/GetAggregateDiscoveredResourceRequest.cc + src/model/GetAggregateDiscoveredResourceResult.cc src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc src/model/GetAggregateResourceComplianceByConfigRuleResult.cc src/model/GetAggregateResourceComplianceByPackRequest.cc @@ -250,6 +288,8 @@ set(config_src src/model/GetConfigRuleSummaryByRiskLevelResult.cc src/model/GetConfigRulesReportRequest.cc src/model/GetConfigRulesReportResult.cc + src/model/GetDiscoveredResourceRequest.cc + src/model/GetDiscoveredResourceResult.cc src/model/GetDiscoveredResourceCountsGroupByRegionRequest.cc src/model/GetDiscoveredResourceCountsGroupByRegionResult.cc src/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.cc @@ -278,6 +318,10 @@ set(config_src src/model/ListAggregateConfigRuleEvaluationResultsResult.cc src/model/ListAggregateConfigRulesRequest.cc src/model/ListAggregateConfigRulesResult.cc + src/model/ListAggregateDiscoveredResourcesRequest.cc + src/model/ListAggregateDiscoveredResourcesResult.cc + src/model/ListAggregateRemediationsRequest.cc + src/model/ListAggregateRemediationsResult.cc src/model/ListAggregateResourceEvaluationResultsRequest.cc src/model/ListAggregateResourceEvaluationResultsResult.cc src/model/ListAggregatorsRequest.cc @@ -288,8 +332,14 @@ set(config_src src/model/ListCompliancePacksResult.cc src/model/ListConfigRuleEvaluationResultsRequest.cc src/model/ListConfigRuleEvaluationResultsResult.cc + src/model/ListDiscoveredResourcesRequest.cc + src/model/ListDiscoveredResourcesResult.cc src/model/ListManagedRulesRequest.cc src/model/ListManagedRulesResult.cc + src/model/ListRemediationTemplatesRequest.cc + src/model/ListRemediationTemplatesResult.cc + src/model/ListRemediationsRequest.cc + src/model/ListRemediationsResult.cc src/model/ListResourceEvaluationResultsRequest.cc src/model/ListResourceEvaluationResultsResult.cc src/model/RevertAggregateEvaluationResultsRequest.cc @@ -298,10 +348,16 @@ set(config_src src/model/RevertEvaluationResultsResult.cc src/model/StartAggregateConfigRuleEvaluationRequest.cc src/model/StartAggregateConfigRuleEvaluationResult.cc + src/model/StartAggregateRemediationRequest.cc + src/model/StartAggregateRemediationResult.cc + src/model/StartRemediationRequest.cc + src/model/StartRemediationResult.cc src/model/UpdateAggregateCompliancePackRequest.cc src/model/UpdateAggregateCompliancePackResult.cc src/model/UpdateAggregateConfigRuleRequest.cc src/model/UpdateAggregateConfigRuleResult.cc + src/model/UpdateAggregateRemediationRequest.cc + src/model/UpdateAggregateRemediationResult.cc src/model/UpdateAggregatorRequest.cc src/model/UpdateAggregatorResult.cc src/model/UpdateCompliancePackRequest.cc diff --git a/config/include/alibabacloud/config/ConfigClient.h b/config/include/alibabacloud/config/ConfigClient.h index 6461cea2f..a2e7bd334 100644 --- a/config/include/alibabacloud/config/ConfigClient.h +++ b/config/include/alibabacloud/config/ConfigClient.h @@ -32,12 +32,16 @@ #include "model/CreateAggregateCompliancePackResult.h" #include "model/CreateAggregateConfigRuleRequest.h" #include "model/CreateAggregateConfigRuleResult.h" +#include "model/CreateAggregateRemediationRequest.h" +#include "model/CreateAggregateRemediationResult.h" #include "model/CreateAggregatorRequest.h" #include "model/CreateAggregatorResult.h" #include "model/CreateCompliancePackRequest.h" #include "model/CreateCompliancePackResult.h" #include "model/CreateConfigRuleRequest.h" #include "model/CreateConfigRuleResult.h" +#include "model/CreateRemediationRequest.h" +#include "model/CreateRemediationResult.h" #include "model/DeactiveAggregateConfigRulesRequest.h" #include "model/DeactiveAggregateConfigRulesResult.h" #include "model/DeactiveConfigRulesRequest.h" @@ -46,10 +50,14 @@ #include "model/DeleteAggregateCompliancePacksResult.h" #include "model/DeleteAggregateConfigRulesRequest.h" #include "model/DeleteAggregateConfigRulesResult.h" +#include "model/DeleteAggregateRemediationsRequest.h" +#include "model/DeleteAggregateRemediationsResult.h" #include "model/DeleteAggregatorsRequest.h" #include "model/DeleteAggregatorsResult.h" #include "model/DeleteCompliancePacksRequest.h" #include "model/DeleteCompliancePacksResult.h" +#include "model/DeleteRemediationsRequest.h" +#include "model/DeleteRemediationsResult.h" #include "model/DetachAggregateConfigRuleToCompliancePackRequest.h" #include "model/DetachAggregateConfigRuleToCompliancePackResult.h" #include "model/DetachConfigRuleToCompliancePackRequest.h" @@ -76,6 +84,8 @@ #include "model/GetAggregateConfigRuleSummaryByRiskLevelResult.h" #include "model/GetAggregateConfigRulesReportRequest.h" #include "model/GetAggregateConfigRulesReportResult.h" +#include "model/GetAggregateDiscoveredResourceRequest.h" +#include "model/GetAggregateDiscoveredResourceResult.h" #include "model/GetAggregateResourceComplianceByConfigRuleRequest.h" #include "model/GetAggregateResourceComplianceByConfigRuleResult.h" #include "model/GetAggregateResourceComplianceByPackRequest.h" @@ -106,6 +116,8 @@ #include "model/GetConfigRuleSummaryByRiskLevelResult.h" #include "model/GetConfigRulesReportRequest.h" #include "model/GetConfigRulesReportResult.h" +#include "model/GetDiscoveredResourceRequest.h" +#include "model/GetDiscoveredResourceResult.h" #include "model/GetDiscoveredResourceCountsGroupByRegionRequest.h" #include "model/GetDiscoveredResourceCountsGroupByRegionResult.h" #include "model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h" @@ -134,6 +146,10 @@ #include "model/ListAggregateConfigRuleEvaluationResultsResult.h" #include "model/ListAggregateConfigRulesRequest.h" #include "model/ListAggregateConfigRulesResult.h" +#include "model/ListAggregateDiscoveredResourcesRequest.h" +#include "model/ListAggregateDiscoveredResourcesResult.h" +#include "model/ListAggregateRemediationsRequest.h" +#include "model/ListAggregateRemediationsResult.h" #include "model/ListAggregateResourceEvaluationResultsRequest.h" #include "model/ListAggregateResourceEvaluationResultsResult.h" #include "model/ListAggregatorsRequest.h" @@ -144,8 +160,14 @@ #include "model/ListCompliancePacksResult.h" #include "model/ListConfigRuleEvaluationResultsRequest.h" #include "model/ListConfigRuleEvaluationResultsResult.h" +#include "model/ListDiscoveredResourcesRequest.h" +#include "model/ListDiscoveredResourcesResult.h" #include "model/ListManagedRulesRequest.h" #include "model/ListManagedRulesResult.h" +#include "model/ListRemediationTemplatesRequest.h" +#include "model/ListRemediationTemplatesResult.h" +#include "model/ListRemediationsRequest.h" +#include "model/ListRemediationsResult.h" #include "model/ListResourceEvaluationResultsRequest.h" #include "model/ListResourceEvaluationResultsResult.h" #include "model/RevertAggregateEvaluationResultsRequest.h" @@ -154,10 +176,16 @@ #include "model/RevertEvaluationResultsResult.h" #include "model/StartAggregateConfigRuleEvaluationRequest.h" #include "model/StartAggregateConfigRuleEvaluationResult.h" +#include "model/StartAggregateRemediationRequest.h" +#include "model/StartAggregateRemediationResult.h" +#include "model/StartRemediationRequest.h" +#include "model/StartRemediationResult.h" #include "model/UpdateAggregateCompliancePackRequest.h" #include "model/UpdateAggregateCompliancePackResult.h" #include "model/UpdateAggregateConfigRuleRequest.h" #include "model/UpdateAggregateConfigRuleResult.h" +#include "model/UpdateAggregateRemediationRequest.h" +#include "model/UpdateAggregateRemediationResult.h" #include "model/UpdateAggregatorRequest.h" #include "model/UpdateAggregatorResult.h" #include "model/UpdateCompliancePackRequest.h" @@ -188,6 +216,9 @@ namespace AlibabaCloud typedef Outcome CreateAggregateConfigRuleOutcome; typedef std::future CreateAggregateConfigRuleOutcomeCallable; typedef std::function&)> CreateAggregateConfigRuleAsyncHandler; + typedef Outcome CreateAggregateRemediationOutcome; + typedef std::future CreateAggregateRemediationOutcomeCallable; + typedef std::function&)> CreateAggregateRemediationAsyncHandler; typedef Outcome CreateAggregatorOutcome; typedef std::future CreateAggregatorOutcomeCallable; typedef std::function&)> CreateAggregatorAsyncHandler; @@ -197,6 +228,9 @@ namespace AlibabaCloud typedef Outcome CreateConfigRuleOutcome; typedef std::future CreateConfigRuleOutcomeCallable; typedef std::function&)> CreateConfigRuleAsyncHandler; + typedef Outcome CreateRemediationOutcome; + typedef std::future CreateRemediationOutcomeCallable; + typedef std::function&)> CreateRemediationAsyncHandler; typedef Outcome DeactiveAggregateConfigRulesOutcome; typedef std::future DeactiveAggregateConfigRulesOutcomeCallable; typedef std::function&)> DeactiveAggregateConfigRulesAsyncHandler; @@ -209,12 +243,18 @@ namespace AlibabaCloud typedef Outcome DeleteAggregateConfigRulesOutcome; typedef std::future DeleteAggregateConfigRulesOutcomeCallable; typedef std::function&)> DeleteAggregateConfigRulesAsyncHandler; + typedef Outcome DeleteAggregateRemediationsOutcome; + typedef std::future DeleteAggregateRemediationsOutcomeCallable; + typedef std::function&)> DeleteAggregateRemediationsAsyncHandler; typedef Outcome DeleteAggregatorsOutcome; typedef std::future DeleteAggregatorsOutcomeCallable; typedef std::function&)> DeleteAggregatorsAsyncHandler; typedef Outcome DeleteCompliancePacksOutcome; typedef std::future DeleteCompliancePacksOutcomeCallable; typedef std::function&)> DeleteCompliancePacksAsyncHandler; + typedef Outcome DeleteRemediationsOutcome; + typedef std::future DeleteRemediationsOutcomeCallable; + typedef std::function&)> DeleteRemediationsAsyncHandler; typedef Outcome DetachAggregateConfigRuleToCompliancePackOutcome; typedef std::future DetachAggregateConfigRuleToCompliancePackOutcomeCallable; typedef std::function&)> DetachAggregateConfigRuleToCompliancePackAsyncHandler; @@ -254,6 +294,9 @@ namespace AlibabaCloud typedef Outcome GetAggregateConfigRulesReportOutcome; typedef std::future GetAggregateConfigRulesReportOutcomeCallable; typedef std::function&)> GetAggregateConfigRulesReportAsyncHandler; + typedef Outcome GetAggregateDiscoveredResourceOutcome; + typedef std::future GetAggregateDiscoveredResourceOutcomeCallable; + typedef std::function&)> GetAggregateDiscoveredResourceAsyncHandler; typedef Outcome GetAggregateResourceComplianceByConfigRuleOutcome; typedef std::future GetAggregateResourceComplianceByConfigRuleOutcomeCallable; typedef std::function&)> GetAggregateResourceComplianceByConfigRuleAsyncHandler; @@ -299,6 +342,9 @@ namespace AlibabaCloud typedef Outcome GetConfigRulesReportOutcome; typedef std::future GetConfigRulesReportOutcomeCallable; typedef std::function&)> GetConfigRulesReportAsyncHandler; + typedef Outcome GetDiscoveredResourceOutcome; + typedef std::future GetDiscoveredResourceOutcomeCallable; + typedef std::function&)> GetDiscoveredResourceAsyncHandler; typedef Outcome GetDiscoveredResourceCountsGroupByRegionOutcome; typedef std::future GetDiscoveredResourceCountsGroupByRegionOutcomeCallable; typedef std::function&)> GetDiscoveredResourceCountsGroupByRegionAsyncHandler; @@ -341,6 +387,12 @@ namespace AlibabaCloud typedef Outcome ListAggregateConfigRulesOutcome; typedef std::future ListAggregateConfigRulesOutcomeCallable; typedef std::function&)> ListAggregateConfigRulesAsyncHandler; + typedef Outcome ListAggregateDiscoveredResourcesOutcome; + typedef std::future ListAggregateDiscoveredResourcesOutcomeCallable; + typedef std::function&)> ListAggregateDiscoveredResourcesAsyncHandler; + typedef Outcome ListAggregateRemediationsOutcome; + typedef std::future ListAggregateRemediationsOutcomeCallable; + typedef std::function&)> ListAggregateRemediationsAsyncHandler; typedef Outcome ListAggregateResourceEvaluationResultsOutcome; typedef std::future ListAggregateResourceEvaluationResultsOutcomeCallable; typedef std::function&)> ListAggregateResourceEvaluationResultsAsyncHandler; @@ -356,9 +408,18 @@ namespace AlibabaCloud typedef Outcome ListConfigRuleEvaluationResultsOutcome; typedef std::future ListConfigRuleEvaluationResultsOutcomeCallable; typedef std::function&)> ListConfigRuleEvaluationResultsAsyncHandler; + typedef Outcome ListDiscoveredResourcesOutcome; + typedef std::future ListDiscoveredResourcesOutcomeCallable; + typedef std::function&)> ListDiscoveredResourcesAsyncHandler; typedef Outcome ListManagedRulesOutcome; typedef std::future ListManagedRulesOutcomeCallable; typedef std::function&)> ListManagedRulesAsyncHandler; + typedef Outcome ListRemediationTemplatesOutcome; + typedef std::future ListRemediationTemplatesOutcomeCallable; + typedef std::function&)> ListRemediationTemplatesAsyncHandler; + typedef Outcome ListRemediationsOutcome; + typedef std::future ListRemediationsOutcomeCallable; + typedef std::function&)> ListRemediationsAsyncHandler; typedef Outcome ListResourceEvaluationResultsOutcome; typedef std::future ListResourceEvaluationResultsOutcomeCallable; typedef std::function&)> ListResourceEvaluationResultsAsyncHandler; @@ -371,12 +432,21 @@ namespace AlibabaCloud typedef Outcome StartAggregateConfigRuleEvaluationOutcome; typedef std::future StartAggregateConfigRuleEvaluationOutcomeCallable; typedef std::function&)> StartAggregateConfigRuleEvaluationAsyncHandler; + typedef Outcome StartAggregateRemediationOutcome; + typedef std::future StartAggregateRemediationOutcomeCallable; + typedef std::function&)> StartAggregateRemediationAsyncHandler; + typedef Outcome StartRemediationOutcome; + typedef std::future StartRemediationOutcomeCallable; + typedef std::function&)> StartRemediationAsyncHandler; typedef Outcome UpdateAggregateCompliancePackOutcome; typedef std::future UpdateAggregateCompliancePackOutcomeCallable; typedef std::function&)> UpdateAggregateCompliancePackAsyncHandler; typedef Outcome UpdateAggregateConfigRuleOutcome; typedef std::future UpdateAggregateConfigRuleOutcomeCallable; typedef std::function&)> UpdateAggregateConfigRuleAsyncHandler; + typedef Outcome UpdateAggregateRemediationOutcome; + typedef std::future UpdateAggregateRemediationOutcomeCallable; + typedef std::function&)> UpdateAggregateRemediationAsyncHandler; typedef Outcome UpdateAggregatorOutcome; typedef std::future UpdateAggregatorOutcomeCallable; typedef std::function&)> UpdateAggregatorAsyncHandler; @@ -406,6 +476,9 @@ namespace AlibabaCloud CreateAggregateConfigRuleOutcome createAggregateConfigRule(const Model::CreateAggregateConfigRuleRequest &request)const; void createAggregateConfigRuleAsync(const Model::CreateAggregateConfigRuleRequest& request, const CreateAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAggregateConfigRuleOutcomeCallable createAggregateConfigRuleCallable(const Model::CreateAggregateConfigRuleRequest& request) const; + CreateAggregateRemediationOutcome createAggregateRemediation(const Model::CreateAggregateRemediationRequest &request)const; + void createAggregateRemediationAsync(const Model::CreateAggregateRemediationRequest& request, const CreateAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAggregateRemediationOutcomeCallable createAggregateRemediationCallable(const Model::CreateAggregateRemediationRequest& request) const; CreateAggregatorOutcome createAggregator(const Model::CreateAggregatorRequest &request)const; void createAggregatorAsync(const Model::CreateAggregatorRequest& request, const CreateAggregatorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAggregatorOutcomeCallable createAggregatorCallable(const Model::CreateAggregatorRequest& request) const; @@ -415,6 +488,9 @@ namespace AlibabaCloud CreateConfigRuleOutcome createConfigRule(const Model::CreateConfigRuleRequest &request)const; void createConfigRuleAsync(const Model::CreateConfigRuleRequest& request, const CreateConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateConfigRuleOutcomeCallable createConfigRuleCallable(const Model::CreateConfigRuleRequest& request) const; + CreateRemediationOutcome createRemediation(const Model::CreateRemediationRequest &request)const; + void createRemediationAsync(const Model::CreateRemediationRequest& request, const CreateRemediationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRemediationOutcomeCallable createRemediationCallable(const Model::CreateRemediationRequest& request) const; DeactiveAggregateConfigRulesOutcome deactiveAggregateConfigRules(const Model::DeactiveAggregateConfigRulesRequest &request)const; void deactiveAggregateConfigRulesAsync(const Model::DeactiveAggregateConfigRulesRequest& request, const DeactiveAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeactiveAggregateConfigRulesOutcomeCallable deactiveAggregateConfigRulesCallable(const Model::DeactiveAggregateConfigRulesRequest& request) const; @@ -427,12 +503,18 @@ namespace AlibabaCloud DeleteAggregateConfigRulesOutcome deleteAggregateConfigRules(const Model::DeleteAggregateConfigRulesRequest &request)const; void deleteAggregateConfigRulesAsync(const Model::DeleteAggregateConfigRulesRequest& request, const DeleteAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAggregateConfigRulesOutcomeCallable deleteAggregateConfigRulesCallable(const Model::DeleteAggregateConfigRulesRequest& request) const; + DeleteAggregateRemediationsOutcome deleteAggregateRemediations(const Model::DeleteAggregateRemediationsRequest &request)const; + void deleteAggregateRemediationsAsync(const Model::DeleteAggregateRemediationsRequest& request, const DeleteAggregateRemediationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAggregateRemediationsOutcomeCallable deleteAggregateRemediationsCallable(const Model::DeleteAggregateRemediationsRequest& request) const; DeleteAggregatorsOutcome deleteAggregators(const Model::DeleteAggregatorsRequest &request)const; void deleteAggregatorsAsync(const Model::DeleteAggregatorsRequest& request, const DeleteAggregatorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAggregatorsOutcomeCallable deleteAggregatorsCallable(const Model::DeleteAggregatorsRequest& request) const; DeleteCompliancePacksOutcome deleteCompliancePacks(const Model::DeleteCompliancePacksRequest &request)const; void deleteCompliancePacksAsync(const Model::DeleteCompliancePacksRequest& request, const DeleteCompliancePacksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCompliancePacksOutcomeCallable deleteCompliancePacksCallable(const Model::DeleteCompliancePacksRequest& request) const; + DeleteRemediationsOutcome deleteRemediations(const Model::DeleteRemediationsRequest &request)const; + void deleteRemediationsAsync(const Model::DeleteRemediationsRequest& request, const DeleteRemediationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRemediationsOutcomeCallable deleteRemediationsCallable(const Model::DeleteRemediationsRequest& request) const; DetachAggregateConfigRuleToCompliancePackOutcome detachAggregateConfigRuleToCompliancePack(const Model::DetachAggregateConfigRuleToCompliancePackRequest &request)const; void detachAggregateConfigRuleToCompliancePackAsync(const Model::DetachAggregateConfigRuleToCompliancePackRequest& request, const DetachAggregateConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachAggregateConfigRuleToCompliancePackOutcomeCallable detachAggregateConfigRuleToCompliancePackCallable(const Model::DetachAggregateConfigRuleToCompliancePackRequest& request) const; @@ -472,6 +554,9 @@ namespace AlibabaCloud GetAggregateConfigRulesReportOutcome getAggregateConfigRulesReport(const Model::GetAggregateConfigRulesReportRequest &request)const; void getAggregateConfigRulesReportAsync(const Model::GetAggregateConfigRulesReportRequest& request, const GetAggregateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAggregateConfigRulesReportOutcomeCallable getAggregateConfigRulesReportCallable(const Model::GetAggregateConfigRulesReportRequest& request) const; + GetAggregateDiscoveredResourceOutcome getAggregateDiscoveredResource(const Model::GetAggregateDiscoveredResourceRequest &request)const; + void getAggregateDiscoveredResourceAsync(const Model::GetAggregateDiscoveredResourceRequest& request, const GetAggregateDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAggregateDiscoveredResourceOutcomeCallable getAggregateDiscoveredResourceCallable(const Model::GetAggregateDiscoveredResourceRequest& request) const; GetAggregateResourceComplianceByConfigRuleOutcome getAggregateResourceComplianceByConfigRule(const Model::GetAggregateResourceComplianceByConfigRuleRequest &request)const; void getAggregateResourceComplianceByConfigRuleAsync(const Model::GetAggregateResourceComplianceByConfigRuleRequest& request, const GetAggregateResourceComplianceByConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAggregateResourceComplianceByConfigRuleOutcomeCallable getAggregateResourceComplianceByConfigRuleCallable(const Model::GetAggregateResourceComplianceByConfigRuleRequest& request) const; @@ -517,6 +602,9 @@ namespace AlibabaCloud GetConfigRulesReportOutcome getConfigRulesReport(const Model::GetConfigRulesReportRequest &request)const; void getConfigRulesReportAsync(const Model::GetConfigRulesReportRequest& request, const GetConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetConfigRulesReportOutcomeCallable getConfigRulesReportCallable(const Model::GetConfigRulesReportRequest& request) const; + GetDiscoveredResourceOutcome getDiscoveredResource(const Model::GetDiscoveredResourceRequest &request)const; + void getDiscoveredResourceAsync(const Model::GetDiscoveredResourceRequest& request, const GetDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDiscoveredResourceOutcomeCallable getDiscoveredResourceCallable(const Model::GetDiscoveredResourceRequest& request) const; GetDiscoveredResourceCountsGroupByRegionOutcome getDiscoveredResourceCountsGroupByRegion(const Model::GetDiscoveredResourceCountsGroupByRegionRequest &request)const; void getDiscoveredResourceCountsGroupByRegionAsync(const Model::GetDiscoveredResourceCountsGroupByRegionRequest& request, const GetDiscoveredResourceCountsGroupByRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDiscoveredResourceCountsGroupByRegionOutcomeCallable getDiscoveredResourceCountsGroupByRegionCallable(const Model::GetDiscoveredResourceCountsGroupByRegionRequest& request) const; @@ -559,6 +647,12 @@ namespace AlibabaCloud ListAggregateConfigRulesOutcome listAggregateConfigRules(const Model::ListAggregateConfigRulesRequest &request)const; void listAggregateConfigRulesAsync(const Model::ListAggregateConfigRulesRequest& request, const ListAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAggregateConfigRulesOutcomeCallable listAggregateConfigRulesCallable(const Model::ListAggregateConfigRulesRequest& request) const; + ListAggregateDiscoveredResourcesOutcome listAggregateDiscoveredResources(const Model::ListAggregateDiscoveredResourcesRequest &request)const; + void listAggregateDiscoveredResourcesAsync(const Model::ListAggregateDiscoveredResourcesRequest& request, const ListAggregateDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregateDiscoveredResourcesOutcomeCallable listAggregateDiscoveredResourcesCallable(const Model::ListAggregateDiscoveredResourcesRequest& request) const; + ListAggregateRemediationsOutcome listAggregateRemediations(const Model::ListAggregateRemediationsRequest &request)const; + void listAggregateRemediationsAsync(const Model::ListAggregateRemediationsRequest& request, const ListAggregateRemediationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAggregateRemediationsOutcomeCallable listAggregateRemediationsCallable(const Model::ListAggregateRemediationsRequest& request) const; ListAggregateResourceEvaluationResultsOutcome listAggregateResourceEvaluationResults(const Model::ListAggregateResourceEvaluationResultsRequest &request)const; void listAggregateResourceEvaluationResultsAsync(const Model::ListAggregateResourceEvaluationResultsRequest& request, const ListAggregateResourceEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAggregateResourceEvaluationResultsOutcomeCallable listAggregateResourceEvaluationResultsCallable(const Model::ListAggregateResourceEvaluationResultsRequest& request) const; @@ -574,9 +668,18 @@ namespace AlibabaCloud ListConfigRuleEvaluationResultsOutcome listConfigRuleEvaluationResults(const Model::ListConfigRuleEvaluationResultsRequest &request)const; void listConfigRuleEvaluationResultsAsync(const Model::ListConfigRuleEvaluationResultsRequest& request, const ListConfigRuleEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListConfigRuleEvaluationResultsOutcomeCallable listConfigRuleEvaluationResultsCallable(const Model::ListConfigRuleEvaluationResultsRequest& request) const; + ListDiscoveredResourcesOutcome listDiscoveredResources(const Model::ListDiscoveredResourcesRequest &request)const; + void listDiscoveredResourcesAsync(const Model::ListDiscoveredResourcesRequest& request, const ListDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDiscoveredResourcesOutcomeCallable listDiscoveredResourcesCallable(const Model::ListDiscoveredResourcesRequest& request) const; ListManagedRulesOutcome listManagedRules(const Model::ListManagedRulesRequest &request)const; void listManagedRulesAsync(const Model::ListManagedRulesRequest& request, const ListManagedRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListManagedRulesOutcomeCallable listManagedRulesCallable(const Model::ListManagedRulesRequest& request) const; + ListRemediationTemplatesOutcome listRemediationTemplates(const Model::ListRemediationTemplatesRequest &request)const; + void listRemediationTemplatesAsync(const Model::ListRemediationTemplatesRequest& request, const ListRemediationTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRemediationTemplatesOutcomeCallable listRemediationTemplatesCallable(const Model::ListRemediationTemplatesRequest& request) const; + ListRemediationsOutcome listRemediations(const Model::ListRemediationsRequest &request)const; + void listRemediationsAsync(const Model::ListRemediationsRequest& request, const ListRemediationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRemediationsOutcomeCallable listRemediationsCallable(const Model::ListRemediationsRequest& request) const; ListResourceEvaluationResultsOutcome listResourceEvaluationResults(const Model::ListResourceEvaluationResultsRequest &request)const; void listResourceEvaluationResultsAsync(const Model::ListResourceEvaluationResultsRequest& request, const ListResourceEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListResourceEvaluationResultsOutcomeCallable listResourceEvaluationResultsCallable(const Model::ListResourceEvaluationResultsRequest& request) const; @@ -589,12 +692,21 @@ namespace AlibabaCloud StartAggregateConfigRuleEvaluationOutcome startAggregateConfigRuleEvaluation(const Model::StartAggregateConfigRuleEvaluationRequest &request)const; void startAggregateConfigRuleEvaluationAsync(const Model::StartAggregateConfigRuleEvaluationRequest& request, const StartAggregateConfigRuleEvaluationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartAggregateConfigRuleEvaluationOutcomeCallable startAggregateConfigRuleEvaluationCallable(const Model::StartAggregateConfigRuleEvaluationRequest& request) const; + StartAggregateRemediationOutcome startAggregateRemediation(const Model::StartAggregateRemediationRequest &request)const; + void startAggregateRemediationAsync(const Model::StartAggregateRemediationRequest& request, const StartAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartAggregateRemediationOutcomeCallable startAggregateRemediationCallable(const Model::StartAggregateRemediationRequest& request) const; + StartRemediationOutcome startRemediation(const Model::StartRemediationRequest &request)const; + void startRemediationAsync(const Model::StartRemediationRequest& request, const StartRemediationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartRemediationOutcomeCallable startRemediationCallable(const Model::StartRemediationRequest& request) const; UpdateAggregateCompliancePackOutcome updateAggregateCompliancePack(const Model::UpdateAggregateCompliancePackRequest &request)const; void updateAggregateCompliancePackAsync(const Model::UpdateAggregateCompliancePackRequest& request, const UpdateAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAggregateCompliancePackOutcomeCallable updateAggregateCompliancePackCallable(const Model::UpdateAggregateCompliancePackRequest& request) const; UpdateAggregateConfigRuleOutcome updateAggregateConfigRule(const Model::UpdateAggregateConfigRuleRequest &request)const; void updateAggregateConfigRuleAsync(const Model::UpdateAggregateConfigRuleRequest& request, const UpdateAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAggregateConfigRuleOutcomeCallable updateAggregateConfigRuleCallable(const Model::UpdateAggregateConfigRuleRequest& request) const; + UpdateAggregateRemediationOutcome updateAggregateRemediation(const Model::UpdateAggregateRemediationRequest &request)const; + void updateAggregateRemediationAsync(const Model::UpdateAggregateRemediationRequest& request, const UpdateAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateAggregateRemediationOutcomeCallable updateAggregateRemediationCallable(const Model::UpdateAggregateRemediationRequest& request) const; UpdateAggregatorOutcome updateAggregator(const Model::UpdateAggregatorRequest &request)const; void updateAggregatorAsync(const Model::UpdateAggregatorRequest& request, const UpdateAggregatorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAggregatorOutcomeCallable updateAggregatorCallable(const Model::UpdateAggregatorRequest& request) const; diff --git a/config/include/alibabacloud/config/model/CreateAggregateRemediationRequest.h b/config/include/alibabacloud/config/model/CreateAggregateRemediationRequest.h new file mode 100644 index 000000000..9b92d8588 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateRemediationRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateRemediationRequest : public RpcServiceRequest { +public: + CreateAggregateRemediationRequest(); + ~CreateAggregateRemediationRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getRemediationType() const; + void setRemediationType(const std::string &remediationType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getRemediationTemplateId() const; + void setRemediationTemplateId(const std::string &remediationTemplateId); + std::string getParams() const; + void setParams(const std::string ¶ms); + std::string getInvokeType() const; + void setInvokeType(const std::string &invokeType); + +private: + std::string configRuleId_; + std::string remediationType_; + std::string clientToken_; + std::string aggregatorId_; + std::string sourceType_; + std::string remediationTemplateId_; + std::string params_; + std::string invokeType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateAggregateRemediationResult.h b/config/include/alibabacloud/config/model/CreateAggregateRemediationResult.h new file mode 100644 index 000000000..91457a0b5 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateAggregateRemediationResult.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_CREATEAGGREGATEREMEDIATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateRemediationResult : public ServiceResult + { + public: + + + CreateAggregateRemediationResult(); + explicit CreateAggregateRemediationResult(const std::string &payload); + ~CreateAggregateRemediationResult(); + std::string getRemediationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string remediationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateRemediationRequest.h b/config/include/alibabacloud/config/model/CreateRemediationRequest.h new file mode 100644 index 000000000..447a8b668 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateRemediationRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEREMEDIATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEREMEDIATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT CreateRemediationRequest : public RpcServiceRequest { +public: + CreateRemediationRequest(); + ~CreateRemediationRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getRemediationType() const; + void setRemediationType(const std::string &remediationType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getRemediationTemplateId() const; + void setRemediationTemplateId(const std::string &remediationTemplateId); + std::string getParams() const; + void setParams(const std::string ¶ms); + std::string getInvokeType() const; + void setInvokeType(const std::string &invokeType); + +private: + std::string configRuleId_; + std::string remediationType_; + std::string clientToken_; + std::string sourceType_; + std::string remediationTemplateId_; + std::string params_; + std::string invokeType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEREMEDIATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateRemediationResult.h b/config/include/alibabacloud/config/model/CreateRemediationResult.h new file mode 100644 index 000000000..4e8d9b651 --- /dev/null +++ b/config/include/alibabacloud/config/model/CreateRemediationResult.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_CREATEREMEDIATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_CREATEREMEDIATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT CreateRemediationResult : public ServiceResult + { + public: + + + CreateRemediationResult(); + explicit CreateRemediationResult(const std::string &payload); + ~CreateRemediationResult(); + std::string getRemediationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string remediationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEREMEDIATIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeleteAggregateRemediationsRequest.h b/config/include/alibabacloud/config/model/DeleteAggregateRemediationsRequest.h new file mode 100644 index 000000000..8cc3c346e --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteAggregateRemediationsRequest.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_DELETEAGGREGATEREMEDIATIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATEREMEDIATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateRemediationsRequest : public RpcServiceRequest { +public: + DeleteAggregateRemediationsRequest(); + ~DeleteAggregateRemediationsRequest(); + std::string getRemediationIds() const; + void setRemediationIds(const std::string &remediationIds); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string remediationIds_; + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATEREMEDIATIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteAggregateRemediationsResult.h b/config/include/alibabacloud/config/model/DeleteAggregateRemediationsResult.h new file mode 100644 index 000000000..c96c24ab9 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteAggregateRemediationsResult.h @@ -0,0 +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_DELETEAGGREGATEREMEDIATIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATEREMEDIATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateRemediationsResult : public ServiceResult + { + public: + struct RemediationDeleteResult + { + std::string remediationId; + std::string errorMessage; + bool success; + }; + + + DeleteAggregateRemediationsResult(); + explicit DeleteAggregateRemediationsResult(const std::string &payload); + ~DeleteAggregateRemediationsResult(); + std::vector getRemediationDeleteResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector remediationDeleteResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATEREMEDIATIONSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeleteRemediationsRequest.h b/config/include/alibabacloud/config/model/DeleteRemediationsRequest.h new file mode 100644 index 000000000..a75a16f52 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteRemediationsRequest.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_DELETEREMEDIATIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEREMEDIATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT DeleteRemediationsRequest : public RpcServiceRequest { +public: + DeleteRemediationsRequest(); + ~DeleteRemediationsRequest(); + std::string getRemediationIds() const; + void setRemediationIds(const std::string &remediationIds); + +private: + std::string remediationIds_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEREMEDIATIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteRemediationsResult.h b/config/include/alibabacloud/config/model/DeleteRemediationsResult.h new file mode 100644 index 000000000..c342739d8 --- /dev/null +++ b/config/include/alibabacloud/config/model/DeleteRemediationsResult.h @@ -0,0 +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_DELETEREMEDIATIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETEREMEDIATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT DeleteRemediationsResult : public ServiceResult + { + public: + struct RemediationDeleteResult + { + std::string remediationId; + std::string errorMessage; + bool success; + }; + + + DeleteRemediationsResult(); + explicit DeleteRemediationsResult(const std::string &payload); + ~DeleteRemediationsResult(); + std::vector getRemediationDeleteResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector remediationDeleteResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEREMEDIATIONSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h b/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h new file mode 100644 index 000000000..1fa6a7731 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h @@ -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 +#include +#include +#include +#include + +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 ®ion); + +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_ diff --git a/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h b/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h new file mode 100644 index 000000000..822148514 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.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_GETAGGREGATEDISCOVEREDRESOURCERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEDISCOVEREDRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h index 3e7e30674..2310da082 100644 --- a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h +++ b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h @@ -32,6 +32,8 @@ public: ~GetAggregateResourceComplianceByConfigRuleRequest(); std::string getConfigRuleId() const; void setConfigRuleId(const std::string &configRuleId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); std::string getAggregatorId() const; void setAggregatorId(const std::string &aggregatorId); std::string getComplianceType() const; @@ -39,6 +41,7 @@ public: private: std::string configRuleId_; + long resourceOwnerId_; std::string aggregatorId_; std::string complianceType_; }; diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceRequest.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceRequest.h new file mode 100644 index 000000000..be36ffe13 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetDiscoveredResourceRequest.h @@ -0,0 +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_GETDISCOVEREDRESOURCEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceRequest : public RpcServiceRequest { +public: + GetDiscoveredResourceRequest(); + ~GetDiscoveredResourceRequest(); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + std::string resourceId_; + std::string resourceType_; + std::string region_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceResult.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceResult.h new file mode 100644 index 000000000..be6c8a462 --- /dev/null +++ b/config/include/alibabacloud/config/model/GetDiscoveredResourceResult.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_GETDISCOVEREDRESOURCERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceResult : 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; + }; + + + GetDiscoveredResourceResult(); + explicit GetDiscoveredResourceResult(const std::string &payload); + ~GetDiscoveredResourceResult(); + DiscoveredResourceDetail getDiscoveredResourceDetail()const; + + protected: + void parse(const std::string &payload); + private: + DiscoveredResourceDetail discoveredResourceDetail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h b/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h new file mode 100644 index 000000000..7352981e6 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h @@ -0,0 +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_LISTAGGREGATEDISCOVEREDRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +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 ®ions); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getFolderId() const; + void setFolderId(const std::string &folderId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceTypes() const; + void setResourceTypes(const std::string &resourceTypes); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + int resourceDeleted_; + long resourceOwnerId_; + std::string regions_; + std::string aggregatorId_; + std::string folderId_; + std::string nextToken_; + std::string resourceId_; + std::string resourceTypes_; + int maxResults_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEDISCOVEREDRESOURCESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h b/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h new file mode 100644 index 000000000..f6cfba305 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h @@ -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 +#include +#include +#include +#include + +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; + }; + std::string previousToken; + std::string nextToken; + int maxResults; + std::vector 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_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateRemediationsRequest.h b/config/include/alibabacloud/config/model/ListAggregateRemediationsRequest.h new file mode 100644 index 000000000..22b9f3916 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateRemediationsRequest.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_LISTAGGREGATEREMEDIATIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListAggregateRemediationsRequest : public RpcServiceRequest { +public: + ListAggregateRemediationsRequest(); + ~ListAggregateRemediationsRequest(); + 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_LISTAGGREGATEREMEDIATIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateRemediationsResult.h b/config/include/alibabacloud/config/model/ListAggregateRemediationsResult.h new file mode 100644 index 000000000..16538e320 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListAggregateRemediationsResult.h @@ -0,0 +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_LISTAGGREGATEREMEDIATIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListAggregateRemediationsResult : public ServiceResult + { + public: + struct Remediation + { + std::string lastSuccessfulInvocationType; + std::string configRuleId; + std::string remediationTemplateId; + long accountId; + std::string remediationSourceType; + long lastSuccessfulInvocationTime; + std::string invokeType; + std::string remediationId; + std::string lastSuccessfulInvocationId; + std::string remediationDynamicParams; + std::string remediationType; + std::string aggregatorId; + }; + + + ListAggregateRemediationsResult(); + explicit ListAggregateRemediationsResult(const std::string &payload); + ~ListAggregateRemediationsResult(); + std::vector getRemediations()const; + + protected: + void parse(const std::string &payload); + private: + std::vector remediations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h b/config/include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h new file mode 100644 index 000000000..44f5fb9f0 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h @@ -0,0 +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_LISTDISCOVEREDRESOURCESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListDiscoveredResourcesRequest : public RpcServiceRequest { +public: + ListDiscoveredResourcesRequest(); + ~ListDiscoveredResourcesRequest(); + int getResourceDeleted() const; + void setResourceDeleted(int resourceDeleted); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getRegions() const; + void setRegions(const std::string ®ions); + std::string getResourceTypes() const; + void setResourceTypes(const std::string &resourceTypes); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + int resourceDeleted_; + std::string resourceId_; + std::string regions_; + std::string resourceTypes_; + std::string nextToken_; + int maxResults_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h b/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h new file mode 100644 index 000000000..f1c9c46fd --- /dev/null +++ b/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h @@ -0,0 +1,70 @@ +/* + * 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_LISTDISCOVEREDRESOURCESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListDiscoveredResourcesResult : 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; + std::string tags; + int resourceDeleted; + }; + std::string previousToken; + std::string nextToken; + int maxResults; + std::vector discoveredResourceProfileList; + }; + + + ListDiscoveredResourcesResult(); + explicit ListDiscoveredResourcesResult(const std::string &payload); + ~ListDiscoveredResourcesResult(); + DiscoveredResourceProfiles getDiscoveredResourceProfiles()const; + + protected: + void parse(const std::string &payload); + private: + DiscoveredResourceProfiles discoveredResourceProfiles_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTDISCOVEREDRESOURCESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListRemediationTemplatesRequest.h b/config/include/alibabacloud/config/model/ListRemediationTemplatesRequest.h new file mode 100644 index 000000000..68dcc3fbe --- /dev/null +++ b/config/include/alibabacloud/config/model/ListRemediationTemplatesRequest.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_LISTREMEDIATIONTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +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_ diff --git a/config/include/alibabacloud/config/model/ListRemediationTemplatesResult.h b/config/include/alibabacloud/config/model/ListRemediationTemplatesResult.h new file mode 100644 index 000000000..09dc6d447 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListRemediationTemplatesResult.h @@ -0,0 +1,59 @@ +/* + * 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_LISTREMEDIATIONTEMPLATESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListRemediationTemplatesResult : public ServiceResult + { + public: + struct RemediationTemplate + { + std::string templateIdentifier; + std::string compulsoryParameters; + std::string templateName; + std::string templateDefinition; + std::string remediationType; + }; + + + ListRemediationTemplatesResult(); + explicit ListRemediationTemplatesResult(const std::string &payload); + ~ListRemediationTemplatesResult(); + std::vector getRemediationTemplates()const; + + protected: + void parse(const std::string &payload); + private: + std::vector remediationTemplates_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListRemediationsRequest.h b/config/include/alibabacloud/config/model/ListRemediationsRequest.h new file mode 100644 index 000000000..e047cdfa9 --- /dev/null +++ b/config/include/alibabacloud/config/model/ListRemediationsRequest.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_LISTREMEDIATIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT ListRemediationsRequest : public RpcServiceRequest { +public: + ListRemediationsRequest(); + ~ListRemediationsRequest(); + std::string getConfigRuleIds() const; + void setConfigRuleIds(const std::string &configRuleIds); + +private: + std::string configRuleIds_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListRemediationsResult.h b/config/include/alibabacloud/config/model/ListRemediationsResult.h new file mode 100644 index 000000000..0b81aa8ef --- /dev/null +++ b/config/include/alibabacloud/config/model/ListRemediationsResult.h @@ -0,0 +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_LISTREMEDIATIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT ListRemediationsResult : public ServiceResult + { + public: + struct Remediation + { + std::string lastSuccessfulInvocationType; + std::string configRuleId; + std::string remediationTemplateId; + long accountId; + std::string remediationSourceType; + long lastSuccessfulInvocationTime; + std::string invokeType; + std::string remediationOriginParams; + std::string remediationId; + std::string lastSuccessfulInvocationId; + std::string remediationDynamicParams; + std::string remediationType; + }; + + + ListRemediationsResult(); + explicit ListRemediationsResult(const std::string &payload); + ~ListRemediationsResult(); + std::vector getRemediations()const; + + protected: + void parse(const std::string &payload); + private: + std::vector remediations_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/StartAggregateRemediationRequest.h b/config/include/alibabacloud/config/model/StartAggregateRemediationRequest.h new file mode 100644 index 000000000..1475eb68f --- /dev/null +++ b/config/include/alibabacloud/config/model/StartAggregateRemediationRequest.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_STARTAGGREGATEREMEDIATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT StartAggregateRemediationRequest : public RpcServiceRequest { +public: + StartAggregateRemediationRequest(); + ~StartAggregateRemediationRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + +private: + std::string configRuleId_; + std::string aggregatorId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/StartAggregateRemediationResult.h b/config/include/alibabacloud/config/model/StartAggregateRemediationResult.h new file mode 100644 index 000000000..3e875850b --- /dev/null +++ b/config/include/alibabacloud/config/model/StartAggregateRemediationResult.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_STARTAGGREGATEREMEDIATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT StartAggregateRemediationResult : public ServiceResult + { + public: + + + StartAggregateRemediationResult(); + explicit StartAggregateRemediationResult(const std::string &payload); + ~StartAggregateRemediationResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/StartRemediationRequest.h b/config/include/alibabacloud/config/model/StartRemediationRequest.h new file mode 100644 index 000000000..81963216d --- /dev/null +++ b/config/include/alibabacloud/config/model/StartRemediationRequest.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_STARTREMEDIATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTREMEDIATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT StartRemediationRequest : public RpcServiceRequest { +public: + StartRemediationRequest(); + ~StartRemediationRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + +private: + std::string configRuleId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTREMEDIATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/StartRemediationResult.h b/config/include/alibabacloud/config/model/StartRemediationResult.h new file mode 100644 index 000000000..c1d22c91c --- /dev/null +++ b/config/include/alibabacloud/config/model/StartRemediationResult.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_STARTREMEDIATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTREMEDIATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT StartRemediationResult : public ServiceResult + { + public: + + + StartRemediationResult(); + explicit StartRemediationResult(const std::string &payload); + ~StartRemediationResult(); + bool getData()const; + + protected: + void parse(const std::string &payload); + private: + bool data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTREMEDIATIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateAggregateRemediationRequest.h b/config/include/alibabacloud/config/model/UpdateAggregateRemediationRequest.h new file mode 100644 index 000000000..cd0328d65 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregateRemediationRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATEREMEDIATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATEREMEDIATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateRemediationRequest : public RpcServiceRequest { +public: + UpdateAggregateRemediationRequest(); + ~UpdateAggregateRemediationRequest(); + std::string getRemediationType() const; + void setRemediationType(const std::string &remediationType); + std::string getRemediationId() const; + void setRemediationId(const std::string &remediationId); + std::string getAggregatorId() const; + void setAggregatorId(const std::string &aggregatorId); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getRemediationTemplateId() const; + void setRemediationTemplateId(const std::string &remediationTemplateId); + std::string getParams() const; + void setParams(const std::string ¶ms); + std::string getInvokeType() const; + void setInvokeType(const std::string &invokeType); + +private: + std::string remediationType_; + std::string remediationId_; + std::string aggregatorId_; + std::string sourceType_; + std::string remediationTemplateId_; + std::string params_; + std::string invokeType_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATEREMEDIATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateAggregateRemediationResult.h b/config/include/alibabacloud/config/model/UpdateAggregateRemediationResult.h new file mode 100644 index 000000000..34bdc68a5 --- /dev/null +++ b/config/include/alibabacloud/config/model/UpdateAggregateRemediationResult.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_UPDATEAGGREGATEREMEDIATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATEREMEDIATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Config + { + namespace Model + { + class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateRemediationResult : public ServiceResult + { + public: + + + UpdateAggregateRemediationResult(); + explicit UpdateAggregateRemediationResult(const std::string &payload); + ~UpdateAggregateRemediationResult(); + std::string getRemediationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string remediationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATEREMEDIATIONRESULT_H_ \ No newline at end of file diff --git a/config/src/ConfigClient.cc b/config/src/ConfigClient.cc index f67b74621..bd2e971bc 100644 --- a/config/src/ConfigClient.cc +++ b/config/src/ConfigClient.cc @@ -231,6 +231,42 @@ ConfigClient::CreateAggregateConfigRuleOutcomeCallable ConfigClient::createAggre return task->get_future(); } +ConfigClient::CreateAggregateRemediationOutcome ConfigClient::createAggregateRemediation(const CreateAggregateRemediationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAggregateRemediationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAggregateRemediationOutcome(CreateAggregateRemediationResult(outcome.result())); + else + return CreateAggregateRemediationOutcome(outcome.error()); +} + +void ConfigClient::createAggregateRemediationAsync(const CreateAggregateRemediationRequest& request, const CreateAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAggregateRemediation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateAggregateRemediationOutcomeCallable ConfigClient::createAggregateRemediationCallable(const CreateAggregateRemediationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAggregateRemediation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::CreateAggregatorOutcome ConfigClient::createAggregator(const CreateAggregatorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +375,42 @@ ConfigClient::CreateConfigRuleOutcomeCallable ConfigClient::createConfigRuleCall return task->get_future(); } +ConfigClient::CreateRemediationOutcome ConfigClient::createRemediation(const CreateRemediationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRemediationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRemediationOutcome(CreateRemediationResult(outcome.result())); + else + return CreateRemediationOutcome(outcome.error()); +} + +void ConfigClient::createRemediationAsync(const CreateRemediationRequest& request, const CreateRemediationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRemediation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::CreateRemediationOutcomeCallable ConfigClient::createRemediationCallable(const CreateRemediationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRemediation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::DeactiveAggregateConfigRulesOutcome ConfigClient::deactiveAggregateConfigRules(const DeactiveAggregateConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +555,42 @@ ConfigClient::DeleteAggregateConfigRulesOutcomeCallable ConfigClient::deleteAggr return task->get_future(); } +ConfigClient::DeleteAggregateRemediationsOutcome ConfigClient::deleteAggregateRemediations(const DeleteAggregateRemediationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAggregateRemediationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAggregateRemediationsOutcome(DeleteAggregateRemediationsResult(outcome.result())); + else + return DeleteAggregateRemediationsOutcome(outcome.error()); +} + +void ConfigClient::deleteAggregateRemediationsAsync(const DeleteAggregateRemediationsRequest& request, const DeleteAggregateRemediationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAggregateRemediations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DeleteAggregateRemediationsOutcomeCallable ConfigClient::deleteAggregateRemediationsCallable(const DeleteAggregateRemediationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAggregateRemediations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::DeleteAggregatorsOutcome ConfigClient::deleteAggregators(const DeleteAggregatorsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +663,42 @@ ConfigClient::DeleteCompliancePacksOutcomeCallable ConfigClient::deleteComplianc return task->get_future(); } +ConfigClient::DeleteRemediationsOutcome ConfigClient::deleteRemediations(const DeleteRemediationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRemediationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRemediationsOutcome(DeleteRemediationsResult(outcome.result())); + else + return DeleteRemediationsOutcome(outcome.error()); +} + +void ConfigClient::deleteRemediationsAsync(const DeleteRemediationsRequest& request, const DeleteRemediationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRemediations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::DeleteRemediationsOutcomeCallable ConfigClient::deleteRemediationsCallable(const DeleteRemediationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRemediations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::DetachAggregateConfigRuleToCompliancePackOutcome ConfigClient::detachAggregateConfigRuleToCompliancePack(const DetachAggregateConfigRuleToCompliancePackRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,6 +1167,42 @@ ConfigClient::GetAggregateConfigRulesReportOutcomeCallable ConfigClient::getAggr 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& 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>( + [this, request]() + { + return this->getAggregateDiscoveredResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::GetAggregateResourceComplianceByConfigRuleOutcome ConfigClient::getAggregateResourceComplianceByConfigRule(const GetAggregateResourceComplianceByConfigRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,6 +1743,42 @@ ConfigClient::GetConfigRulesReportOutcomeCallable ConfigClient::getConfigRulesRe return task->get_future(); } +ConfigClient::GetDiscoveredResourceOutcome ConfigClient::getDiscoveredResource(const GetDiscoveredResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDiscoveredResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDiscoveredResourceOutcome(GetDiscoveredResourceResult(outcome.result())); + else + return GetDiscoveredResourceOutcome(outcome.error()); +} + +void ConfigClient::getDiscoveredResourceAsync(const GetDiscoveredResourceRequest& request, const GetDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDiscoveredResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::GetDiscoveredResourceOutcomeCallable ConfigClient::getDiscoveredResourceCallable(const GetDiscoveredResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDiscoveredResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::GetDiscoveredResourceCountsGroupByRegionOutcome ConfigClient::getDiscoveredResourceCountsGroupByRegion(const GetDiscoveredResourceCountsGroupByRegionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2067,6 +2283,78 @@ ConfigClient::ListAggregateConfigRulesOutcomeCallable ConfigClient::listAggregat 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& 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>( + [this, request]() + { + return this->listAggregateDiscoveredResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListAggregateRemediationsOutcome ConfigClient::listAggregateRemediations(const ListAggregateRemediationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAggregateRemediationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAggregateRemediationsOutcome(ListAggregateRemediationsResult(outcome.result())); + else + return ListAggregateRemediationsOutcome(outcome.error()); +} + +void ConfigClient::listAggregateRemediationsAsync(const ListAggregateRemediationsRequest& request, const ListAggregateRemediationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAggregateRemediations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListAggregateRemediationsOutcomeCallable ConfigClient::listAggregateRemediationsCallable(const ListAggregateRemediationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAggregateRemediations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::ListAggregateResourceEvaluationResultsOutcome ConfigClient::listAggregateResourceEvaluationResults(const ListAggregateResourceEvaluationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,6 +2535,42 @@ ConfigClient::ListConfigRuleEvaluationResultsOutcomeCallable ConfigClient::listC return task->get_future(); } +ConfigClient::ListDiscoveredResourcesOutcome ConfigClient::listDiscoveredResources(const ListDiscoveredResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDiscoveredResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDiscoveredResourcesOutcome(ListDiscoveredResourcesResult(outcome.result())); + else + return ListDiscoveredResourcesOutcome(outcome.error()); +} + +void ConfigClient::listDiscoveredResourcesAsync(const ListDiscoveredResourcesRequest& request, const ListDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDiscoveredResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListDiscoveredResourcesOutcomeCallable ConfigClient::listDiscoveredResourcesCallable(const ListDiscoveredResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDiscoveredResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::ListManagedRulesOutcome ConfigClient::listManagedRules(const ListManagedRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2283,6 +2607,78 @@ ConfigClient::ListManagedRulesOutcomeCallable ConfigClient::listManagedRulesCall 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& 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>( + [this, request]() + { + return this->listRemediationTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::ListRemediationsOutcome ConfigClient::listRemediations(const ListRemediationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListRemediationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListRemediationsOutcome(ListRemediationsResult(outcome.result())); + else + return ListRemediationsOutcome(outcome.error()); +} + +void ConfigClient::listRemediationsAsync(const ListRemediationsRequest& request, const ListRemediationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listRemediations(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::ListRemediationsOutcomeCallable ConfigClient::listRemediationsCallable(const ListRemediationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listRemediations(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::ListResourceEvaluationResultsOutcome ConfigClient::listResourceEvaluationResults(const ListResourceEvaluationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2427,6 +2823,78 @@ ConfigClient::StartAggregateConfigRuleEvaluationOutcomeCallable ConfigClient::st return task->get_future(); } +ConfigClient::StartAggregateRemediationOutcome ConfigClient::startAggregateRemediation(const StartAggregateRemediationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartAggregateRemediationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartAggregateRemediationOutcome(StartAggregateRemediationResult(outcome.result())); + else + return StartAggregateRemediationOutcome(outcome.error()); +} + +void ConfigClient::startAggregateRemediationAsync(const StartAggregateRemediationRequest& request, const StartAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startAggregateRemediation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::StartAggregateRemediationOutcomeCallable ConfigClient::startAggregateRemediationCallable(const StartAggregateRemediationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startAggregateRemediation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ConfigClient::StartRemediationOutcome ConfigClient::startRemediation(const StartRemediationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartRemediationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartRemediationOutcome(StartRemediationResult(outcome.result())); + else + return StartRemediationOutcome(outcome.error()); +} + +void ConfigClient::startRemediationAsync(const StartRemediationRequest& request, const StartRemediationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startRemediation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::StartRemediationOutcomeCallable ConfigClient::startRemediationCallable(const StartRemediationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startRemediation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::UpdateAggregateCompliancePackOutcome ConfigClient::updateAggregateCompliancePack(const UpdateAggregateCompliancePackRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2499,6 +2967,42 @@ ConfigClient::UpdateAggregateConfigRuleOutcomeCallable ConfigClient::updateAggre return task->get_future(); } +ConfigClient::UpdateAggregateRemediationOutcome ConfigClient::updateAggregateRemediation(const UpdateAggregateRemediationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateAggregateRemediationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateAggregateRemediationOutcome(UpdateAggregateRemediationResult(outcome.result())); + else + return UpdateAggregateRemediationOutcome(outcome.error()); +} + +void ConfigClient::updateAggregateRemediationAsync(const UpdateAggregateRemediationRequest& request, const UpdateAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateAggregateRemediation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ConfigClient::UpdateAggregateRemediationOutcomeCallable ConfigClient::updateAggregateRemediationCallable(const UpdateAggregateRemediationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateAggregateRemediation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ConfigClient::UpdateAggregatorOutcome ConfigClient::updateAggregator(const UpdateAggregatorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/config/src/model/CreateAggregateRemediationRequest.cc b/config/src/model/CreateAggregateRemediationRequest.cc new file mode 100644 index 000000000..388fe241f --- /dev/null +++ b/config/src/model/CreateAggregateRemediationRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::CreateAggregateRemediationRequest; + +CreateAggregateRemediationRequest::CreateAggregateRemediationRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateAggregateRemediation") { + setMethod(HttpRequest::Method::Post); +} + +CreateAggregateRemediationRequest::~CreateAggregateRemediationRequest() {} + +std::string CreateAggregateRemediationRequest::getConfigRuleId() const { + return configRuleId_; +} + +void CreateAggregateRemediationRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setBodyParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string CreateAggregateRemediationRequest::getRemediationType() const { + return remediationType_; +} + +void CreateAggregateRemediationRequest::setRemediationType(const std::string &remediationType) { + remediationType_ = remediationType; + setBodyParameter(std::string("RemediationType"), remediationType); +} + +std::string CreateAggregateRemediationRequest::getClientToken() const { + return clientToken_; +} + +void CreateAggregateRemediationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateAggregateRemediationRequest::getAggregatorId() const { + return aggregatorId_; +} + +void CreateAggregateRemediationRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string CreateAggregateRemediationRequest::getSourceType() const { + return sourceType_; +} + +void CreateAggregateRemediationRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setBodyParameter(std::string("SourceType"), sourceType); +} + +std::string CreateAggregateRemediationRequest::getRemediationTemplateId() const { + return remediationTemplateId_; +} + +void CreateAggregateRemediationRequest::setRemediationTemplateId(const std::string &remediationTemplateId) { + remediationTemplateId_ = remediationTemplateId; + setBodyParameter(std::string("RemediationTemplateId"), remediationTemplateId); +} + +std::string CreateAggregateRemediationRequest::getParams() const { + return params_; +} + +void CreateAggregateRemediationRequest::setParams(const std::string ¶ms) { + params_ = params; + setBodyParameter(std::string("Params"), params); +} + +std::string CreateAggregateRemediationRequest::getInvokeType() const { + return invokeType_; +} + +void CreateAggregateRemediationRequest::setInvokeType(const std::string &invokeType) { + invokeType_ = invokeType; + setBodyParameter(std::string("InvokeType"), invokeType); +} + diff --git a/config/src/model/CreateAggregateRemediationResult.cc b/config/src/model/CreateAggregateRemediationResult.cc new file mode 100644 index 000000000..9755b08bb --- /dev/null +++ b/config/src/model/CreateAggregateRemediationResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +CreateAggregateRemediationResult::CreateAggregateRemediationResult() : + ServiceResult() +{} + +CreateAggregateRemediationResult::CreateAggregateRemediationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAggregateRemediationResult::~CreateAggregateRemediationResult() +{} + +void CreateAggregateRemediationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RemediationId"].isNull()) + remediationId_ = value["RemediationId"].asString(); + +} + +std::string CreateAggregateRemediationResult::getRemediationId()const +{ + return remediationId_; +} + diff --git a/config/src/model/CreateRemediationRequest.cc b/config/src/model/CreateRemediationRequest.cc new file mode 100644 index 000000000..7df868d94 --- /dev/null +++ b/config/src/model/CreateRemediationRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::CreateRemediationRequest; + +CreateRemediationRequest::CreateRemediationRequest() + : RpcServiceRequest("config", "2020-09-07", "CreateRemediation") { + setMethod(HttpRequest::Method::Post); +} + +CreateRemediationRequest::~CreateRemediationRequest() {} + +std::string CreateRemediationRequest::getConfigRuleId() const { + return configRuleId_; +} + +void CreateRemediationRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setBodyParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string CreateRemediationRequest::getRemediationType() const { + return remediationType_; +} + +void CreateRemediationRequest::setRemediationType(const std::string &remediationType) { + remediationType_ = remediationType; + setBodyParameter(std::string("RemediationType"), remediationType); +} + +std::string CreateRemediationRequest::getClientToken() const { + return clientToken_; +} + +void CreateRemediationRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateRemediationRequest::getSourceType() const { + return sourceType_; +} + +void CreateRemediationRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setBodyParameter(std::string("SourceType"), sourceType); +} + +std::string CreateRemediationRequest::getRemediationTemplateId() const { + return remediationTemplateId_; +} + +void CreateRemediationRequest::setRemediationTemplateId(const std::string &remediationTemplateId) { + remediationTemplateId_ = remediationTemplateId; + setBodyParameter(std::string("RemediationTemplateId"), remediationTemplateId); +} + +std::string CreateRemediationRequest::getParams() const { + return params_; +} + +void CreateRemediationRequest::setParams(const std::string ¶ms) { + params_ = params; + setBodyParameter(std::string("Params"), params); +} + +std::string CreateRemediationRequest::getInvokeType() const { + return invokeType_; +} + +void CreateRemediationRequest::setInvokeType(const std::string &invokeType) { + invokeType_ = invokeType; + setBodyParameter(std::string("InvokeType"), invokeType); +} + diff --git a/config/src/model/CreateRemediationResult.cc b/config/src/model/CreateRemediationResult.cc new file mode 100644 index 000000000..66913c9d1 --- /dev/null +++ b/config/src/model/CreateRemediationResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +CreateRemediationResult::CreateRemediationResult() : + ServiceResult() +{} + +CreateRemediationResult::CreateRemediationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRemediationResult::~CreateRemediationResult() +{} + +void CreateRemediationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RemediationId"].isNull()) + remediationId_ = value["RemediationId"].asString(); + +} + +std::string CreateRemediationResult::getRemediationId()const +{ + return remediationId_; +} + diff --git a/config/src/model/DeleteAggregateRemediationsRequest.cc b/config/src/model/DeleteAggregateRemediationsRequest.cc new file mode 100644 index 000000000..aec47da7d --- /dev/null +++ b/config/src/model/DeleteAggregateRemediationsRequest.cc @@ -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 + +using AlibabaCloud::Config::Model::DeleteAggregateRemediationsRequest; + +DeleteAggregateRemediationsRequest::DeleteAggregateRemediationsRequest() + : RpcServiceRequest("config", "2020-09-07", "DeleteAggregateRemediations") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAggregateRemediationsRequest::~DeleteAggregateRemediationsRequest() {} + +std::string DeleteAggregateRemediationsRequest::getRemediationIds() const { + return remediationIds_; +} + +void DeleteAggregateRemediationsRequest::setRemediationIds(const std::string &remediationIds) { + remediationIds_ = remediationIds; + setBodyParameter(std::string("RemediationIds"), remediationIds); +} + +std::string DeleteAggregateRemediationsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void DeleteAggregateRemediationsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/DeleteAggregateRemediationsResult.cc b/config/src/model/DeleteAggregateRemediationsResult.cc new file mode 100644 index 000000000..a02938390 --- /dev/null +++ b/config/src/model/DeleteAggregateRemediationsResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +DeleteAggregateRemediationsResult::DeleteAggregateRemediationsResult() : + ServiceResult() +{} + +DeleteAggregateRemediationsResult::DeleteAggregateRemediationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAggregateRemediationsResult::~DeleteAggregateRemediationsResult() +{} + +void DeleteAggregateRemediationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRemediationDeleteResultsNode = value["RemediationDeleteResults"]["RemediationDeleteResult"]; + for (auto valueRemediationDeleteResultsRemediationDeleteResult : allRemediationDeleteResultsNode) + { + RemediationDeleteResult remediationDeleteResultsObject; + if(!valueRemediationDeleteResultsRemediationDeleteResult["RemediationId"].isNull()) + remediationDeleteResultsObject.remediationId = valueRemediationDeleteResultsRemediationDeleteResult["RemediationId"].asString(); + if(!valueRemediationDeleteResultsRemediationDeleteResult["ErrorMessage"].isNull()) + remediationDeleteResultsObject.errorMessage = valueRemediationDeleteResultsRemediationDeleteResult["ErrorMessage"].asString(); + if(!valueRemediationDeleteResultsRemediationDeleteResult["Success"].isNull()) + remediationDeleteResultsObject.success = valueRemediationDeleteResultsRemediationDeleteResult["Success"].asString() == "true"; + remediationDeleteResults_.push_back(remediationDeleteResultsObject); + } + +} + +std::vector DeleteAggregateRemediationsResult::getRemediationDeleteResults()const +{ + return remediationDeleteResults_; +} + diff --git a/config/src/model/DeleteRemediationsRequest.cc b/config/src/model/DeleteRemediationsRequest.cc new file mode 100644 index 000000000..7679e30c0 --- /dev/null +++ b/config/src/model/DeleteRemediationsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::DeleteRemediationsRequest; + +DeleteRemediationsRequest::DeleteRemediationsRequest() + : RpcServiceRequest("config", "2020-09-07", "DeleteRemediations") { + setMethod(HttpRequest::Method::Post); +} + +DeleteRemediationsRequest::~DeleteRemediationsRequest() {} + +std::string DeleteRemediationsRequest::getRemediationIds() const { + return remediationIds_; +} + +void DeleteRemediationsRequest::setRemediationIds(const std::string &remediationIds) { + remediationIds_ = remediationIds; + setBodyParameter(std::string("RemediationIds"), remediationIds); +} + diff --git a/config/src/model/DeleteRemediationsResult.cc b/config/src/model/DeleteRemediationsResult.cc new file mode 100644 index 000000000..e257442cc --- /dev/null +++ b/config/src/model/DeleteRemediationsResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +DeleteRemediationsResult::DeleteRemediationsResult() : + ServiceResult() +{} + +DeleteRemediationsResult::DeleteRemediationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRemediationsResult::~DeleteRemediationsResult() +{} + +void DeleteRemediationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRemediationDeleteResultsNode = value["RemediationDeleteResults"]["RemediationDeleteResult"]; + for (auto valueRemediationDeleteResultsRemediationDeleteResult : allRemediationDeleteResultsNode) + { + RemediationDeleteResult remediationDeleteResultsObject; + if(!valueRemediationDeleteResultsRemediationDeleteResult["RemediationId"].isNull()) + remediationDeleteResultsObject.remediationId = valueRemediationDeleteResultsRemediationDeleteResult["RemediationId"].asString(); + if(!valueRemediationDeleteResultsRemediationDeleteResult["ErrorMessage"].isNull()) + remediationDeleteResultsObject.errorMessage = valueRemediationDeleteResultsRemediationDeleteResult["ErrorMessage"].asString(); + if(!valueRemediationDeleteResultsRemediationDeleteResult["Success"].isNull()) + remediationDeleteResultsObject.success = valueRemediationDeleteResultsRemediationDeleteResult["Success"].asString() == "true"; + remediationDeleteResults_.push_back(remediationDeleteResultsObject); + } + +} + +std::vector DeleteRemediationsResult::getRemediationDeleteResults()const +{ + return remediationDeleteResults_; +} + diff --git a/config/src/model/GetAggregateDiscoveredResourceRequest.cc b/config/src/model/GetAggregateDiscoveredResourceRequest.cc new file mode 100644 index 000000000..58a9853b6 --- /dev/null +++ b/config/src/model/GetAggregateDiscoveredResourceRequest.cc @@ -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 + +using AlibabaCloud::Config::Model::GetAggregateDiscoveredResourceRequest; + +GetAggregateDiscoveredResourceRequest::GetAggregateDiscoveredResourceRequest() + : RpcServiceRequest("config", "2020-09-07", "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 ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/config/src/model/GetAggregateDiscoveredResourceResult.cc b/config/src/model/GetAggregateDiscoveredResourceResult.cc new file mode 100644 index 000000000..905034b28 --- /dev/null +++ b/config/src/model/GetAggregateDiscoveredResourceResult.cc @@ -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 +#include + +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_; +} + diff --git a/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc b/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc index 1f178596b..1dca64564 100644 --- a/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc +++ b/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc @@ -34,6 +34,15 @@ void GetAggregateResourceComplianceByConfigRuleRequest::setConfigRuleId(const st setParameter(std::string("ConfigRuleId"), configRuleId); } +long GetAggregateResourceComplianceByConfigRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetAggregateResourceComplianceByConfigRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + std::string GetAggregateResourceComplianceByConfigRuleRequest::getAggregatorId() const { return aggregatorId_; } diff --git a/config/src/model/GetDiscoveredResourceRequest.cc b/config/src/model/GetDiscoveredResourceRequest.cc new file mode 100644 index 000000000..5e0077c31 --- /dev/null +++ b/config/src/model/GetDiscoveredResourceRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::GetDiscoveredResourceRequest; + +GetDiscoveredResourceRequest::GetDiscoveredResourceRequest() + : RpcServiceRequest("config", "2020-09-07", "GetDiscoveredResource") { + setMethod(HttpRequest::Method::Get); +} + +GetDiscoveredResourceRequest::~GetDiscoveredResourceRequest() {} + +std::string GetDiscoveredResourceRequest::getResourceId() const { + return resourceId_; +} + +void GetDiscoveredResourceRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string GetDiscoveredResourceRequest::getResourceType() const { + return resourceType_; +} + +void GetDiscoveredResourceRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string GetDiscoveredResourceRequest::getRegion() const { + return region_; +} + +void GetDiscoveredResourceRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/config/src/model/GetDiscoveredResourceResult.cc b/config/src/model/GetDiscoveredResourceResult.cc new file mode 100644 index 000000000..fded20c7e --- /dev/null +++ b/config/src/model/GetDiscoveredResourceResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetDiscoveredResourceResult::GetDiscoveredResourceResult() : + ServiceResult() +{} + +GetDiscoveredResourceResult::GetDiscoveredResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDiscoveredResourceResult::~GetDiscoveredResourceResult() +{} + +void GetDiscoveredResourceResult::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(); + +} + +GetDiscoveredResourceResult::DiscoveredResourceDetail GetDiscoveredResourceResult::getDiscoveredResourceDetail()const +{ + return discoveredResourceDetail_; +} + diff --git a/config/src/model/ListAggregateDiscoveredResourcesRequest.cc b/config/src/model/ListAggregateDiscoveredResourcesRequest.cc new file mode 100644 index 000000000..86d5cd9a5 --- /dev/null +++ b/config/src/model/ListAggregateDiscoveredResourcesRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListAggregateDiscoveredResourcesRequest; + +ListAggregateDiscoveredResourcesRequest::ListAggregateDiscoveredResourcesRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateDiscoveredResources") { + setMethod(HttpRequest::Method::Post); +} + +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 ®ions) { + 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); +} + +std::string ListAggregateDiscoveredResourcesRequest::getFolderId() const { + return folderId_; +} + +void ListAggregateDiscoveredResourcesRequest::setFolderId(const std::string &folderId) { + folderId_ = folderId; + setParameter(std::string("FolderId"), folderId); +} + +std::string ListAggregateDiscoveredResourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListAggregateDiscoveredResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +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); +} + +int ListAggregateDiscoveredResourcesRequest::getMaxResults() const { + return maxResults_; +} + +void ListAggregateDiscoveredResourcesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/config/src/model/ListAggregateDiscoveredResourcesResult.cc b/config/src/model/ListAggregateDiscoveredResourcesResult.cc new file mode 100644 index 000000000..c67d6c31c --- /dev/null +++ b/config/src/model/ListAggregateDiscoveredResourcesResult.cc @@ -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 +#include + +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["NextToken"].isNull()) + discoveredResourceProfiles_.nextToken = discoveredResourceProfilesNode["NextToken"].asString(); + if(!discoveredResourceProfilesNode["MaxResults"].isNull()) + discoveredResourceProfiles_.maxResults = std::stoi(discoveredResourceProfilesNode["MaxResults"].asString()); + if(!discoveredResourceProfilesNode["PreviousToken"].isNull()) + discoveredResourceProfiles_.previousToken = discoveredResourceProfilesNode["PreviousToken"].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_; +} + diff --git a/config/src/model/ListAggregateRemediationsRequest.cc b/config/src/model/ListAggregateRemediationsRequest.cc new file mode 100644 index 000000000..e9d6d202d --- /dev/null +++ b/config/src/model/ListAggregateRemediationsRequest.cc @@ -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 + +using AlibabaCloud::Config::Model::ListAggregateRemediationsRequest; + +ListAggregateRemediationsRequest::ListAggregateRemediationsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListAggregateRemediations") { + setMethod(HttpRequest::Method::Post); +} + +ListAggregateRemediationsRequest::~ListAggregateRemediationsRequest() {} + +std::string ListAggregateRemediationsRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void ListAggregateRemediationsRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + +std::string ListAggregateRemediationsRequest::getAggregatorId() const { + return aggregatorId_; +} + +void ListAggregateRemediationsRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/ListAggregateRemediationsResult.cc b/config/src/model/ListAggregateRemediationsResult.cc new file mode 100644 index 000000000..8c4196ea1 --- /dev/null +++ b/config/src/model/ListAggregateRemediationsResult.cc @@ -0,0 +1,79 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListAggregateRemediationsResult::ListAggregateRemediationsResult() : + ServiceResult() +{} + +ListAggregateRemediationsResult::ListAggregateRemediationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAggregateRemediationsResult::~ListAggregateRemediationsResult() +{} + +void ListAggregateRemediationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRemediationsNode = value["Remediations"]["Remediation"]; + for (auto valueRemediationsRemediation : allRemediationsNode) + { + Remediation remediationsObject; + if(!valueRemediationsRemediation["RemediationTemplateId"].isNull()) + remediationsObject.remediationTemplateId = valueRemediationsRemediation["RemediationTemplateId"].asString(); + if(!valueRemediationsRemediation["RemediationDynamicParams"].isNull()) + remediationsObject.remediationDynamicParams = valueRemediationsRemediation["RemediationDynamicParams"].asString(); + if(!valueRemediationsRemediation["RemediationSourceType"].isNull()) + remediationsObject.remediationSourceType = valueRemediationsRemediation["RemediationSourceType"].asString(); + if(!valueRemediationsRemediation["RemediationType"].isNull()) + remediationsObject.remediationType = valueRemediationsRemediation["RemediationType"].asString(); + if(!valueRemediationsRemediation["LastSuccessfulInvocationId"].isNull()) + remediationsObject.lastSuccessfulInvocationId = valueRemediationsRemediation["LastSuccessfulInvocationId"].asString(); + if(!valueRemediationsRemediation["AccountId"].isNull()) + remediationsObject.accountId = std::stol(valueRemediationsRemediation["AccountId"].asString()); + if(!valueRemediationsRemediation["AggregatorId"].isNull()) + remediationsObject.aggregatorId = valueRemediationsRemediation["AggregatorId"].asString(); + if(!valueRemediationsRemediation["LastSuccessfulInvocationType"].isNull()) + remediationsObject.lastSuccessfulInvocationType = valueRemediationsRemediation["LastSuccessfulInvocationType"].asString(); + if(!valueRemediationsRemediation["RemediationId"].isNull()) + remediationsObject.remediationId = valueRemediationsRemediation["RemediationId"].asString(); + if(!valueRemediationsRemediation["InvokeType"].isNull()) + remediationsObject.invokeType = valueRemediationsRemediation["InvokeType"].asString(); + if(!valueRemediationsRemediation["ConfigRuleId"].isNull()) + remediationsObject.configRuleId = valueRemediationsRemediation["ConfigRuleId"].asString(); + if(!valueRemediationsRemediation["LastSuccessfulInvocationTime"].isNull()) + remediationsObject.lastSuccessfulInvocationTime = std::stol(valueRemediationsRemediation["LastSuccessfulInvocationTime"].asString()); + remediations_.push_back(remediationsObject); + } + +} + +std::vector ListAggregateRemediationsResult::getRemediations()const +{ + return remediations_; +} + diff --git a/config/src/model/ListDiscoveredResourcesRequest.cc b/config/src/model/ListDiscoveredResourcesRequest.cc new file mode 100644 index 000000000..996cd948f --- /dev/null +++ b/config/src/model/ListDiscoveredResourcesRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListDiscoveredResourcesRequest; + +ListDiscoveredResourcesRequest::ListDiscoveredResourcesRequest() + : RpcServiceRequest("config", "2020-09-07", "ListDiscoveredResources") { + setMethod(HttpRequest::Method::Post); +} + +ListDiscoveredResourcesRequest::~ListDiscoveredResourcesRequest() {} + +int ListDiscoveredResourcesRequest::getResourceDeleted() const { + return resourceDeleted_; +} + +void ListDiscoveredResourcesRequest::setResourceDeleted(int resourceDeleted) { + resourceDeleted_ = resourceDeleted; + setParameter(std::string("ResourceDeleted"), std::to_string(resourceDeleted)); +} + +std::string ListDiscoveredResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListDiscoveredResourcesRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string ListDiscoveredResourcesRequest::getRegions() const { + return regions_; +} + +void ListDiscoveredResourcesRequest::setRegions(const std::string ®ions) { + regions_ = regions; + setParameter(std::string("Regions"), regions); +} + +std::string ListDiscoveredResourcesRequest::getResourceTypes() const { + return resourceTypes_; +} + +void ListDiscoveredResourcesRequest::setResourceTypes(const std::string &resourceTypes) { + resourceTypes_ = resourceTypes; + setParameter(std::string("ResourceTypes"), resourceTypes); +} + +std::string ListDiscoveredResourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListDiscoveredResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListDiscoveredResourcesRequest::getMaxResults() const { + return maxResults_; +} + +void ListDiscoveredResourcesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/config/src/model/ListDiscoveredResourcesResult.cc b/config/src/model/ListDiscoveredResourcesResult.cc new file mode 100644 index 000000000..2e52e8bf7 --- /dev/null +++ b/config/src/model/ListDiscoveredResourcesResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListDiscoveredResourcesResult::ListDiscoveredResourcesResult() : + ServiceResult() +{} + +ListDiscoveredResourcesResult::ListDiscoveredResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDiscoveredResourcesResult::~ListDiscoveredResourcesResult() +{} + +void ListDiscoveredResourcesResult::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["NextToken"].isNull()) + discoveredResourceProfiles_.nextToken = discoveredResourceProfilesNode["NextToken"].asString(); + if(!discoveredResourceProfilesNode["MaxResults"].isNull()) + discoveredResourceProfiles_.maxResults = std::stoi(discoveredResourceProfilesNode["MaxResults"].asString()); + if(!discoveredResourceProfilesNode["PreviousToken"].isNull()) + discoveredResourceProfiles_.previousToken = discoveredResourceProfilesNode["PreviousToken"].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(); + discoveredResourceProfiles_.discoveredResourceProfileList.push_back(discoveredResourceProfileObject); + } + +} + +ListDiscoveredResourcesResult::DiscoveredResourceProfiles ListDiscoveredResourcesResult::getDiscoveredResourceProfiles()const +{ + return discoveredResourceProfiles_; +} + diff --git a/config/src/model/ListRemediationTemplatesRequest.cc b/config/src/model/ListRemediationTemplatesRequest.cc new file mode 100644 index 000000000..5de46db15 --- /dev/null +++ b/config/src/model/ListRemediationTemplatesRequest.cc @@ -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 + +using AlibabaCloud::Config::Model::ListRemediationTemplatesRequest; + +ListRemediationTemplatesRequest::ListRemediationTemplatesRequest() + : RpcServiceRequest("config", "2020-09-07", "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); +} + diff --git a/config/src/model/ListRemediationTemplatesResult.cc b/config/src/model/ListRemediationTemplatesResult.cc new file mode 100644 index 000000000..be5e7cc6f --- /dev/null +++ b/config/src/model/ListRemediationTemplatesResult.cc @@ -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 +#include + +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::getRemediationTemplates()const +{ + return remediationTemplates_; +} + diff --git a/config/src/model/ListRemediationsRequest.cc b/config/src/model/ListRemediationsRequest.cc new file mode 100644 index 000000000..dac0229c2 --- /dev/null +++ b/config/src/model/ListRemediationsRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListRemediationsRequest; + +ListRemediationsRequest::ListRemediationsRequest() + : RpcServiceRequest("config", "2020-09-07", "ListRemediations") { + setMethod(HttpRequest::Method::Post); +} + +ListRemediationsRequest::~ListRemediationsRequest() {} + +std::string ListRemediationsRequest::getConfigRuleIds() const { + return configRuleIds_; +} + +void ListRemediationsRequest::setConfigRuleIds(const std::string &configRuleIds) { + configRuleIds_ = configRuleIds; + setParameter(std::string("ConfigRuleIds"), configRuleIds); +} + diff --git a/config/src/model/ListRemediationsResult.cc b/config/src/model/ListRemediationsResult.cc new file mode 100644 index 000000000..fa5279eae --- /dev/null +++ b/config/src/model/ListRemediationsResult.cc @@ -0,0 +1,79 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +ListRemediationsResult::ListRemediationsResult() : + ServiceResult() +{} + +ListRemediationsResult::ListRemediationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRemediationsResult::~ListRemediationsResult() +{} + +void ListRemediationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRemediationsNode = value["Remediations"]["Remediation"]; + for (auto valueRemediationsRemediation : allRemediationsNode) + { + Remediation remediationsObject; + if(!valueRemediationsRemediation["LastSuccessfulInvocationType"].isNull()) + remediationsObject.lastSuccessfulInvocationType = valueRemediationsRemediation["LastSuccessfulInvocationType"].asString(); + if(!valueRemediationsRemediation["RemediationTemplateId"].isNull()) + remediationsObject.remediationTemplateId = valueRemediationsRemediation["RemediationTemplateId"].asString(); + if(!valueRemediationsRemediation["RemediationDynamicParams"].isNull()) + remediationsObject.remediationDynamicParams = valueRemediationsRemediation["RemediationDynamicParams"].asString(); + if(!valueRemediationsRemediation["RemediationId"].isNull()) + remediationsObject.remediationId = valueRemediationsRemediation["RemediationId"].asString(); + if(!valueRemediationsRemediation["RemediationSourceType"].isNull()) + remediationsObject.remediationSourceType = valueRemediationsRemediation["RemediationSourceType"].asString(); + if(!valueRemediationsRemediation["RemediationType"].isNull()) + remediationsObject.remediationType = valueRemediationsRemediation["RemediationType"].asString(); + if(!valueRemediationsRemediation["LastSuccessfulInvocationId"].isNull()) + remediationsObject.lastSuccessfulInvocationId = valueRemediationsRemediation["LastSuccessfulInvocationId"].asString(); + if(!valueRemediationsRemediation["AccountId"].isNull()) + remediationsObject.accountId = std::stol(valueRemediationsRemediation["AccountId"].asString()); + if(!valueRemediationsRemediation["InvokeType"].isNull()) + remediationsObject.invokeType = valueRemediationsRemediation["InvokeType"].asString(); + if(!valueRemediationsRemediation["ConfigRuleId"].isNull()) + remediationsObject.configRuleId = valueRemediationsRemediation["ConfigRuleId"].asString(); + if(!valueRemediationsRemediation["LastSuccessfulInvocationTime"].isNull()) + remediationsObject.lastSuccessfulInvocationTime = std::stol(valueRemediationsRemediation["LastSuccessfulInvocationTime"].asString()); + if(!valueRemediationsRemediation["RemediationOriginParams"].isNull()) + remediationsObject.remediationOriginParams = valueRemediationsRemediation["RemediationOriginParams"].asString(); + remediations_.push_back(remediationsObject); + } + +} + +std::vector ListRemediationsResult::getRemediations()const +{ + return remediations_; +} + diff --git a/config/src/model/StartAggregateRemediationRequest.cc b/config/src/model/StartAggregateRemediationRequest.cc new file mode 100644 index 000000000..22a36ac44 --- /dev/null +++ b/config/src/model/StartAggregateRemediationRequest.cc @@ -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 + +using AlibabaCloud::Config::Model::StartAggregateRemediationRequest; + +StartAggregateRemediationRequest::StartAggregateRemediationRequest() + : RpcServiceRequest("config", "2020-09-07", "StartAggregateRemediation") { + setMethod(HttpRequest::Method::Post); +} + +StartAggregateRemediationRequest::~StartAggregateRemediationRequest() {} + +std::string StartAggregateRemediationRequest::getConfigRuleId() const { + return configRuleId_; +} + +void StartAggregateRemediationRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string StartAggregateRemediationRequest::getAggregatorId() const { + return aggregatorId_; +} + +void StartAggregateRemediationRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setParameter(std::string("AggregatorId"), aggregatorId); +} + diff --git a/config/src/model/StartAggregateRemediationResult.cc b/config/src/model/StartAggregateRemediationResult.cc new file mode 100644 index 000000000..cae7429e7 --- /dev/null +++ b/config/src/model/StartAggregateRemediationResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +StartAggregateRemediationResult::StartAggregateRemediationResult() : + ServiceResult() +{} + +StartAggregateRemediationResult::StartAggregateRemediationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartAggregateRemediationResult::~StartAggregateRemediationResult() +{} + +void StartAggregateRemediationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool StartAggregateRemediationResult::getData()const +{ + return data_; +} + diff --git a/config/src/model/StartRemediationRequest.cc b/config/src/model/StartRemediationRequest.cc new file mode 100644 index 000000000..75d439dea --- /dev/null +++ b/config/src/model/StartRemediationRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::StartRemediationRequest; + +StartRemediationRequest::StartRemediationRequest() + : RpcServiceRequest("config", "2020-09-07", "StartRemediation") { + setMethod(HttpRequest::Method::Post); +} + +StartRemediationRequest::~StartRemediationRequest() {} + +std::string StartRemediationRequest::getConfigRuleId() const { + return configRuleId_; +} + +void StartRemediationRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + diff --git a/config/src/model/StartRemediationResult.cc b/config/src/model/StartRemediationResult.cc new file mode 100644 index 000000000..9b323ebac --- /dev/null +++ b/config/src/model/StartRemediationResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +StartRemediationResult::StartRemediationResult() : + ServiceResult() +{} + +StartRemediationResult::StartRemediationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartRemediationResult::~StartRemediationResult() +{} + +void StartRemediationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Data"].isNull()) + data_ = value["Data"].asString() == "true"; + +} + +bool StartRemediationResult::getData()const +{ + return data_; +} + diff --git a/config/src/model/UpdateAggregateRemediationRequest.cc b/config/src/model/UpdateAggregateRemediationRequest.cc new file mode 100644 index 000000000..87684d14d --- /dev/null +++ b/config/src/model/UpdateAggregateRemediationRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::UpdateAggregateRemediationRequest; + +UpdateAggregateRemediationRequest::UpdateAggregateRemediationRequest() + : RpcServiceRequest("config", "2020-09-07", "UpdateAggregateRemediation") { + setMethod(HttpRequest::Method::Post); +} + +UpdateAggregateRemediationRequest::~UpdateAggregateRemediationRequest() {} + +std::string UpdateAggregateRemediationRequest::getRemediationType() const { + return remediationType_; +} + +void UpdateAggregateRemediationRequest::setRemediationType(const std::string &remediationType) { + remediationType_ = remediationType; + setBodyParameter(std::string("RemediationType"), remediationType); +} + +std::string UpdateAggregateRemediationRequest::getRemediationId() const { + return remediationId_; +} + +void UpdateAggregateRemediationRequest::setRemediationId(const std::string &remediationId) { + remediationId_ = remediationId; + setBodyParameter(std::string("RemediationId"), remediationId); +} + +std::string UpdateAggregateRemediationRequest::getAggregatorId() const { + return aggregatorId_; +} + +void UpdateAggregateRemediationRequest::setAggregatorId(const std::string &aggregatorId) { + aggregatorId_ = aggregatorId; + setBodyParameter(std::string("AggregatorId"), aggregatorId); +} + +std::string UpdateAggregateRemediationRequest::getSourceType() const { + return sourceType_; +} + +void UpdateAggregateRemediationRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setBodyParameter(std::string("SourceType"), sourceType); +} + +std::string UpdateAggregateRemediationRequest::getRemediationTemplateId() const { + return remediationTemplateId_; +} + +void UpdateAggregateRemediationRequest::setRemediationTemplateId(const std::string &remediationTemplateId) { + remediationTemplateId_ = remediationTemplateId; + setBodyParameter(std::string("RemediationTemplateId"), remediationTemplateId); +} + +std::string UpdateAggregateRemediationRequest::getParams() const { + return params_; +} + +void UpdateAggregateRemediationRequest::setParams(const std::string ¶ms) { + params_ = params; + setBodyParameter(std::string("Params"), params); +} + +std::string UpdateAggregateRemediationRequest::getInvokeType() const { + return invokeType_; +} + +void UpdateAggregateRemediationRequest::setInvokeType(const std::string &invokeType) { + invokeType_ = invokeType; + setBodyParameter(std::string("InvokeType"), invokeType); +} + diff --git a/config/src/model/UpdateAggregateRemediationResult.cc b/config/src/model/UpdateAggregateRemediationResult.cc new file mode 100644 index 000000000..d45ec5c56 --- /dev/null +++ b/config/src/model/UpdateAggregateRemediationResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +UpdateAggregateRemediationResult::UpdateAggregateRemediationResult() : + ServiceResult() +{} + +UpdateAggregateRemediationResult::UpdateAggregateRemediationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateAggregateRemediationResult::~UpdateAggregateRemediationResult() +{} + +void UpdateAggregateRemediationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RemediationId"].isNull()) + remediationId_ = value["RemediationId"].asString(); + +} + +std::string UpdateAggregateRemediationResult::getRemediationId()const +{ + return remediationId_; +} +