From 99c7c0b611c2115b6b5c94e2a6d6065b3831016b Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 11 Aug 2022 10:15:30 +0000 Subject: [PATCH] Fix ListManagedRules bugs. --- CHANGELOG | 3 + VERSION | 2 +- config/CMakeLists.txt | 440 +-- .../alibabacloud/config/ConfigClient.h | 880 +---- .../model/ActiveAggregateConfigRulesRequest.h | 45 - ...esRequest.h => ActiveConfigRulesRequest.h} | 12 +- ...ulesResult.h => ActiveConfigRulesResult.h} | 14 +- ...gregateConfigRuleToCompliancePackRequest.h | 48 - ...ggregateConfigRuleToCompliancePackResult.h | 61 - .../AttachConfigRuleToCompliancePackRequest.h | 45 - .../AttachConfigRuleToCompliancePackResult.h | 61 - .../CreateAggregateCompliancePackRequest.h | 73 - .../CreateAggregateCompliancePackResult.h | 51 - ...ateAggregateConfigDeliveryChannelRequest.h | 72 - ...eateAggregateConfigDeliveryChannelResult.h | 51 - .../model/CreateAggregateConfigRuleRequest.h | 99 - .../model/CreateAggregateConfigRuleResult.h | 51 - .../model/CreateAggregateRemediationRequest.h | 63 - .../config/model/CreateAggregatorRequest.h | 59 - .../config/model/CreateAggregatorResult.h | 51 - .../model/CreateCompliancePackRequest.h | 70 - .../config/model/CreateCompliancePackResult.h | 51 - .../model/CreateConfigDeliveryChannelResult.h | 51 - .../config/model/CreateConfigRuleRequest.h | 87 - .../config/model/CreateRemediationRequest.h | 60 - .../config/model/CreateRemediationResult.h | 51 - .../DeactiveAggregateConfigRulesResult.h | 61 - .../DeleteAggregateCompliancePacksRequest.h | 51 - .../DeleteAggregateCompliancePacksResult.h | 61 - .../model/DeleteAggregateConfigRulesRequest.h | 45 - .../DeleteAggregateRemediationsRequest.h | 45 - .../model/DeleteAggregateRemediationsResult.h | 57 - .../config/model/DeleteAggregatorsResult.h | 61 - .../model/DeleteCompliancePacksRequest.h | 48 - .../model/DeleteCompliancePacksResult.h | 61 - ...onRequest.h => DeleteConfigRulesRequest.h} | 12 +- ...ulesResult.h => DeleteConfigRulesResult.h} | 14 +- .../config/model/DeleteRemediationsRequest.h | 42 - .../config/model/DeleteRemediationsResult.h | 57 - ...sRequest.h => DescribeComplianceRequest.h} | 30 +- ...uleResult.h => DescribeComplianceResult.h} | 14 +- ...t.h => DescribeComplianceSummaryRequest.h} | 24 +- ...lt.h => DescribeComplianceSummaryResult.h} | 49 +- ...nRequest.h => DescribeConfigRuleRequest.h} | 21 +- ...uleResult.h => DescribeConfigRuleResult.h} | 66 +- ...=> DescribeConfigurationRecorderRequest.h} | 12 +- ... => DescribeConfigurationRecorderResult.h} | 29 +- ...st.h => DescribeDeliveryChannelsRequest.h} | 12 +- ...ult.h => DescribeDeliveryChannelsResult.h} | 19 +- ....h => DescribeDiscoveredResourceRequest.h} | 18 +- ...t.h => DescribeDiscoveredResourceResult.h} | 14 +- ...t.h => DescribeEvaluationResultsRequest.h} | 51 +- ...lt.h => DescribeEvaluationResultsResult.h} | 20 +- ...gregateConfigRuleToCompliancePackRequest.h | 48 - ...ggregateConfigRuleToCompliancePackResult.h | 61 - .../DetachConfigRuleToCompliancePackRequest.h | 45 - .../DetachConfigRuleToCompliancePackResult.h | 61 - ...rateAggregateCompliancePackReportRequest.h | 48 - ...erateAggregateCompliancePackReportResult.h | 51 - ...enerateAggregateConfigRulesReportRequest.h | 48 - ...GenerateAggregateConfigRulesReportResult.h | 53 - .../GenerateCompliancePackReportRequest.h | 45 - ...tAggregateAccountComplianceByPackRequest.h | 45 - ...etAggregateAccountComplianceByPackResult.h | 64 - .../GetAggregateCompliancePackReportRequest.h | 45 - .../GetAggregateCompliancePackReportResult.h | 59 - .../model/GetAggregateCompliancePackRequest.h | 45 - .../model/GetAggregateCompliancePackResult.h | 79 - ...GetAggregateConfigDeliveryChannelRequest.h | 45 - .../GetAggregateConfigDeliveryChannelResult.h | 68 - ...gregateConfigRuleComplianceByPackRequest.h | 45 - ...ggregateConfigRuleComplianceByPackResult.h | 64 - .../model/GetAggregateConfigRuleRequest.h | 45 - .../model/GetAggregateConfigRuleResult.h | 142 - ...egateConfigRuleSummaryByRiskLevelRequest.h | 42 - ...regateConfigRuleSummaryByRiskLevelResult.h | 57 - .../GetAggregateConfigRulesReportRequest.h | 45 - ...ateResourceComplianceByConfigRuleRequest.h | 51 - ...gateResourceComplianceByConfigRuleResult.h | 61 - ...AggregateResourceComplianceByPackRequest.h | 45 - ...tAggregateResourceComplianceByPackResult.h | 57 - ...teResourceComplianceGroupByRegionRequest.h | 45 - ...ateResourceComplianceGroupByRegionResult.h | 65 - ...urceComplianceGroupByResourceTypeRequest.h | 45 - ...ourceComplianceGroupByResourceTypeResult.h | 65 - ...gregateResourceComplianceTimelineRequest.h | 66 - ...ggregateResourceComplianceTimelineResult.h | 72 - ...gateResourceConfigurationTimelineRequest.h | 66 - ...egateResourceConfigurationTimelineResult.h | 73 - ...regateResourceCountsGroupByRegionRequest.h | 51 - ...gregateResourceCountsGroupByRegionResult.h | 57 - ...ResourceCountsGroupByResourceTypeRequest.h | 51 - ...eResourceCountsGroupByResourceTypeResult.h | 57 - .../config/model/GetAggregatorRequest.h | 42 - .../config/model/GetAggregatorResult.h | 70 - .../config/model/GetCompliancePackRequest.h | 42 - .../config/model/GetCompliancePackResult.h | 78 - .../model/GetConfigDeliveryChannelResult.h | 67 - .../GetConfigRuleComplianceByPackRequest.h | 42 - .../GetConfigRuleComplianceByPackResult.h | 64 - .../config/model/GetConfigRuleRequest.h | 42 - .../GetConfigRuleSummaryByRiskLevelResult.h | 57 - .../model/GetConfigRulesReportRequest.h | 42 - .../config/model/GetConfigRulesReportResult.h | 59 - ...coveredResourceCountsGroupByRegionResult.h | 57 - ...ResourceCountsGroupByResourceTypeRequest.h | 42 - ...dResourceCountsGroupByResourceTypeResult.h | 57 - ...h => GetDiscoveredResourceCountsRequest.h} | 24 +- ....h => GetDiscoveredResourceCountsResult.h} | 30 +- ... => GetDiscoveredResourceSummaryRequest.h} | 24 +- ...h => GetDiscoveredResourceSummaryResult.h} | 24 +- .../config/model/GetManagedRuleResult.h | 82 - ...GetResourceComplianceByConfigRuleRequest.h | 45 - .../GetResourceComplianceByPackRequest.h | 42 - ...GetResourceComplianceGroupByRegionResult.h | 65 - ...urceComplianceGroupByResourceTypeRequest.h | 42 - ...ourceComplianceGroupByResourceTypeResult.h | 65 - .../GetResourceComplianceTimelineRequest.h | 24 +- .../GetResourceComplianceTimelineResult.h | 3 +- .../GetResourceConfigurationTimelineRequest.h | 24 +- .../GetResourceConfigurationTimelineResult.h | 3 +- ...t.h => GetSupportedResourceTypesRequest.h} | 15 +- ...lt.h => GetSupportedResourceTypesResult.h} | 18 +- .../IgnoreAggregateEvaluationResultsRequest.h | 60 - .../IgnoreAggregateEvaluationResultsResult.h | 49 - .../model/IgnoreEvaluationResultsRequest.h | 57 - .../model/IgnoreEvaluationResultsResult.h | 49 - .../ListAggregateCompliancePacksRequest.h | 51 - .../ListAggregateCompliancePacksResult.h | 70 - ...stAggregateConfigDeliveryChannelsRequest.h | 45 - ...istAggregateConfigDeliveryChannelsResult.h | 68 - ...regateConfigRuleEvaluationResultsRequest.h | 60 - ...gregateConfigRuleEvaluationResultsResult.h | 86 - .../ListAggregateDiscoveredResourcesRequest.h | 15 +- .../ListAggregateDiscoveredResourcesResult.h | 4 +- .../model/ListAggregateRemediationsRequest.h | 45 - ...AggregateResourceEvaluationResultsResult.h | 84 - .../config/model/ListAggregatorsRequest.h | 45 - .../config/model/ListAggregatorsResult.h | 68 - .../ListCompliancePackTemplatesRequest.h | 48 - .../model/ListCompliancePackTemplatesResult.h | 81 - .../config/model/ListCompliancePacksRequest.h | 48 - .../config/model/ListCompliancePacksResult.h | 69 - .../ListConfigRuleEvaluationResultsRequest.h | 54 - .../ListConfigRuleEvaluationResultsResult.h | 86 - ...ulesRequest.h => ListConfigRulesRequest.h} | 24 +- ...gRulesResult.h => ListConfigRulesResult.h} | 19 +- .../model/ListDiscoveredResourcesRequest.h | 27 +- .../model/ListDiscoveredResourcesResult.h | 4 +- .../config/model/ListManagedRulesRequest.h | 51 - .../config/model/ListManagedRulesResult.h | 69 - .../config/model/ListRemediationsResult.h | 66 - .../config/model/ListTagResourcesRequest.h | 54 - .../config/model/ListTagResourcesResult.h | 60 - .../config/model/PutConfigRuleRequest.h | 90 + ...nfigRuleResult.h => PutConfigRuleResult.h} | 14 +- ...st.h => PutConfigurationRecorderRequest.h} | 18 +- ...ult.h => PutConfigurationRecorderResult.h} | 28 +- ...lRequest.h => PutDeliveryChannelRequest.h} | 33 +- ...nelResult.h => PutDeliveryChannelResult.h} | 14 +- ...atorsRequest.h => PutEvaluationsRequest.h} | 27 +- ...sourcesResult.h => PutEvaluationsResult.h} | 16 +- .../RevertAggregateEvaluationResultsRequest.h | 54 - .../RevertAggregateEvaluationResultsResult.h | 49 - .../model/RevertEvaluationResultsRequest.h | 51 - .../model/RevertEvaluationResultsResult.h | 49 - ...StartAggregateConfigRuleEvaluationResult.h | 51 - ...t.h => StartConfigRuleEvaluationRequest.h} | 21 +- ...lt.h => StartConfigRuleEvaluationResult.h} | 18 +- ....h => StartConfigurationRecorderRequest.h} | 18 +- ...t.h => StartConfigurationRecorderResult.h} | 26 +- .../config/model/StartRemediationRequest.h | 42 - .../config/model/StartRemediationResult.h | 51 - ...ionsRequest.h => StopConfigRulesRequest.h} | 12 +- ...gRulesResult.h => StopConfigRulesResult.h} | 14 +- .../config/model/TagResourcesRequest.h | 51 - .../config/model/TagResourcesResult.h | 49 - .../config/model/UntagResourcesRequest.h | 54 - .../UpdateAggregateCompliancePackRequest.h | 73 - .../UpdateAggregateCompliancePackResult.h | 51 - ...ateAggregateConfigDeliveryChannelRequest.h | 75 - ...dateAggregateConfigDeliveryChannelResult.h | 51 - .../model/UpdateAggregateConfigRuleRequest.h | 96 - .../model/UpdateAggregateConfigRuleResult.h | 51 - .../model/UpdateAggregateRemediationRequest.h | 60 - .../model/UpdateAggregateRemediationResult.h | 51 - .../config/model/UpdateAggregatorRequest.h | 59 - .../config/model/UpdateAggregatorResult.h | 51 - .../model/UpdateCompliancePackRequest.h | 70 - .../config/model/UpdateCompliancePackResult.h | 51 - .../UpdateConfigDeliveryChannelRequest.h | 72 - .../config/model/UpdateConfigRuleRequest.h | 84 - .../config/model/UpdateConfigRuleResult.h | 51 - config/src/ConfigClient.cc | 2880 ++--------------- .../ActiveAggregateConfigRulesRequest.cc | 45 - ...Request.cc => ActiveConfigRulesRequest.cc} | 14 +- ...esResult.cc => ActiveConfigRulesResult.cc} | 12 +- ...regateConfigRuleToCompliancePackRequest.cc | 54 - ...gregateConfigRuleToCompliancePackResult.cc | 62 - ...AttachConfigRuleToCompliancePackRequest.cc | 45 - .../AttachConfigRuleToCompliancePackResult.cc | 62 - .../CreateAggregateCompliancePackRequest.cc | 100 - .../CreateAggregateCompliancePackResult.cc | 51 - ...teAggregateConfigDeliveryChannelRequest.cc | 126 - ...ateAggregateConfigDeliveryChannelResult.cc | 51 - .../model/CreateAggregateConfigRuleRequest.cc | 209 -- .../model/CreateAggregateConfigRuleResult.cc | 51 - .../CreateAggregateRemediationRequest.cc | 99 - .../model/CreateAggregateRemediationResult.cc | 51 - config/src/model/CreateAggregatorRequest.cc | 76 - config/src/model/CreateAggregatorResult.cc | 51 - .../src/model/CreateCompliancePackRequest.cc | 91 - .../src/model/CreateCompliancePackResult.cc | 51 - .../CreateConfigDeliveryChannelRequest.cc | 117 - config/src/model/CreateConfigRuleRequest.cc | 173 - config/src/model/CreateConfigRuleResult.cc | 51 - config/src/model/CreateRemediationRequest.cc | 90 - config/src/model/CreateRemediationResult.cc | 51 - .../DeactiveAggregateConfigRulesRequest.cc | 45 - .../DeactiveAggregateConfigRulesResult.cc | 62 - .../DeleteAggregateCompliancePacksRequest.cc | 63 - .../DeleteAggregateCompliancePacksResult.cc | 62 - .../DeleteAggregateConfigRulesRequest.cc | 45 - .../DeleteAggregateRemediationsRequest.cc | 45 - .../DeleteAggregateRemediationsResult.cc | 61 - config/src/model/DeleteAggregatorsRequest.cc | 45 - config/src/model/DeleteAggregatorsResult.cc | 62 - .../src/model/DeleteCompliancePacksRequest.cc | 54 - .../src/model/DeleteCompliancePacksResult.cc | 62 - ...Request.cc => DeleteConfigRulesRequest.cc} | 14 +- ...esResult.cc => DeleteConfigRulesResult.cc} | 12 +- config/src/model/DeleteRemediationsRequest.cc | 36 - config/src/model/DeleteRemediationsResult.cc | 61 - config/src/model/DescribeComplianceRequest.cc | 81 + ...eResult.cc => DescribeComplianceResult.cc} | 12 +- .../model/DescribeComplianceSummaryRequest.cc | 45 + .../model/DescribeComplianceSummaryResult.cc | 68 + config/src/model/DescribeConfigRuleRequest.cc | 54 + ...eResult.cc => DescribeConfigRuleResult.cc} | 80 +- ...> DescribeConfigurationRecorderRequest.cc} | 12 +- .../DescribeConfigurationRecorderResult.cc | 61 + ....cc => DescribeDeliveryChannelsRequest.cc} | 14 +- ...t.cc => DescribeDeliveryChannelsResult.cc} | 26 +- .../DescribeDiscoveredResourceRequest.cc | 72 + ...cc => DescribeDiscoveredResourceResult.cc} | 12 +- .../model/DescribeEvaluationResultsRequest.cc | 99 + ....cc => DescribeEvaluationResultsResult.cc} | 24 +- ...regateConfigRuleToCompliancePackRequest.cc | 54 - ...gregateConfigRuleToCompliancePackResult.cc | 62 - ...DetachConfigRuleToCompliancePackRequest.cc | 45 - .../DetachConfigRuleToCompliancePackResult.cc | 62 - ...ateAggregateCompliancePackReportRequest.cc | 54 - ...rateAggregateCompliancePackReportResult.cc | 51 - ...nerateAggregateConfigRulesReportRequest.cc | 54 - ...enerateAggregateConfigRulesReportResult.cc | 58 - .../GenerateCompliancePackReportRequest.cc | 45 - .../GenerateCompliancePackReportResult.cc | 51 - .../model/GenerateConfigRulesReportRequest.cc | 45 - ...AggregateAccountComplianceByPackRequest.cc | 45 - ...tAggregateAccountComplianceByPackResult.cc | 68 - ...GetAggregateCompliancePackReportRequest.cc | 45 - .../GetAggregateCompliancePackReportResult.cc | 60 - .../GetAggregateCompliancePackRequest.cc | 45 - .../model/GetAggregateCompliancePackResult.cc | 96 - ...etAggregateConfigDeliveryChannelRequest.cc | 45 - ...GetAggregateConfigDeliveryChannelResult.cc | 78 - ...regateConfigRuleComplianceByPackRequest.cc | 45 - ...gregateConfigRuleComplianceByPackResult.cc | 68 - .../model/GetAggregateConfigRuleRequest.cc | 45 - .../src/model/GetAggregateConfigRuleResult.cc | 183 -- ...gateConfigRuleSummaryByRiskLevelRequest.cc | 36 - ...egateConfigRuleSummaryByRiskLevelResult.cc | 61 - .../GetAggregateConfigRulesReportRequest.cc | 45 - .../GetAggregateConfigRulesReportResult.cc | 62 - .../GetAggregateDiscoveredResourceRequest.cc | 2 +- ...teResourceComplianceByConfigRuleRequest.cc | 63 - ...ateResourceComplianceByConfigRuleResult.cc | 62 - ...ggregateResourceComplianceByPackRequest.cc | 45 - ...AggregateResourceComplianceByPackResult.cc | 56 - ...eResourceComplianceGroupByRegionRequest.cc | 45 - ...teResourceComplianceGroupByRegionResult.cc | 68 - ...rceComplianceGroupByResourceTypeRequest.cc | 45 - ...urceComplianceGroupByResourceTypeResult.cc | 68 - ...regateResourceComplianceTimelineRequest.cc | 108 - ...gregateResourceComplianceTimelineResult.cc | 84 - ...ateResourceConfigurationTimelineRequest.cc | 108 - ...gateResourceConfigurationTimelineResult.cc | 86 - ...egateResourceCountsGroupByRegionRequest.cc | 63 - ...regateResourceCountsGroupByRegionResult.cc | 61 - ...esourceCountsGroupByResourceTypeRequest.cc | 63 - ...ResourceCountsGroupByResourceTypeResult.cc | 61 - config/src/model/GetAggregatorRequest.cc | 36 - config/src/model/GetAggregatorResult.cc | 80 - .../model/GetCompliancePackReportRequest.cc | 36 - .../model/GetCompliancePackReportResult.cc | 60 - config/src/model/GetCompliancePackRequest.cc | 36 - config/src/model/GetCompliancePackResult.cc | 94 - .../model/GetConfigDeliveryChannelResult.cc | 76 - .../GetConfigRuleComplianceByPackRequest.cc | 36 - .../GetConfigRuleComplianceByPackResult.cc | 68 - config/src/model/GetConfigRuleRequest.cc | 36 - .../GetConfigRuleSummaryByRiskLevelResult.cc | 61 - .../src/model/GetConfigRulesReportRequest.cc | 36 - .../src/model/GetConfigRulesReportResult.cc | 60 - ...veredResourceCountsGroupByRegionRequest.cc | 36 - ...overedResourceCountsGroupByRegionResult.cc | 61 - ...esourceCountsGroupByResourceTypeRequest.cc | 36 - ...ResourceCountsGroupByResourceTypeResult.cc | 61 - .../GetDiscoveredResourceCountsRequest.cc | 54 + .../GetDiscoveredResourceCountsResult.cc | 62 + .../src/model/GetDiscoveredResourceRequest.cc | 54 - .../GetDiscoveredResourceSummaryRequest.cc | 45 + .../GetDiscoveredResourceSummaryResult.cc | 56 + config/src/model/GetManagedRuleResult.cc | 100 - ...etResourceComplianceByConfigRuleRequest.cc | 45 - .../GetResourceComplianceByPackRequest.cc | 36 - .../GetResourceComplianceByPackResult.cc | 56 - ...etResourceComplianceGroupByRegionResult.cc | 68 - ...rceComplianceGroupByResourceTypeRequest.cc | 36 - ...urceComplianceGroupByResourceTypeResult.cc | 68 - .../GetResourceComplianceTimelineRequest.cc | 76 +- .../GetResourceComplianceTimelineResult.cc | 6 +- ...GetResourceConfigurationTimelineRequest.cc | 76 +- .../GetResourceConfigurationTimelineResult.cc | 14 +- ...cc => GetSupportedResourceTypesRequest.cc} | 19 +- ....cc => GetSupportedResourceTypesResult.cc} | 19 +- ...IgnoreAggregateEvaluationResultsRequest.cc | 77 - .../IgnoreAggregateEvaluationResultsResult.cc | 44 - .../model/IgnoreEvaluationResultsRequest.cc | 68 - .../model/IgnoreEvaluationResultsResult.cc | 44 - .../ListAggregateCompliancePacksRequest.cc | 63 - .../ListAggregateCompliancePacksResult.cc | 80 - ...tAggregateConfigDeliveryChannelsRequest.cc | 45 - ...stAggregateConfigDeliveryChannelsResult.cc | 83 - ...egateConfigRuleEvaluationResultsRequest.cc | 90 - ...regateConfigRuleEvaluationResultsResult.cc | 98 - .../model/ListAggregateConfigRulesRequest.cc | 136 - ...ListAggregateDiscoveredResourcesRequest.cc | 39 +- .../ListAggregateDiscoveredResourcesResult.cc | 8 +- .../model/ListAggregateRemediationsRequest.cc | 45 - .../model/ListAggregateRemediationsResult.cc | 81 - ...gregateResourceEvaluationResultsRequest.cc | 90 - ...ggregateResourceEvaluationResultsResult.cc | 94 - config/src/model/ListAggregatorsRequest.cc | 45 - config/src/model/ListAggregatorsResult.cc | 76 - .../ListCompliancePackTemplatesRequest.cc | 54 - .../ListCompliancePackTemplatesResult.cc | 98 - .../src/model/ListCompliancePacksRequest.cc | 54 - config/src/model/ListCompliancePacksResult.cc | 78 - .../ListConfigRuleEvaluationResultsRequest.cc | 72 - .../ListConfigRuleEvaluationResultsResult.cc | 98 - config/src/model/ListConfigRulesRequest.cc | 154 + ...ulesResult.cc => ListConfigRulesResult.cc} | 26 +- .../model/ListDiscoveredResourcesRequest.cc | 67 +- .../model/ListDiscoveredResourcesResult.cc | 8 +- config/src/model/ListManagedRulesRequest.cc | 63 - config/src/model/ListManagedRulesResult.cc | 84 - .../model/ListRemediationTemplatesRequest.cc | 2 +- config/src/model/ListRemediationsResult.cc | 79 - .../ListResourceEvaluationResultsRequest.cc | 81 - config/src/model/ListTagResourcesRequest.cc | 71 - config/src/model/ListTagResourcesResult.cc | 70 - config/src/model/PutConfigRuleRequest.cc | 180 ++ ...igRuleResult.cc => PutConfigRuleResult.cc} | 12 +- ....cc => PutConfigurationRecorderRequest.cc} | 20 +- .../model/PutConfigurationRecorderResult.cc | 61 + config/src/model/PutDeliveryChannelRequest.cc | 108 + ...lResult.cc => PutDeliveryChannelResult.cc} | 12 +- config/src/model/PutEvaluationsRequest.cc | 54 + ...urcesResult.cc => PutEvaluationsResult.cc} | 17 +- ...RevertAggregateEvaluationResultsRequest.cc | 59 - .../RevertAggregateEvaluationResultsResult.cc | 44 - .../model/RevertEvaluationResultsRequest.cc | 50 - .../model/RevertEvaluationResultsResult.cc | 44 - ...artAggregateConfigRuleEvaluationRequest.cc | 63 - ...tartAggregateConfigRuleEvaluationResult.cc | 51 - .../model/StartAggregateRemediationRequest.cc | 45 - .../model/StartConfigRuleEvaluationRequest.cc | 72 + ....cc => StartConfigRuleEvaluationResult.cc} | 18 +- .../StartConfigurationRecorderRequest.cc | 36 + .../model/StartConfigurationRecorderResult.cc | 61 + config/src/model/StartRemediationRequest.cc | 36 - config/src/model/StartRemediationResult.cc | 51 - ...nsRequest.cc => StopConfigRulesRequest.cc} | 14 +- ...ulesResult.cc => StopConfigRulesResult.cc} | 12 +- config/src/model/TagResourcesRequest.cc | 62 - config/src/model/TagResourcesResult.cc | 44 - config/src/model/UntagResourcesRequest.cc | 70 - .../UpdateAggregateCompliancePackRequest.cc | 100 - .../UpdateAggregateCompliancePackResult.cc | 51 - ...teAggregateConfigDeliveryChannelRequest.cc | 135 - ...ateAggregateConfigDeliveryChannelResult.cc | 51 - .../model/UpdateAggregateConfigRuleRequest.cc | 200 -- .../model/UpdateAggregateConfigRuleResult.cc | 51 - .../UpdateAggregateRemediationRequest.cc | 90 - .../model/UpdateAggregateRemediationResult.cc | 51 - config/src/model/UpdateAggregatorRequest.cc | 76 - config/src/model/UpdateAggregatorResult.cc | 51 - .../src/model/UpdateCompliancePackRequest.cc | 91 - .../src/model/UpdateCompliancePackResult.cc | 51 - .../UpdateConfigDeliveryChannelRequest.cc | 126 - .../UpdateConfigDeliveryChannelResult.cc | 51 - config/src/model/UpdateConfigRuleRequest.cc | 164 - 403 files changed, 2839 insertions(+), 23333 deletions(-) delete mode 100644 config/include/alibabacloud/config/model/ActiveAggregateConfigRulesRequest.h rename config/include/alibabacloud/config/model/{DeactiveConfigRulesRequest.h => ActiveConfigRulesRequest.h} (73%) rename config/include/alibabacloud/config/model/{DeactiveConfigRulesResult.h => ActiveConfigRulesResult.h} (75%) delete mode 100644 config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackRequest.h delete mode 100644 config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackResult.h delete mode 100644 config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackRequest.h delete mode 100644 config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackResult.h delete mode 100644 config/include/alibabacloud/config/model/CreateAggregateCompliancePackRequest.h delete mode 100644 config/include/alibabacloud/config/model/CreateAggregateCompliancePackResult.h delete mode 100644 config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelRequest.h delete mode 100644 config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelResult.h delete mode 100644 config/include/alibabacloud/config/model/CreateAggregateConfigRuleRequest.h delete mode 100644 config/include/alibabacloud/config/model/CreateAggregateConfigRuleResult.h delete mode 100644 config/include/alibabacloud/config/model/CreateAggregateRemediationRequest.h delete mode 100644 config/include/alibabacloud/config/model/CreateAggregatorRequest.h delete mode 100644 config/include/alibabacloud/config/model/CreateAggregatorResult.h delete mode 100644 config/include/alibabacloud/config/model/CreateCompliancePackRequest.h delete mode 100644 config/include/alibabacloud/config/model/CreateCompliancePackResult.h delete mode 100644 config/include/alibabacloud/config/model/CreateConfigDeliveryChannelResult.h delete mode 100644 config/include/alibabacloud/config/model/CreateConfigRuleRequest.h delete mode 100644 config/include/alibabacloud/config/model/CreateRemediationRequest.h delete mode 100644 config/include/alibabacloud/config/model/CreateRemediationResult.h delete mode 100644 config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesResult.h delete mode 100644 config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksRequest.h delete mode 100644 config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksResult.h delete mode 100644 config/include/alibabacloud/config/model/DeleteAggregateConfigRulesRequest.h delete mode 100644 config/include/alibabacloud/config/model/DeleteAggregateRemediationsRequest.h delete mode 100644 config/include/alibabacloud/config/model/DeleteAggregateRemediationsResult.h delete mode 100644 config/include/alibabacloud/config/model/DeleteAggregatorsResult.h delete mode 100644 config/include/alibabacloud/config/model/DeleteCompliancePacksRequest.h delete mode 100644 config/include/alibabacloud/config/model/DeleteCompliancePacksResult.h rename config/include/alibabacloud/config/model/{GetResourceComplianceGroupByRegionRequest.h => DeleteConfigRulesRequest.h} (69%) rename config/include/alibabacloud/config/model/{DeleteAggregateConfigRulesResult.h => DeleteConfigRulesResult.h} (73%) delete mode 100644 config/include/alibabacloud/config/model/DeleteRemediationsRequest.h delete mode 100644 config/include/alibabacloud/config/model/DeleteRemediationsResult.h rename config/include/alibabacloud/config/model/{ListResourceEvaluationResultsRequest.h => DescribeComplianceRequest.h} (63%) rename config/include/alibabacloud/config/model/{GetResourceComplianceByConfigRuleResult.h => DescribeComplianceResult.h} (70%) rename config/include/alibabacloud/config/model/{GenerateConfigRulesReportRequest.h => DescribeComplianceSummaryRequest.h} (61%) rename config/include/alibabacloud/config/model/{ListAggregateRemediationsResult.h => DescribeComplianceSummaryResult.h} (50%) rename config/include/alibabacloud/config/model/{StartAggregateRemediationRequest.h => DescribeConfigRuleRequest.h} (65%) rename config/include/alibabacloud/config/model/{GetConfigRuleResult.h => DescribeConfigRuleResult.h} (74%) rename config/include/alibabacloud/config/model/{GetConfigRuleSummaryByRiskLevelRequest.h => DescribeConfigurationRecorderRequest.h} (67%) rename config/include/alibabacloud/config/model/{GetAggregateConfigRulesReportResult.h => DescribeConfigurationRecorderResult.h} (57%) rename config/include/alibabacloud/config/model/{ListConfigDeliveryChannelsRequest.h => DescribeDeliveryChannelsRequest.h} (72%) rename config/include/alibabacloud/config/model/{ListConfigDeliveryChannelsResult.h => DescribeDeliveryChannelsResult.h} (76%) rename config/include/alibabacloud/config/model/{GetDiscoveredResourceRequest.h => DescribeDiscoveredResourceRequest.h} (67%) rename config/include/alibabacloud/config/model/{GetDiscoveredResourceResult.h => DescribeDiscoveredResourceResult.h} (75%) rename config/include/alibabacloud/config/model/{ListAggregateResourceEvaluationResultsRequest.h => DescribeEvaluationResultsRequest.h} (58%) rename config/include/alibabacloud/config/model/{ListResourceEvaluationResultsResult.h => DescribeEvaluationResultsResult.h} (77%) delete mode 100644 config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackRequest.h delete mode 100644 config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackResult.h delete mode 100644 config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackRequest.h delete mode 100644 config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackResult.h delete mode 100644 config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportRequest.h delete mode 100644 config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportResult.h delete mode 100644 config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportRequest.h delete mode 100644 config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportResult.h delete mode 100644 config/include/alibabacloud/config/model/GenerateCompliancePackReportRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateCompliancePackReportRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateCompliancePackReportResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateCompliancePackRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateCompliancePackResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateConfigRuleRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateConfigRuleResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateConfigRulesReportRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeResult.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregatorRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetAggregatorResult.h delete mode 100644 config/include/alibabacloud/config/model/GetCompliancePackRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetCompliancePackResult.h delete mode 100644 config/include/alibabacloud/config/model/GetConfigDeliveryChannelResult.h delete mode 100644 config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackResult.h delete mode 100644 config/include/alibabacloud/config/model/GetConfigRuleRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelResult.h delete mode 100644 config/include/alibabacloud/config/model/GetConfigRulesReportRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetConfigRulesReportResult.h delete mode 100644 config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionResult.h delete mode 100644 config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h rename config/include/alibabacloud/config/model/{GetDiscoveredResourceCountsGroupByRegionRequest.h => GetDiscoveredResourceCountsRequest.h} (60%) rename config/include/alibabacloud/config/model/{GetResourceComplianceByPackResult.h => GetDiscoveredResourceCountsResult.h} (58%) rename config/include/alibabacloud/config/model/{DeactiveAggregateConfigRulesRequest.h => GetDiscoveredResourceSummaryRequest.h} (60%) rename config/include/alibabacloud/config/model/{GenerateCompliancePackReportResult.h => GetDiscoveredResourceSummaryResult.h} (60%) delete mode 100644 config/include/alibabacloud/config/model/GetManagedRuleResult.h delete mode 100644 config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetResourceComplianceByPackRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetResourceComplianceGroupByRegionResult.h delete mode 100644 config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeRequest.h delete mode 100644 config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeResult.h rename config/include/alibabacloud/config/model/{GetManagedRuleRequest.h => GetSupportedResourceTypesRequest.h} (66%) rename config/include/alibabacloud/config/model/{GenerateConfigRulesReportResult.h => GetSupportedResourceTypesResult.h} (66%) delete mode 100644 config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h delete mode 100644 config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsResult.h delete mode 100644 config/include/alibabacloud/config/model/IgnoreEvaluationResultsRequest.h delete mode 100644 config/include/alibabacloud/config/model/IgnoreEvaluationResultsResult.h delete mode 100644 config/include/alibabacloud/config/model/ListAggregateCompliancePacksRequest.h delete mode 100644 config/include/alibabacloud/config/model/ListAggregateCompliancePacksResult.h delete mode 100644 config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsRequest.h delete mode 100644 config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsResult.h delete mode 100644 config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h delete mode 100644 config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsResult.h delete mode 100644 config/include/alibabacloud/config/model/ListAggregateRemediationsRequest.h delete mode 100644 config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsResult.h delete mode 100644 config/include/alibabacloud/config/model/ListAggregatorsRequest.h delete mode 100644 config/include/alibabacloud/config/model/ListAggregatorsResult.h delete mode 100644 config/include/alibabacloud/config/model/ListCompliancePackTemplatesRequest.h delete mode 100644 config/include/alibabacloud/config/model/ListCompliancePackTemplatesResult.h delete mode 100644 config/include/alibabacloud/config/model/ListCompliancePacksRequest.h delete mode 100644 config/include/alibabacloud/config/model/ListCompliancePacksResult.h delete mode 100644 config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsRequest.h delete mode 100644 config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsResult.h rename config/include/alibabacloud/config/model/{ListAggregateConfigRulesRequest.h => ListConfigRulesRequest.h} (76%) rename config/include/alibabacloud/config/model/{ListAggregateConfigRulesResult.h => ListConfigRulesResult.h} (79%) delete mode 100644 config/include/alibabacloud/config/model/ListManagedRulesRequest.h delete mode 100644 config/include/alibabacloud/config/model/ListManagedRulesResult.h delete mode 100644 config/include/alibabacloud/config/model/ListRemediationsResult.h delete mode 100644 config/include/alibabacloud/config/model/ListTagResourcesRequest.h delete mode 100644 config/include/alibabacloud/config/model/ListTagResourcesResult.h create mode 100644 config/include/alibabacloud/config/model/PutConfigRuleRequest.h rename config/include/alibabacloud/config/model/{CreateConfigRuleResult.h => PutConfigRuleResult.h} (72%) rename config/include/alibabacloud/config/model/{GetConfigDeliveryChannelRequest.h => PutConfigurationRecorderRequest.h} (66%) rename config/include/alibabacloud/config/model/{GetCompliancePackReportResult.h => PutConfigurationRecorderResult.h} (56%) rename config/include/alibabacloud/config/model/{CreateConfigDeliveryChannelRequest.h => PutDeliveryChannelRequest.h} (62%) rename config/include/alibabacloud/config/model/{UpdateConfigDeliveryChannelResult.h => PutDeliveryChannelResult.h} (68%) rename config/include/alibabacloud/config/model/{DeleteAggregatorsRequest.h => PutEvaluationsRequest.h} (57%) rename config/include/alibabacloud/config/model/{UntagResourcesResult.h => PutEvaluationsResult.h} (70%) delete mode 100644 config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsRequest.h delete mode 100644 config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsResult.h delete mode 100644 config/include/alibabacloud/config/model/RevertEvaluationResultsRequest.h delete mode 100644 config/include/alibabacloud/config/model/RevertEvaluationResultsResult.h delete mode 100644 config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationResult.h rename config/include/alibabacloud/config/model/{StartAggregateConfigRuleEvaluationRequest.h => StartConfigRuleEvaluationRequest.h} (68%) rename config/include/alibabacloud/config/model/{StartAggregateRemediationResult.h => StartConfigRuleEvaluationResult.h} (69%) rename config/include/alibabacloud/config/model/{GetCompliancePackReportRequest.h => StartConfigurationRecorderRequest.h} (63%) rename config/include/alibabacloud/config/model/{CreateAggregateRemediationResult.h => StartConfigurationRecorderResult.h} (57%) delete mode 100644 config/include/alibabacloud/config/model/StartRemediationRequest.h delete mode 100644 config/include/alibabacloud/config/model/StartRemediationResult.h rename config/include/alibabacloud/config/model/{ListRemediationsRequest.h => StopConfigRulesRequest.h} (74%) rename config/include/alibabacloud/config/model/{ActiveAggregateConfigRulesResult.h => StopConfigRulesResult.h} (73%) delete mode 100644 config/include/alibabacloud/config/model/TagResourcesRequest.h delete mode 100644 config/include/alibabacloud/config/model/TagResourcesResult.h delete mode 100644 config/include/alibabacloud/config/model/UntagResourcesRequest.h delete mode 100644 config/include/alibabacloud/config/model/UpdateAggregateCompliancePackRequest.h delete mode 100644 config/include/alibabacloud/config/model/UpdateAggregateCompliancePackResult.h delete mode 100644 config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelRequest.h delete mode 100644 config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelResult.h delete mode 100644 config/include/alibabacloud/config/model/UpdateAggregateConfigRuleRequest.h delete mode 100644 config/include/alibabacloud/config/model/UpdateAggregateConfigRuleResult.h delete mode 100644 config/include/alibabacloud/config/model/UpdateAggregateRemediationRequest.h delete mode 100644 config/include/alibabacloud/config/model/UpdateAggregateRemediationResult.h delete mode 100644 config/include/alibabacloud/config/model/UpdateAggregatorRequest.h delete mode 100644 config/include/alibabacloud/config/model/UpdateAggregatorResult.h delete mode 100644 config/include/alibabacloud/config/model/UpdateCompliancePackRequest.h delete mode 100644 config/include/alibabacloud/config/model/UpdateCompliancePackResult.h delete mode 100644 config/include/alibabacloud/config/model/UpdateConfigDeliveryChannelRequest.h delete mode 100644 config/include/alibabacloud/config/model/UpdateConfigRuleRequest.h delete mode 100644 config/include/alibabacloud/config/model/UpdateConfigRuleResult.h delete mode 100644 config/src/model/ActiveAggregateConfigRulesRequest.cc rename config/src/model/{DeactiveConfigRulesRequest.cc => ActiveConfigRulesRequest.cc} (61%) rename config/src/model/{DeactiveConfigRulesResult.cc => ActiveConfigRulesResult.cc} (82%) delete mode 100644 config/src/model/AttachAggregateConfigRuleToCompliancePackRequest.cc delete mode 100644 config/src/model/AttachAggregateConfigRuleToCompliancePackResult.cc delete mode 100644 config/src/model/AttachConfigRuleToCompliancePackRequest.cc delete mode 100644 config/src/model/AttachConfigRuleToCompliancePackResult.cc delete mode 100644 config/src/model/CreateAggregateCompliancePackRequest.cc delete mode 100644 config/src/model/CreateAggregateCompliancePackResult.cc delete mode 100644 config/src/model/CreateAggregateConfigDeliveryChannelRequest.cc delete mode 100644 config/src/model/CreateAggregateConfigDeliveryChannelResult.cc delete mode 100644 config/src/model/CreateAggregateConfigRuleRequest.cc delete mode 100644 config/src/model/CreateAggregateConfigRuleResult.cc delete mode 100644 config/src/model/CreateAggregateRemediationRequest.cc delete mode 100644 config/src/model/CreateAggregateRemediationResult.cc delete mode 100644 config/src/model/CreateAggregatorRequest.cc delete mode 100644 config/src/model/CreateAggregatorResult.cc delete mode 100644 config/src/model/CreateCompliancePackRequest.cc delete mode 100644 config/src/model/CreateCompliancePackResult.cc delete mode 100644 config/src/model/CreateConfigDeliveryChannelRequest.cc delete mode 100644 config/src/model/CreateConfigRuleRequest.cc delete mode 100644 config/src/model/CreateConfigRuleResult.cc delete mode 100644 config/src/model/CreateRemediationRequest.cc delete mode 100644 config/src/model/CreateRemediationResult.cc delete mode 100644 config/src/model/DeactiveAggregateConfigRulesRequest.cc delete mode 100644 config/src/model/DeactiveAggregateConfigRulesResult.cc delete mode 100644 config/src/model/DeleteAggregateCompliancePacksRequest.cc delete mode 100644 config/src/model/DeleteAggregateCompliancePacksResult.cc delete mode 100644 config/src/model/DeleteAggregateConfigRulesRequest.cc delete mode 100644 config/src/model/DeleteAggregateRemediationsRequest.cc delete mode 100644 config/src/model/DeleteAggregateRemediationsResult.cc delete mode 100644 config/src/model/DeleteAggregatorsRequest.cc delete mode 100644 config/src/model/DeleteAggregatorsResult.cc delete mode 100644 config/src/model/DeleteCompliancePacksRequest.cc delete mode 100644 config/src/model/DeleteCompliancePacksResult.cc rename config/src/model/{GetResourceComplianceGroupByRegionRequest.cc => DeleteConfigRulesRequest.cc} (55%) rename config/src/model/{DeleteAggregateConfigRulesResult.cc => DeleteConfigRulesResult.cc} (79%) delete mode 100644 config/src/model/DeleteRemediationsRequest.cc delete mode 100644 config/src/model/DeleteRemediationsResult.cc create mode 100644 config/src/model/DescribeComplianceRequest.cc rename config/src/model/{GetResourceComplianceByConfigRuleResult.cc => DescribeComplianceResult.cc} (76%) create mode 100644 config/src/model/DescribeComplianceSummaryRequest.cc create mode 100644 config/src/model/DescribeComplianceSummaryResult.cc create mode 100644 config/src/model/DescribeConfigRuleRequest.cc rename config/src/model/{GetConfigRuleResult.cc => DescribeConfigRuleResult.cc} (75%) rename config/src/model/{GetConfigRuleSummaryByRiskLevelRequest.cc => DescribeConfigurationRecorderRequest.cc} (58%) create mode 100644 config/src/model/DescribeConfigurationRecorderResult.cc rename config/src/model/{ListConfigDeliveryChannelsRequest.cc => DescribeDeliveryChannelsRequest.cc} (58%) rename config/src/model/{ListConfigDeliveryChannelsResult.cc => DescribeDeliveryChannelsResult.cc} (84%) create mode 100644 config/src/model/DescribeDiscoveredResourceRequest.cc rename config/src/model/{GetDiscoveredResourceResult.cc => DescribeDiscoveredResourceResult.cc} (84%) create mode 100644 config/src/model/DescribeEvaluationResultsRequest.cc rename config/src/model/{ListResourceEvaluationResultsResult.cc => DescribeEvaluationResultsResult.cc} (83%) delete mode 100644 config/src/model/DetachAggregateConfigRuleToCompliancePackRequest.cc delete mode 100644 config/src/model/DetachAggregateConfigRuleToCompliancePackResult.cc delete mode 100644 config/src/model/DetachConfigRuleToCompliancePackRequest.cc delete mode 100644 config/src/model/DetachConfigRuleToCompliancePackResult.cc delete mode 100644 config/src/model/GenerateAggregateCompliancePackReportRequest.cc delete mode 100644 config/src/model/GenerateAggregateCompliancePackReportResult.cc delete mode 100644 config/src/model/GenerateAggregateConfigRulesReportRequest.cc delete mode 100644 config/src/model/GenerateAggregateConfigRulesReportResult.cc delete mode 100644 config/src/model/GenerateCompliancePackReportRequest.cc delete mode 100644 config/src/model/GenerateCompliancePackReportResult.cc delete mode 100644 config/src/model/GenerateConfigRulesReportRequest.cc delete mode 100644 config/src/model/GetAggregateAccountComplianceByPackRequest.cc delete mode 100644 config/src/model/GetAggregateAccountComplianceByPackResult.cc delete mode 100644 config/src/model/GetAggregateCompliancePackReportRequest.cc delete mode 100644 config/src/model/GetAggregateCompliancePackReportResult.cc delete mode 100644 config/src/model/GetAggregateCompliancePackRequest.cc delete mode 100644 config/src/model/GetAggregateCompliancePackResult.cc delete mode 100644 config/src/model/GetAggregateConfigDeliveryChannelRequest.cc delete mode 100644 config/src/model/GetAggregateConfigDeliveryChannelResult.cc delete mode 100644 config/src/model/GetAggregateConfigRuleComplianceByPackRequest.cc delete mode 100644 config/src/model/GetAggregateConfigRuleComplianceByPackResult.cc delete mode 100644 config/src/model/GetAggregateConfigRuleRequest.cc delete mode 100644 config/src/model/GetAggregateConfigRuleResult.cc delete mode 100644 config/src/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.cc delete mode 100644 config/src/model/GetAggregateConfigRuleSummaryByRiskLevelResult.cc delete mode 100644 config/src/model/GetAggregateConfigRulesReportRequest.cc delete mode 100644 config/src/model/GetAggregateConfigRulesReportResult.cc delete mode 100644 config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc delete mode 100644 config/src/model/GetAggregateResourceComplianceByConfigRuleResult.cc delete mode 100644 config/src/model/GetAggregateResourceComplianceByPackRequest.cc delete mode 100644 config/src/model/GetAggregateResourceComplianceByPackResult.cc delete mode 100644 config/src/model/GetAggregateResourceComplianceGroupByRegionRequest.cc delete mode 100644 config/src/model/GetAggregateResourceComplianceGroupByRegionResult.cc delete mode 100644 config/src/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.cc delete mode 100644 config/src/model/GetAggregateResourceComplianceGroupByResourceTypeResult.cc delete mode 100644 config/src/model/GetAggregateResourceComplianceTimelineRequest.cc delete mode 100644 config/src/model/GetAggregateResourceComplianceTimelineResult.cc delete mode 100644 config/src/model/GetAggregateResourceConfigurationTimelineRequest.cc delete mode 100644 config/src/model/GetAggregateResourceConfigurationTimelineResult.cc delete mode 100644 config/src/model/GetAggregateResourceCountsGroupByRegionRequest.cc delete mode 100644 config/src/model/GetAggregateResourceCountsGroupByRegionResult.cc delete mode 100644 config/src/model/GetAggregateResourceCountsGroupByResourceTypeRequest.cc delete mode 100644 config/src/model/GetAggregateResourceCountsGroupByResourceTypeResult.cc delete mode 100644 config/src/model/GetAggregatorRequest.cc delete mode 100644 config/src/model/GetAggregatorResult.cc delete mode 100644 config/src/model/GetCompliancePackReportRequest.cc delete mode 100644 config/src/model/GetCompliancePackReportResult.cc delete mode 100644 config/src/model/GetCompliancePackRequest.cc delete mode 100644 config/src/model/GetCompliancePackResult.cc delete mode 100644 config/src/model/GetConfigDeliveryChannelResult.cc delete mode 100644 config/src/model/GetConfigRuleComplianceByPackRequest.cc delete mode 100644 config/src/model/GetConfigRuleComplianceByPackResult.cc delete mode 100644 config/src/model/GetConfigRuleRequest.cc delete mode 100644 config/src/model/GetConfigRuleSummaryByRiskLevelResult.cc delete mode 100644 config/src/model/GetConfigRulesReportRequest.cc delete mode 100644 config/src/model/GetConfigRulesReportResult.cc delete mode 100644 config/src/model/GetDiscoveredResourceCountsGroupByRegionRequest.cc delete mode 100644 config/src/model/GetDiscoveredResourceCountsGroupByRegionResult.cc delete mode 100644 config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.cc delete mode 100644 config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.cc create mode 100644 config/src/model/GetDiscoveredResourceCountsRequest.cc create mode 100644 config/src/model/GetDiscoveredResourceCountsResult.cc delete mode 100644 config/src/model/GetDiscoveredResourceRequest.cc create mode 100644 config/src/model/GetDiscoveredResourceSummaryRequest.cc create mode 100644 config/src/model/GetDiscoveredResourceSummaryResult.cc delete mode 100644 config/src/model/GetManagedRuleResult.cc delete mode 100644 config/src/model/GetResourceComplianceByConfigRuleRequest.cc delete mode 100644 config/src/model/GetResourceComplianceByPackRequest.cc delete mode 100644 config/src/model/GetResourceComplianceByPackResult.cc delete mode 100644 config/src/model/GetResourceComplianceGroupByRegionResult.cc delete mode 100644 config/src/model/GetResourceComplianceGroupByResourceTypeRequest.cc delete mode 100644 config/src/model/GetResourceComplianceGroupByResourceTypeResult.cc rename config/src/model/{GetManagedRuleRequest.cc => GetSupportedResourceTypesRequest.cc} (54%) rename config/src/model/{GenerateConfigRulesReportResult.cc => GetSupportedResourceTypesResult.cc} (62%) delete mode 100644 config/src/model/IgnoreAggregateEvaluationResultsRequest.cc delete mode 100644 config/src/model/IgnoreAggregateEvaluationResultsResult.cc delete mode 100644 config/src/model/IgnoreEvaluationResultsRequest.cc delete mode 100644 config/src/model/IgnoreEvaluationResultsResult.cc delete mode 100644 config/src/model/ListAggregateCompliancePacksRequest.cc delete mode 100644 config/src/model/ListAggregateCompliancePacksResult.cc delete mode 100644 config/src/model/ListAggregateConfigDeliveryChannelsRequest.cc delete mode 100644 config/src/model/ListAggregateConfigDeliveryChannelsResult.cc delete mode 100644 config/src/model/ListAggregateConfigRuleEvaluationResultsRequest.cc delete mode 100644 config/src/model/ListAggregateConfigRuleEvaluationResultsResult.cc delete mode 100644 config/src/model/ListAggregateConfigRulesRequest.cc delete mode 100644 config/src/model/ListAggregateRemediationsRequest.cc delete mode 100644 config/src/model/ListAggregateRemediationsResult.cc delete mode 100644 config/src/model/ListAggregateResourceEvaluationResultsRequest.cc delete mode 100644 config/src/model/ListAggregateResourceEvaluationResultsResult.cc delete mode 100644 config/src/model/ListAggregatorsRequest.cc delete mode 100644 config/src/model/ListAggregatorsResult.cc delete mode 100644 config/src/model/ListCompliancePackTemplatesRequest.cc delete mode 100644 config/src/model/ListCompliancePackTemplatesResult.cc delete mode 100644 config/src/model/ListCompliancePacksRequest.cc delete mode 100644 config/src/model/ListCompliancePacksResult.cc delete mode 100644 config/src/model/ListConfigRuleEvaluationResultsRequest.cc delete mode 100644 config/src/model/ListConfigRuleEvaluationResultsResult.cc create mode 100644 config/src/model/ListConfigRulesRequest.cc rename config/src/model/{ListAggregateConfigRulesResult.cc => ListConfigRulesResult.cc} (85%) delete mode 100644 config/src/model/ListManagedRulesRequest.cc delete mode 100644 config/src/model/ListManagedRulesResult.cc delete mode 100644 config/src/model/ListRemediationsResult.cc delete mode 100644 config/src/model/ListResourceEvaluationResultsRequest.cc delete mode 100644 config/src/model/ListTagResourcesRequest.cc delete mode 100644 config/src/model/ListTagResourcesResult.cc create mode 100644 config/src/model/PutConfigRuleRequest.cc rename config/src/model/{UpdateConfigRuleResult.cc => PutConfigRuleResult.cc} (74%) rename config/src/model/{GetConfigDeliveryChannelRequest.cc => PutConfigurationRecorderRequest.cc} (50%) create mode 100644 config/src/model/PutConfigurationRecorderResult.cc create mode 100644 config/src/model/PutDeliveryChannelRequest.cc rename config/src/model/{CreateConfigDeliveryChannelResult.cc => PutDeliveryChannelResult.cc} (69%) create mode 100644 config/src/model/PutEvaluationsRequest.cc rename config/src/model/{UntagResourcesResult.cc => PutEvaluationsResult.cc} (68%) delete mode 100644 config/src/model/RevertAggregateEvaluationResultsRequest.cc delete mode 100644 config/src/model/RevertAggregateEvaluationResultsResult.cc delete mode 100644 config/src/model/RevertEvaluationResultsRequest.cc delete mode 100644 config/src/model/RevertEvaluationResultsResult.cc delete mode 100644 config/src/model/StartAggregateConfigRuleEvaluationRequest.cc delete mode 100644 config/src/model/StartAggregateConfigRuleEvaluationResult.cc delete mode 100644 config/src/model/StartAggregateRemediationRequest.cc create mode 100644 config/src/model/StartConfigRuleEvaluationRequest.cc rename config/src/model/{StartAggregateRemediationResult.cc => StartConfigRuleEvaluationResult.cc} (67%) create mode 100644 config/src/model/StartConfigurationRecorderRequest.cc create mode 100644 config/src/model/StartConfigurationRecorderResult.cc delete mode 100644 config/src/model/StartRemediationRequest.cc delete mode 100644 config/src/model/StartRemediationResult.cc rename config/src/model/{ListRemediationsRequest.cc => StopConfigRulesRequest.cc} (63%) rename config/src/model/{ActiveAggregateConfigRulesResult.cc => StopConfigRulesResult.cc} (79%) delete mode 100644 config/src/model/TagResourcesRequest.cc delete mode 100644 config/src/model/TagResourcesResult.cc delete mode 100644 config/src/model/UntagResourcesRequest.cc delete mode 100644 config/src/model/UpdateAggregateCompliancePackRequest.cc delete mode 100644 config/src/model/UpdateAggregateCompliancePackResult.cc delete mode 100644 config/src/model/UpdateAggregateConfigDeliveryChannelRequest.cc delete mode 100644 config/src/model/UpdateAggregateConfigDeliveryChannelResult.cc delete mode 100644 config/src/model/UpdateAggregateConfigRuleRequest.cc delete mode 100644 config/src/model/UpdateAggregateConfigRuleResult.cc delete mode 100644 config/src/model/UpdateAggregateRemediationRequest.cc delete mode 100644 config/src/model/UpdateAggregateRemediationResult.cc delete mode 100644 config/src/model/UpdateAggregatorRequest.cc delete mode 100644 config/src/model/UpdateAggregatorResult.cc delete mode 100644 config/src/model/UpdateCompliancePackRequest.cc delete mode 100644 config/src/model/UpdateCompliancePackResult.cc delete mode 100644 config/src/model/UpdateConfigDeliveryChannelRequest.cc delete mode 100644 config/src/model/UpdateConfigDeliveryChannelResult.cc delete mode 100644 config/src/model/UpdateConfigRuleRequest.cc diff --git a/CHANGELOG b/CHANGELOG index ee393a86f..8d2cf2959 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-08-11 Version: 1.36.1221 +- Fix ListManagedRules bugs. + 2022-08-11 Version: 1.36.1220 - Generated 2020-05-18 for `dataworks-public`. diff --git a/VERSION b/VERSION index fef88378b..f11bc4145 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1220 \ No newline at end of file +1.36.1221 \ No newline at end of file diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt index ebeba8421..234a7afaa 100644 --- a/config/CMakeLists.txt +++ b/config/CMakeLists.txt @@ -21,393 +21,113 @@ set(config_public_header include/alibabacloud/config/ConfigExport.h ) set(config_public_header_model - include/alibabacloud/config/model/ActiveAggregateConfigRulesRequest.h - include/alibabacloud/config/model/ActiveAggregateConfigRulesResult.h - include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackRequest.h - include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackResult.h - include/alibabacloud/config/model/AttachConfigRuleToCompliancePackRequest.h - include/alibabacloud/config/model/AttachConfigRuleToCompliancePackResult.h - include/alibabacloud/config/model/CreateAggregateCompliancePackRequest.h - include/alibabacloud/config/model/CreateAggregateCompliancePackResult.h - include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelRequest.h - include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelResult.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/CreateConfigDeliveryChannelRequest.h - include/alibabacloud/config/model/CreateConfigDeliveryChannelResult.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 - include/alibabacloud/config/model/DeactiveConfigRulesResult.h - include/alibabacloud/config/model/DeleteAggregateCompliancePacksRequest.h - 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 - include/alibabacloud/config/model/DetachConfigRuleToCompliancePackResult.h - include/alibabacloud/config/model/GenerateAggregateCompliancePackReportRequest.h - include/alibabacloud/config/model/GenerateAggregateCompliancePackReportResult.h - include/alibabacloud/config/model/GenerateAggregateConfigRulesReportRequest.h - include/alibabacloud/config/model/GenerateAggregateConfigRulesReportResult.h - include/alibabacloud/config/model/GenerateCompliancePackReportRequest.h - include/alibabacloud/config/model/GenerateCompliancePackReportResult.h - include/alibabacloud/config/model/GenerateConfigRulesReportRequest.h - include/alibabacloud/config/model/GenerateConfigRulesReportResult.h - include/alibabacloud/config/model/GetAggregateAccountComplianceByPackRequest.h - include/alibabacloud/config/model/GetAggregateAccountComplianceByPackResult.h - include/alibabacloud/config/model/GetAggregateCompliancePackRequest.h - include/alibabacloud/config/model/GetAggregateCompliancePackResult.h - include/alibabacloud/config/model/GetAggregateCompliancePackReportRequest.h - include/alibabacloud/config/model/GetAggregateCompliancePackReportResult.h - include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelRequest.h - include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelResult.h - include/alibabacloud/config/model/GetAggregateConfigRuleRequest.h - include/alibabacloud/config/model/GetAggregateConfigRuleResult.h - include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackRequest.h - include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackResult.h - include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.h - include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelResult.h - include/alibabacloud/config/model/GetAggregateConfigRulesReportRequest.h - include/alibabacloud/config/model/GetAggregateConfigRulesReportResult.h + include/alibabacloud/config/model/ActiveConfigRulesRequest.h + include/alibabacloud/config/model/ActiveConfigRulesResult.h + include/alibabacloud/config/model/DeleteConfigRulesRequest.h + include/alibabacloud/config/model/DeleteConfigRulesResult.h + include/alibabacloud/config/model/DescribeComplianceRequest.h + include/alibabacloud/config/model/DescribeComplianceResult.h + include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h + include/alibabacloud/config/model/DescribeComplianceSummaryResult.h + include/alibabacloud/config/model/DescribeConfigRuleRequest.h + include/alibabacloud/config/model/DescribeConfigRuleResult.h + include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h + include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h + include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h + include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h + include/alibabacloud/config/model/DescribeDiscoveredResourceRequest.h + include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h + include/alibabacloud/config/model/DescribeEvaluationResultsRequest.h + include/alibabacloud/config/model/DescribeEvaluationResultsResult.h include/alibabacloud/config/model/GetAggregateDiscoveredResourceRequest.h include/alibabacloud/config/model/GetAggregateDiscoveredResourceResult.h - include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h - include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleResult.h - include/alibabacloud/config/model/GetAggregateResourceComplianceByPackRequest.h - include/alibabacloud/config/model/GetAggregateResourceComplianceByPackResult.h - include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionRequest.h - include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionResult.h - include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.h - include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeResult.h - include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineRequest.h - include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineResult.h - include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineRequest.h - include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineResult.h - include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionRequest.h - include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionResult.h - include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeRequest.h - include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeResult.h - include/alibabacloud/config/model/GetAggregatorRequest.h - include/alibabacloud/config/model/GetAggregatorResult.h - include/alibabacloud/config/model/GetCompliancePackRequest.h - include/alibabacloud/config/model/GetCompliancePackResult.h - include/alibabacloud/config/model/GetCompliancePackReportRequest.h - include/alibabacloud/config/model/GetCompliancePackReportResult.h - include/alibabacloud/config/model/GetConfigDeliveryChannelRequest.h - include/alibabacloud/config/model/GetConfigDeliveryChannelResult.h - include/alibabacloud/config/model/GetConfigRuleRequest.h - include/alibabacloud/config/model/GetConfigRuleResult.h - include/alibabacloud/config/model/GetConfigRuleComplianceByPackRequest.h - include/alibabacloud/config/model/GetConfigRuleComplianceByPackResult.h - include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelRequest.h - 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 - include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h - include/alibabacloud/config/model/GetManagedRuleRequest.h - include/alibabacloud/config/model/GetManagedRuleResult.h - include/alibabacloud/config/model/GetResourceComplianceByConfigRuleRequest.h - include/alibabacloud/config/model/GetResourceComplianceByConfigRuleResult.h - include/alibabacloud/config/model/GetResourceComplianceByPackRequest.h - include/alibabacloud/config/model/GetResourceComplianceByPackResult.h - include/alibabacloud/config/model/GetResourceComplianceGroupByRegionRequest.h - include/alibabacloud/config/model/GetResourceComplianceGroupByRegionResult.h - include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeRequest.h - include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeResult.h + include/alibabacloud/config/model/GetDiscoveredResourceCountsRequest.h + include/alibabacloud/config/model/GetDiscoveredResourceCountsResult.h + include/alibabacloud/config/model/GetDiscoveredResourceSummaryRequest.h + include/alibabacloud/config/model/GetDiscoveredResourceSummaryResult.h include/alibabacloud/config/model/GetResourceComplianceTimelineRequest.h include/alibabacloud/config/model/GetResourceComplianceTimelineResult.h include/alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h - include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h - include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsResult.h - include/alibabacloud/config/model/IgnoreEvaluationResultsRequest.h - include/alibabacloud/config/model/IgnoreEvaluationResultsResult.h - include/alibabacloud/config/model/ListAggregateCompliancePacksRequest.h - include/alibabacloud/config/model/ListAggregateCompliancePacksResult.h - include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsRequest.h - include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsResult.h - include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h - include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsResult.h - include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h - include/alibabacloud/config/model/ListAggregateConfigRulesResult.h + include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h + include/alibabacloud/config/model/GetSupportedResourceTypesResult.h include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h - include/alibabacloud/config/model/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 - include/alibabacloud/config/model/ListAggregatorsResult.h - include/alibabacloud/config/model/ListCompliancePackTemplatesRequest.h - include/alibabacloud/config/model/ListCompliancePackTemplatesResult.h - include/alibabacloud/config/model/ListCompliancePacksRequest.h - include/alibabacloud/config/model/ListCompliancePacksResult.h - include/alibabacloud/config/model/ListConfigDeliveryChannelsRequest.h - include/alibabacloud/config/model/ListConfigDeliveryChannelsResult.h - include/alibabacloud/config/model/ListConfigRuleEvaluationResultsRequest.h - include/alibabacloud/config/model/ListConfigRuleEvaluationResultsResult.h + include/alibabacloud/config/model/ListConfigRulesRequest.h + include/alibabacloud/config/model/ListConfigRulesResult.h include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h include/alibabacloud/config/model/ListDiscoveredResourcesResult.h - include/alibabacloud/config/model/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/ListTagResourcesRequest.h - include/alibabacloud/config/model/ListTagResourcesResult.h - include/alibabacloud/config/model/RevertAggregateEvaluationResultsRequest.h - include/alibabacloud/config/model/RevertAggregateEvaluationResultsResult.h - include/alibabacloud/config/model/RevertEvaluationResultsRequest.h - 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/TagResourcesRequest.h - include/alibabacloud/config/model/TagResourcesResult.h - include/alibabacloud/config/model/UntagResourcesRequest.h - include/alibabacloud/config/model/UntagResourcesResult.h - include/alibabacloud/config/model/UpdateAggregateCompliancePackRequest.h - include/alibabacloud/config/model/UpdateAggregateCompliancePackResult.h - include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelRequest.h - include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelResult.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 - include/alibabacloud/config/model/UpdateCompliancePackResult.h - include/alibabacloud/config/model/UpdateConfigDeliveryChannelRequest.h - include/alibabacloud/config/model/UpdateConfigDeliveryChannelResult.h - include/alibabacloud/config/model/UpdateConfigRuleRequest.h - include/alibabacloud/config/model/UpdateConfigRuleResult.h ) + include/alibabacloud/config/model/PutConfigRuleRequest.h + include/alibabacloud/config/model/PutConfigRuleResult.h + include/alibabacloud/config/model/PutConfigurationRecorderRequest.h + include/alibabacloud/config/model/PutConfigurationRecorderResult.h + include/alibabacloud/config/model/PutDeliveryChannelRequest.h + include/alibabacloud/config/model/PutDeliveryChannelResult.h + include/alibabacloud/config/model/PutEvaluationsRequest.h + include/alibabacloud/config/model/PutEvaluationsResult.h + include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h + include/alibabacloud/config/model/StartConfigRuleEvaluationResult.h + include/alibabacloud/config/model/StartConfigurationRecorderRequest.h + include/alibabacloud/config/model/StartConfigurationRecorderResult.h + include/alibabacloud/config/model/StopConfigRulesRequest.h + include/alibabacloud/config/model/StopConfigRulesResult.h ) set(config_src src/ConfigClient.cc - src/model/ActiveAggregateConfigRulesRequest.cc - src/model/ActiveAggregateConfigRulesResult.cc - src/model/AttachAggregateConfigRuleToCompliancePackRequest.cc - src/model/AttachAggregateConfigRuleToCompliancePackResult.cc - src/model/AttachConfigRuleToCompliancePackRequest.cc - src/model/AttachConfigRuleToCompliancePackResult.cc - src/model/CreateAggregateCompliancePackRequest.cc - src/model/CreateAggregateCompliancePackResult.cc - src/model/CreateAggregateConfigDeliveryChannelRequest.cc - src/model/CreateAggregateConfigDeliveryChannelResult.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/CreateConfigDeliveryChannelRequest.cc - src/model/CreateConfigDeliveryChannelResult.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 - src/model/DeactiveConfigRulesResult.cc - src/model/DeleteAggregateCompliancePacksRequest.cc - 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 - src/model/DetachConfigRuleToCompliancePackResult.cc - src/model/GenerateAggregateCompliancePackReportRequest.cc - src/model/GenerateAggregateCompliancePackReportResult.cc - src/model/GenerateAggregateConfigRulesReportRequest.cc - src/model/GenerateAggregateConfigRulesReportResult.cc - src/model/GenerateCompliancePackReportRequest.cc - src/model/GenerateCompliancePackReportResult.cc - src/model/GenerateConfigRulesReportRequest.cc - src/model/GenerateConfigRulesReportResult.cc - src/model/GetAggregateAccountComplianceByPackRequest.cc - src/model/GetAggregateAccountComplianceByPackResult.cc - src/model/GetAggregateCompliancePackRequest.cc - src/model/GetAggregateCompliancePackResult.cc - src/model/GetAggregateCompliancePackReportRequest.cc - src/model/GetAggregateCompliancePackReportResult.cc - src/model/GetAggregateConfigDeliveryChannelRequest.cc - src/model/GetAggregateConfigDeliveryChannelResult.cc - src/model/GetAggregateConfigRuleRequest.cc - src/model/GetAggregateConfigRuleResult.cc - src/model/GetAggregateConfigRuleComplianceByPackRequest.cc - src/model/GetAggregateConfigRuleComplianceByPackResult.cc - src/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.cc - src/model/GetAggregateConfigRuleSummaryByRiskLevelResult.cc - src/model/GetAggregateConfigRulesReportRequest.cc - src/model/GetAggregateConfigRulesReportResult.cc + src/model/ActiveConfigRulesRequest.cc + src/model/ActiveConfigRulesResult.cc + src/model/DeleteConfigRulesRequest.cc + src/model/DeleteConfigRulesResult.cc + src/model/DescribeComplianceRequest.cc + src/model/DescribeComplianceResult.cc + src/model/DescribeComplianceSummaryRequest.cc + src/model/DescribeComplianceSummaryResult.cc + src/model/DescribeConfigRuleRequest.cc + src/model/DescribeConfigRuleResult.cc + src/model/DescribeConfigurationRecorderRequest.cc + src/model/DescribeConfigurationRecorderResult.cc + src/model/DescribeDeliveryChannelsRequest.cc + src/model/DescribeDeliveryChannelsResult.cc + src/model/DescribeDiscoveredResourceRequest.cc + src/model/DescribeDiscoveredResourceResult.cc + src/model/DescribeEvaluationResultsRequest.cc + src/model/DescribeEvaluationResultsResult.cc src/model/GetAggregateDiscoveredResourceRequest.cc src/model/GetAggregateDiscoveredResourceResult.cc - src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc - src/model/GetAggregateResourceComplianceByConfigRuleResult.cc - src/model/GetAggregateResourceComplianceByPackRequest.cc - src/model/GetAggregateResourceComplianceByPackResult.cc - src/model/GetAggregateResourceComplianceGroupByRegionRequest.cc - src/model/GetAggregateResourceComplianceGroupByRegionResult.cc - src/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.cc - src/model/GetAggregateResourceComplianceGroupByResourceTypeResult.cc - src/model/GetAggregateResourceComplianceTimelineRequest.cc - src/model/GetAggregateResourceComplianceTimelineResult.cc - src/model/GetAggregateResourceConfigurationTimelineRequest.cc - src/model/GetAggregateResourceConfigurationTimelineResult.cc - src/model/GetAggregateResourceCountsGroupByRegionRequest.cc - src/model/GetAggregateResourceCountsGroupByRegionResult.cc - src/model/GetAggregateResourceCountsGroupByResourceTypeRequest.cc - src/model/GetAggregateResourceCountsGroupByResourceTypeResult.cc - src/model/GetAggregatorRequest.cc - src/model/GetAggregatorResult.cc - src/model/GetCompliancePackRequest.cc - src/model/GetCompliancePackResult.cc - src/model/GetCompliancePackReportRequest.cc - src/model/GetCompliancePackReportResult.cc - src/model/GetConfigDeliveryChannelRequest.cc - src/model/GetConfigDeliveryChannelResult.cc - src/model/GetConfigRuleRequest.cc - src/model/GetConfigRuleResult.cc - src/model/GetConfigRuleComplianceByPackRequest.cc - src/model/GetConfigRuleComplianceByPackResult.cc - src/model/GetConfigRuleSummaryByRiskLevelRequest.cc - 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 - src/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.cc - src/model/GetManagedRuleRequest.cc - src/model/GetManagedRuleResult.cc - src/model/GetResourceComplianceByConfigRuleRequest.cc - src/model/GetResourceComplianceByConfigRuleResult.cc - src/model/GetResourceComplianceByPackRequest.cc - src/model/GetResourceComplianceByPackResult.cc - src/model/GetResourceComplianceGroupByRegionRequest.cc - src/model/GetResourceComplianceGroupByRegionResult.cc - src/model/GetResourceComplianceGroupByResourceTypeRequest.cc - src/model/GetResourceComplianceGroupByResourceTypeResult.cc + src/model/GetDiscoveredResourceCountsRequest.cc + src/model/GetDiscoveredResourceCountsResult.cc + src/model/GetDiscoveredResourceSummaryRequest.cc + src/model/GetDiscoveredResourceSummaryResult.cc src/model/GetResourceComplianceTimelineRequest.cc src/model/GetResourceComplianceTimelineResult.cc src/model/GetResourceConfigurationTimelineRequest.cc src/model/GetResourceConfigurationTimelineResult.cc - src/model/IgnoreAggregateEvaluationResultsRequest.cc - src/model/IgnoreAggregateEvaluationResultsResult.cc - src/model/IgnoreEvaluationResultsRequest.cc - src/model/IgnoreEvaluationResultsResult.cc - src/model/ListAggregateCompliancePacksRequest.cc - src/model/ListAggregateCompliancePacksResult.cc - src/model/ListAggregateConfigDeliveryChannelsRequest.cc - src/model/ListAggregateConfigDeliveryChannelsResult.cc - src/model/ListAggregateConfigRuleEvaluationResultsRequest.cc - src/model/ListAggregateConfigRuleEvaluationResultsResult.cc - src/model/ListAggregateConfigRulesRequest.cc - src/model/ListAggregateConfigRulesResult.cc + src/model/GetSupportedResourceTypesRequest.cc + src/model/GetSupportedResourceTypesResult.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 - src/model/ListAggregatorsResult.cc - src/model/ListCompliancePackTemplatesRequest.cc - src/model/ListCompliancePackTemplatesResult.cc - src/model/ListCompliancePacksRequest.cc - src/model/ListCompliancePacksResult.cc - src/model/ListConfigDeliveryChannelsRequest.cc - src/model/ListConfigDeliveryChannelsResult.cc - src/model/ListConfigRuleEvaluationResultsRequest.cc - src/model/ListConfigRuleEvaluationResultsResult.cc + src/model/ListConfigRulesRequest.cc + src/model/ListConfigRulesResult.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/ListTagResourcesRequest.cc - src/model/ListTagResourcesResult.cc - src/model/RevertAggregateEvaluationResultsRequest.cc - src/model/RevertAggregateEvaluationResultsResult.cc - src/model/RevertEvaluationResultsRequest.cc - 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/TagResourcesRequest.cc - src/model/TagResourcesResult.cc - src/model/UntagResourcesRequest.cc - src/model/UntagResourcesResult.cc - src/model/UpdateAggregateCompliancePackRequest.cc - src/model/UpdateAggregateCompliancePackResult.cc - src/model/UpdateAggregateConfigDeliveryChannelRequest.cc - src/model/UpdateAggregateConfigDeliveryChannelResult.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 - src/model/UpdateCompliancePackResult.cc - src/model/UpdateConfigDeliveryChannelRequest.cc - src/model/UpdateConfigDeliveryChannelResult.cc - src/model/UpdateConfigRuleRequest.cc - src/model/UpdateConfigRuleResult.cc ) + src/model/PutConfigRuleRequest.cc + src/model/PutConfigRuleResult.cc + src/model/PutConfigurationRecorderRequest.cc + src/model/PutConfigurationRecorderResult.cc + src/model/PutDeliveryChannelRequest.cc + src/model/PutDeliveryChannelResult.cc + src/model/PutEvaluationsRequest.cc + src/model/PutEvaluationsResult.cc + src/model/StartConfigRuleEvaluationRequest.cc + src/model/StartConfigRuleEvaluationResult.cc + src/model/StartConfigurationRecorderRequest.cc + src/model/StartConfigurationRecorderResult.cc + src/model/StopConfigRulesRequest.cc + src/model/StopConfigRulesResult.cc ) add_library(config ${LIB_TYPE} ${config_public_header} diff --git a/config/include/alibabacloud/config/ConfigClient.h b/config/include/alibabacloud/config/ConfigClient.h index 520fe4820..598c259bd 100644 --- a/config/include/alibabacloud/config/ConfigClient.h +++ b/config/include/alibabacloud/config/ConfigClient.h @@ -22,198 +22,58 @@ #include #include #include "ConfigExport.h" -#include "model/ActiveAggregateConfigRulesRequest.h" -#include "model/ActiveAggregateConfigRulesResult.h" -#include "model/AttachAggregateConfigRuleToCompliancePackRequest.h" -#include "model/AttachAggregateConfigRuleToCompliancePackResult.h" -#include "model/AttachConfigRuleToCompliancePackRequest.h" -#include "model/AttachConfigRuleToCompliancePackResult.h" -#include "model/CreateAggregateCompliancePackRequest.h" -#include "model/CreateAggregateCompliancePackResult.h" -#include "model/CreateAggregateConfigDeliveryChannelRequest.h" -#include "model/CreateAggregateConfigDeliveryChannelResult.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/CreateConfigDeliveryChannelRequest.h" -#include "model/CreateConfigDeliveryChannelResult.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" -#include "model/DeactiveConfigRulesResult.h" -#include "model/DeleteAggregateCompliancePacksRequest.h" -#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" -#include "model/DetachConfigRuleToCompliancePackResult.h" -#include "model/GenerateAggregateCompliancePackReportRequest.h" -#include "model/GenerateAggregateCompliancePackReportResult.h" -#include "model/GenerateAggregateConfigRulesReportRequest.h" -#include "model/GenerateAggregateConfigRulesReportResult.h" -#include "model/GenerateCompliancePackReportRequest.h" -#include "model/GenerateCompliancePackReportResult.h" -#include "model/GenerateConfigRulesReportRequest.h" -#include "model/GenerateConfigRulesReportResult.h" -#include "model/GetAggregateAccountComplianceByPackRequest.h" -#include "model/GetAggregateAccountComplianceByPackResult.h" -#include "model/GetAggregateCompliancePackRequest.h" -#include "model/GetAggregateCompliancePackResult.h" -#include "model/GetAggregateCompliancePackReportRequest.h" -#include "model/GetAggregateCompliancePackReportResult.h" -#include "model/GetAggregateConfigDeliveryChannelRequest.h" -#include "model/GetAggregateConfigDeliveryChannelResult.h" -#include "model/GetAggregateConfigRuleRequest.h" -#include "model/GetAggregateConfigRuleResult.h" -#include "model/GetAggregateConfigRuleComplianceByPackRequest.h" -#include "model/GetAggregateConfigRuleComplianceByPackResult.h" -#include "model/GetAggregateConfigRuleSummaryByRiskLevelRequest.h" -#include "model/GetAggregateConfigRuleSummaryByRiskLevelResult.h" -#include "model/GetAggregateConfigRulesReportRequest.h" -#include "model/GetAggregateConfigRulesReportResult.h" +#include "model/ActiveConfigRulesRequest.h" +#include "model/ActiveConfigRulesResult.h" +#include "model/DeleteConfigRulesRequest.h" +#include "model/DeleteConfigRulesResult.h" +#include "model/DescribeComplianceRequest.h" +#include "model/DescribeComplianceResult.h" +#include "model/DescribeComplianceSummaryRequest.h" +#include "model/DescribeComplianceSummaryResult.h" +#include "model/DescribeConfigRuleRequest.h" +#include "model/DescribeConfigRuleResult.h" +#include "model/DescribeConfigurationRecorderRequest.h" +#include "model/DescribeConfigurationRecorderResult.h" +#include "model/DescribeDeliveryChannelsRequest.h" +#include "model/DescribeDeliveryChannelsResult.h" +#include "model/DescribeDiscoveredResourceRequest.h" +#include "model/DescribeDiscoveredResourceResult.h" +#include "model/DescribeEvaluationResultsRequest.h" +#include "model/DescribeEvaluationResultsResult.h" #include "model/GetAggregateDiscoveredResourceRequest.h" #include "model/GetAggregateDiscoveredResourceResult.h" -#include "model/GetAggregateResourceComplianceByConfigRuleRequest.h" -#include "model/GetAggregateResourceComplianceByConfigRuleResult.h" -#include "model/GetAggregateResourceComplianceByPackRequest.h" -#include "model/GetAggregateResourceComplianceByPackResult.h" -#include "model/GetAggregateResourceComplianceGroupByRegionRequest.h" -#include "model/GetAggregateResourceComplianceGroupByRegionResult.h" -#include "model/GetAggregateResourceComplianceGroupByResourceTypeRequest.h" -#include "model/GetAggregateResourceComplianceGroupByResourceTypeResult.h" -#include "model/GetAggregateResourceComplianceTimelineRequest.h" -#include "model/GetAggregateResourceComplianceTimelineResult.h" -#include "model/GetAggregateResourceConfigurationTimelineRequest.h" -#include "model/GetAggregateResourceConfigurationTimelineResult.h" -#include "model/GetAggregateResourceCountsGroupByRegionRequest.h" -#include "model/GetAggregateResourceCountsGroupByRegionResult.h" -#include "model/GetAggregateResourceCountsGroupByResourceTypeRequest.h" -#include "model/GetAggregateResourceCountsGroupByResourceTypeResult.h" -#include "model/GetAggregatorRequest.h" -#include "model/GetAggregatorResult.h" -#include "model/GetCompliancePackRequest.h" -#include "model/GetCompliancePackResult.h" -#include "model/GetCompliancePackReportRequest.h" -#include "model/GetCompliancePackReportResult.h" -#include "model/GetConfigDeliveryChannelRequest.h" -#include "model/GetConfigDeliveryChannelResult.h" -#include "model/GetConfigRuleRequest.h" -#include "model/GetConfigRuleResult.h" -#include "model/GetConfigRuleComplianceByPackRequest.h" -#include "model/GetConfigRuleComplianceByPackResult.h" -#include "model/GetConfigRuleSummaryByRiskLevelRequest.h" -#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" -#include "model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h" -#include "model/GetManagedRuleRequest.h" -#include "model/GetManagedRuleResult.h" -#include "model/GetResourceComplianceByConfigRuleRequest.h" -#include "model/GetResourceComplianceByConfigRuleResult.h" -#include "model/GetResourceComplianceByPackRequest.h" -#include "model/GetResourceComplianceByPackResult.h" -#include "model/GetResourceComplianceGroupByRegionRequest.h" -#include "model/GetResourceComplianceGroupByRegionResult.h" -#include "model/GetResourceComplianceGroupByResourceTypeRequest.h" -#include "model/GetResourceComplianceGroupByResourceTypeResult.h" +#include "model/GetDiscoveredResourceCountsRequest.h" +#include "model/GetDiscoveredResourceCountsResult.h" +#include "model/GetDiscoveredResourceSummaryRequest.h" +#include "model/GetDiscoveredResourceSummaryResult.h" #include "model/GetResourceComplianceTimelineRequest.h" #include "model/GetResourceComplianceTimelineResult.h" #include "model/GetResourceConfigurationTimelineRequest.h" #include "model/GetResourceConfigurationTimelineResult.h" -#include "model/IgnoreAggregateEvaluationResultsRequest.h" -#include "model/IgnoreAggregateEvaluationResultsResult.h" -#include "model/IgnoreEvaluationResultsRequest.h" -#include "model/IgnoreEvaluationResultsResult.h" -#include "model/ListAggregateCompliancePacksRequest.h" -#include "model/ListAggregateCompliancePacksResult.h" -#include "model/ListAggregateConfigDeliveryChannelsRequest.h" -#include "model/ListAggregateConfigDeliveryChannelsResult.h" -#include "model/ListAggregateConfigRuleEvaluationResultsRequest.h" -#include "model/ListAggregateConfigRuleEvaluationResultsResult.h" -#include "model/ListAggregateConfigRulesRequest.h" -#include "model/ListAggregateConfigRulesResult.h" +#include "model/GetSupportedResourceTypesRequest.h" +#include "model/GetSupportedResourceTypesResult.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" -#include "model/ListAggregatorsResult.h" -#include "model/ListCompliancePackTemplatesRequest.h" -#include "model/ListCompliancePackTemplatesResult.h" -#include "model/ListCompliancePacksRequest.h" -#include "model/ListCompliancePacksResult.h" -#include "model/ListConfigDeliveryChannelsRequest.h" -#include "model/ListConfigDeliveryChannelsResult.h" -#include "model/ListConfigRuleEvaluationResultsRequest.h" -#include "model/ListConfigRuleEvaluationResultsResult.h" +#include "model/ListConfigRulesRequest.h" +#include "model/ListConfigRulesResult.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/ListTagResourcesRequest.h" -#include "model/ListTagResourcesResult.h" -#include "model/RevertAggregateEvaluationResultsRequest.h" -#include "model/RevertAggregateEvaluationResultsResult.h" -#include "model/RevertEvaluationResultsRequest.h" -#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/TagResourcesRequest.h" -#include "model/TagResourcesResult.h" -#include "model/UntagResourcesRequest.h" -#include "model/UntagResourcesResult.h" -#include "model/UpdateAggregateCompliancePackRequest.h" -#include "model/UpdateAggregateCompliancePackResult.h" -#include "model/UpdateAggregateConfigDeliveryChannelRequest.h" -#include "model/UpdateAggregateConfigDeliveryChannelResult.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" -#include "model/UpdateCompliancePackResult.h" -#include "model/UpdateConfigDeliveryChannelRequest.h" -#include "model/UpdateConfigDeliveryChannelResult.h" -#include "model/UpdateConfigRuleRequest.h" -#include "model/UpdateConfigRuleResult.h" +#include "model/PutConfigRuleRequest.h" +#include "model/PutConfigRuleResult.h" +#include "model/PutConfigurationRecorderRequest.h" +#include "model/PutConfigurationRecorderResult.h" +#include "model/PutDeliveryChannelRequest.h" +#include "model/PutDeliveryChannelResult.h" +#include "model/PutEvaluationsRequest.h" +#include "model/PutEvaluationsResult.h" +#include "model/StartConfigRuleEvaluationRequest.h" +#include "model/StartConfigRuleEvaluationResult.h" +#include "model/StartConfigurationRecorderRequest.h" +#include "model/StartConfigurationRecorderResult.h" +#include "model/StopConfigRulesRequest.h" +#include "model/StopConfigRulesResult.h" namespace AlibabaCloud @@ -223,587 +83,167 @@ namespace AlibabaCloud class ALIBABACLOUD_CONFIG_EXPORT ConfigClient : public RpcServiceClient { public: - typedef Outcome ActiveAggregateConfigRulesOutcome; - typedef std::future ActiveAggregateConfigRulesOutcomeCallable; - typedef std::function&)> ActiveAggregateConfigRulesAsyncHandler; - typedef Outcome AttachAggregateConfigRuleToCompliancePackOutcome; - typedef std::future AttachAggregateConfigRuleToCompliancePackOutcomeCallable; - typedef std::function&)> AttachAggregateConfigRuleToCompliancePackAsyncHandler; - typedef Outcome AttachConfigRuleToCompliancePackOutcome; - typedef std::future AttachConfigRuleToCompliancePackOutcomeCallable; - typedef std::function&)> AttachConfigRuleToCompliancePackAsyncHandler; - typedef Outcome CreateAggregateCompliancePackOutcome; - typedef std::future CreateAggregateCompliancePackOutcomeCallable; - typedef std::function&)> CreateAggregateCompliancePackAsyncHandler; - typedef Outcome CreateAggregateConfigDeliveryChannelOutcome; - typedef std::future CreateAggregateConfigDeliveryChannelOutcomeCallable; - typedef std::function&)> CreateAggregateConfigDeliveryChannelAsyncHandler; - 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; - typedef Outcome CreateCompliancePackOutcome; - typedef std::future CreateCompliancePackOutcomeCallable; - typedef std::function&)> CreateCompliancePackAsyncHandler; - typedef Outcome CreateConfigDeliveryChannelOutcome; - typedef std::future CreateConfigDeliveryChannelOutcomeCallable; - typedef std::function&)> CreateConfigDeliveryChannelAsyncHandler; - 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; - typedef Outcome DeactiveConfigRulesOutcome; - typedef std::future DeactiveConfigRulesOutcomeCallable; - typedef std::function&)> DeactiveConfigRulesAsyncHandler; - typedef Outcome DeleteAggregateCompliancePacksOutcome; - typedef std::future DeleteAggregateCompliancePacksOutcomeCallable; - typedef std::function&)> DeleteAggregateCompliancePacksAsyncHandler; - 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; - typedef Outcome DetachConfigRuleToCompliancePackOutcome; - typedef std::future DetachConfigRuleToCompliancePackOutcomeCallable; - typedef std::function&)> DetachConfigRuleToCompliancePackAsyncHandler; - typedef Outcome GenerateAggregateCompliancePackReportOutcome; - typedef std::future GenerateAggregateCompliancePackReportOutcomeCallable; - typedef std::function&)> GenerateAggregateCompliancePackReportAsyncHandler; - typedef Outcome GenerateAggregateConfigRulesReportOutcome; - typedef std::future GenerateAggregateConfigRulesReportOutcomeCallable; - typedef std::function&)> GenerateAggregateConfigRulesReportAsyncHandler; - typedef Outcome GenerateCompliancePackReportOutcome; - typedef std::future GenerateCompliancePackReportOutcomeCallable; - typedef std::function&)> GenerateCompliancePackReportAsyncHandler; - typedef Outcome GenerateConfigRulesReportOutcome; - typedef std::future GenerateConfigRulesReportOutcomeCallable; - typedef std::function&)> GenerateConfigRulesReportAsyncHandler; - typedef Outcome GetAggregateAccountComplianceByPackOutcome; - typedef std::future GetAggregateAccountComplianceByPackOutcomeCallable; - typedef std::function&)> GetAggregateAccountComplianceByPackAsyncHandler; - typedef Outcome GetAggregateCompliancePackOutcome; - typedef std::future GetAggregateCompliancePackOutcomeCallable; - typedef std::function&)> GetAggregateCompliancePackAsyncHandler; - typedef Outcome GetAggregateCompliancePackReportOutcome; - typedef std::future GetAggregateCompliancePackReportOutcomeCallable; - typedef std::function&)> GetAggregateCompliancePackReportAsyncHandler; - typedef Outcome GetAggregateConfigDeliveryChannelOutcome; - typedef std::future GetAggregateConfigDeliveryChannelOutcomeCallable; - typedef std::function&)> GetAggregateConfigDeliveryChannelAsyncHandler; - typedef Outcome GetAggregateConfigRuleOutcome; - typedef std::future GetAggregateConfigRuleOutcomeCallable; - typedef std::function&)> GetAggregateConfigRuleAsyncHandler; - typedef Outcome GetAggregateConfigRuleComplianceByPackOutcome; - typedef std::future GetAggregateConfigRuleComplianceByPackOutcomeCallable; - typedef std::function&)> GetAggregateConfigRuleComplianceByPackAsyncHandler; - typedef Outcome GetAggregateConfigRuleSummaryByRiskLevelOutcome; - typedef std::future GetAggregateConfigRuleSummaryByRiskLevelOutcomeCallable; - typedef std::function&)> GetAggregateConfigRuleSummaryByRiskLevelAsyncHandler; - typedef Outcome GetAggregateConfigRulesReportOutcome; - typedef std::future GetAggregateConfigRulesReportOutcomeCallable; - typedef std::function&)> GetAggregateConfigRulesReportAsyncHandler; + typedef Outcome ActiveConfigRulesOutcome; + typedef std::future ActiveConfigRulesOutcomeCallable; + typedef std::function&)> ActiveConfigRulesAsyncHandler; + typedef Outcome DeleteConfigRulesOutcome; + typedef std::future DeleteConfigRulesOutcomeCallable; + typedef std::function&)> DeleteConfigRulesAsyncHandler; + typedef Outcome DescribeComplianceOutcome; + typedef std::future DescribeComplianceOutcomeCallable; + typedef std::function&)> DescribeComplianceAsyncHandler; + typedef Outcome DescribeComplianceSummaryOutcome; + typedef std::future DescribeComplianceSummaryOutcomeCallable; + typedef std::function&)> DescribeComplianceSummaryAsyncHandler; + typedef Outcome DescribeConfigRuleOutcome; + typedef std::future DescribeConfigRuleOutcomeCallable; + typedef std::function&)> DescribeConfigRuleAsyncHandler; + typedef Outcome DescribeConfigurationRecorderOutcome; + typedef std::future DescribeConfigurationRecorderOutcomeCallable; + typedef std::function&)> DescribeConfigurationRecorderAsyncHandler; + typedef Outcome DescribeDeliveryChannelsOutcome; + typedef std::future DescribeDeliveryChannelsOutcomeCallable; + typedef std::function&)> DescribeDeliveryChannelsAsyncHandler; + typedef Outcome DescribeDiscoveredResourceOutcome; + typedef std::future DescribeDiscoveredResourceOutcomeCallable; + typedef std::function&)> DescribeDiscoveredResourceAsyncHandler; + typedef Outcome DescribeEvaluationResultsOutcome; + typedef std::future DescribeEvaluationResultsOutcomeCallable; + typedef std::function&)> DescribeEvaluationResultsAsyncHandler; typedef Outcome GetAggregateDiscoveredResourceOutcome; typedef std::future GetAggregateDiscoveredResourceOutcomeCallable; typedef std::function&)> GetAggregateDiscoveredResourceAsyncHandler; - typedef Outcome GetAggregateResourceComplianceByConfigRuleOutcome; - typedef std::future GetAggregateResourceComplianceByConfigRuleOutcomeCallable; - typedef std::function&)> GetAggregateResourceComplianceByConfigRuleAsyncHandler; - typedef Outcome GetAggregateResourceComplianceByPackOutcome; - typedef std::future GetAggregateResourceComplianceByPackOutcomeCallable; - typedef std::function&)> GetAggregateResourceComplianceByPackAsyncHandler; - typedef Outcome GetAggregateResourceComplianceGroupByRegionOutcome; - typedef std::future GetAggregateResourceComplianceGroupByRegionOutcomeCallable; - typedef std::function&)> GetAggregateResourceComplianceGroupByRegionAsyncHandler; - typedef Outcome GetAggregateResourceComplianceGroupByResourceTypeOutcome; - typedef std::future GetAggregateResourceComplianceGroupByResourceTypeOutcomeCallable; - typedef std::function&)> GetAggregateResourceComplianceGroupByResourceTypeAsyncHandler; - typedef Outcome GetAggregateResourceComplianceTimelineOutcome; - typedef std::future GetAggregateResourceComplianceTimelineOutcomeCallable; - typedef std::function&)> GetAggregateResourceComplianceTimelineAsyncHandler; - typedef Outcome GetAggregateResourceConfigurationTimelineOutcome; - typedef std::future GetAggregateResourceConfigurationTimelineOutcomeCallable; - typedef std::function&)> GetAggregateResourceConfigurationTimelineAsyncHandler; - typedef Outcome GetAggregateResourceCountsGroupByRegionOutcome; - typedef std::future GetAggregateResourceCountsGroupByRegionOutcomeCallable; - typedef std::function&)> GetAggregateResourceCountsGroupByRegionAsyncHandler; - typedef Outcome GetAggregateResourceCountsGroupByResourceTypeOutcome; - typedef std::future GetAggregateResourceCountsGroupByResourceTypeOutcomeCallable; - typedef std::function&)> GetAggregateResourceCountsGroupByResourceTypeAsyncHandler; - typedef Outcome GetAggregatorOutcome; - typedef std::future GetAggregatorOutcomeCallable; - typedef std::function&)> GetAggregatorAsyncHandler; - typedef Outcome GetCompliancePackOutcome; - typedef std::future GetCompliancePackOutcomeCallable; - typedef std::function&)> GetCompliancePackAsyncHandler; - typedef Outcome GetCompliancePackReportOutcome; - typedef std::future GetCompliancePackReportOutcomeCallable; - typedef std::function&)> GetCompliancePackReportAsyncHandler; - typedef Outcome GetConfigDeliveryChannelOutcome; - typedef std::future GetConfigDeliveryChannelOutcomeCallable; - typedef std::function&)> GetConfigDeliveryChannelAsyncHandler; - typedef Outcome GetConfigRuleOutcome; - typedef std::future GetConfigRuleOutcomeCallable; - typedef std::function&)> GetConfigRuleAsyncHandler; - typedef Outcome GetConfigRuleComplianceByPackOutcome; - typedef std::future GetConfigRuleComplianceByPackOutcomeCallable; - typedef std::function&)> GetConfigRuleComplianceByPackAsyncHandler; - typedef Outcome GetConfigRuleSummaryByRiskLevelOutcome; - typedef std::future GetConfigRuleSummaryByRiskLevelOutcomeCallable; - typedef std::function&)> GetConfigRuleSummaryByRiskLevelAsyncHandler; - 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; - typedef Outcome GetDiscoveredResourceCountsGroupByResourceTypeOutcome; - typedef std::future GetDiscoveredResourceCountsGroupByResourceTypeOutcomeCallable; - typedef std::function&)> GetDiscoveredResourceCountsGroupByResourceTypeAsyncHandler; - typedef Outcome GetManagedRuleOutcome; - typedef std::future GetManagedRuleOutcomeCallable; - typedef std::function&)> GetManagedRuleAsyncHandler; - typedef Outcome GetResourceComplianceByConfigRuleOutcome; - typedef std::future GetResourceComplianceByConfigRuleOutcomeCallable; - typedef std::function&)> GetResourceComplianceByConfigRuleAsyncHandler; - typedef Outcome GetResourceComplianceByPackOutcome; - typedef std::future GetResourceComplianceByPackOutcomeCallable; - typedef std::function&)> GetResourceComplianceByPackAsyncHandler; - typedef Outcome GetResourceComplianceGroupByRegionOutcome; - typedef std::future GetResourceComplianceGroupByRegionOutcomeCallable; - typedef std::function&)> GetResourceComplianceGroupByRegionAsyncHandler; - typedef Outcome GetResourceComplianceGroupByResourceTypeOutcome; - typedef std::future GetResourceComplianceGroupByResourceTypeOutcomeCallable; - typedef std::function&)> GetResourceComplianceGroupByResourceTypeAsyncHandler; + typedef Outcome GetDiscoveredResourceCountsOutcome; + typedef std::future GetDiscoveredResourceCountsOutcomeCallable; + typedef std::function&)> GetDiscoveredResourceCountsAsyncHandler; + typedef Outcome GetDiscoveredResourceSummaryOutcome; + typedef std::future GetDiscoveredResourceSummaryOutcomeCallable; + typedef std::function&)> GetDiscoveredResourceSummaryAsyncHandler; typedef Outcome GetResourceComplianceTimelineOutcome; typedef std::future GetResourceComplianceTimelineOutcomeCallable; typedef std::function&)> GetResourceComplianceTimelineAsyncHandler; typedef Outcome GetResourceConfigurationTimelineOutcome; typedef std::future GetResourceConfigurationTimelineOutcomeCallable; typedef std::function&)> GetResourceConfigurationTimelineAsyncHandler; - typedef Outcome IgnoreAggregateEvaluationResultsOutcome; - typedef std::future IgnoreAggregateEvaluationResultsOutcomeCallable; - typedef std::function&)> IgnoreAggregateEvaluationResultsAsyncHandler; - typedef Outcome IgnoreEvaluationResultsOutcome; - typedef std::future IgnoreEvaluationResultsOutcomeCallable; - typedef std::function&)> IgnoreEvaluationResultsAsyncHandler; - typedef Outcome ListAggregateCompliancePacksOutcome; - typedef std::future ListAggregateCompliancePacksOutcomeCallable; - typedef std::function&)> ListAggregateCompliancePacksAsyncHandler; - typedef Outcome ListAggregateConfigDeliveryChannelsOutcome; - typedef std::future ListAggregateConfigDeliveryChannelsOutcomeCallable; - typedef std::function&)> ListAggregateConfigDeliveryChannelsAsyncHandler; - typedef Outcome ListAggregateConfigRuleEvaluationResultsOutcome; - typedef std::future ListAggregateConfigRuleEvaluationResultsOutcomeCallable; - typedef std::function&)> ListAggregateConfigRuleEvaluationResultsAsyncHandler; - typedef Outcome ListAggregateConfigRulesOutcome; - typedef std::future ListAggregateConfigRulesOutcomeCallable; - typedef std::function&)> ListAggregateConfigRulesAsyncHandler; + typedef Outcome GetSupportedResourceTypesOutcome; + typedef std::future GetSupportedResourceTypesOutcomeCallable; + typedef std::function&)> GetSupportedResourceTypesAsyncHandler; 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; - typedef Outcome ListAggregatorsOutcome; - typedef std::future ListAggregatorsOutcomeCallable; - typedef std::function&)> ListAggregatorsAsyncHandler; - typedef Outcome ListCompliancePackTemplatesOutcome; - typedef std::future ListCompliancePackTemplatesOutcomeCallable; - typedef std::function&)> ListCompliancePackTemplatesAsyncHandler; - typedef Outcome ListCompliancePacksOutcome; - typedef std::future ListCompliancePacksOutcomeCallable; - typedef std::function&)> ListCompliancePacksAsyncHandler; - typedef Outcome ListConfigDeliveryChannelsOutcome; - typedef std::future ListConfigDeliveryChannelsOutcomeCallable; - typedef std::function&)> ListConfigDeliveryChannelsAsyncHandler; - typedef Outcome ListConfigRuleEvaluationResultsOutcome; - typedef std::future ListConfigRuleEvaluationResultsOutcomeCallable; - typedef std::function&)> ListConfigRuleEvaluationResultsAsyncHandler; + typedef Outcome ListConfigRulesOutcome; + typedef std::future ListConfigRulesOutcomeCallable; + typedef std::function&)> ListConfigRulesAsyncHandler; 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; - typedef Outcome ListTagResourcesOutcome; - typedef std::future ListTagResourcesOutcomeCallable; - typedef std::function&)> ListTagResourcesAsyncHandler; - typedef Outcome RevertAggregateEvaluationResultsOutcome; - typedef std::future RevertAggregateEvaluationResultsOutcomeCallable; - typedef std::function&)> RevertAggregateEvaluationResultsAsyncHandler; - typedef Outcome RevertEvaluationResultsOutcome; - typedef std::future RevertEvaluationResultsOutcomeCallable; - typedef std::function&)> RevertEvaluationResultsAsyncHandler; - 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 TagResourcesOutcome; - typedef std::future TagResourcesOutcomeCallable; - typedef std::function&)> TagResourcesAsyncHandler; - typedef Outcome UntagResourcesOutcome; - typedef std::future UntagResourcesOutcomeCallable; - typedef std::function&)> UntagResourcesAsyncHandler; - typedef Outcome UpdateAggregateCompliancePackOutcome; - typedef std::future UpdateAggregateCompliancePackOutcomeCallable; - typedef std::function&)> UpdateAggregateCompliancePackAsyncHandler; - typedef Outcome UpdateAggregateConfigDeliveryChannelOutcome; - typedef std::future UpdateAggregateConfigDeliveryChannelOutcomeCallable; - typedef std::function&)> UpdateAggregateConfigDeliveryChannelAsyncHandler; - 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; - typedef Outcome UpdateCompliancePackOutcome; - typedef std::future UpdateCompliancePackOutcomeCallable; - typedef std::function&)> UpdateCompliancePackAsyncHandler; - typedef Outcome UpdateConfigDeliveryChannelOutcome; - typedef std::future UpdateConfigDeliveryChannelOutcomeCallable; - typedef std::function&)> UpdateConfigDeliveryChannelAsyncHandler; - typedef Outcome UpdateConfigRuleOutcome; - typedef std::future UpdateConfigRuleOutcomeCallable; - typedef std::function&)> UpdateConfigRuleAsyncHandler; + typedef Outcome PutConfigRuleOutcome; + typedef std::future PutConfigRuleOutcomeCallable; + typedef std::function&)> PutConfigRuleAsyncHandler; + typedef Outcome PutConfigurationRecorderOutcome; + typedef std::future PutConfigurationRecorderOutcomeCallable; + typedef std::function&)> PutConfigurationRecorderAsyncHandler; + typedef Outcome PutDeliveryChannelOutcome; + typedef std::future PutDeliveryChannelOutcomeCallable; + typedef std::function&)> PutDeliveryChannelAsyncHandler; + typedef Outcome PutEvaluationsOutcome; + typedef std::future PutEvaluationsOutcomeCallable; + typedef std::function&)> PutEvaluationsAsyncHandler; + typedef Outcome StartConfigRuleEvaluationOutcome; + typedef std::future StartConfigRuleEvaluationOutcomeCallable; + typedef std::function&)> StartConfigRuleEvaluationAsyncHandler; + typedef Outcome StartConfigurationRecorderOutcome; + typedef std::future StartConfigurationRecorderOutcomeCallable; + typedef std::function&)> StartConfigurationRecorderAsyncHandler; + typedef Outcome StopConfigRulesOutcome; + typedef std::future StopConfigRulesOutcomeCallable; + typedef std::function&)> StopConfigRulesAsyncHandler; ConfigClient(const Credentials &credentials, const ClientConfiguration &configuration); ConfigClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); ConfigClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~ConfigClient(); - ActiveAggregateConfigRulesOutcome activeAggregateConfigRules(const Model::ActiveAggregateConfigRulesRequest &request)const; - void activeAggregateConfigRulesAsync(const Model::ActiveAggregateConfigRulesRequest& request, const ActiveAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ActiveAggregateConfigRulesOutcomeCallable activeAggregateConfigRulesCallable(const Model::ActiveAggregateConfigRulesRequest& request) const; - AttachAggregateConfigRuleToCompliancePackOutcome attachAggregateConfigRuleToCompliancePack(const Model::AttachAggregateConfigRuleToCompliancePackRequest &request)const; - void attachAggregateConfigRuleToCompliancePackAsync(const Model::AttachAggregateConfigRuleToCompliancePackRequest& request, const AttachAggregateConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AttachAggregateConfigRuleToCompliancePackOutcomeCallable attachAggregateConfigRuleToCompliancePackCallable(const Model::AttachAggregateConfigRuleToCompliancePackRequest& request) const; - AttachConfigRuleToCompliancePackOutcome attachConfigRuleToCompliancePack(const Model::AttachConfigRuleToCompliancePackRequest &request)const; - void attachConfigRuleToCompliancePackAsync(const Model::AttachConfigRuleToCompliancePackRequest& request, const AttachConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AttachConfigRuleToCompliancePackOutcomeCallable attachConfigRuleToCompliancePackCallable(const Model::AttachConfigRuleToCompliancePackRequest& request) const; - CreateAggregateCompliancePackOutcome createAggregateCompliancePack(const Model::CreateAggregateCompliancePackRequest &request)const; - void createAggregateCompliancePackAsync(const Model::CreateAggregateCompliancePackRequest& request, const CreateAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateAggregateCompliancePackOutcomeCallable createAggregateCompliancePackCallable(const Model::CreateAggregateCompliancePackRequest& request) const; - CreateAggregateConfigDeliveryChannelOutcome createAggregateConfigDeliveryChannel(const Model::CreateAggregateConfigDeliveryChannelRequest &request)const; - void createAggregateConfigDeliveryChannelAsync(const Model::CreateAggregateConfigDeliveryChannelRequest& request, const CreateAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateAggregateConfigDeliveryChannelOutcomeCallable createAggregateConfigDeliveryChannelCallable(const Model::CreateAggregateConfigDeliveryChannelRequest& request) const; - 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; - CreateCompliancePackOutcome createCompliancePack(const Model::CreateCompliancePackRequest &request)const; - void createCompliancePackAsync(const Model::CreateCompliancePackRequest& request, const CreateCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateCompliancePackOutcomeCallable createCompliancePackCallable(const Model::CreateCompliancePackRequest& request) const; - CreateConfigDeliveryChannelOutcome createConfigDeliveryChannel(const Model::CreateConfigDeliveryChannelRequest &request)const; - void createConfigDeliveryChannelAsync(const Model::CreateConfigDeliveryChannelRequest& request, const CreateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateConfigDeliveryChannelOutcomeCallable createConfigDeliveryChannelCallable(const Model::CreateConfigDeliveryChannelRequest& request) const; - 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; - DeactiveConfigRulesOutcome deactiveConfigRules(const Model::DeactiveConfigRulesRequest &request)const; - void deactiveConfigRulesAsync(const Model::DeactiveConfigRulesRequest& request, const DeactiveConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeactiveConfigRulesOutcomeCallable deactiveConfigRulesCallable(const Model::DeactiveConfigRulesRequest& request) const; - DeleteAggregateCompliancePacksOutcome deleteAggregateCompliancePacks(const Model::DeleteAggregateCompliancePacksRequest &request)const; - void deleteAggregateCompliancePacksAsync(const Model::DeleteAggregateCompliancePacksRequest& request, const DeleteAggregateCompliancePacksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteAggregateCompliancePacksOutcomeCallable deleteAggregateCompliancePacksCallable(const Model::DeleteAggregateCompliancePacksRequest& request) const; - 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; - DetachConfigRuleToCompliancePackOutcome detachConfigRuleToCompliancePack(const Model::DetachConfigRuleToCompliancePackRequest &request)const; - void detachConfigRuleToCompliancePackAsync(const Model::DetachConfigRuleToCompliancePackRequest& request, const DetachConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DetachConfigRuleToCompliancePackOutcomeCallable detachConfigRuleToCompliancePackCallable(const Model::DetachConfigRuleToCompliancePackRequest& request) const; - GenerateAggregateCompliancePackReportOutcome generateAggregateCompliancePackReport(const Model::GenerateAggregateCompliancePackReportRequest &request)const; - void generateAggregateCompliancePackReportAsync(const Model::GenerateAggregateCompliancePackReportRequest& request, const GenerateAggregateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GenerateAggregateCompliancePackReportOutcomeCallable generateAggregateCompliancePackReportCallable(const Model::GenerateAggregateCompliancePackReportRequest& request) const; - GenerateAggregateConfigRulesReportOutcome generateAggregateConfigRulesReport(const Model::GenerateAggregateConfigRulesReportRequest &request)const; - void generateAggregateConfigRulesReportAsync(const Model::GenerateAggregateConfigRulesReportRequest& request, const GenerateAggregateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GenerateAggregateConfigRulesReportOutcomeCallable generateAggregateConfigRulesReportCallable(const Model::GenerateAggregateConfigRulesReportRequest& request) const; - GenerateCompliancePackReportOutcome generateCompliancePackReport(const Model::GenerateCompliancePackReportRequest &request)const; - void generateCompliancePackReportAsync(const Model::GenerateCompliancePackReportRequest& request, const GenerateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GenerateCompliancePackReportOutcomeCallable generateCompliancePackReportCallable(const Model::GenerateCompliancePackReportRequest& request) const; - GenerateConfigRulesReportOutcome generateConfigRulesReport(const Model::GenerateConfigRulesReportRequest &request)const; - void generateConfigRulesReportAsync(const Model::GenerateConfigRulesReportRequest& request, const GenerateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GenerateConfigRulesReportOutcomeCallable generateConfigRulesReportCallable(const Model::GenerateConfigRulesReportRequest& request) const; - GetAggregateAccountComplianceByPackOutcome getAggregateAccountComplianceByPack(const Model::GetAggregateAccountComplianceByPackRequest &request)const; - void getAggregateAccountComplianceByPackAsync(const Model::GetAggregateAccountComplianceByPackRequest& request, const GetAggregateAccountComplianceByPackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateAccountComplianceByPackOutcomeCallable getAggregateAccountComplianceByPackCallable(const Model::GetAggregateAccountComplianceByPackRequest& request) const; - GetAggregateCompliancePackOutcome getAggregateCompliancePack(const Model::GetAggregateCompliancePackRequest &request)const; - void getAggregateCompliancePackAsync(const Model::GetAggregateCompliancePackRequest& request, const GetAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateCompliancePackOutcomeCallable getAggregateCompliancePackCallable(const Model::GetAggregateCompliancePackRequest& request) const; - GetAggregateCompliancePackReportOutcome getAggregateCompliancePackReport(const Model::GetAggregateCompliancePackReportRequest &request)const; - void getAggregateCompliancePackReportAsync(const Model::GetAggregateCompliancePackReportRequest& request, const GetAggregateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateCompliancePackReportOutcomeCallable getAggregateCompliancePackReportCallable(const Model::GetAggregateCompliancePackReportRequest& request) const; - GetAggregateConfigDeliveryChannelOutcome getAggregateConfigDeliveryChannel(const Model::GetAggregateConfigDeliveryChannelRequest &request)const; - void getAggregateConfigDeliveryChannelAsync(const Model::GetAggregateConfigDeliveryChannelRequest& request, const GetAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateConfigDeliveryChannelOutcomeCallable getAggregateConfigDeliveryChannelCallable(const Model::GetAggregateConfigDeliveryChannelRequest& request) const; - GetAggregateConfigRuleOutcome getAggregateConfigRule(const Model::GetAggregateConfigRuleRequest &request)const; - void getAggregateConfigRuleAsync(const Model::GetAggregateConfigRuleRequest& request, const GetAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateConfigRuleOutcomeCallable getAggregateConfigRuleCallable(const Model::GetAggregateConfigRuleRequest& request) const; - GetAggregateConfigRuleComplianceByPackOutcome getAggregateConfigRuleComplianceByPack(const Model::GetAggregateConfigRuleComplianceByPackRequest &request)const; - void getAggregateConfigRuleComplianceByPackAsync(const Model::GetAggregateConfigRuleComplianceByPackRequest& request, const GetAggregateConfigRuleComplianceByPackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateConfigRuleComplianceByPackOutcomeCallable getAggregateConfigRuleComplianceByPackCallable(const Model::GetAggregateConfigRuleComplianceByPackRequest& request) const; - GetAggregateConfigRuleSummaryByRiskLevelOutcome getAggregateConfigRuleSummaryByRiskLevel(const Model::GetAggregateConfigRuleSummaryByRiskLevelRequest &request)const; - void getAggregateConfigRuleSummaryByRiskLevelAsync(const Model::GetAggregateConfigRuleSummaryByRiskLevelRequest& request, const GetAggregateConfigRuleSummaryByRiskLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateConfigRuleSummaryByRiskLevelOutcomeCallable getAggregateConfigRuleSummaryByRiskLevelCallable(const Model::GetAggregateConfigRuleSummaryByRiskLevelRequest& request) const; - 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; + ActiveConfigRulesOutcome activeConfigRules(const Model::ActiveConfigRulesRequest &request)const; + void activeConfigRulesAsync(const Model::ActiveConfigRulesRequest& request, const ActiveConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActiveConfigRulesOutcomeCallable activeConfigRulesCallable(const Model::ActiveConfigRulesRequest& request) const; + DeleteConfigRulesOutcome deleteConfigRules(const Model::DeleteConfigRulesRequest &request)const; + void deleteConfigRulesAsync(const Model::DeleteConfigRulesRequest& request, const DeleteConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteConfigRulesOutcomeCallable deleteConfigRulesCallable(const Model::DeleteConfigRulesRequest& request) const; + DescribeComplianceOutcome describeCompliance(const Model::DescribeComplianceRequest &request)const; + void describeComplianceAsync(const Model::DescribeComplianceRequest& request, const DescribeComplianceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeComplianceOutcomeCallable describeComplianceCallable(const Model::DescribeComplianceRequest& request) const; + DescribeComplianceSummaryOutcome describeComplianceSummary(const Model::DescribeComplianceSummaryRequest &request)const; + void describeComplianceSummaryAsync(const Model::DescribeComplianceSummaryRequest& request, const DescribeComplianceSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeComplianceSummaryOutcomeCallable describeComplianceSummaryCallable(const Model::DescribeComplianceSummaryRequest& request) const; + DescribeConfigRuleOutcome describeConfigRule(const Model::DescribeConfigRuleRequest &request)const; + void describeConfigRuleAsync(const Model::DescribeConfigRuleRequest& request, const DescribeConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeConfigRuleOutcomeCallable describeConfigRuleCallable(const Model::DescribeConfigRuleRequest& request) const; + DescribeConfigurationRecorderOutcome describeConfigurationRecorder(const Model::DescribeConfigurationRecorderRequest &request)const; + void describeConfigurationRecorderAsync(const Model::DescribeConfigurationRecorderRequest& request, const DescribeConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeConfigurationRecorderOutcomeCallable describeConfigurationRecorderCallable(const Model::DescribeConfigurationRecorderRequest& request) const; + DescribeDeliveryChannelsOutcome describeDeliveryChannels(const Model::DescribeDeliveryChannelsRequest &request)const; + void describeDeliveryChannelsAsync(const Model::DescribeDeliveryChannelsRequest& request, const DescribeDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDeliveryChannelsOutcomeCallable describeDeliveryChannelsCallable(const Model::DescribeDeliveryChannelsRequest& request) const; + DescribeDiscoveredResourceOutcome describeDiscoveredResource(const Model::DescribeDiscoveredResourceRequest &request)const; + void describeDiscoveredResourceAsync(const Model::DescribeDiscoveredResourceRequest& request, const DescribeDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDiscoveredResourceOutcomeCallable describeDiscoveredResourceCallable(const Model::DescribeDiscoveredResourceRequest& request) const; + DescribeEvaluationResultsOutcome describeEvaluationResults(const Model::DescribeEvaluationResultsRequest &request)const; + void describeEvaluationResultsAsync(const Model::DescribeEvaluationResultsRequest& request, const DescribeEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEvaluationResultsOutcomeCallable describeEvaluationResultsCallable(const Model::DescribeEvaluationResultsRequest& request) const; GetAggregateDiscoveredResourceOutcome getAggregateDiscoveredResource(const Model::GetAggregateDiscoveredResourceRequest &request)const; void getAggregateDiscoveredResourceAsync(const Model::GetAggregateDiscoveredResourceRequest& request, const GetAggregateDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& 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; - GetAggregateResourceComplianceByPackOutcome getAggregateResourceComplianceByPack(const Model::GetAggregateResourceComplianceByPackRequest &request)const; - void getAggregateResourceComplianceByPackAsync(const Model::GetAggregateResourceComplianceByPackRequest& request, const GetAggregateResourceComplianceByPackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateResourceComplianceByPackOutcomeCallable getAggregateResourceComplianceByPackCallable(const Model::GetAggregateResourceComplianceByPackRequest& request) const; - GetAggregateResourceComplianceGroupByRegionOutcome getAggregateResourceComplianceGroupByRegion(const Model::GetAggregateResourceComplianceGroupByRegionRequest &request)const; - void getAggregateResourceComplianceGroupByRegionAsync(const Model::GetAggregateResourceComplianceGroupByRegionRequest& request, const GetAggregateResourceComplianceGroupByRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateResourceComplianceGroupByRegionOutcomeCallable getAggregateResourceComplianceGroupByRegionCallable(const Model::GetAggregateResourceComplianceGroupByRegionRequest& request) const; - GetAggregateResourceComplianceGroupByResourceTypeOutcome getAggregateResourceComplianceGroupByResourceType(const Model::GetAggregateResourceComplianceGroupByResourceTypeRequest &request)const; - void getAggregateResourceComplianceGroupByResourceTypeAsync(const Model::GetAggregateResourceComplianceGroupByResourceTypeRequest& request, const GetAggregateResourceComplianceGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateResourceComplianceGroupByResourceTypeOutcomeCallable getAggregateResourceComplianceGroupByResourceTypeCallable(const Model::GetAggregateResourceComplianceGroupByResourceTypeRequest& request) const; - GetAggregateResourceComplianceTimelineOutcome getAggregateResourceComplianceTimeline(const Model::GetAggregateResourceComplianceTimelineRequest &request)const; - void getAggregateResourceComplianceTimelineAsync(const Model::GetAggregateResourceComplianceTimelineRequest& request, const GetAggregateResourceComplianceTimelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateResourceComplianceTimelineOutcomeCallable getAggregateResourceComplianceTimelineCallable(const Model::GetAggregateResourceComplianceTimelineRequest& request) const; - GetAggregateResourceConfigurationTimelineOutcome getAggregateResourceConfigurationTimeline(const Model::GetAggregateResourceConfigurationTimelineRequest &request)const; - void getAggregateResourceConfigurationTimelineAsync(const Model::GetAggregateResourceConfigurationTimelineRequest& request, const GetAggregateResourceConfigurationTimelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateResourceConfigurationTimelineOutcomeCallable getAggregateResourceConfigurationTimelineCallable(const Model::GetAggregateResourceConfigurationTimelineRequest& request) const; - GetAggregateResourceCountsGroupByRegionOutcome getAggregateResourceCountsGroupByRegion(const Model::GetAggregateResourceCountsGroupByRegionRequest &request)const; - void getAggregateResourceCountsGroupByRegionAsync(const Model::GetAggregateResourceCountsGroupByRegionRequest& request, const GetAggregateResourceCountsGroupByRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateResourceCountsGroupByRegionOutcomeCallable getAggregateResourceCountsGroupByRegionCallable(const Model::GetAggregateResourceCountsGroupByRegionRequest& request) const; - GetAggregateResourceCountsGroupByResourceTypeOutcome getAggregateResourceCountsGroupByResourceType(const Model::GetAggregateResourceCountsGroupByResourceTypeRequest &request)const; - void getAggregateResourceCountsGroupByResourceTypeAsync(const Model::GetAggregateResourceCountsGroupByResourceTypeRequest& request, const GetAggregateResourceCountsGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregateResourceCountsGroupByResourceTypeOutcomeCallable getAggregateResourceCountsGroupByResourceTypeCallable(const Model::GetAggregateResourceCountsGroupByResourceTypeRequest& request) const; - GetAggregatorOutcome getAggregator(const Model::GetAggregatorRequest &request)const; - void getAggregatorAsync(const Model::GetAggregatorRequest& request, const GetAggregatorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetAggregatorOutcomeCallable getAggregatorCallable(const Model::GetAggregatorRequest& request) const; - GetCompliancePackOutcome getCompliancePack(const Model::GetCompliancePackRequest &request)const; - void getCompliancePackAsync(const Model::GetCompliancePackRequest& request, const GetCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetCompliancePackOutcomeCallable getCompliancePackCallable(const Model::GetCompliancePackRequest& request) const; - GetCompliancePackReportOutcome getCompliancePackReport(const Model::GetCompliancePackReportRequest &request)const; - void getCompliancePackReportAsync(const Model::GetCompliancePackReportRequest& request, const GetCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetCompliancePackReportOutcomeCallable getCompliancePackReportCallable(const Model::GetCompliancePackReportRequest& request) const; - GetConfigDeliveryChannelOutcome getConfigDeliveryChannel(const Model::GetConfigDeliveryChannelRequest &request)const; - void getConfigDeliveryChannelAsync(const Model::GetConfigDeliveryChannelRequest& request, const GetConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetConfigDeliveryChannelOutcomeCallable getConfigDeliveryChannelCallable(const Model::GetConfigDeliveryChannelRequest& request) const; - GetConfigRuleOutcome getConfigRule(const Model::GetConfigRuleRequest &request)const; - void getConfigRuleAsync(const Model::GetConfigRuleRequest& request, const GetConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetConfigRuleOutcomeCallable getConfigRuleCallable(const Model::GetConfigRuleRequest& request) const; - GetConfigRuleComplianceByPackOutcome getConfigRuleComplianceByPack(const Model::GetConfigRuleComplianceByPackRequest &request)const; - void getConfigRuleComplianceByPackAsync(const Model::GetConfigRuleComplianceByPackRequest& request, const GetConfigRuleComplianceByPackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetConfigRuleComplianceByPackOutcomeCallable getConfigRuleComplianceByPackCallable(const Model::GetConfigRuleComplianceByPackRequest& request) const; - GetConfigRuleSummaryByRiskLevelOutcome getConfigRuleSummaryByRiskLevel(const Model::GetConfigRuleSummaryByRiskLevelRequest &request)const; - void getConfigRuleSummaryByRiskLevelAsync(const Model::GetConfigRuleSummaryByRiskLevelRequest& request, const GetConfigRuleSummaryByRiskLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetConfigRuleSummaryByRiskLevelOutcomeCallable getConfigRuleSummaryByRiskLevelCallable(const Model::GetConfigRuleSummaryByRiskLevelRequest& request) const; - 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; - GetDiscoveredResourceCountsGroupByResourceTypeOutcome getDiscoveredResourceCountsGroupByResourceType(const Model::GetDiscoveredResourceCountsGroupByResourceTypeRequest &request)const; - void getDiscoveredResourceCountsGroupByResourceTypeAsync(const Model::GetDiscoveredResourceCountsGroupByResourceTypeRequest& request, const GetDiscoveredResourceCountsGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetDiscoveredResourceCountsGroupByResourceTypeOutcomeCallable getDiscoveredResourceCountsGroupByResourceTypeCallable(const Model::GetDiscoveredResourceCountsGroupByResourceTypeRequest& request) const; - GetManagedRuleOutcome getManagedRule(const Model::GetManagedRuleRequest &request)const; - void getManagedRuleAsync(const Model::GetManagedRuleRequest& request, const GetManagedRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetManagedRuleOutcomeCallable getManagedRuleCallable(const Model::GetManagedRuleRequest& request) const; - GetResourceComplianceByConfigRuleOutcome getResourceComplianceByConfigRule(const Model::GetResourceComplianceByConfigRuleRequest &request)const; - void getResourceComplianceByConfigRuleAsync(const Model::GetResourceComplianceByConfigRuleRequest& request, const GetResourceComplianceByConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetResourceComplianceByConfigRuleOutcomeCallable getResourceComplianceByConfigRuleCallable(const Model::GetResourceComplianceByConfigRuleRequest& request) const; - GetResourceComplianceByPackOutcome getResourceComplianceByPack(const Model::GetResourceComplianceByPackRequest &request)const; - void getResourceComplianceByPackAsync(const Model::GetResourceComplianceByPackRequest& request, const GetResourceComplianceByPackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetResourceComplianceByPackOutcomeCallable getResourceComplianceByPackCallable(const Model::GetResourceComplianceByPackRequest& request) const; - GetResourceComplianceGroupByRegionOutcome getResourceComplianceGroupByRegion(const Model::GetResourceComplianceGroupByRegionRequest &request)const; - void getResourceComplianceGroupByRegionAsync(const Model::GetResourceComplianceGroupByRegionRequest& request, const GetResourceComplianceGroupByRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetResourceComplianceGroupByRegionOutcomeCallable getResourceComplianceGroupByRegionCallable(const Model::GetResourceComplianceGroupByRegionRequest& request) const; - GetResourceComplianceGroupByResourceTypeOutcome getResourceComplianceGroupByResourceType(const Model::GetResourceComplianceGroupByResourceTypeRequest &request)const; - void getResourceComplianceGroupByResourceTypeAsync(const Model::GetResourceComplianceGroupByResourceTypeRequest& request, const GetResourceComplianceGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetResourceComplianceGroupByResourceTypeOutcomeCallable getResourceComplianceGroupByResourceTypeCallable(const Model::GetResourceComplianceGroupByResourceTypeRequest& request) const; + GetDiscoveredResourceCountsOutcome getDiscoveredResourceCounts(const Model::GetDiscoveredResourceCountsRequest &request)const; + void getDiscoveredResourceCountsAsync(const Model::GetDiscoveredResourceCountsRequest& request, const GetDiscoveredResourceCountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDiscoveredResourceCountsOutcomeCallable getDiscoveredResourceCountsCallable(const Model::GetDiscoveredResourceCountsRequest& request) const; + GetDiscoveredResourceSummaryOutcome getDiscoveredResourceSummary(const Model::GetDiscoveredResourceSummaryRequest &request)const; + void getDiscoveredResourceSummaryAsync(const Model::GetDiscoveredResourceSummaryRequest& request, const GetDiscoveredResourceSummaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDiscoveredResourceSummaryOutcomeCallable getDiscoveredResourceSummaryCallable(const Model::GetDiscoveredResourceSummaryRequest& request) const; GetResourceComplianceTimelineOutcome getResourceComplianceTimeline(const Model::GetResourceComplianceTimelineRequest &request)const; void getResourceComplianceTimelineAsync(const Model::GetResourceComplianceTimelineRequest& request, const GetResourceComplianceTimelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetResourceComplianceTimelineOutcomeCallable getResourceComplianceTimelineCallable(const Model::GetResourceComplianceTimelineRequest& request) const; GetResourceConfigurationTimelineOutcome getResourceConfigurationTimeline(const Model::GetResourceConfigurationTimelineRequest &request)const; void getResourceConfigurationTimelineAsync(const Model::GetResourceConfigurationTimelineRequest& request, const GetResourceConfigurationTimelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetResourceConfigurationTimelineOutcomeCallable getResourceConfigurationTimelineCallable(const Model::GetResourceConfigurationTimelineRequest& request) const; - IgnoreAggregateEvaluationResultsOutcome ignoreAggregateEvaluationResults(const Model::IgnoreAggregateEvaluationResultsRequest &request)const; - void ignoreAggregateEvaluationResultsAsync(const Model::IgnoreAggregateEvaluationResultsRequest& request, const IgnoreAggregateEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - IgnoreAggregateEvaluationResultsOutcomeCallable ignoreAggregateEvaluationResultsCallable(const Model::IgnoreAggregateEvaluationResultsRequest& request) const; - IgnoreEvaluationResultsOutcome ignoreEvaluationResults(const Model::IgnoreEvaluationResultsRequest &request)const; - void ignoreEvaluationResultsAsync(const Model::IgnoreEvaluationResultsRequest& request, const IgnoreEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - IgnoreEvaluationResultsOutcomeCallable ignoreEvaluationResultsCallable(const Model::IgnoreEvaluationResultsRequest& request) const; - ListAggregateCompliancePacksOutcome listAggregateCompliancePacks(const Model::ListAggregateCompliancePacksRequest &request)const; - void listAggregateCompliancePacksAsync(const Model::ListAggregateCompliancePacksRequest& request, const ListAggregateCompliancePacksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAggregateCompliancePacksOutcomeCallable listAggregateCompliancePacksCallable(const Model::ListAggregateCompliancePacksRequest& request) const; - ListAggregateConfigDeliveryChannelsOutcome listAggregateConfigDeliveryChannels(const Model::ListAggregateConfigDeliveryChannelsRequest &request)const; - void listAggregateConfigDeliveryChannelsAsync(const Model::ListAggregateConfigDeliveryChannelsRequest& request, const ListAggregateConfigDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAggregateConfigDeliveryChannelsOutcomeCallable listAggregateConfigDeliveryChannelsCallable(const Model::ListAggregateConfigDeliveryChannelsRequest& request) const; - ListAggregateConfigRuleEvaluationResultsOutcome listAggregateConfigRuleEvaluationResults(const Model::ListAggregateConfigRuleEvaluationResultsRequest &request)const; - void listAggregateConfigRuleEvaluationResultsAsync(const Model::ListAggregateConfigRuleEvaluationResultsRequest& request, const ListAggregateConfigRuleEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAggregateConfigRuleEvaluationResultsOutcomeCallable listAggregateConfigRuleEvaluationResultsCallable(const Model::ListAggregateConfigRuleEvaluationResultsRequest& request) const; - 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; + GetSupportedResourceTypesOutcome getSupportedResourceTypes(const Model::GetSupportedResourceTypesRequest &request)const; + void getSupportedResourceTypesAsync(const Model::GetSupportedResourceTypesRequest& request, const GetSupportedResourceTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSupportedResourceTypesOutcomeCallable getSupportedResourceTypesCallable(const Model::GetSupportedResourceTypesRequest& request) const; ListAggregateDiscoveredResourcesOutcome listAggregateDiscoveredResources(const Model::ListAggregateDiscoveredResourcesRequest &request)const; void listAggregateDiscoveredResourcesAsync(const Model::ListAggregateDiscoveredResourcesRequest& request, const ListAggregateDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr& 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; - ListAggregatorsOutcome listAggregators(const Model::ListAggregatorsRequest &request)const; - void listAggregatorsAsync(const Model::ListAggregatorsRequest& request, const ListAggregatorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAggregatorsOutcomeCallable listAggregatorsCallable(const Model::ListAggregatorsRequest& request) const; - ListCompliancePackTemplatesOutcome listCompliancePackTemplates(const Model::ListCompliancePackTemplatesRequest &request)const; - void listCompliancePackTemplatesAsync(const Model::ListCompliancePackTemplatesRequest& request, const ListCompliancePackTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCompliancePackTemplatesOutcomeCallable listCompliancePackTemplatesCallable(const Model::ListCompliancePackTemplatesRequest& request) const; - ListCompliancePacksOutcome listCompliancePacks(const Model::ListCompliancePacksRequest &request)const; - void listCompliancePacksAsync(const Model::ListCompliancePacksRequest& request, const ListCompliancePacksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCompliancePacksOutcomeCallable listCompliancePacksCallable(const Model::ListCompliancePacksRequest& request) const; - ListConfigDeliveryChannelsOutcome listConfigDeliveryChannels(const Model::ListConfigDeliveryChannelsRequest &request)const; - void listConfigDeliveryChannelsAsync(const Model::ListConfigDeliveryChannelsRequest& request, const ListConfigDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListConfigDeliveryChannelsOutcomeCallable listConfigDeliveryChannelsCallable(const Model::ListConfigDeliveryChannelsRequest& request) const; - 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; + ListConfigRulesOutcome listConfigRules(const Model::ListConfigRulesRequest &request)const; + void listConfigRulesAsync(const Model::ListConfigRulesRequest& request, const ListConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListConfigRulesOutcomeCallable listConfigRulesCallable(const Model::ListConfigRulesRequest& request) const; ListDiscoveredResourcesOutcome listDiscoveredResources(const Model::ListDiscoveredResourcesRequest &request)const; void listDiscoveredResourcesAsync(const Model::ListDiscoveredResourcesRequest& request, const ListDiscoveredResourcesAsyncHandler& handler, const std::shared_ptr& 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; - ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; - void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; - RevertAggregateEvaluationResultsOutcome revertAggregateEvaluationResults(const Model::RevertAggregateEvaluationResultsRequest &request)const; - void revertAggregateEvaluationResultsAsync(const Model::RevertAggregateEvaluationResultsRequest& request, const RevertAggregateEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RevertAggregateEvaluationResultsOutcomeCallable revertAggregateEvaluationResultsCallable(const Model::RevertAggregateEvaluationResultsRequest& request) const; - RevertEvaluationResultsOutcome revertEvaluationResults(const Model::RevertEvaluationResultsRequest &request)const; - void revertEvaluationResultsAsync(const Model::RevertEvaluationResultsRequest& request, const RevertEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RevertEvaluationResultsOutcomeCallable revertEvaluationResultsCallable(const Model::RevertEvaluationResultsRequest& request) const; - 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; - TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; - void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; - UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; - void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& 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; - UpdateAggregateConfigDeliveryChannelOutcome updateAggregateConfigDeliveryChannel(const Model::UpdateAggregateConfigDeliveryChannelRequest &request)const; - void updateAggregateConfigDeliveryChannelAsync(const Model::UpdateAggregateConfigDeliveryChannelRequest& request, const UpdateAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateAggregateConfigDeliveryChannelOutcomeCallable updateAggregateConfigDeliveryChannelCallable(const Model::UpdateAggregateConfigDeliveryChannelRequest& 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; - UpdateCompliancePackOutcome updateCompliancePack(const Model::UpdateCompliancePackRequest &request)const; - void updateCompliancePackAsync(const Model::UpdateCompliancePackRequest& request, const UpdateCompliancePackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateCompliancePackOutcomeCallable updateCompliancePackCallable(const Model::UpdateCompliancePackRequest& request) const; - UpdateConfigDeliveryChannelOutcome updateConfigDeliveryChannel(const Model::UpdateConfigDeliveryChannelRequest &request)const; - void updateConfigDeliveryChannelAsync(const Model::UpdateConfigDeliveryChannelRequest& request, const UpdateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateConfigDeliveryChannelOutcomeCallable updateConfigDeliveryChannelCallable(const Model::UpdateConfigDeliveryChannelRequest& request) const; - UpdateConfigRuleOutcome updateConfigRule(const Model::UpdateConfigRuleRequest &request)const; - void updateConfigRuleAsync(const Model::UpdateConfigRuleRequest& request, const UpdateConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateConfigRuleOutcomeCallable updateConfigRuleCallable(const Model::UpdateConfigRuleRequest& request) const; + PutConfigRuleOutcome putConfigRule(const Model::PutConfigRuleRequest &request)const; + void putConfigRuleAsync(const Model::PutConfigRuleRequest& request, const PutConfigRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutConfigRuleOutcomeCallable putConfigRuleCallable(const Model::PutConfigRuleRequest& request) const; + PutConfigurationRecorderOutcome putConfigurationRecorder(const Model::PutConfigurationRecorderRequest &request)const; + void putConfigurationRecorderAsync(const Model::PutConfigurationRecorderRequest& request, const PutConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutConfigurationRecorderOutcomeCallable putConfigurationRecorderCallable(const Model::PutConfigurationRecorderRequest& request) const; + PutDeliveryChannelOutcome putDeliveryChannel(const Model::PutDeliveryChannelRequest &request)const; + void putDeliveryChannelAsync(const Model::PutDeliveryChannelRequest& request, const PutDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutDeliveryChannelOutcomeCallable putDeliveryChannelCallable(const Model::PutDeliveryChannelRequest& request) const; + PutEvaluationsOutcome putEvaluations(const Model::PutEvaluationsRequest &request)const; + void putEvaluationsAsync(const Model::PutEvaluationsRequest& request, const PutEvaluationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutEvaluationsOutcomeCallable putEvaluationsCallable(const Model::PutEvaluationsRequest& request) const; + StartConfigRuleEvaluationOutcome startConfigRuleEvaluation(const Model::StartConfigRuleEvaluationRequest &request)const; + void startConfigRuleEvaluationAsync(const Model::StartConfigRuleEvaluationRequest& request, const StartConfigRuleEvaluationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartConfigRuleEvaluationOutcomeCallable startConfigRuleEvaluationCallable(const Model::StartConfigRuleEvaluationRequest& request) const; + StartConfigurationRecorderOutcome startConfigurationRecorder(const Model::StartConfigurationRecorderRequest &request)const; + void startConfigurationRecorderAsync(const Model::StartConfigurationRecorderRequest& request, const StartConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartConfigurationRecorderOutcomeCallable startConfigurationRecorderCallable(const Model::StartConfigurationRecorderRequest& request) const; + StopConfigRulesOutcome stopConfigRules(const Model::StopConfigRulesRequest &request)const; + void stopConfigRulesAsync(const Model::StopConfigRulesRequest& request, const StopConfigRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopConfigRulesOutcomeCallable stopConfigRulesCallable(const Model::StopConfigRulesRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/config/include/alibabacloud/config/model/ActiveAggregateConfigRulesRequest.h b/config/include/alibabacloud/config/model/ActiveAggregateConfigRulesRequest.h deleted file mode 100644 index 16fbdf33d..000000000 --- a/config/include/alibabacloud/config/model/ActiveAggregateConfigRulesRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_ACTIVEAGGREGATECONFIGRULESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_ACTIVEAGGREGATECONFIGRULESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ActiveAggregateConfigRulesRequest : public RpcServiceRequest { -public: - ActiveAggregateConfigRulesRequest(); - ~ActiveAggregateConfigRulesRequest(); - 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_ACTIVEAGGREGATECONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeactiveConfigRulesRequest.h b/config/include/alibabacloud/config/model/ActiveConfigRulesRequest.h similarity index 73% rename from config/include/alibabacloud/config/model/DeactiveConfigRulesRequest.h rename to config/include/alibabacloud/config/model/ActiveConfigRulesRequest.h index d30e7e7c8..c6c6291b6 100644 --- a/config/include/alibabacloud/config/model/DeactiveConfigRulesRequest.h +++ b/config/include/alibabacloud/config/model/ActiveConfigRulesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DeactiveConfigRulesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT ActiveConfigRulesRequest : public RpcServiceRequest { public: - DeactiveConfigRulesRequest(); - ~DeactiveConfigRulesRequest(); + ActiveConfigRulesRequest(); + ~ActiveConfigRulesRequest(); std::string getConfigRuleIds() const; void setConfigRuleIds(const std::string &configRuleIds); @@ -39,4 +39,4 @@ private: } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeactiveConfigRulesResult.h b/config/include/alibabacloud/config/model/ActiveConfigRulesResult.h similarity index 75% rename from config/include/alibabacloud/config/model/DeactiveConfigRulesResult.h rename to config/include/alibabacloud/config/model/ActiveConfigRulesResult.h index 7975c3beb..2cc5b2ce8 100644 --- a/config/include/alibabacloud/config/model/DeactiveConfigRulesResult.h +++ b/config/include/alibabacloud/config/model/ActiveConfigRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT DeactiveConfigRulesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT ActiveConfigRulesResult : public ServiceResult { public: struct OperateRuleResult @@ -44,9 +44,9 @@ namespace AlibabaCloud }; - DeactiveConfigRulesResult(); - explicit DeactiveConfigRulesResult(const std::string &payload); - ~DeactiveConfigRulesResult(); + ActiveConfigRulesResult(); + explicit ActiveConfigRulesResult(const std::string &payload); + ~ActiveConfigRulesResult(); OperateRuleResult getOperateRuleResult()const; protected: @@ -58,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_DEACTIVECONFIGRULESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_ACTIVECONFIGRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackRequest.h b/config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackRequest.h deleted file mode 100644 index 4c55637d5..000000000 --- a/config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_ATTACHAGGREGATECONFIGRULETOCOMPLIANCEPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_ATTACHAGGREGATECONFIGRULETOCOMPLIANCEPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT AttachAggregateConfigRuleToCompliancePackRequest : public RpcServiceRequest { -public: - AttachAggregateConfigRuleToCompliancePackRequest(); - ~AttachAggregateConfigRuleToCompliancePackRequest(); - std::string getConfigRuleIds() const; - void setConfigRuleIds(const std::string &configRuleIds); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string configRuleIds_; - std::string aggregatorId_; - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_ATTACHAGGREGATECONFIGRULETOCOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackResult.h b/config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackResult.h deleted file mode 100644 index 354d10943..000000000 --- a/config/include/alibabacloud/config/model/AttachAggregateConfigRuleToCompliancePackResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_ATTACHAGGREGATECONFIGRULETOCOMPLIANCEPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_ATTACHAGGREGATECONFIGRULETOCOMPLIANCEPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT AttachAggregateConfigRuleToCompliancePackResult : public ServiceResult - { - public: - struct OperateRuleResult - { - struct OperateRuleItem - { - std::string configRuleId; - std::string errorCode; - bool success; - }; - std::vector operateRuleItemList; - }; - - - AttachAggregateConfigRuleToCompliancePackResult(); - explicit AttachAggregateConfigRuleToCompliancePackResult(const std::string &payload); - ~AttachAggregateConfigRuleToCompliancePackResult(); - OperateRuleResult getOperateRuleResult()const; - - protected: - void parse(const std::string &payload); - private: - OperateRuleResult operateRuleResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_ATTACHAGGREGATECONFIGRULETOCOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackRequest.h b/config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackRequest.h deleted file mode 100644 index b5a5fbca5..000000000 --- a/config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_ATTACHCONFIGRULETOCOMPLIANCEPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_ATTACHCONFIGRULETOCOMPLIANCEPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT AttachConfigRuleToCompliancePackRequest : public RpcServiceRequest { -public: - AttachConfigRuleToCompliancePackRequest(); - ~AttachConfigRuleToCompliancePackRequest(); - std::string getConfigRuleIds() const; - void setConfigRuleIds(const std::string &configRuleIds); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string configRuleIds_; - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_ATTACHCONFIGRULETOCOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackResult.h b/config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackResult.h deleted file mode 100644 index 7e9aff86e..000000000 --- a/config/include/alibabacloud/config/model/AttachConfigRuleToCompliancePackResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_ATTACHCONFIGRULETOCOMPLIANCEPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_ATTACHCONFIGRULETOCOMPLIANCEPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT AttachConfigRuleToCompliancePackResult : public ServiceResult - { - public: - struct OperateRuleResult - { - struct OperateRuleItem - { - std::string configRuleId; - std::string errorCode; - bool success; - }; - std::vector operateRuleItemList; - }; - - - AttachConfigRuleToCompliancePackResult(); - explicit AttachConfigRuleToCompliancePackResult(const std::string &payload); - ~AttachConfigRuleToCompliancePackResult(); - OperateRuleResult getOperateRuleResult()const; - - protected: - void parse(const std::string &payload); - private: - OperateRuleResult operateRuleResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_ATTACHCONFIGRULETOCOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateAggregateCompliancePackRequest.h b/config/include/alibabacloud/config/model/CreateAggregateCompliancePackRequest.h deleted file mode 100644 index e2f4ad50a..000000000 --- a/config/include/alibabacloud/config/model/CreateAggregateCompliancePackRequest.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECOMPLIANCEPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECOMPLIANCEPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateCompliancePackRequest : public RpcServiceRequest { -public: - struct ConfigRules { - std::string managedRuleIdentifier; - struct ConfigRuleParametersItem { - std::string parameterValue; - std::string parameterName; - }; - ConfigRuleParametersItem configRuleParametersItem; - std::vector configRuleParameters; - std::string configRuleId; - std::string configRuleName; - std::string description; - int riskLevel; - }; - CreateAggregateCompliancePackRequest(); - ~CreateAggregateCompliancePackRequest(); - std::string getCompliancePackName() const; - void setCompliancePackName(const std::string &compliancePackName); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getCompliancePackTemplateId() const; - void setCompliancePackTemplateId(const std::string &compliancePackTemplateId); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::vector getConfigRules() const; - void setConfigRules(const std::vector &configRules); - int getRiskLevel() const; - void setRiskLevel(int riskLevel); - -private: - std::string compliancePackName_; - std::string clientToken_; - std::string compliancePackTemplateId_; - std::string description_; - std::string aggregatorId_; - std::vector configRules_; - int riskLevel_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateAggregateCompliancePackResult.h b/config/include/alibabacloud/config/model/CreateAggregateCompliancePackResult.h deleted file mode 100644 index 84dea54c6..000000000 --- a/config/include/alibabacloud/config/model/CreateAggregateCompliancePackResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECOMPLIANCEPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECOMPLIANCEPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateCompliancePackResult : public ServiceResult - { - public: - - - CreateAggregateCompliancePackResult(); - explicit CreateAggregateCompliancePackResult(const std::string &payload); - ~CreateAggregateCompliancePackResult(); - std::string getCompliancePackId()const; - - protected: - void parse(const std::string &payload); - private: - std::string compliancePackId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelRequest.h deleted file mode 100644 index b66ca69e0..000000000 --- a/config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateConfigDeliveryChannelRequest : public RpcServiceRequest { -public: - CreateAggregateConfigDeliveryChannelRequest(); - ~CreateAggregateConfigDeliveryChannelRequest(); - bool getNonCompliantNotification() const; - void setNonCompliantNotification(bool nonCompliantNotification); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - bool getConfigurationSnapshot() const; - void setConfigurationSnapshot(bool configurationSnapshot); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getDeliveryChannelTargetArn() const; - void setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn); - std::string getDeliveryChannelCondition() const; - void setDeliveryChannelCondition(const std::string &deliveryChannelCondition); - bool getConfigurationItemChangeNotification() const; - void setConfigurationItemChangeNotification(bool configurationItemChangeNotification); - std::string getDeliveryChannelName() const; - void setDeliveryChannelName(const std::string &deliveryChannelName); - std::string getOversizedDataOSSTargetArn() const; - void setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn); - std::string getDeliveryChannelType() const; - void setDeliveryChannelType(const std::string &deliveryChannelType); - -private: - bool nonCompliantNotification_; - std::string clientToken_; - bool configurationSnapshot_; - std::string description_; - std::string aggregatorId_; - std::string deliveryChannelTargetArn_; - std::string deliveryChannelCondition_; - bool configurationItemChangeNotification_; - std::string deliveryChannelName_; - std::string oversizedDataOSSTargetArn_; - std::string deliveryChannelType_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelResult.h deleted file mode 100644 index a87f485e0..000000000 --- a/config/include/alibabacloud/config/model/CreateAggregateConfigDeliveryChannelResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateConfigDeliveryChannelResult : public ServiceResult - { - public: - - - CreateAggregateConfigDeliveryChannelResult(); - explicit CreateAggregateConfigDeliveryChannelResult(const std::string &payload); - ~CreateAggregateConfigDeliveryChannelResult(); - std::string getDeliveryChannelId()const; - - protected: - void parse(const std::string &payload); - private: - std::string deliveryChannelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateAggregateConfigRuleRequest.h b/config/include/alibabacloud/config/model/CreateAggregateConfigRuleRequest.h deleted file mode 100644 index f1ca156f6..000000000 --- a/config/include/alibabacloud/config/model/CreateAggregateConfigRuleRequest.h +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGRULEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateConfigRuleRequest : public RpcServiceRequest { -public: - CreateAggregateConfigRuleRequest(); - ~CreateAggregateConfigRuleRequest(); - std::string getTagKeyScope() const; - void setTagKeyScope(const std::string &tagKeyScope); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::vector getResourceTypesScope() const; - void setResourceTypesScope(const std::vector &resourceTypesScope); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getConfigRuleTriggerTypes() const; - void setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes); - std::string getSourceIdentifier() const; - void setSourceIdentifier(const std::string &sourceIdentifier); - std::string getTagValueScope() const; - void setTagValueScope(const std::string &tagValueScope); - std::string getExcludeAccountIdsScope() const; - void setExcludeAccountIdsScope(const std::string &excludeAccountIdsScope); - std::string getRegionIdsScope() const; - void setRegionIdsScope(const std::string ®ionIdsScope); - std::string getExcludeFolderIdsScope() const; - void setExcludeFolderIdsScope(const std::string &excludeFolderIdsScope); - int getRiskLevel() const; - void setRiskLevel(int riskLevel); - std::string getSourceOwner() const; - void setSourceOwner(const std::string &sourceOwner); - std::string getResourceGroupIdsScope() const; - void setResourceGroupIdsScope(const std::string &resourceGroupIdsScope); - std::string getInputParameters() const; - void setInputParameters(const std::string &inputParameters); - std::string getConfigRuleName() const; - void setConfigRuleName(const std::string &configRuleName); - std::string getTagKeyLogicScope() const; - void setTagKeyLogicScope(const std::string &tagKeyLogicScope); - std::string getMaximumExecutionFrequency() const; - void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency); - std::string getFolderIdsScope() const; - void setFolderIdsScope(const std::string &folderIdsScope); - std::string getExcludeResourceIdsScope() const; - void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope); - -private: - std::string tagKeyScope_; - std::string clientToken_; - std::vector resourceTypesScope_; - std::string description_; - std::string aggregatorId_; - std::string configRuleTriggerTypes_; - std::string sourceIdentifier_; - std::string tagValueScope_; - std::string excludeAccountIdsScope_; - std::string regionIdsScope_; - std::string excludeFolderIdsScope_; - int riskLevel_; - std::string sourceOwner_; - std::string resourceGroupIdsScope_; - std::string inputParameters_; - std::string configRuleName_; - std::string tagKeyLogicScope_; - std::string maximumExecutionFrequency_; - std::string folderIdsScope_; - std::string excludeResourceIdsScope_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateAggregateConfigRuleResult.h b/config/include/alibabacloud/config/model/CreateAggregateConfigRuleResult.h deleted file mode 100644 index 8e38f7d27..000000000 --- a/config/include/alibabacloud/config/model/CreateAggregateConfigRuleResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGRULERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateConfigRuleResult : public ServiceResult - { - public: - - - CreateAggregateConfigRuleResult(); - explicit CreateAggregateConfigRuleResult(const std::string &payload); - ~CreateAggregateConfigRuleResult(); - std::string getConfigRuleId()const; - - protected: - void parse(const std::string &payload); - private: - std::string configRuleId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATECONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateAggregateRemediationRequest.h b/config/include/alibabacloud/config/model/CreateAggregateRemediationRequest.h deleted file mode 100644 index 9b92d8588..000000000 --- a/config/include/alibabacloud/config/model/CreateAggregateRemediationRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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/CreateAggregatorRequest.h b/config/include/alibabacloud/config/model/CreateAggregatorRequest.h deleted file mode 100644 index af07e784b..000000000 --- a/config/include/alibabacloud/config/model/CreateAggregatorRequest.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT CreateAggregatorRequest : public RpcServiceRequest { -public: - struct AggregatorAccounts { - long accountId; - std::string accountName; - std::string accountType; - }; - CreateAggregatorRequest(); - ~CreateAggregatorRequest(); - std::string getAggregatorType() const; - void setAggregatorType(const std::string &aggregatorType); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getAggregatorName() const; - void setAggregatorName(const std::string &aggregatorName); - std::string getDescription() const; - void setDescription(const std::string &description); - std::vector getAggregatorAccounts() const; - void setAggregatorAccounts(const std::vector &aggregatorAccounts); - -private: - std::string aggregatorType_; - std::string clientToken_; - std::string aggregatorName_; - std::string description_; - std::vector aggregatorAccounts_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateAggregatorResult.h b/config/include/alibabacloud/config/model/CreateAggregatorResult.h deleted file mode 100644 index 38b2fbb89..000000000 --- a/config/include/alibabacloud/config/model/CreateAggregatorResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT CreateAggregatorResult : public ServiceResult - { - public: - - - CreateAggregatorResult(); - explicit CreateAggregatorResult(const std::string &payload); - ~CreateAggregatorResult(); - std::string getAggregatorId()const; - - protected: - void parse(const std::string &payload); - private: - std::string aggregatorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATORRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateCompliancePackRequest.h b/config/include/alibabacloud/config/model/CreateCompliancePackRequest.h deleted file mode 100644 index dbcdaad64..000000000 --- a/config/include/alibabacloud/config/model/CreateCompliancePackRequest.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATECOMPLIANCEPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATECOMPLIANCEPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT CreateCompliancePackRequest : public RpcServiceRequest { -public: - struct ConfigRules { - std::string managedRuleIdentifier; - struct ConfigRuleParametersItem { - std::string parameterValue; - std::string parameterName; - }; - ConfigRuleParametersItem configRuleParametersItem; - std::vector configRuleParameters; - std::string configRuleId; - std::string configRuleName; - std::string description; - int riskLevel; - }; - CreateCompliancePackRequest(); - ~CreateCompliancePackRequest(); - std::string getCompliancePackName() const; - void setCompliancePackName(const std::string &compliancePackName); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getCompliancePackTemplateId() const; - void setCompliancePackTemplateId(const std::string &compliancePackTemplateId); - std::string getDescription() const; - void setDescription(const std::string &description); - std::vector getConfigRules() const; - void setConfigRules(const std::vector &configRules); - int getRiskLevel() const; - void setRiskLevel(int riskLevel); - -private: - std::string compliancePackName_; - std::string clientToken_; - std::string compliancePackTemplateId_; - std::string description_; - std::vector configRules_; - int riskLevel_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATECOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateCompliancePackResult.h b/config/include/alibabacloud/config/model/CreateCompliancePackResult.h deleted file mode 100644 index fe07e6c07..000000000 --- a/config/include/alibabacloud/config/model/CreateCompliancePackResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATECOMPLIANCEPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATECOMPLIANCEPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT CreateCompliancePackResult : public ServiceResult - { - public: - - - CreateCompliancePackResult(); - explicit CreateCompliancePackResult(const std::string &payload); - ~CreateCompliancePackResult(); - std::string getCompliancePackId()const; - - protected: - void parse(const std::string &payload); - private: - std::string compliancePackId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATECOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/CreateConfigDeliveryChannelResult.h deleted file mode 100644 index d9fb03211..000000000 --- a/config/include/alibabacloud/config/model/CreateConfigDeliveryChannelResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGDELIVERYCHANNELRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGDELIVERYCHANNELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT CreateConfigDeliveryChannelResult : public ServiceResult - { - public: - - - CreateConfigDeliveryChannelResult(); - explicit CreateConfigDeliveryChannelResult(const std::string &payload); - ~CreateConfigDeliveryChannelResult(); - std::string getDeliveryChannelId()const; - - protected: - void parse(const std::string &payload); - private: - std::string deliveryChannelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGDELIVERYCHANNELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateConfigRuleRequest.h b/config/include/alibabacloud/config/model/CreateConfigRuleRequest.h deleted file mode 100644 index e62e7b8f6..000000000 --- a/config/include/alibabacloud/config/model/CreateConfigRuleRequest.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGRULEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT CreateConfigRuleRequest : public RpcServiceRequest { -public: - CreateConfigRuleRequest(); - ~CreateConfigRuleRequest(); - std::string getTagKeyScope() const; - void setTagKeyScope(const std::string &tagKeyScope); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::vector getResourceTypesScope() const; - void setResourceTypesScope(const std::vector &resourceTypesScope); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getConfigRuleTriggerTypes() const; - void setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes); - std::string getSourceIdentifier() const; - void setSourceIdentifier(const std::string &sourceIdentifier); - std::string getTagValueScope() const; - void setTagValueScope(const std::string &tagValueScope); - std::string getRegionIdsScope() const; - void setRegionIdsScope(const std::string ®ionIdsScope); - int getRiskLevel() const; - void setRiskLevel(int riskLevel); - std::string getSourceOwner() const; - void setSourceOwner(const std::string &sourceOwner); - std::string getResourceGroupIdsScope() const; - void setResourceGroupIdsScope(const std::string &resourceGroupIdsScope); - std::string getInputParameters() const; - void setInputParameters(const std::string &inputParameters); - std::string getConfigRuleName() const; - void setConfigRuleName(const std::string &configRuleName); - std::string getTagKeyLogicScope() const; - void setTagKeyLogicScope(const std::string &tagKeyLogicScope); - std::string getMaximumExecutionFrequency() const; - void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency); - std::string getExcludeResourceIdsScope() const; - void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope); - -private: - std::string tagKeyScope_; - std::string clientToken_; - std::vector resourceTypesScope_; - std::string description_; - std::string configRuleTriggerTypes_; - std::string sourceIdentifier_; - std::string tagValueScope_; - std::string regionIdsScope_; - int riskLevel_; - std::string sourceOwner_; - std::string resourceGroupIdsScope_; - std::string inputParameters_; - std::string configRuleName_; - std::string tagKeyLogicScope_; - std::string maximumExecutionFrequency_; - std::string excludeResourceIdsScope_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateRemediationRequest.h b/config/include/alibabacloud/config/model/CreateRemediationRequest.h deleted file mode 100644 index 447a8b668..000000000 --- a/config/include/alibabacloud/config/model/CreateRemediationRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 deleted file mode 100644 index 4e8d9b651..000000000 --- a/config/include/alibabacloud/config/model/CreateRemediationResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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/DeactiveAggregateConfigRulesResult.h b/config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesResult.h deleted file mode 100644 index b26d1fe96..000000000 --- a/config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT DeactiveAggregateConfigRulesResult : public ServiceResult - { - public: - struct OperateRuleResult - { - struct OperateRuleItem - { - std::string configRuleId; - std::string errorCode; - bool success; - }; - std::vector operateRuleItemList; - }; - - - DeactiveAggregateConfigRulesResult(); - explicit DeactiveAggregateConfigRulesResult(const std::string &payload); - ~DeactiveAggregateConfigRulesResult(); - OperateRuleResult getOperateRuleResult()const; - - protected: - void parse(const std::string &payload); - private: - OperateRuleResult operateRuleResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksRequest.h b/config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksRequest.h deleted file mode 100644 index 81a9b0eb8..000000000 --- a/config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECOMPLIANCEPACKSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECOMPLIANCEPACKSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateCompliancePacksRequest : public RpcServiceRequest { -public: - DeleteAggregateCompliancePacksRequest(); - ~DeleteAggregateCompliancePacksRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getCompliancePackIds() const; - void setCompliancePackIds(const std::string &compliancePackIds); - bool getDeleteRule() const; - void setDeleteRule(bool deleteRule); - -private: - std::string clientToken_; - std::string aggregatorId_; - std::string compliancePackIds_; - bool deleteRule_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECOMPLIANCEPACKSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksResult.h b/config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksResult.h deleted file mode 100644 index 9227d046f..000000000 --- a/config/include/alibabacloud/config/model/DeleteAggregateCompliancePacksResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECOMPLIANCEPACKSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECOMPLIANCEPACKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateCompliancePacksResult : public ServiceResult - { - public: - struct OperateCompliancePacksResult - { - struct OperateCompliancePacksItem - { - std::string compliancePackId; - std::string errorCode; - bool success; - }; - std::vector operateCompliancePacks; - }; - - - DeleteAggregateCompliancePacksResult(); - explicit DeleteAggregateCompliancePacksResult(const std::string &payload); - ~DeleteAggregateCompliancePacksResult(); - OperateCompliancePacksResult getOperateCompliancePacksResult()const; - - protected: - void parse(const std::string &payload); - private: - OperateCompliancePacksResult operateCompliancePacksResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECOMPLIANCEPACKSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeleteAggregateConfigRulesRequest.h b/config/include/alibabacloud/config/model/DeleteAggregateConfigRulesRequest.h deleted file mode 100644 index 6eba6c3fd..000000000 --- a/config/include/alibabacloud/config/model/DeleteAggregateConfigRulesRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateConfigRulesRequest : public RpcServiceRequest { -public: - DeleteAggregateConfigRulesRequest(); - ~DeleteAggregateConfigRulesRequest(); - 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_DELETEAGGREGATECONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteAggregateRemediationsRequest.h b/config/include/alibabacloud/config/model/DeleteAggregateRemediationsRequest.h deleted file mode 100644 index 8cc3c346e..000000000 --- a/config/include/alibabacloud/config/model/DeleteAggregateRemediationsRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 deleted file mode 100644 index c96c24ab9..000000000 --- a/config/include/alibabacloud/config/model/DeleteAggregateRemediationsResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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/DeleteAggregatorsResult.h b/config/include/alibabacloud/config/model/DeleteAggregatorsResult.h deleted file mode 100644 index 58a9393e0..000000000 --- a/config/include/alibabacloud/config/model/DeleteAggregatorsResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATORSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATORSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregatorsResult : public ServiceResult - { - public: - struct OperateAggregatorsResult - { - struct OperateAggregatorList - { - std::string errorCode; - bool success; - std::string aggregatorId; - }; - std::vector operateAggregators; - }; - - - DeleteAggregatorsResult(); - explicit DeleteAggregatorsResult(const std::string &payload); - ~DeleteAggregatorsResult(); - OperateAggregatorsResult getOperateAggregatorsResult()const; - - protected: - void parse(const std::string &payload); - private: - OperateAggregatorsResult operateAggregatorsResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATORSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeleteCompliancePacksRequest.h b/config/include/alibabacloud/config/model/DeleteCompliancePacksRequest.h deleted file mode 100644 index dbb9c689c..000000000 --- a/config/include/alibabacloud/config/model/DeleteCompliancePacksRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DeleteCompliancePacksRequest : public RpcServiceRequest { -public: - DeleteCompliancePacksRequest(); - ~DeleteCompliancePacksRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getCompliancePackIds() const; - void setCompliancePackIds(const std::string &compliancePackIds); - bool getDeleteRule() const; - void setDeleteRule(bool deleteRule); - -private: - std::string clientToken_; - std::string compliancePackIds_; - bool deleteRule_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteCompliancePacksResult.h b/config/include/alibabacloud/config/model/DeleteCompliancePacksResult.h deleted file mode 100644 index ce210c94a..000000000 --- a/config/include/alibabacloud/config/model/DeleteCompliancePacksResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT DeleteCompliancePacksResult : public ServiceResult - { - public: - struct OperateCompliancePacksResult - { - struct OperateCompliancePacksItem - { - std::string compliancePackId; - std::string errorCode; - bool success; - }; - std::vector operateCompliancePacks; - }; - - - DeleteCompliancePacksResult(); - explicit DeleteCompliancePacksResult(const std::string &payload); - ~DeleteCompliancePacksResult(); - OperateCompliancePacksResult getOperateCompliancePacksResult()const; - - protected: - void parse(const std::string &payload); - private: - OperateCompliancePacksResult operateCompliancePacksResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECOMPLIANCEPACKSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceGroupByRegionRequest.h b/config/include/alibabacloud/config/model/DeleteConfigRulesRequest.h similarity index 69% rename from config/include/alibabacloud/config/model/GetResourceComplianceGroupByRegionRequest.h rename to config/include/alibabacloud/config/model/DeleteConfigRulesRequest.h index f3214201b..666e13c5c 100644 --- a/config/include/alibabacloud/config/model/GetResourceComplianceGroupByRegionRequest.h +++ b/config/include/alibabacloud/config/model/DeleteConfigRulesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceGroupByRegionRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT DeleteConfigRulesRequest : public RpcServiceRequest { public: - GetResourceComplianceGroupByRegionRequest(); - ~GetResourceComplianceGroupByRegionRequest(); + DeleteConfigRulesRequest(); + ~DeleteConfigRulesRequest(); std::string getConfigRuleIds() const; void setConfigRuleIds(const std::string &configRuleIds); @@ -39,4 +39,4 @@ private: } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DeleteAggregateConfigRulesResult.h b/config/include/alibabacloud/config/model/DeleteConfigRulesResult.h similarity index 73% rename from config/include/alibabacloud/config/model/DeleteAggregateConfigRulesResult.h rename to config/include/alibabacloud/config/model/DeleteConfigRulesResult.h index 4c48e650a..eb4da536f 100644 --- a/config/include/alibabacloud/config/model/DeleteAggregateConfigRulesResult.h +++ b/config/include/alibabacloud/config/model/DeleteConfigRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregateConfigRulesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT DeleteConfigRulesResult : public ServiceResult { public: struct OperateRuleResult @@ -44,9 +44,9 @@ namespace AlibabaCloud }; - DeleteAggregateConfigRulesResult(); - explicit DeleteAggregateConfigRulesResult(const std::string &payload); - ~DeleteAggregateConfigRulesResult(); + DeleteConfigRulesResult(); + explicit DeleteConfigRulesResult(const std::string &payload); + ~DeleteConfigRulesResult(); OperateRuleResult getOperateRuleResult()const; protected: @@ -58,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATECONFIGRULESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETECONFIGRULESRESULT_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 deleted file mode 100644 index a75a16f52..000000000 --- a/config/include/alibabacloud/config/model/DeleteRemediationsRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 deleted file mode 100644 index c342739d8..000000000 --- a/config/include/alibabacloud/config/model/DeleteRemediationsResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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/ListResourceEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/DescribeComplianceRequest.h similarity index 63% rename from config/include/alibabacloud/config/model/ListResourceEvaluationResultsRequest.h rename to config/include/alibabacloud/config/model/DescribeComplianceRequest.h index e0fca14b0..76d37a669 100644 --- a/config/include/alibabacloud/config/model/ListResourceEvaluationResultsRequest.h +++ b/config/include/alibabacloud/config/model/DescribeComplianceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_ #include #include @@ -26,32 +26,32 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListResourceEvaluationResultsRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceRequest : public RpcServiceRequest { public: - ListResourceEvaluationResultsRequest(); - ~ListResourceEvaluationResultsRequest(); + DescribeComplianceRequest(); + ~DescribeComplianceRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); std::string getResourceId() const; void setResourceId(const std::string &resourceId); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); std::string getResourceType() const; void setResourceType(const std::string &resourceType); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - int getMaxResults() const; - void setMaxResults(int maxResults); - std::string getRegion() const; - void setRegion(const std::string ®ion); std::string getComplianceType() const; void setComplianceType(const std::string &complianceType); + long getMemberId() const; + void setMemberId(long memberId); private: + std::string configRuleId_; std::string resourceId_; + bool multiAccount_; std::string resourceType_; - std::string nextToken_; - int maxResults_; - std::string region_; std::string complianceType_; + long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleResult.h b/config/include/alibabacloud/config/model/DescribeComplianceResult.h similarity index 70% rename from config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleResult.h rename to config/include/alibabacloud/config/model/DescribeComplianceResult.h index 6a70e1f2e..ee516b3a5 100644 --- a/config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleResult.h +++ b/config/include/alibabacloud/config/model/DescribeComplianceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYCONFIGRULERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYCONFIGRULERESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCERESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceByConfigRuleResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceResult : public ServiceResult { public: struct ComplianceResult @@ -44,9 +44,9 @@ namespace AlibabaCloud }; - GetResourceComplianceByConfigRuleResult(); - explicit GetResourceComplianceByConfigRuleResult(const std::string &payload); - ~GetResourceComplianceByConfigRuleResult(); + DescribeComplianceResult(); + explicit DescribeComplianceResult(const std::string &payload); + ~DescribeComplianceResult(); ComplianceResult getComplianceResult()const; protected: @@ -58,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYCONFIGRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GenerateConfigRulesReportRequest.h b/config/include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h similarity index 61% rename from config/include/alibabacloud/config/model/GenerateConfigRulesReportRequest.h rename to config/include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h index c38b3c9bf..7c6116e64 100644 --- a/config/include/alibabacloud/config/model/GenerateConfigRulesReportRequest.h +++ b/config/include/alibabacloud/config/model/DescribeComplianceSummaryRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_ #include #include @@ -26,20 +26,20 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GenerateConfigRulesReportRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceSummaryRequest : public RpcServiceRequest { public: - GenerateConfigRulesReportRequest(); - ~GenerateConfigRulesReportRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getConfigRuleIds() const; - void setConfigRuleIds(const std::string &configRuleIds); + DescribeComplianceSummaryRequest(); + ~DescribeComplianceSummaryRequest(); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); + long getMemberId() const; + void setMemberId(long memberId); private: - std::string clientToken_; - std::string configRuleIds_; + bool multiAccount_; + long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateRemediationsResult.h b/config/include/alibabacloud/config/model/DescribeComplianceSummaryResult.h similarity index 50% rename from config/include/alibabacloud/config/model/ListAggregateRemediationsResult.h rename to config/include/alibabacloud/config/model/DescribeComplianceSummaryResult.h index 2bc403eac..d30414193 100644 --- a/config/include/alibabacloud/config/model/ListAggregateRemediationsResult.h +++ b/config/include/alibabacloud/config/model/DescribeComplianceSummaryResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONSRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYRESULT_H_ #include #include @@ -29,39 +29,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT ListAggregateRemediationsResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT DescribeComplianceSummaryResult : public ServiceResult { public: - struct Remediation + struct ComplianceSummary { - std::string remediationTemplateId; - long accountId; - std::string remediationSourceType; - std::string remediaitonOriginParams; - long lastSuccessfulInvocationTime; - std::string remediationId; - std::string remediationDynamicParams; - std::string lastSuccessfulInvocationType; - std::string configRuleId; - std::string invokeType; - std::string lastSuccessfulInvocationId; - std::string remediationType; - std::string aggregatorId; + struct ComplianceSummaryByResource + { + long totalCount; + int compliantCount; + int nonCompliantCount; + long complianceSummaryTimestamp; + }; + struct ComplianceSummaryByConfigRule + { + long totalCount; + int compliantCount; + int nonCompliantCount; + long complianceSummaryTimestamp; + }; + ComplianceSummaryByResource complianceSummaryByResource; + ComplianceSummaryByConfigRule complianceSummaryByConfigRule; }; - ListAggregateRemediationsResult(); - explicit ListAggregateRemediationsResult(const std::string &payload); - ~ListAggregateRemediationsResult(); - std::vector getRemediations()const; + DescribeComplianceSummaryResult(); + explicit DescribeComplianceSummaryResult(const std::string &payload); + ~DescribeComplianceSummaryResult(); + ComplianceSummary getComplianceSummary()const; protected: void parse(const std::string &payload); private: - std::vector remediations_; + ComplianceSummary complianceSummary_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATEREMEDIATIONSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECOMPLIANCESUMMARYRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/StartAggregateRemediationRequest.h b/config/include/alibabacloud/config/model/DescribeConfigRuleRequest.h similarity index 65% rename from config/include/alibabacloud/config/model/StartAggregateRemediationRequest.h rename to config/include/alibabacloud/config/model/DescribeConfigRuleRequest.h index 1475eb68f..0bc1b7354 100644 --- a/config/include/alibabacloud/config/model/StartAggregateRemediationRequest.h +++ b/config/include/alibabacloud/config/model/DescribeConfigRuleRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_ #include #include @@ -26,20 +26,23 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT StartAggregateRemediationRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigRuleRequest : public RpcServiceRequest { public: - StartAggregateRemediationRequest(); - ~StartAggregateRemediationRequest(); + DescribeConfigRuleRequest(); + ~DescribeConfigRuleRequest(); std::string getConfigRuleId() const; void setConfigRuleId(const std::string &configRuleId); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); + long getMemberId() const; + void setMemberId(long memberId); private: std::string configRuleId_; - std::string aggregatorId_; + bool multiAccount_; + long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetConfigRuleResult.h b/config/include/alibabacloud/config/model/DescribeConfigRuleResult.h similarity index 74% rename from config/include/alibabacloud/config/model/GetConfigRuleResult.h rename to config/include/alibabacloud/config/model/DescribeConfigRuleResult.h index 0ab69afc9..53c4530be 100644 --- a/config/include/alibabacloud/config/model/GetConfigRuleResult.h +++ b/config/include/alibabacloud/config/model/DescribeConfigRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULERESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULERESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigRuleResult : public ServiceResult { public: struct ConfigRule @@ -42,9 +42,18 @@ namespace AlibabaCloud std::string messageType; std::string maximumExecutionFrequency; }; + struct SourceConditionsItem + { + std::string desiredValue; + bool required; + std::string _operator; + std::string selectPath; + std::string tips; + std::string name; + }; std::string owner; std::string identifier; - std::vector sourceConditions; + std::vector sourceConditions; std::vector sourceDetails; }; struct ManagedRule @@ -66,13 +75,16 @@ namespace AlibabaCloud }; struct CreateBy { - std::string compliancePackId; - std::string aggregatorName; - std::string compliancePackName; std::string creatorId; + std::string configRuleSceneName; + std::string configRuleSceneId; std::string creatorType; std::string creatorName; - std::string aggregatorId; + }; + struct Scope + { + std::string complianceResourceId; + std::vector complianceResourceTypes; }; struct ConfigRuleEvaluationStatus { @@ -85,46 +97,28 @@ namespace AlibabaCloud std::string lastErrorCode; long lastSuccessfulInvocationTimestamp; }; - struct Scope - { - std::vector complianceResourceTypes; - }; - struct Compliance - { - std::string complianceType; - int count; - }; - std::string tagValueScope; + ManagedRule managedRule; std::string description; - long accountId; - Compliance compliance; - std::string tagKeyLogicScope; CreateBy createBy; ConfigRuleEvaluationStatus configRuleEvaluationStatus; Source source; - std::string maximumExecutionFrequency; - std::string regionIdsScope; - long modifiedTimestamp; - std::string resourceGroupIdsScope; - long createTimestamp; - std::string inputParameters; - std::string tagKeyScope; - ManagedRule managedRule; - std::string excludeResourceIdsScope; std::string configRuleState; + std::string maximumExecutionFrequency; + bool organizationRule; std::string configRuleId; Scope scope; std::string configRuleArn; - std::string configRuleTriggerTypes; + long modifiedTimestamp; std::string configRuleName; int riskLevel; - std::string resourceTypesScope; + long createTimestamp; + std::string inputParameters; }; - GetConfigRuleResult(); - explicit GetConfigRuleResult(const std::string &payload); - ~GetConfigRuleResult(); + DescribeConfigRuleResult(); + explicit DescribeConfigRuleResult(const std::string &payload); + ~DescribeConfigRuleResult(); ConfigRule getConfigRule()const; protected: @@ -136,4 +130,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelRequest.h b/config/include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h similarity index 67% rename from config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelRequest.h rename to config/include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h index 9ed9a6b51..3357a81a8 100644 --- a/config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelRequest.h +++ b/config/include/alibabacloud/config/model/DescribeConfigurationRecorderRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_ #include #include @@ -26,14 +26,14 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleSummaryByRiskLevelRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigurationRecorderRequest : public RpcServiceRequest { public: - GetConfigRuleSummaryByRiskLevelRequest(); - ~GetConfigRuleSummaryByRiskLevelRequest(); + DescribeConfigurationRecorderRequest(); + ~DescribeConfigurationRecorderRequest(); private: }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportResult.h b/config/include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h similarity index 57% rename from config/include/alibabacloud/config/model/GetAggregateConfigRulesReportResult.h rename to config/include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h index c514719f7..07761d45f 100644 --- a/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportResult.h +++ b/config/include/alibabacloud/config/model/DescribeConfigurationRecorderResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERRESULT_H_ #include #include @@ -29,32 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRulesReportResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT DescribeConfigurationRecorderResult : public ServiceResult { public: - struct ConfigRulesReport + struct ConfigurationRecorder { + std::string configurationRecorderStatus; + std::vector resourceTypes; long accountId; - std::string reportUrl; - std::string reportId; - std::string reportStatus; - std::string aggregatorId; - long reportCreateTimestamp; + long organizationMasterId; + std::string organizationEnableStatus; }; - GetAggregateConfigRulesReportResult(); - explicit GetAggregateConfigRulesReportResult(const std::string &payload); - ~GetAggregateConfigRulesReportResult(); - ConfigRulesReport getConfigRulesReport()const; + DescribeConfigurationRecorderResult(); + explicit DescribeConfigurationRecorderResult(const std::string &payload); + ~DescribeConfigurationRecorderResult(); + ConfigurationRecorder getConfigurationRecorder()const; protected: void parse(const std::string &payload); private: - ConfigRulesReport configRulesReport_; + ConfigurationRecorder configurationRecorder_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBECONFIGURATIONRECORDERRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListConfigDeliveryChannelsRequest.h b/config/include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h similarity index 72% rename from config/include/alibabacloud/config/model/ListConfigDeliveryChannelsRequest.h rename to config/include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h index f7eaeb560..527a54ebf 100644 --- a/config/include/alibabacloud/config/model/ListConfigDeliveryChannelsRequest.h +++ b/config/include/alibabacloud/config/model/DescribeDeliveryChannelsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGDELIVERYCHANNELSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGDELIVERYCHANNELSREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListConfigDeliveryChannelsRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT DescribeDeliveryChannelsRequest : public RpcServiceRequest { public: - ListConfigDeliveryChannelsRequest(); - ~ListConfigDeliveryChannelsRequest(); + DescribeDeliveryChannelsRequest(); + ~DescribeDeliveryChannelsRequest(); std::string getDeliveryChannelIds() const; void setDeliveryChannelIds(const std::string &deliveryChannelIds); @@ -39,4 +39,4 @@ private: } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGDELIVERYCHANNELSREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListConfigDeliveryChannelsResult.h b/config/include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h similarity index 76% rename from config/include/alibabacloud/config/model/ListConfigDeliveryChannelsResult.h rename to config/include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h index 873906540..469a3ced6 100644 --- a/config/include/alibabacloud/config/model/ListConfigDeliveryChannelsResult.h +++ b/config/include/alibabacloud/config/model/DescribeDeliveryChannelsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGDELIVERYCHANNELSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGDELIVERYCHANNELSRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSRESULT_H_ #include #include @@ -29,30 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT ListConfigDeliveryChannelsResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT DescribeDeliveryChannelsResult : public ServiceResult { public: struct DeliveryChannel { int status; - std::string oversizedDataOSSTargetArn; bool configurationSnapshot; + std::string oversizedDataOSSTargetArn; std::string description; - long accountId; std::string deliveryChannelName; std::string deliveryChannelId; std::string deliveryChannelTargetArn; std::string deliveryChannelAssumeRoleArn; + bool configurationItemChangeNotification; std::string deliveryChannelType; std::string deliveryChannelCondition; bool nonCompliantNotification; - bool configurationItemChangeNotification; }; - ListConfigDeliveryChannelsResult(); - explicit ListConfigDeliveryChannelsResult(const std::string &payload); - ~ListConfigDeliveryChannelsResult(); + DescribeDeliveryChannelsResult(); + explicit DescribeDeliveryChannelsResult(const std::string &payload); + ~DescribeDeliveryChannelsResult(); std::vector getDeliveryChannels()const; protected: @@ -64,4 +63,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGDELIVERYCHANNELSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDELIVERYCHANNELSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceRequest.h b/config/include/alibabacloud/config/model/DescribeDiscoveredResourceRequest.h similarity index 67% rename from config/include/alibabacloud/config/model/GetDiscoveredResourceRequest.h rename to config/include/alibabacloud/config/model/DescribeDiscoveredResourceRequest.h index be36ffe13..c6c7b645b 100644 --- a/config/include/alibabacloud/config/model/GetDiscoveredResourceRequest.h +++ b/config/include/alibabacloud/config/model/DescribeDiscoveredResourceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCEREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_ #include #include @@ -26,23 +26,29 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT DescribeDiscoveredResourceRequest : public RpcServiceRequest { public: - GetDiscoveredResourceRequest(); - ~GetDiscoveredResourceRequest(); + DescribeDiscoveredResourceRequest(); + ~DescribeDiscoveredResourceRequest(); std::string getResourceId() const; void setResourceId(const std::string &resourceId); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); std::string getResourceType() const; void setResourceType(const std::string &resourceType); std::string getRegion() const; void setRegion(const std::string ®ion); + long getMemberId() const; + void setMemberId(long memberId); private: std::string resourceId_; + bool multiAccount_; std::string resourceType_; std::string region_; + long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCEREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceResult.h b/config/include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h similarity index 75% rename from config/include/alibabacloud/config/model/GetDiscoveredResourceResult.h rename to config/include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h index be6c8a462..e68f76454 100644 --- a/config/include/alibabacloud/config/model/GetDiscoveredResourceResult.h +++ b/config/include/alibabacloud/config/model/DescribeDiscoveredResourceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCERESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCERESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT DescribeDiscoveredResourceResult : public ServiceResult { public: struct DiscoveredResourceDetail @@ -48,9 +48,9 @@ namespace AlibabaCloud }; - GetDiscoveredResourceResult(); - explicit GetDiscoveredResourceResult(const std::string &payload); - ~GetDiscoveredResourceResult(); + DescribeDiscoveredResourceResult(); + explicit DescribeDiscoveredResourceResult(const std::string &payload); + ~DescribeDiscoveredResourceResult(); DiscoveredResourceDetail getDiscoveredResourceDetail()const; protected: @@ -62,4 +62,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEDISCOVEREDRESOURCERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/DescribeEvaluationResultsRequest.h similarity index 58% rename from config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsRequest.h rename to config/include/alibabacloud/config/model/DescribeEvaluationResultsRequest.h index 74d3f6594..870931905 100644 --- a/config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsRequest.h +++ b/config/include/alibabacloud/config/model/DescribeEvaluationResultsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCEEVALUATIONRESULTSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCEEVALUATIONRESULTSREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_ #include #include @@ -26,35 +26,38 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListAggregateResourceEvaluationResultsRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT DescribeEvaluationResultsRequest : public RpcServiceRequest { public: - ListAggregateResourceEvaluationResultsRequest(); - ~ListAggregateResourceEvaluationResultsRequest(); - std::string getResourceId() const; - void setResourceId(const std::string &resourceId); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - int getMaxResults() const; - void setMaxResults(int maxResults); - std::string getRegion() const; - void setRegion(const std::string ®ion); + DescribeEvaluationResultsRequest(); + ~DescribeEvaluationResultsRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); std::string getComplianceType() const; void setComplianceType(const std::string &complianceType); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + long getMemberId() const; + void setMemberId(long memberId); private: - std::string resourceId_; - std::string aggregatorId_; - std::string resourceType_; - std::string nextToken_; - int maxResults_; - std::string region_; + std::string configRuleId_; + bool multiAccount_; + int pageNumber_; + int pageSize_; std::string complianceType_; + std::string resourceId_; + std::string resourceType_; + long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCEEVALUATIONRESULTSREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListResourceEvaluationResultsResult.h b/config/include/alibabacloud/config/model/DescribeEvaluationResultsResult.h similarity index 77% rename from config/include/alibabacloud/config/model/ListResourceEvaluationResultsResult.h rename to config/include/alibabacloud/config/model/DescribeEvaluationResultsResult.h index cb46d6547..5fdaac7e6 100644 --- a/config/include/alibabacloud/config/model/ListResourceEvaluationResultsResult.h +++ b/config/include/alibabacloud/config/model/DescribeEvaluationResultsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT ListResourceEvaluationResultsResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT DescribeEvaluationResultsResult : public ServiceResult { public: struct EvaluationResults @@ -44,7 +44,6 @@ namespace AlibabaCloud std::string configRuleArn; std::string resourceId; std::string resourceName; - std::string ignoreDate; std::string configRuleName; std::string resourceType; std::string regionId; @@ -62,14 +61,15 @@ namespace AlibabaCloud std::string annotation; }; std::vector evaluationResultList; - std::string nextToken; - int maxResults; + long totalCount; + int pageSize; + int pageNumber; }; - ListResourceEvaluationResultsResult(); - explicit ListResourceEvaluationResultsResult(const std::string &payload); - ~ListResourceEvaluationResultsResult(); + DescribeEvaluationResultsResult(); + explicit DescribeEvaluationResultsResult(const std::string &payload); + ~DescribeEvaluationResultsResult(); EvaluationResults getEvaluationResults()const; protected: @@ -81,4 +81,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTRESOURCEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_DESCRIBEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackRequest.h b/config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackRequest.h deleted file mode 100644 index 853159e8f..000000000 --- a/config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_DETACHAGGREGATECONFIGRULETOCOMPLIANCEPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DETACHAGGREGATECONFIGRULETOCOMPLIANCEPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DetachAggregateConfigRuleToCompliancePackRequest : public RpcServiceRequest { -public: - DetachAggregateConfigRuleToCompliancePackRequest(); - ~DetachAggregateConfigRuleToCompliancePackRequest(); - std::string getConfigRuleIds() const; - void setConfigRuleIds(const std::string &configRuleIds); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string configRuleIds_; - std::string aggregatorId_; - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DETACHAGGREGATECONFIGRULETOCOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackResult.h b/config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackResult.h deleted file mode 100644 index 01bd0d4de..000000000 --- a/config/include/alibabacloud/config/model/DetachAggregateConfigRuleToCompliancePackResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_DETACHAGGREGATECONFIGRULETOCOMPLIANCEPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DETACHAGGREGATECONFIGRULETOCOMPLIANCEPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT DetachAggregateConfigRuleToCompliancePackResult : public ServiceResult - { - public: - struct OperateRuleResult - { - struct OperateRuleItem - { - std::string configRuleId; - std::string errorCode; - bool success; - }; - std::vector operateRuleItemList; - }; - - - DetachAggregateConfigRuleToCompliancePackResult(); - explicit DetachAggregateConfigRuleToCompliancePackResult(const std::string &payload); - ~DetachAggregateConfigRuleToCompliancePackResult(); - OperateRuleResult getOperateRuleResult()const; - - protected: - void parse(const std::string &payload); - private: - OperateRuleResult operateRuleResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_DETACHAGGREGATECONFIGRULETOCOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackRequest.h b/config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackRequest.h deleted file mode 100644 index 561efac2c..000000000 --- a/config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_DETACHCONFIGRULETOCOMPLIANCEPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DETACHCONFIGRULETOCOMPLIANCEPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DetachConfigRuleToCompliancePackRequest : public RpcServiceRequest { -public: - DetachConfigRuleToCompliancePackRequest(); - ~DetachConfigRuleToCompliancePackRequest(); - std::string getConfigRuleIds() const; - void setConfigRuleIds(const std::string &configRuleIds); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string configRuleIds_; - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DETACHCONFIGRULETOCOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackResult.h b/config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackResult.h deleted file mode 100644 index 5bd160f94..000000000 --- a/config/include/alibabacloud/config/model/DetachConfigRuleToCompliancePackResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_DETACHCONFIGRULETOCOMPLIANCEPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DETACHCONFIGRULETOCOMPLIANCEPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT DetachConfigRuleToCompliancePackResult : public ServiceResult - { - public: - struct OperateRuleResult - { - struct OperateRuleItem - { - std::string configRuleId; - std::string errorCode; - bool success; - }; - std::vector operateRuleItemList; - }; - - - DetachConfigRuleToCompliancePackResult(); - explicit DetachConfigRuleToCompliancePackResult(const std::string &payload); - ~DetachConfigRuleToCompliancePackResult(); - OperateRuleResult getOperateRuleResult()const; - - protected: - void parse(const std::string &payload); - private: - OperateRuleResult operateRuleResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_DETACHCONFIGRULETOCOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportRequest.h b/config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportRequest.h deleted file mode 100644 index 9bc9aacfb..000000000 --- a/config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECOMPLIANCEPACKREPORTREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECOMPLIANCEPACKREPORTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GenerateAggregateCompliancePackReportRequest : public RpcServiceRequest { -public: - GenerateAggregateCompliancePackReportRequest(); - ~GenerateAggregateCompliancePackReportRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string clientToken_; - std::string aggregatorId_; - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECOMPLIANCEPACKREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportResult.h b/config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportResult.h deleted file mode 100644 index 7a6bb933b..000000000 --- a/config/include/alibabacloud/config/model/GenerateAggregateCompliancePackReportResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GenerateAggregateCompliancePackReportResult : public ServiceResult - { - public: - - - GenerateAggregateCompliancePackReportResult(); - explicit GenerateAggregateCompliancePackReportResult(const std::string &payload); - ~GenerateAggregateCompliancePackReportResult(); - std::string getCompliancePackId()const; - - protected: - void parse(const std::string &payload); - private: - std::string compliancePackId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportRequest.h b/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportRequest.h deleted file mode 100644 index 407f0b5dc..000000000 --- a/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GenerateAggregateConfigRulesReportRequest : public RpcServiceRequest { -public: - GenerateAggregateConfigRulesReportRequest(); - ~GenerateAggregateConfigRulesReportRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getConfigRuleIds() const; - void setConfigRuleIds(const std::string &configRuleIds); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - -private: - std::string clientToken_; - std::string configRuleIds_; - std::string aggregatorId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportResult.h b/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportResult.h deleted file mode 100644 index 4cf57ec81..000000000 --- a/config/include/alibabacloud/config/model/GenerateAggregateConfigRulesReportResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GenerateAggregateConfigRulesReportResult : public ServiceResult - { - public: - - - GenerateAggregateConfigRulesReportResult(); - explicit GenerateAggregateConfigRulesReportResult(const std::string &payload); - ~GenerateAggregateConfigRulesReportResult(); - std::string getReportId()const; - std::string getAggregatorId()const; - - protected: - void parse(const std::string &payload); - private: - std::string reportId_; - std::string aggregatorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATEAGGREGATECONFIGRULESREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GenerateCompliancePackReportRequest.h b/config/include/alibabacloud/config/model/GenerateCompliancePackReportRequest.h deleted file mode 100644 index 7e6e5c1b3..000000000 --- a/config/include/alibabacloud/config/model/GenerateCompliancePackReportRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GenerateCompliancePackReportRequest : public RpcServiceRequest { -public: - GenerateCompliancePackReportRequest(); - ~GenerateCompliancePackReportRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string clientToken_; - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackRequest.h b/config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackRequest.h deleted file mode 100644 index e900bb812..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEACCOUNTCOMPLIANCEBYPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEACCOUNTCOMPLIANCEBYPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateAccountComplianceByPackRequest : public RpcServiceRequest { -public: - GetAggregateAccountComplianceByPackRequest(); - ~GetAggregateAccountComplianceByPackRequest(); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string aggregatorId_; - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEACCOUNTCOMPLIANCEBYPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackResult.h b/config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackResult.h deleted file mode 100644 index 78c8095dc..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateAccountComplianceByPackResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEACCOUNTCOMPLIANCEBYPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEACCOUNTCOMPLIANCEBYPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateAccountComplianceByPackResult : public ServiceResult - { - public: - struct AccountComplianceResult - { - struct AccountCompliancesItem - { - long accountId; - std::string complianceType; - std::string accountName; - }; - std::string compliancePackId; - int totalCount; - int nonCompliantCount; - std::vector accountCompliances; - }; - - - GetAggregateAccountComplianceByPackResult(); - explicit GetAggregateAccountComplianceByPackResult(const std::string &payload); - ~GetAggregateAccountComplianceByPackResult(); - AccountComplianceResult getAccountComplianceResult()const; - - protected: - void parse(const std::string &payload); - private: - AccountComplianceResult accountComplianceResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATEACCOUNTCOMPLIANCEBYPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportRequest.h b/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportRequest.h deleted file mode 100644 index 50ae77ed7..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateCompliancePackReportRequest : public RpcServiceRequest { -public: - GetAggregateCompliancePackReportRequest(); - ~GetAggregateCompliancePackReportRequest(); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string aggregatorId_; - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportResult.h b/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportResult.h deleted file mode 100644 index b606e2ab6..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateCompliancePackReportResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateCompliancePackReportResult : public ServiceResult - { - public: - struct CompliancePackReport - { - std::string compliancePackId; - long accountId; - std::string reportUrl; - std::string reportStatus; - long reportCreateTimestamp; - }; - - - GetAggregateCompliancePackReportResult(); - explicit GetAggregateCompliancePackReportResult(const std::string &payload); - ~GetAggregateCompliancePackReportResult(); - CompliancePackReport getCompliancePackReport()const; - - protected: - void parse(const std::string &payload); - private: - CompliancePackReport compliancePackReport_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateCompliancePackRequest.h b/config/include/alibabacloud/config/model/GetAggregateCompliancePackRequest.h deleted file mode 100644 index d6761e8dc..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateCompliancePackRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateCompliancePackRequest : public RpcServiceRequest { -public: - GetAggregateCompliancePackRequest(); - ~GetAggregateCompliancePackRequest(); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string aggregatorId_; - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateCompliancePackResult.h b/config/include/alibabacloud/config/model/GetAggregateCompliancePackResult.h deleted file mode 100644 index c1883e2b2..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateCompliancePackResult.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateCompliancePackResult : public ServiceResult - { - public: - struct CompliancePack - { - struct ConfigRulesItem - { - struct ConfigRuleParametersItem - { - bool required; - std::string parameterValue; - std::string parameterName; - }; - std::string configRuleId; - std::string description; - std::string configRuleName; - std::string managedRuleIdentifier; - int riskLevel; - std::vector configRuleParameters; - }; - std::string status; - std::string compliancePackId; - std::string description; - std::string compliancePackName; - long accountId; - std::vector configRules; - std::string compliancePackTemplateId; - int riskLevel; - long createTimestamp; - std::string aggregatorId; - }; - - - GetAggregateCompliancePackResult(); - explicit GetAggregateCompliancePackResult(const std::string &payload); - ~GetAggregateCompliancePackResult(); - CompliancePack getCompliancePack()const; - - protected: - void parse(const std::string &payload); - private: - CompliancePack compliancePack_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelRequest.h deleted file mode 100644 index c5b156cea..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigDeliveryChannelRequest : public RpcServiceRequest { -public: - GetAggregateConfigDeliveryChannelRequest(); - ~GetAggregateConfigDeliveryChannelRequest(); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getDeliveryChannelId() const; - void setDeliveryChannelId(const std::string &deliveryChannelId); - -private: - std::string aggregatorId_; - std::string deliveryChannelId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelResult.h deleted file mode 100644 index e0ec5e713..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateConfigDeliveryChannelResult.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigDeliveryChannelResult : public ServiceResult - { - public: - struct DeliveryChannel - { - int status; - std::string oversizedDataOSSTargetArn; - bool configurationSnapshot; - std::string description; - std::string accountId; - std::string deliveryChannelId; - std::string deliveryChannelName; - std::string deliveryChannelTargetArn; - std::string deliveryChannelAssumeRoleArn; - std::string deliveryChannelType; - std::string deliveryChannelCondition; - bool nonCompliantNotification; - bool configurationItemChangeNotification; - std::string aggregatorId; - }; - - - GetAggregateConfigDeliveryChannelResult(); - explicit GetAggregateConfigDeliveryChannelResult(const std::string &payload); - ~GetAggregateConfigDeliveryChannelResult(); - DeliveryChannel getDeliveryChannel()const; - - protected: - void parse(const std::string &payload); - private: - DeliveryChannel deliveryChannel_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackRequest.h b/config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackRequest.h deleted file mode 100644 index 2905c33db..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULECOMPLIANCEBYPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULECOMPLIANCEBYPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRuleComplianceByPackRequest : public RpcServiceRequest { -public: - GetAggregateConfigRuleComplianceByPackRequest(); - ~GetAggregateConfigRuleComplianceByPackRequest(); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string aggregatorId_; - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULECOMPLIANCEBYPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackResult.h b/config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackResult.h deleted file mode 100644 index 8d7ea9449..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateConfigRuleComplianceByPackResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULECOMPLIANCEBYPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULECOMPLIANCEBYPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRuleComplianceByPackResult : public ServiceResult - { - public: - struct ConfigRuleComplianceResult - { - struct ConfigRuleCompliancesItem - { - std::string configRuleId; - std::string complianceType; - std::string configRuleName; - }; - std::vector configRuleCompliances; - std::string compliancePackId; - int totalCount; - int nonCompliantCount; - }; - - - GetAggregateConfigRuleComplianceByPackResult(); - explicit GetAggregateConfigRuleComplianceByPackResult(const std::string &payload); - ~GetAggregateConfigRuleComplianceByPackResult(); - ConfigRuleComplianceResult getConfigRuleComplianceResult()const; - - protected: - void parse(const std::string &payload); - private: - ConfigRuleComplianceResult configRuleComplianceResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULECOMPLIANCEBYPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRuleRequest.h b/config/include/alibabacloud/config/model/GetAggregateConfigRuleRequest.h deleted file mode 100644 index 9e4582d2f..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateConfigRuleRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRuleRequest : public RpcServiceRequest { -public: - GetAggregateConfigRuleRequest(); - ~GetAggregateConfigRuleRequest(); - 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_GETAGGREGATECONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRuleResult.h b/config/include/alibabacloud/config/model/GetAggregateConfigRuleResult.h deleted file mode 100644 index ed55c53b3..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateConfigRuleResult.h +++ /dev/null @@ -1,142 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRuleResult : public ServiceResult - { - public: - struct ConfigRule - { - struct Source - { - struct SourceDetailsItem - { - std::string eventSource; - std::string messageType; - std::string maximumExecutionFrequency; - }; - std::string owner; - std::string identifier; - std::vector sourceConditions; - std::vector sourceDetails; - }; - struct ManagedRule - { - struct SourceDetailsItem2 - { - std::string eventSource; - std::string messageType; - std::string maximumExecutionFrequency; - }; - std::string managedRuleName; - std::string optionalInputParameterDetails; - std::string description; - std::string identifier; - std::string compulsoryInputParameterDetails; - std::vector labels; - std::vector sourceDetails1; - std::string helpUrl; - }; - struct CreateBy - { - std::string compliancePackId; - std::string aggregatorName; - std::string compliancePackName; - std::string creatorId; - std::string creatorType; - std::string creatorName; - std::string aggregatorId; - }; - struct ConfigRuleEvaluationStatus - { - std::string lastErrorMessage; - long lastFailedInvocationTimestamp; - long lastSuccessfulEvaluationTimestamp; - long firstActivatedTimestamp; - bool firstEvaluationStarted; - long lastFailedEvaluationTimestamp; - std::string lastErrorCode; - long lastSuccessfulInvocationTimestamp; - }; - struct Scope - { - std::vector complianceResourceTypes; - }; - struct Compliance - { - std::string complianceType; - int count; - }; - std::string tagValueScope; - std::string excludeAccountIdsScope; - std::string description; - long accountId; - Compliance compliance; - std::string tagKeyLogicScope; - CreateBy createBy; - ConfigRuleEvaluationStatus configRuleEvaluationStatus; - Source source; - std::string maximumExecutionFrequency; - std::string regionIdsScope; - long modifiedTimestamp; - std::string resourceGroupIdsScope; - long createTimestamp; - std::string inputParameters; - std::string tagKeyScope; - ManagedRule managedRule; - std::string excludeFolderIdsScope; - std::string excludeResourceIdsScope; - std::string configRuleState; - std::string configRuleId; - Scope scope; - std::string configRuleArn; - std::string configRuleTriggerTypes; - std::string folderIdsScope; - std::string configRuleName; - int riskLevel; - std::string resourceTypesScope; - }; - - - GetAggregateConfigRuleResult(); - explicit GetAggregateConfigRuleResult(const std::string &payload); - ~GetAggregateConfigRuleResult(); - ConfigRule getConfigRule()const; - - protected: - void parse(const std::string &payload); - private: - ConfigRule configRule_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.h b/config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.h deleted file mode 100644 index b23943712..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRuleSummaryByRiskLevelRequest : public RpcServiceRequest { -public: - GetAggregateConfigRuleSummaryByRiskLevelRequest(); - ~GetAggregateConfigRuleSummaryByRiskLevelRequest(); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - -private: - std::string aggregatorId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESUMMARYBYRISKLEVELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelResult.h b/config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelResult.h deleted file mode 100644 index 51a471479..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateConfigRuleSummaryByRiskLevelResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESUMMARYBYRISKLEVELRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESUMMARYBYRISKLEVELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRuleSummaryByRiskLevelResult : public ServiceResult - { - public: - struct Data - { - int compliantCount; - int nonCompliantCount; - int riskLevel; - }; - - - GetAggregateConfigRuleSummaryByRiskLevelResult(); - explicit GetAggregateConfigRuleSummaryByRiskLevelResult(const std::string &payload); - ~GetAggregateConfigRuleSummaryByRiskLevelResult(); - std::vector getConfigRuleSummaries()const; - - protected: - void parse(const std::string &payload); - private: - std::vector configRuleSummaries_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESUMMARYBYRISKLEVELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportRequest.h b/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportRequest.h deleted file mode 100644 index a5776a48e..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateConfigRulesReportRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateConfigRulesReportRequest : public RpcServiceRequest { -public: - GetAggregateConfigRulesReportRequest(); - ~GetAggregateConfigRulesReportRequest(); - std::string getReportId() const; - void setReportId(const std::string &reportId); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - -private: - std::string reportId_; - std::string aggregatorId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATECONFIGRULESREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h deleted file mode 100644 index 2310da082..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYCONFIGRULEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYCONFIGRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceByConfigRuleRequest : public RpcServiceRequest { -public: - GetAggregateResourceComplianceByConfigRuleRequest(); - ~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; - void setComplianceType(const std::string &complianceType); - -private: - std::string configRuleId_; - long resourceOwnerId_; - std::string aggregatorId_; - std::string complianceType_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYCONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleResult.h deleted file mode 100644 index 3f62bd585..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByConfigRuleResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYCONFIGRULERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYCONFIGRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceByConfigRuleResult : public ServiceResult - { - public: - struct ComplianceResult - { - struct CompliancesItem - { - std::string complianceType; - int count; - }; - long totalCount; - std::vector compliances; - }; - - - GetAggregateResourceComplianceByConfigRuleResult(); - explicit GetAggregateResourceComplianceByConfigRuleResult(const std::string &payload); - ~GetAggregateResourceComplianceByConfigRuleResult(); - ComplianceResult getComplianceResult()const; - - protected: - void parse(const std::string &payload); - private: - ComplianceResult complianceResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYCONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackRequest.h deleted file mode 100644 index eeb386dd1..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceByPackRequest : public RpcServiceRequest { -public: - GetAggregateResourceComplianceByPackRequest(); - ~GetAggregateResourceComplianceByPackRequest(); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string aggregatorId_; - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackResult.h deleted file mode 100644 index 10c747975..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceByPackResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceByPackResult : public ServiceResult - { - public: - struct ResourceComplianceResult - { - std::string compliancePackId; - int totalCount; - int nonCompliantCount; - }; - - - GetAggregateResourceComplianceByPackResult(); - explicit GetAggregateResourceComplianceByPackResult(const std::string &payload); - ~GetAggregateResourceComplianceByPackResult(); - ResourceComplianceResult getResourceComplianceResult()const; - - protected: - void parse(const std::string &payload); - private: - ResourceComplianceResult resourceComplianceResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEBYPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionRequest.h deleted file mode 100644 index 05380d529..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceGroupByRegionRequest : public RpcServiceRequest { -public: - GetAggregateResourceComplianceGroupByRegionRequest(); - ~GetAggregateResourceComplianceGroupByRegionRequest(); - std::string getConfigRuleIds() const; - void setConfigRuleIds(const std::string &configRuleIds); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - -private: - std::string configRuleIds_; - std::string aggregatorId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionResult.h deleted file mode 100644 index 991af5f9c..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByRegionResult.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceGroupByRegionResult : public ServiceResult - { - public: - struct ComplianceResult - { - struct ComplianceResultListItem - { - struct CompliancesItem - { - std::string complianceType; - long count; - }; - std::vector compliances; - std::string regionId; - }; - std::vector complianceResultList; - }; - - - GetAggregateResourceComplianceGroupByRegionResult(); - explicit GetAggregateResourceComplianceGroupByRegionResult(const std::string &payload); - ~GetAggregateResourceComplianceGroupByRegionResult(); - ComplianceResult getComplianceResult()const; - - protected: - void parse(const std::string &payload); - private: - ComplianceResult complianceResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.h deleted file mode 100644 index 64163cf43..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceGroupByResourceTypeRequest : public RpcServiceRequest { -public: - GetAggregateResourceComplianceGroupByResourceTypeRequest(); - ~GetAggregateResourceComplianceGroupByResourceTypeRequest(); - std::string getConfigRuleIds() const; - void setConfigRuleIds(const std::string &configRuleIds); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - -private: - std::string configRuleIds_; - std::string aggregatorId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeResult.h deleted file mode 100644 index 02952d4f0..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceGroupByResourceTypeResult.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceGroupByResourceTypeResult : public ServiceResult - { - public: - struct ComplianceResult - { - struct ComplianceResultListItem - { - struct CompliancesItem - { - std::string complianceType; - long count; - }; - std::vector compliances; - std::string resourceType; - }; - std::vector complianceResultList; - }; - - - GetAggregateResourceComplianceGroupByResourceTypeResult(); - explicit GetAggregateResourceComplianceGroupByResourceTypeResult(const std::string &payload); - ~GetAggregateResourceComplianceGroupByResourceTypeResult(); - ComplianceResult getComplianceResult()const; - - protected: - void parse(const std::string &payload); - private: - ComplianceResult complianceResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineRequest.h deleted file mode 100644 index c7754d535..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceTimelineRequest : public RpcServiceRequest { -public: - GetAggregateResourceComplianceTimelineRequest(); - ~GetAggregateResourceComplianceTimelineRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - long getStartTime() const; - void setStartTime(long startTime); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - std::string getResourceId() const; - void setResourceId(const std::string &resourceId); - long getEndTime() const; - void setEndTime(long endTime); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); - int getMaxResults() const; - void setMaxResults(int maxResults); - std::string getRegion() const; - void setRegion(const std::string ®ion); - -private: - long resourceOwnerId_; - std::string aggregatorId_; - long startTime_; - std::string nextToken_; - std::string resourceId_; - long endTime_; - std::string resourceType_; - int maxResults_; - std::string region_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineResult.h deleted file mode 100644 index fb181f10c..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceComplianceTimelineResult.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceComplianceTimelineResult : public ServiceResult - { - public: - struct ResourceComplianceTimeline - { - struct ComplianceListItem - { - std::string accountId; - long captureTime; - std::string configurationDiff; - std::string configuration; - std::string resourceId; - std::string resourceName; - std::string availabilityZone; - std::string region; - std::string resourceStatus; - std::string resourceType; - long resourceCreateTime; - std::string tags; - }; - std::vector complianceList; - std::string nextToken; - int maxResults; - }; - - - GetAggregateResourceComplianceTimelineResult(); - explicit GetAggregateResourceComplianceTimelineResult(const std::string &payload); - ~GetAggregateResourceComplianceTimelineResult(); - ResourceComplianceTimeline getResourceComplianceTimeline()const; - - protected: - void parse(const std::string &payload); - private: - ResourceComplianceTimeline resourceComplianceTimeline_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOMPLIANCETIMELINERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineRequest.h deleted file mode 100644 index fd9d645fc..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECONFIGURATIONTIMELINEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECONFIGURATIONTIMELINEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceConfigurationTimelineRequest : public RpcServiceRequest { -public: - GetAggregateResourceConfigurationTimelineRequest(); - ~GetAggregateResourceConfigurationTimelineRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - long getStartTime() const; - void setStartTime(long startTime); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - std::string getResourceId() const; - void setResourceId(const std::string &resourceId); - long getEndTime() const; - void setEndTime(long endTime); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); - int getMaxResults() const; - void setMaxResults(int maxResults); - std::string getRegion() const; - void setRegion(const std::string ®ion); - -private: - long resourceOwnerId_; - std::string aggregatorId_; - long startTime_; - std::string nextToken_; - std::string resourceId_; - long endTime_; - std::string resourceType_; - int maxResults_; - std::string region_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECONFIGURATIONTIMELINEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineResult.h deleted file mode 100644 index 2d2a41690..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceConfigurationTimelineResult.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECONFIGURATIONTIMELINERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECONFIGURATIONTIMELINERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceConfigurationTimelineResult : public ServiceResult - { - public: - struct ResourceConfigurationTimeline - { - struct ConfigurationListItem - { - long accountId; - std::string resourceName; - std::string availabilityZone; - std::string resourceType; - std::string resourceEventType; - std::string resourceCreateTime; - std::string relationshipDiff; - std::string captureTime; - std::string configurationDiff; - std::string resourceId; - std::string relationship; - std::string region; - std::string tags; - }; - std::string nextToken; - int maxResults; - std::vector configurationList; - }; - - - GetAggregateResourceConfigurationTimelineResult(); - explicit GetAggregateResourceConfigurationTimelineResult(const std::string &payload); - ~GetAggregateResourceConfigurationTimelineResult(); - ResourceConfigurationTimeline getResourceConfigurationTimeline()const; - - protected: - void parse(const std::string &payload); - private: - ResourceConfigurationTimeline resourceConfigurationTimeline_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECONFIGURATIONTIMELINERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionRequest.h deleted file mode 100644 index 2bc420720..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceCountsGroupByRegionRequest : public RpcServiceRequest { -public: - GetAggregateResourceCountsGroupByRegionRequest(); - ~GetAggregateResourceCountsGroupByRegionRequest(); - 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 getFolderId() const; - void setFolderId(const std::string &folderId); - -private: - long resourceOwnerId_; - std::string aggregatorId_; - std::string resourceType_; - std::string folderId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionResult.h deleted file mode 100644 index c53fb8f07..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByRegionResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceCountsGroupByRegionResult : public ServiceResult - { - public: - struct GroupedResourceCount - { - std::string groupName; - long resourceCount; - std::string region; - }; - - - GetAggregateResourceCountsGroupByRegionResult(); - explicit GetAggregateResourceCountsGroupByRegionResult(const std::string &payload); - ~GetAggregateResourceCountsGroupByRegionResult(); - std::vector getDiscoveredResourceCountsSummary()const; - - protected: - void parse(const std::string &payload); - private: - std::vector discoveredResourceCountsSummary_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYREGIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeRequest.h b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeRequest.h deleted file mode 100644 index 5ef699db5..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceCountsGroupByResourceTypeRequest : public RpcServiceRequest { -public: - GetAggregateResourceCountsGroupByResourceTypeRequest(); - ~GetAggregateResourceCountsGroupByResourceTypeRequest(); - long getResourceOwnerId() const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getFolderId() const; - void setFolderId(const std::string &folderId); - std::string getRegion() const; - void setRegion(const std::string ®ion); - -private: - long resourceOwnerId_; - std::string aggregatorId_; - std::string folderId_; - std::string region_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeResult.h b/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeResult.h deleted file mode 100644 index 8e2c10e51..000000000 --- a/config/include/alibabacloud/config/model/GetAggregateResourceCountsGroupByResourceTypeResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregateResourceCountsGroupByResourceTypeResult : public ServiceResult - { - public: - struct GroupedResourceCount - { - std::string groupName; - long resourceCount; - std::string resourceType; - }; - - - GetAggregateResourceCountsGroupByResourceTypeResult(); - explicit GetAggregateResourceCountsGroupByResourceTypeResult(const std::string &payload); - ~GetAggregateResourceCountsGroupByResourceTypeResult(); - std::vector getDiscoveredResourceCountsSummary()const; - - protected: - void parse(const std::string &payload); - private: - std::vector discoveredResourceCountsSummary_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATERESOURCECOUNTSGROUPBYRESOURCETYPERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetAggregatorRequest.h b/config/include/alibabacloud/config/model/GetAggregatorRequest.h deleted file mode 100644 index d2a2e9054..000000000 --- a/config/include/alibabacloud/config/model/GetAggregatorRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetAggregatorRequest : public RpcServiceRequest { -public: - GetAggregatorRequest(); - ~GetAggregatorRequest(); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - -private: - std::string aggregatorId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetAggregatorResult.h b/config/include/alibabacloud/config/model/GetAggregatorResult.h deleted file mode 100644 index e1b703bb8..000000000 --- a/config/include/alibabacloud/config/model/GetAggregatorResult.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetAggregatorResult : public ServiceResult - { - public: - struct Aggregator - { - struct AggregatorAccountsItem - { - long accountId; - std::string recorderStatus; - std::string accountType; - std::string accountName; - }; - std::string aggregatorName; - std::string description; - long accountId; - std::vector aggregatorAccounts; - std::string aggregatorCreateTimestamp; - long aggregatorAccountCount; - int aggregatorStatus; - std::string aggregatorType; - std::string aggregatorId; - }; - - - GetAggregatorResult(); - explicit GetAggregatorResult(const std::string &payload); - ~GetAggregatorResult(); - Aggregator getAggregator()const; - - protected: - void parse(const std::string &payload); - private: - Aggregator aggregator_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETAGGREGATORRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetCompliancePackRequest.h b/config/include/alibabacloud/config/model/GetCompliancePackRequest.h deleted file mode 100644 index 05945c6e4..000000000 --- a/config/include/alibabacloud/config/model/GetCompliancePackRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetCompliancePackRequest : public RpcServiceRequest { -public: - GetCompliancePackRequest(); - ~GetCompliancePackRequest(); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetCompliancePackResult.h b/config/include/alibabacloud/config/model/GetCompliancePackResult.h deleted file mode 100644 index db426573e..000000000 --- a/config/include/alibabacloud/config/model/GetCompliancePackResult.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetCompliancePackResult : public ServiceResult - { - public: - struct CompliancePack - { - struct ConfigRulesItem - { - struct ConfigRuleParametersItem - { - bool required; - std::string parameterValue; - std::string parameterName; - }; - std::string configRuleId; - std::string description; - std::string configRuleName; - std::string managedRuleIdentifier; - int riskLevel; - std::vector configRuleParameters; - }; - std::string status; - std::string compliancePackId; - std::string description; - std::string compliancePackName; - long accountId; - std::vector configRules; - std::string compliancePackTemplateId; - int riskLevel; - long createTimestamp; - }; - - - GetCompliancePackResult(); - explicit GetCompliancePackResult(const std::string &payload); - ~GetCompliancePackResult(); - CompliancePack getCompliancePack()const; - - protected: - void parse(const std::string &payload); - private: - CompliancePack compliancePack_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/GetConfigDeliveryChannelResult.h deleted file mode 100644 index 7003f800a..000000000 --- a/config/include/alibabacloud/config/model/GetConfigDeliveryChannelResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGDELIVERYCHANNELRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGDELIVERYCHANNELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetConfigDeliveryChannelResult : public ServiceResult - { - public: - struct DeliveryChannel - { - int status; - std::string oversizedDataOSSTargetArn; - bool configurationSnapshot; - std::string description; - long accountId; - std::string deliveryChannelId; - std::string deliveryChannelName; - std::string deliveryChannelTargetArn; - std::string deliveryChannelAssumeRoleArn; - std::string deliveryChannelType; - std::string deliveryChannelCondition; - bool nonCompliantNotification; - bool configurationItemChangeNotification; - }; - - - GetConfigDeliveryChannelResult(); - explicit GetConfigDeliveryChannelResult(const std::string &payload); - ~GetConfigDeliveryChannelResult(); - DeliveryChannel getDeliveryChannel()const; - - protected: - void parse(const std::string &payload); - private: - DeliveryChannel deliveryChannel_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGDELIVERYCHANNELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackRequest.h b/config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackRequest.h deleted file mode 100644 index a45dbfa5c..000000000 --- a/config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULECOMPLIANCEBYPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULECOMPLIANCEBYPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleComplianceByPackRequest : public RpcServiceRequest { -public: - GetConfigRuleComplianceByPackRequest(); - ~GetConfigRuleComplianceByPackRequest(); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULECOMPLIANCEBYPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackResult.h b/config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackResult.h deleted file mode 100644 index b2951ef81..000000000 --- a/config/include/alibabacloud/config/model/GetConfigRuleComplianceByPackResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULECOMPLIANCEBYPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULECOMPLIANCEBYPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleComplianceByPackResult : public ServiceResult - { - public: - struct ConfigRuleComplianceResult - { - struct ConfigRuleCompliancesItem - { - std::string configRuleId; - std::string complianceType; - std::string configRuleName; - }; - std::vector configRuleCompliances; - std::string compliancePackId; - int totalCount; - int nonCompliantCount; - }; - - - GetConfigRuleComplianceByPackResult(); - explicit GetConfigRuleComplianceByPackResult(const std::string &payload); - ~GetConfigRuleComplianceByPackResult(); - ConfigRuleComplianceResult getConfigRuleComplianceResult()const; - - protected: - void parse(const std::string &payload); - private: - ConfigRuleComplianceResult configRuleComplianceResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULECOMPLIANCEBYPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetConfigRuleRequest.h b/config/include/alibabacloud/config/model/GetConfigRuleRequest.h deleted file mode 100644 index 4fd41aecf..000000000 --- a/config/include/alibabacloud/config/model/GetConfigRuleRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleRequest : public RpcServiceRequest { -public: - GetConfigRuleRequest(); - ~GetConfigRuleRequest(); - std::string getConfigRuleId() const; - void setConfigRuleId(const std::string &configRuleId); - -private: - std::string configRuleId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelResult.h b/config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelResult.h deleted file mode 100644 index 44ed3b6ad..000000000 --- a/config/include/alibabacloud/config/model/GetConfigRuleSummaryByRiskLevelResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetConfigRuleSummaryByRiskLevelResult : public ServiceResult - { - public: - struct Data - { - int compliantCount; - int nonCompliantCount; - int riskLevel; - }; - - - GetConfigRuleSummaryByRiskLevelResult(); - explicit GetConfigRuleSummaryByRiskLevelResult(const std::string &payload); - ~GetConfigRuleSummaryByRiskLevelResult(); - std::vector getConfigRuleSummaries()const; - - protected: - void parse(const std::string &payload); - private: - std::vector configRuleSummaries_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESUMMARYBYRISKLEVELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetConfigRulesReportRequest.h b/config/include/alibabacloud/config/model/GetConfigRulesReportRequest.h deleted file mode 100644 index c41b98b3e..000000000 --- a/config/include/alibabacloud/config/model/GetConfigRulesReportRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetConfigRulesReportRequest : public RpcServiceRequest { -public: - GetConfigRulesReportRequest(); - ~GetConfigRulesReportRequest(); - std::string getReportId() const; - void setReportId(const std::string &reportId); - -private: - std::string reportId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetConfigRulesReportResult.h b/config/include/alibabacloud/config/model/GetConfigRulesReportResult.h deleted file mode 100644 index be871095a..000000000 --- a/config/include/alibabacloud/config/model/GetConfigRulesReportResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetConfigRulesReportResult : public ServiceResult - { - public: - struct ConfigRulesReport - { - long accountId; - std::string reportUrl; - std::string reportId; - std::string reportStatus; - long reportCreateTimestamp; - }; - - - GetConfigRulesReportResult(); - explicit GetConfigRulesReportResult(const std::string &payload); - ~GetConfigRulesReportResult(); - ConfigRulesReport getConfigRulesReport()const; - - protected: - void parse(const std::string &payload); - private: - ConfigRulesReport configRulesReport_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGRULESREPORTRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionResult.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionResult.h deleted file mode 100644 index 98317b7e6..000000000 --- a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYREGIONRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYREGIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsGroupByRegionResult : public ServiceResult - { - public: - struct GroupedResourceCount - { - std::string groupName; - long resourceCount; - std::string region; - }; - - - GetDiscoveredResourceCountsGroupByRegionResult(); - explicit GetDiscoveredResourceCountsGroupByRegionResult(const std::string &payload); - ~GetDiscoveredResourceCountsGroupByRegionResult(); - std::vector getDiscoveredResourceCountsSummary()const; - - protected: - void parse(const std::string &payload); - private: - std::vector discoveredResourceCountsSummary_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYREGIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h deleted file mode 100644 index bb6030420..000000000 --- a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsGroupByResourceTypeRequest : public RpcServiceRequest { -public: - GetDiscoveredResourceCountsGroupByResourceTypeRequest(); - ~GetDiscoveredResourceCountsGroupByResourceTypeRequest(); - std::string getRegion() const; - void setRegion(const std::string ®ion); - -private: - std::string region_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYRESOURCETYPEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h deleted file mode 100644 index 5e7a52d69..000000000 --- a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYRESOURCETYPERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYRESOURCETYPERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsGroupByResourceTypeResult : public ServiceResult - { - public: - struct GroupedResourceCount - { - std::string groupName; - long resourceCount; - std::string resourceType; - }; - - - GetDiscoveredResourceCountsGroupByResourceTypeResult(); - explicit GetDiscoveredResourceCountsGroupByResourceTypeResult(const std::string &payload); - ~GetDiscoveredResourceCountsGroupByResourceTypeResult(); - std::vector getDiscoveredResourceCountsSummary()const; - - protected: - void parse(const std::string &payload); - private: - std::vector discoveredResourceCountsSummary_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYRESOURCETYPERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionRequest.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsRequest.h similarity index 60% rename from config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionRequest.h rename to config/include/alibabacloud/config/model/GetDiscoveredResourceCountsRequest.h index ae6009a83..17be44562 100644 --- a/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsGroupByRegionRequest.h +++ b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYREGIONREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYREGIONREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_ #include #include @@ -26,17 +26,23 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsGroupByRegionRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsRequest : public RpcServiceRequest { public: - GetDiscoveredResourceCountsGroupByRegionRequest(); - ~GetDiscoveredResourceCountsGroupByRegionRequest(); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); + GetDiscoveredResourceCountsRequest(); + ~GetDiscoveredResourceCountsRequest(); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); + std::string getGroupByKey() const; + void setGroupByKey(const std::string &groupByKey); + long getMemberId() const; + void setMemberId(long memberId); private: - std::string resourceType_; + bool multiAccount_; + std::string groupByKey_; + long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSGROUPBYREGIONREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceByPackResult.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsResult.h similarity index 58% rename from config/include/alibabacloud/config/model/GetResourceComplianceByPackResult.h rename to config/include/alibabacloud/config/model/GetDiscoveredResourceCountsResult.h index a39b335d0..36b315a27 100644 --- a/config/include/alibabacloud/config/model/GetResourceComplianceByPackResult.h +++ b/config/include/alibabacloud/config/model/GetDiscoveredResourceCountsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSRESULT_H_ #include #include @@ -29,29 +29,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceByPackResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceCountsResult : public ServiceResult { public: - struct ResourceComplianceResult + struct GroupedResourceCounts { - std::string compliancePackId; - int totalCount; - int nonCompliantCount; + struct GroupedResourceCount + { + std::string groupName; + long resourceCount; + }; + std::vector groupedResourceCountList; + std::string groupByKey; }; - GetResourceComplianceByPackResult(); - explicit GetResourceComplianceByPackResult(const std::string &payload); - ~GetResourceComplianceByPackResult(); - ResourceComplianceResult getResourceComplianceResult()const; + GetDiscoveredResourceCountsResult(); + explicit GetDiscoveredResourceCountsResult(const std::string &payload); + ~GetDiscoveredResourceCountsResult(); + GroupedResourceCounts getGroupedResourceCounts()const; protected: void parse(const std::string &payload); private: - ResourceComplianceResult resourceComplianceResult_; + GroupedResourceCounts groupedResourceCounts_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCECOUNTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesRequest.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryRequest.h similarity index 60% rename from config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesRequest.h rename to config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryRequest.h index a4fd67bbb..dabd24151 100644 --- a/config/include/alibabacloud/config/model/DeactiveAggregateConfigRulesRequest.h +++ b/config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_ #include #include @@ -26,20 +26,20 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DeactiveAggregateConfigRulesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceSummaryRequest : public RpcServiceRequest { public: - DeactiveAggregateConfigRulesRequest(); - ~DeactiveAggregateConfigRulesRequest(); - std::string getConfigRuleIds() const; - void setConfigRuleIds(const std::string &configRuleIds); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); + GetDiscoveredResourceSummaryRequest(); + ~GetDiscoveredResourceSummaryRequest(); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); + long getMemberId() const; + void setMemberId(long memberId); private: - std::string configRuleIds_; - std::string aggregatorId_; + bool multiAccount_; + long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DEACTIVEAGGREGATECONFIGRULESREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GenerateCompliancePackReportResult.h b/config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryResult.h similarity index 60% rename from config/include/alibabacloud/config/model/GenerateCompliancePackReportResult.h rename to config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryResult.h index 0dd5355fd..6c88bb2ce 100644 --- a/config/include/alibabacloud/config/model/GenerateCompliancePackReportResult.h +++ b/config/include/alibabacloud/config/model/GetDiscoveredResourceSummaryResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYRESULT_H_ #include #include @@ -29,23 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT GenerateCompliancePackReportResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetDiscoveredResourceSummaryResult : public ServiceResult { public: + struct DiscoveredResourceSummary + { + int resourceTypeCount; + int regionCount; + int resourceCount; + }; - GenerateCompliancePackReportResult(); - explicit GenerateCompliancePackReportResult(const std::string &payload); - ~GenerateCompliancePackReportResult(); - std::string getCompliancePackId()const; + GetDiscoveredResourceSummaryResult(); + explicit GetDiscoveredResourceSummaryResult(const std::string &payload); + ~GetDiscoveredResourceSummaryResult(); + DiscoveredResourceSummary getDiscoveredResourceSummary()const; protected: void parse(const std::string &payload); private: - std::string compliancePackId_; + DiscoveredResourceSummary discoveredResourceSummary_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATECOMPLIANCEPACKREPORTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETDISCOVEREDRESOURCESUMMARYRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetManagedRuleResult.h b/config/include/alibabacloud/config/model/GetManagedRuleResult.h deleted file mode 100644 index 51ec6911b..000000000 --- a/config/include/alibabacloud/config/model/GetManagedRuleResult.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetManagedRuleResult : public ServiceResult - { - public: - struct ManagedRule - { - struct Scope - { - std::vector complianceResourceTypes; - }; - struct SourceDetailsItem - { - std::string eventSource; - std::string messageType; - std::string maximumExecutionFrequency; - }; - std::string optionalInputParameterDetails; - std::string description; - std::string compulsoryInputParameterDetails; - std::string helpHint; - std::vector labels; - std::string helpUrls; - std::string functionName; - std::string identifier; - Scope scope; - std::vector sourceConditions; - std::string serviceName; - std::string defaultName; - std::string helpDoc; - std::string configRuleName; - std::string regionId; - std::vector sourceDetails; - int riskLevel; - long createTimestamp; - }; - - - GetManagedRuleResult(); - explicit GetManagedRuleResult(const std::string &payload); - ~GetManagedRuleResult(); - ManagedRule getManagedRule()const; - - protected: - void parse(const std::string &payload); - private: - ManagedRule managedRule_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleRequest.h b/config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleRequest.h deleted file mode 100644 index 82edb69a2..000000000 --- a/config/include/alibabacloud/config/model/GetResourceComplianceByConfigRuleRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYCONFIGRULEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYCONFIGRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceByConfigRuleRequest : public RpcServiceRequest { -public: - GetResourceComplianceByConfigRuleRequest(); - ~GetResourceComplianceByConfigRuleRequest(); - std::string getConfigRuleId() const; - void setConfigRuleId(const std::string &configRuleId); - std::string getComplianceType() const; - void setComplianceType(const std::string &complianceType); - -private: - std::string configRuleId_; - std::string complianceType_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYCONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceByPackRequest.h b/config/include/alibabacloud/config/model/GetResourceComplianceByPackRequest.h deleted file mode 100644 index b7849d9d6..000000000 --- a/config/include/alibabacloud/config/model/GetResourceComplianceByPackRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceByPackRequest : public RpcServiceRequest { -public: - GetResourceComplianceByPackRequest(); - ~GetResourceComplianceByPackRequest(); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - -private: - std::string compliancePackId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEBYPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceGroupByRegionResult.h b/config/include/alibabacloud/config/model/GetResourceComplianceGroupByRegionResult.h deleted file mode 100644 index 9287668e6..000000000 --- a/config/include/alibabacloud/config/model/GetResourceComplianceGroupByRegionResult.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceGroupByRegionResult : public ServiceResult - { - public: - struct ComplianceResult - { - struct ComplianceResultListItem - { - struct CompliancesItem - { - std::string complianceType; - long count; - }; - std::vector compliances; - std::string regionId; - }; - std::vector complianceResultList; - }; - - - GetResourceComplianceGroupByRegionResult(); - explicit GetResourceComplianceGroupByRegionResult(const std::string &payload); - ~GetResourceComplianceGroupByRegionResult(); - ComplianceResult getComplianceResult()const; - - protected: - void parse(const std::string &payload); - private: - ComplianceResult complianceResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYREGIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeRequest.h b/config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeRequest.h deleted file mode 100644 index 5b88c7afd..000000000 --- a/config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceGroupByResourceTypeRequest : public RpcServiceRequest { -public: - GetResourceComplianceGroupByResourceTypeRequest(); - ~GetResourceComplianceGroupByResourceTypeRequest(); - std::string getConfigRuleIds() const; - void setConfigRuleIds(const std::string &configRuleIds); - -private: - std::string configRuleIds_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeResult.h b/config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeResult.h deleted file mode 100644 index 36415570c..000000000 --- a/config/include/alibabacloud/config/model/GetResourceComplianceGroupByResourceTypeResult.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceGroupByResourceTypeResult : public ServiceResult - { - public: - struct ComplianceResult - { - struct ComplianceResultListItem - { - struct CompliancesItem - { - std::string complianceType; - long count; - }; - std::vector compliances; - std::string resourceType; - }; - std::vector complianceResultList; - }; - - - GetResourceComplianceGroupByResourceTypeResult(); - explicit GetResourceComplianceGroupByResourceTypeResult(const std::string &payload); - ~GetResourceComplianceGroupByResourceTypeResult(); - ComplianceResult getComplianceResult()const; - - protected: - void parse(const std::string &payload); - private: - ComplianceResult complianceResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETRESOURCECOMPLIANCEGROUPBYRESOURCETYPERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceTimelineRequest.h b/config/include/alibabacloud/config/model/GetResourceComplianceTimelineRequest.h index 752697f58..2af2f10af 100644 --- a/config/include/alibabacloud/config/model/GetResourceComplianceTimelineRequest.h +++ b/config/include/alibabacloud/config/model/GetResourceComplianceTimelineRequest.h @@ -30,29 +30,35 @@ class ALIBABACLOUD_CONFIG_EXPORT GetResourceComplianceTimelineRequest : public R public: GetResourceComplianceTimelineRequest(); ~GetResourceComplianceTimelineRequest(); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); + long getStartTime() const; + void setStartTime(long startTime); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getLimit() const; + void setLimit(int limit); std::string getResourceId() const; void setResourceId(const std::string &resourceId); long getEndTime() const; void setEndTime(long endTime); - long getStartTime() const; - void setStartTime(long startTime); std::string getResourceType() const; void setResourceType(const std::string &resourceType); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - int getMaxResults() const; - void setMaxResults(int maxResults); std::string getRegion() const; void setRegion(const std::string ®ion); + std::string getMemberId() const; + void setMemberId(const std::string &memberId); private: + bool multiAccount_; + long startTime_; + std::string nextToken_; + int limit_; std::string resourceId_; long endTime_; - long startTime_; std::string resourceType_; - std::string nextToken_; - int maxResults_; std::string region_; + std::string memberId_; }; } // namespace Model } // namespace Config diff --git a/config/include/alibabacloud/config/model/GetResourceComplianceTimelineResult.h b/config/include/alibabacloud/config/model/GetResourceComplianceTimelineResult.h index d8682c224..8cdf9ceec 100644 --- a/config/include/alibabacloud/config/model/GetResourceComplianceTimelineResult.h +++ b/config/include/alibabacloud/config/model/GetResourceComplianceTimelineResult.h @@ -49,9 +49,10 @@ namespace AlibabaCloud long resourceCreateTime; std::string tags; }; + long totalCount; std::vector complianceList; std::string nextToken; - int maxResults; + int limit; }; diff --git a/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h b/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h index 9cf217f5e..b744f237b 100644 --- a/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h +++ b/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineRequest.h @@ -30,29 +30,35 @@ class ALIBABACLOUD_CONFIG_EXPORT GetResourceConfigurationTimelineRequest : publi public: GetResourceConfigurationTimelineRequest(); ~GetResourceConfigurationTimelineRequest(); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); + long getStartTime() const; + void setStartTime(long startTime); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getLimit() const; + void setLimit(int limit); std::string getResourceId() const; void setResourceId(const std::string &resourceId); long getEndTime() const; void setEndTime(long endTime); - long getStartTime() const; - void setStartTime(long startTime); std::string getResourceType() const; void setResourceType(const std::string &resourceType); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - int getMaxResults() const; - void setMaxResults(int maxResults); std::string getRegion() const; void setRegion(const std::string ®ion); + long getMemberId() const; + void setMemberId(long memberId); private: + bool multiAccount_; + long startTime_; + std::string nextToken_; + int limit_; std::string resourceId_; long endTime_; - long startTime_; std::string resourceType_; - std::string nextToken_; - int maxResults_; std::string region_; + long memberId_; }; } // namespace Model } // namespace Config diff --git a/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h b/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h index 808e894b2..0cf57c856 100644 --- a/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h +++ b/config/include/alibabacloud/config/model/GetResourceConfigurationTimelineResult.h @@ -50,9 +50,10 @@ namespace AlibabaCloud std::string region; std::string tags; }; + long totalCount; std::string nextToken; - int maxResults; std::vector configurationList; + int limit; }; diff --git a/config/include/alibabacloud/config/model/GetManagedRuleRequest.h b/config/include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h similarity index 66% rename from config/include/alibabacloud/config/model/GetManagedRuleRequest.h rename to config/include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h index 0012428fb..ae289d689 100644 --- a/config/include/alibabacloud/config/model/GetManagedRuleRequest.h +++ b/config/include/alibabacloud/config/model/GetSupportedResourceTypesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULEREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_ #include #include @@ -26,17 +26,14 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetManagedRuleRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT GetSupportedResourceTypesRequest : public RpcServiceRequest { public: - GetManagedRuleRequest(); - ~GetManagedRuleRequest(); - std::string getIdentifier() const; - void setIdentifier(const std::string &identifier); + GetSupportedResourceTypesRequest(); + ~GetSupportedResourceTypesRequest(); private: - std::string identifier_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETMANAGEDRULEREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GenerateConfigRulesReportResult.h b/config/include/alibabacloud/config/model/GetSupportedResourceTypesResult.h similarity index 66% rename from config/include/alibabacloud/config/model/GenerateConfigRulesReportResult.h rename to config/include/alibabacloud/config/model/GetSupportedResourceTypesResult.h index 95ea9df44..3d7a9be5d 100644 --- a/config/include/alibabacloud/config/model/GenerateConfigRulesReportResult.h +++ b/config/include/alibabacloud/config/model/GetSupportedResourceTypesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESRESULT_H_ #include #include @@ -29,23 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT GenerateConfigRulesReportResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT GetSupportedResourceTypesResult : public ServiceResult { public: - GenerateConfigRulesReportResult(); - explicit GenerateConfigRulesReportResult(const std::string &payload); - ~GenerateConfigRulesReportResult(); - std::string getReportId()const; + GetSupportedResourceTypesResult(); + explicit GetSupportedResourceTypesResult(const std::string &payload); + ~GetSupportedResourceTypesResult(); + std::vector getResourceTypes()const; protected: void parse(const std::string &payload); private: - std::string reportId_; + std::vector resourceTypes_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_GENERATECONFIGRULESREPORTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_GETSUPPORTEDRESOURCETYPESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h deleted file mode 100644 index 8a0621b7e..000000000 --- a/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_IGNOREAGGREGATEEVALUATIONRESULTSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_IGNOREAGGREGATEEVALUATIONRESULTSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT IgnoreAggregateEvaluationResultsRequest : public RpcServiceRequest { -public: - struct Resources { - std::string resourceId; - long resourceAccountId; - std::string region; - std::string resourceType; - }; - IgnoreAggregateEvaluationResultsRequest(); - ~IgnoreAggregateEvaluationResultsRequest(); - std::string getConfigRuleId() const; - void setConfigRuleId(const std::string &configRuleId); - std::string getReason() const; - void setReason(const std::string &reason); - std::string getIgnoreDate() const; - void setIgnoreDate(const std::string &ignoreDate); - std::vector getResources() const; - void setResources(const std::vector &resources); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - -private: - std::string configRuleId_; - std::string reason_; - std::string ignoreDate_; - std::vector resources_; - std::string aggregatorId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_IGNOREAGGREGATEEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsResult.h b/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsResult.h deleted file mode 100644 index 059421956..000000000 --- a/config/include/alibabacloud/config/model/IgnoreAggregateEvaluationResultsResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_IGNOREAGGREGATEEVALUATIONRESULTSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_IGNOREAGGREGATEEVALUATIONRESULTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT IgnoreAggregateEvaluationResultsResult : public ServiceResult - { - public: - - - IgnoreAggregateEvaluationResultsResult(); - explicit IgnoreAggregateEvaluationResultsResult(const std::string &payload); - ~IgnoreAggregateEvaluationResultsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_IGNOREAGGREGATEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/IgnoreEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/IgnoreEvaluationResultsRequest.h deleted file mode 100644 index 9a95f9bda..000000000 --- a/config/include/alibabacloud/config/model/IgnoreEvaluationResultsRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT IgnoreEvaluationResultsRequest : public RpcServiceRequest { -public: - struct Resources { - std::string resourceId; - long resourceAccountId; - std::string region; - std::string resourceType; - }; - IgnoreEvaluationResultsRequest(); - ~IgnoreEvaluationResultsRequest(); - std::string getConfigRuleId() const; - void setConfigRuleId(const std::string &configRuleId); - std::string getReason() const; - void setReason(const std::string &reason); - std::string getIgnoreDate() const; - void setIgnoreDate(const std::string &ignoreDate); - std::vector getResources() const; - void setResources(const std::vector &resources); - -private: - std::string configRuleId_; - std::string reason_; - std::string ignoreDate_; - std::vector resources_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/IgnoreEvaluationResultsResult.h b/config/include/alibabacloud/config/model/IgnoreEvaluationResultsResult.h deleted file mode 100644 index a4be0231f..000000000 --- a/config/include/alibabacloud/config/model/IgnoreEvaluationResultsResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT IgnoreEvaluationResultsResult : public ServiceResult - { - public: - - - IgnoreEvaluationResultsResult(); - explicit IgnoreEvaluationResultsResult(const std::string &payload); - ~IgnoreEvaluationResultsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_IGNOREEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateCompliancePacksRequest.h b/config/include/alibabacloud/config/model/ListAggregateCompliancePacksRequest.h deleted file mode 100644 index 7962c68b9..000000000 --- a/config/include/alibabacloud/config/model/ListAggregateCompliancePacksRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECOMPLIANCEPACKSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECOMPLIANCEPACKSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListAggregateCompliancePacksRequest : public RpcServiceRequest { -public: - ListAggregateCompliancePacksRequest(); - ~ListAggregateCompliancePacksRequest(); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - int getPageNumber() const; - void setPageNumber(int pageNumber); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getStatus() const; - void setStatus(const std::string &status); - -private: - std::string aggregatorId_; - int pageNumber_; - int pageSize_; - std::string status_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECOMPLIANCEPACKSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateCompliancePacksResult.h b/config/include/alibabacloud/config/model/ListAggregateCompliancePacksResult.h deleted file mode 100644 index c8bad079d..000000000 --- a/config/include/alibabacloud/config/model/ListAggregateCompliancePacksResult.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECOMPLIANCEPACKSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECOMPLIANCEPACKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT ListAggregateCompliancePacksResult : public ServiceResult - { - public: - struct CompliancePacksResult - { - struct CompliancePacksItem - { - std::string status; - std::string compliancePackId; - std::string description; - std::string compliancePackName; - long accountId; - std::string compliancePackTemplateId; - int riskLevel; - long createTimestamp; - std::string aggregatorId; - }; - long totalCount; - int pageSize; - std::vector compliancePacks; - int pageNumber; - }; - - - ListAggregateCompliancePacksResult(); - explicit ListAggregateCompliancePacksResult(const std::string &payload); - ~ListAggregateCompliancePacksResult(); - CompliancePacksResult getCompliancePacksResult()const; - - protected: - void parse(const std::string &payload); - private: - CompliancePacksResult compliancePacksResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECOMPLIANCEPACKSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsRequest.h b/config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsRequest.h deleted file mode 100644 index 27cd778b9..000000000 --- a/config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGDELIVERYCHANNELSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGDELIVERYCHANNELSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigDeliveryChannelsRequest : public RpcServiceRequest { -public: - ListAggregateConfigDeliveryChannelsRequest(); - ~ListAggregateConfigDeliveryChannelsRequest(); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getDeliveryChannelIds() const; - void setDeliveryChannelIds(const std::string &deliveryChannelIds); - -private: - std::string aggregatorId_; - std::string deliveryChannelIds_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGDELIVERYCHANNELSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsResult.h b/config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsResult.h deleted file mode 100644 index a60d3eb1e..000000000 --- a/config/include/alibabacloud/config/model/ListAggregateConfigDeliveryChannelsResult.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGDELIVERYCHANNELSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGDELIVERYCHANNELSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigDeliveryChannelsResult : public ServiceResult - { - public: - struct DeliveryChannel - { - int status; - std::string oversizedDataOSSTargetArn; - bool configurationSnapshot; - std::string description; - long accountId; - std::string deliveryChannelName; - std::string deliveryChannelId; - std::string deliveryChannelTargetArn; - std::string deliveryChannelAssumeRoleArn; - std::string deliveryChannelType; - std::string deliveryChannelCondition; - bool nonCompliantNotification; - bool configurationItemChangeNotification; - std::string aggregatorId; - }; - - - ListAggregateConfigDeliveryChannelsResult(); - explicit ListAggregateConfigDeliveryChannelsResult(const std::string &payload); - ~ListAggregateConfigDeliveryChannelsResult(); - std::vector getDeliveryChannels()const; - - protected: - void parse(const std::string &payload); - private: - std::vector deliveryChannels_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGDELIVERYCHANNELSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h deleted file mode 100644 index 9710c80ab..000000000 --- a/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRuleEvaluationResultsRequest : public RpcServiceRequest { -public: - ListAggregateConfigRuleEvaluationResultsRequest(); - ~ListAggregateConfigRuleEvaluationResultsRequest(); - 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 getNextToken() const; - void setNextToken(const std::string &nextToken); - int getMaxResults() const; - void setMaxResults(int maxResults); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - std::string getComplianceType() const; - void setComplianceType(const std::string &complianceType); - -private: - std::string configRuleId_; - long resourceOwnerId_; - std::string aggregatorId_; - std::string nextToken_; - int maxResults_; - std::string compliancePackId_; - std::string complianceType_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsResult.h b/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsResult.h deleted file mode 100644 index 27511f8d7..000000000 --- a/config/include/alibabacloud/config/model/ListAggregateConfigRuleEvaluationResultsResult.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRuleEvaluationResultsResult : public ServiceResult - { - public: - struct EvaluationResults - { - struct EvaluationResult - { - struct EvaluationResultIdentifier - { - struct EvaluationResultQualifier - { - std::string compliancePackId; - std::string configRuleId; - std::string configRuleArn; - std::string resourceId; - std::string resourceName; - std::string ignoreDate; - std::string configRuleName; - std::string resourceType; - std::string regionId; - long resourceOwnerId; - }; - EvaluationResultQualifier evaluationResultQualifier; - long orderingTimestamp; - }; - long configRuleInvokedTimestamp; - std::string complianceType; - long resultRecordedTimestamp; - std::string invokingEventMessageType; - EvaluationResultIdentifier evaluationResultIdentifier; - int riskLevel; - bool remediationEnabled; - std::string annotation; - }; - std::vector evaluationResultList; - std::string nextToken; - int maxResults; - }; - - - ListAggregateConfigRuleEvaluationResultsResult(); - explicit ListAggregateConfigRuleEvaluationResultsResult(const std::string &payload); - ~ListAggregateConfigRuleEvaluationResultsResult(); - EvaluationResults getEvaluationResults()const; - - protected: - void parse(const std::string &payload); - private: - EvaluationResults evaluationResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULEEVALUATIONRESULTSRESULT_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 index 7352981e6..a66e81911 100644 --- a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h +++ b/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesRequest.h @@ -38,27 +38,30 @@ public: void setRegions(const std::string ®ions); std::string getAggregatorId() const; void setAggregatorId(const std::string &aggregatorId); + int getPageNumber() const; + void setPageNumber(int pageNumber); std::string getFolderId() const; void setFolderId(const std::string &folderId); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getComplianceType() const; + void setComplianceType(const std::string &complianceType); std::string getResourceId() const; void setResourceId(const std::string &resourceId); std::string getResourceTypes() const; void setResourceTypes(const std::string &resourceTypes); - int getMaxResults() const; - void setMaxResults(int maxResults); private: int resourceDeleted_; long resourceOwnerId_; std::string regions_; std::string aggregatorId_; + int pageNumber_; std::string folderId_; - std::string nextToken_; + int pageSize_; + std::string complianceType_; std::string resourceId_; std::string resourceTypes_; - int maxResults_; }; } // namespace Model } // namespace Config diff --git a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h b/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h index a3c4cbddc..025347045 100644 --- a/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h +++ b/config/include/alibabacloud/config/model/ListAggregateDiscoveredResourcesResult.h @@ -48,8 +48,8 @@ namespace AlibabaCloud int resourceDeleted; }; int totalCount; - std::string nextToken; - int maxResults; + int pageSize; + int pageNumber; std::vector discoveredResourceProfileList; }; diff --git a/config/include/alibabacloud/config/model/ListAggregateRemediationsRequest.h b/config/include/alibabacloud/config/model/ListAggregateRemediationsRequest.h deleted file mode 100644 index 22b9f3916..000000000 --- a/config/include/alibabacloud/config/model/ListAggregateRemediationsRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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/ListAggregateResourceEvaluationResultsResult.h b/config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsResult.h deleted file mode 100644 index 262d71104..000000000 --- a/config/include/alibabacloud/config/model/ListAggregateResourceEvaluationResultsResult.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCEEVALUATIONRESULTSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCEEVALUATIONRESULTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT ListAggregateResourceEvaluationResultsResult : public ServiceResult - { - public: - struct EvaluationResults - { - struct EvaluationResult - { - struct EvaluationResultIdentifier - { - struct EvaluationResultQualifier - { - std::string configRuleId; - std::string configRuleArn; - std::string resourceId; - std::string resourceName; - std::string ignoreDate; - std::string configRuleName; - std::string resourceType; - std::string regionId; - }; - EvaluationResultQualifier evaluationResultQualifier; - long orderingTimestamp; - }; - long configRuleInvokedTimestamp; - std::string complianceType; - long resultRecordedTimestamp; - std::string invokingEventMessageType; - EvaluationResultIdentifier evaluationResultIdentifier; - int riskLevel; - bool remediationEnabled; - std::string annotation; - }; - std::vector evaluationResultList; - std::string nextToken; - int maxResults; - }; - - - ListAggregateResourceEvaluationResultsResult(); - explicit ListAggregateResourceEvaluationResultsResult(const std::string &payload); - ~ListAggregateResourceEvaluationResultsResult(); - EvaluationResults getEvaluationResults()const; - - protected: - void parse(const std::string &payload); - private: - EvaluationResults evaluationResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATERESOURCEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregatorsRequest.h b/config/include/alibabacloud/config/model/ListAggregatorsRequest.h deleted file mode 100644 index 8eb83ed1e..000000000 --- a/config/include/alibabacloud/config/model/ListAggregatorsRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATORSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATORSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListAggregatorsRequest : public RpcServiceRequest { -public: - ListAggregatorsRequest(); - ~ListAggregatorsRequest(); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - int getMaxResults() const; - void setMaxResults(int maxResults); - -private: - std::string nextToken_; - int maxResults_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATORSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregatorsResult.h b/config/include/alibabacloud/config/model/ListAggregatorsResult.h deleted file mode 100644 index a3c0a45a9..000000000 --- a/config/include/alibabacloud/config/model/ListAggregatorsResult.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATORSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATORSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT ListAggregatorsResult : public ServiceResult - { - public: - struct AggregatorsResult - { - struct AggregatorsItem - { - std::string aggregatorName; - std::string description; - long accountId; - long aggregatorCreateTimestamp; - long aggregatorAccountCount; - int aggregatorStatus; - std::string aggregatorType; - std::string aggregatorId; - }; - std::string nextToken; - int maxResults; - std::vector aggregators; - }; - - - ListAggregatorsResult(); - explicit ListAggregatorsResult(const std::string &payload); - ~ListAggregatorsResult(); - AggregatorsResult getAggregatorsResult()const; - - protected: - void parse(const std::string &payload); - private: - AggregatorsResult aggregatorsResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATORSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListCompliancePackTemplatesRequest.h b/config/include/alibabacloud/config/model/ListCompliancePackTemplatesRequest.h deleted file mode 100644 index 2feb63050..000000000 --- a/config/include/alibabacloud/config/model/ListCompliancePackTemplatesRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKTEMPLATESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListCompliancePackTemplatesRequest : public RpcServiceRequest { -public: - ListCompliancePackTemplatesRequest(); - ~ListCompliancePackTemplatesRequest(); - std::string getCompliancePackTemplateId() const; - void setCompliancePackTemplateId(const std::string &compliancePackTemplateId); - int getPageNumber() const; - void setPageNumber(int pageNumber); - int getPageSize() const; - void setPageSize(int pageSize); - -private: - std::string compliancePackTemplateId_; - int pageNumber_; - int pageSize_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKTEMPLATESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListCompliancePackTemplatesResult.h b/config/include/alibabacloud/config/model/ListCompliancePackTemplatesResult.h deleted file mode 100644 index cfac3b102..000000000 --- a/config/include/alibabacloud/config/model/ListCompliancePackTemplatesResult.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKTEMPLATESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKTEMPLATESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT ListCompliancePackTemplatesResult : public ServiceResult - { - public: - struct CompliancePackTemplatesResult - { - struct CompliancePackTemplate - { - struct ConfigRulesItem - { - struct ConfigRuleParametersItem - { - bool required; - std::string parameterValue; - std::string parameterName; - }; - std::string managedRuleName; - std::string description; - std::string managedRuleIdentifier; - int riskLevel; - std::vector configRuleParameters; - }; - std::string compliancePackTemplateName; - std::string description; - std::vector configRules; - std::string compliancePackTemplateId; - int riskLevel; - std::string automationHelpUrl; - }; - std::vector compliancePackTemplates; - long totalCount; - int pageSize; - int pageNumber; - }; - - - ListCompliancePackTemplatesResult(); - explicit ListCompliancePackTemplatesResult(const std::string &payload); - ~ListCompliancePackTemplatesResult(); - CompliancePackTemplatesResult getCompliancePackTemplatesResult()const; - - protected: - void parse(const std::string &payload); - private: - CompliancePackTemplatesResult compliancePackTemplatesResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListCompliancePacksRequest.h b/config/include/alibabacloud/config/model/ListCompliancePacksRequest.h deleted file mode 100644 index 879a28361..000000000 --- a/config/include/alibabacloud/config/model/ListCompliancePacksRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListCompliancePacksRequest : public RpcServiceRequest { -public: - ListCompliancePacksRequest(); - ~ListCompliancePacksRequest(); - int getPageNumber() const; - void setPageNumber(int pageNumber); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getStatus() const; - void setStatus(const std::string &status); - -private: - int pageNumber_; - int pageSize_; - std::string status_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListCompliancePacksResult.h b/config/include/alibabacloud/config/model/ListCompliancePacksResult.h deleted file mode 100644 index 5420bbbd4..000000000 --- a/config/include/alibabacloud/config/model/ListCompliancePacksResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT ListCompliancePacksResult : public ServiceResult - { - public: - struct CompliancePacksResult - { - struct CompliancePacksItem - { - std::string status; - std::string compliancePackId; - std::string description; - std::string compliancePackName; - long accountId; - std::string compliancePackTemplateId; - int riskLevel; - long createTimestamp; - }; - long totalCount; - int pageSize; - std::vector compliancePacks; - int pageNumber; - }; - - - ListCompliancePacksResult(); - explicit ListCompliancePacksResult(const std::string &payload); - ~ListCompliancePacksResult(); - CompliancePacksResult getCompliancePacksResult()const; - - protected: - void parse(const std::string &payload); - private: - CompliancePacksResult compliancePacksResult_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCOMPLIANCEPACKSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsRequest.h deleted file mode 100644 index cd547721d..000000000 --- a/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONRESULTSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONRESULTSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListConfigRuleEvaluationResultsRequest : public RpcServiceRequest { -public: - ListConfigRuleEvaluationResultsRequest(); - ~ListConfigRuleEvaluationResultsRequest(); - std::string getConfigRuleId() const; - void setConfigRuleId(const std::string &configRuleId); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - int getMaxResults() const; - void setMaxResults(int maxResults); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - std::string getComplianceType() const; - void setComplianceType(const std::string &complianceType); - -private: - std::string configRuleId_; - std::string nextToken_; - int maxResults_; - std::string compliancePackId_; - std::string complianceType_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsResult.h b/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsResult.h deleted file mode 100644 index ed257ad57..000000000 --- a/config/include/alibabacloud/config/model/ListConfigRuleEvaluationResultsResult.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONRESULTSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONRESULTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT ListConfigRuleEvaluationResultsResult : public ServiceResult - { - public: - struct EvaluationResults - { - struct EvaluationResult - { - struct EvaluationResultIdentifier - { - struct EvaluationResultQualifier - { - std::string compliancePackId; - std::string configRuleId; - std::string configRuleArn; - std::string resourceId; - std::string resourceName; - std::string ignoreDate; - std::string configRuleName; - std::string resourceType; - std::string regionId; - long resourceOwnerId; - }; - EvaluationResultQualifier evaluationResultQualifier; - long orderingTimestamp; - }; - long configRuleInvokedTimestamp; - std::string complianceType; - long resultRecordedTimestamp; - std::string invokingEventMessageType; - EvaluationResultIdentifier evaluationResultIdentifier; - int riskLevel; - bool remediationEnabled; - std::string annotation; - }; - std::vector evaluationResultList; - std::string nextToken; - int maxResults; - }; - - - ListConfigRuleEvaluationResultsResult(); - explicit ListConfigRuleEvaluationResultsResult(const std::string &payload); - ~ListConfigRuleEvaluationResultsResult(); - EvaluationResults getEvaluationResults()const; - - protected: - void parse(const std::string &payload); - private: - EvaluationResults evaluationResults_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h b/config/include/alibabacloud/config/model/ListConfigRulesRequest.h similarity index 76% rename from config/include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h rename to config/include/alibabacloud/config/model/ListConfigRulesRequest.h index 1852fd132..ff26add36 100644 --- a/config/include/alibabacloud/config/model/ListAggregateConfigRulesRequest.h +++ b/config/include/alibabacloud/config/model/ListConfigRulesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_ #include #include @@ -26,22 +26,22 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRulesRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT ListConfigRulesRequest : public RpcServiceRequest { public: struct Tag { std::string value; std::string key; }; - ListAggregateConfigRulesRequest(); - ~ListAggregateConfigRulesRequest(); + ListConfigRulesRequest(); + ~ListConfigRulesRequest(); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); bool getFilterInCompliancePack() const; void setFilterInCompliancePack(bool filterInCompliancePack); std::string getMessageType() const; void setMessageType(const std::string &messageType); std::string getConfigRuleState() const; void setConfigRuleState(const std::string &configRuleState); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); std::string getFilterInCompliancePackExcludeIds() const; void setFilterInCompliancePackExcludeIds(const std::string &filterInCompliancePackExcludeIds); int getPageNumber() const; @@ -54,26 +54,32 @@ public: void setTag(const Tag &tag); std::string getComplianceType() const; void setComplianceType(const std::string &complianceType); + std::string getConfigRuleSceneId() const; + void setConfigRuleSceneId(const std::string &configRuleSceneId); int getRiskLevel() const; void setRiskLevel(int riskLevel); std::string getConfigRuleName() const; void setConfigRuleName(const std::string &configRuleName); + long getMemberId() const; + void setMemberId(long memberId); private: + bool multiAccount_; bool filterInCompliancePack_; std::string messageType_; std::string configRuleState_; - std::string aggregatorId_; std::string filterInCompliancePackExcludeIds_; int pageNumber_; int pageSize_; std::string compliancePackId_; Tag tag_; std::string complianceType_; + std::string configRuleSceneId_; int riskLevel_; std::string configRuleName_; + long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListAggregateConfigRulesResult.h b/config/include/alibabacloud/config/model/ListConfigRulesResult.h similarity index 79% rename from config/include/alibabacloud/config/model/ListAggregateConfigRulesResult.h rename to config/include/alibabacloud/config/model/ListConfigRulesResult.h index 7cff2afd3..3403beada 100644 --- a/config/include/alibabacloud/config/model/ListAggregateConfigRulesResult.h +++ b/config/include/alibabacloud/config/model/ListConfigRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT ListAggregateConfigRulesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT ListConfigRulesResult : public ServiceResult { public: struct ConfigRules @@ -44,12 +44,12 @@ namespace AlibabaCloud struct CreateBy { std::string compliancePackId; - std::string aggregatorName; std::string compliancePackName; std::string creatorId; + std::string configRuleSceneName; + std::string configRuleSceneId; std::string creatorType; std::string creatorName; - std::string aggregatorId; }; struct Tag { @@ -63,6 +63,7 @@ namespace AlibabaCloud CreateBy createBy; std::string sourceIdentifier; std::string configRuleState; + std::string compliancePackId; std::string configRuleId; std::string configRuleArn; std::string automationType; @@ -77,9 +78,9 @@ namespace AlibabaCloud }; - ListAggregateConfigRulesResult(); - explicit ListAggregateConfigRulesResult(const std::string &payload); - ~ListAggregateConfigRulesResult(); + ListConfigRulesResult(); + explicit ListConfigRulesResult(const std::string &payload); + ~ListConfigRulesResult(); ConfigRules getConfigRules()const; protected: @@ -91,4 +92,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTAGGREGATECONFIGRULESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTCONFIGRULESRESULT_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 index 44f5fb9f0..3099c3dbc 100644 --- a/config/include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h +++ b/config/include/alibabacloud/config/model/ListDiscoveredResourcesRequest.h @@ -32,24 +32,33 @@ public: ~ListDiscoveredResourcesRequest(); int getResourceDeleted() const; void setResourceDeleted(int resourceDeleted); - std::string getResourceId() const; - void setResourceId(const std::string &resourceId); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); std::string getRegions() const; void setRegions(const std::string ®ions); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getComplianceType() const; + void setComplianceType(const std::string &complianceType); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); std::string getResourceTypes() const; void setResourceTypes(const std::string &resourceTypes); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - int getMaxResults() const; - void setMaxResults(int maxResults); + long getMemberId() const; + void setMemberId(long memberId); private: int resourceDeleted_; - std::string resourceId_; + bool multiAccount_; std::string regions_; + int pageNumber_; + int pageSize_; + std::string complianceType_; + std::string resourceId_; std::string resourceTypes_; - std::string nextToken_; - int maxResults_; + long memberId_; }; } // namespace Model } // namespace Config diff --git a/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h b/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h index 727f2ba06..b29dfd38e 100644 --- a/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h +++ b/config/include/alibabacloud/config/model/ListDiscoveredResourcesResult.h @@ -47,8 +47,8 @@ namespace AlibabaCloud int resourceDeleted; }; int totalCount; - std::string nextToken; - int maxResults; + int pageSize; + int pageNumber; std::vector discoveredResourceProfileList; }; diff --git a/config/include/alibabacloud/config/model/ListManagedRulesRequest.h b/config/include/alibabacloud/config/model/ListManagedRulesRequest.h deleted file mode 100644 index bf92be63a..000000000 --- a/config/include/alibabacloud/config/model/ListManagedRulesRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListManagedRulesRequest : public RpcServiceRequest { -public: - ListManagedRulesRequest(); - ~ListManagedRulesRequest(); - int getRiskLevel() const; - void setRiskLevel(int riskLevel); - int getPageNumber() const; - void setPageNumber(int pageNumber); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getKeyword() const; - void setKeyword(const std::string &keyword); - -private: - int riskLevel_; - int pageNumber_; - int pageSize_; - std::string keyword_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListManagedRulesResult.h b/config/include/alibabacloud/config/model/ListManagedRulesResult.h deleted file mode 100644 index 157e86f36..000000000 --- a/config/include/alibabacloud/config/model/ListManagedRulesResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT ListManagedRulesResult : public ServiceResult - { - public: - struct Data - { - struct ManagedRule - { - std::string description; - std::string identifier; - std::string configRuleName; - std::vector labels; - std::string useCases; - int riskLevel; - std::string helpUrls; - int referenceCount; - }; - long totalCount; - int pageSize; - int pageNumber; - std::vector managedRuleList; - }; - - - ListManagedRulesResult(); - explicit ListManagedRulesResult(const std::string &payload); - ~ListManagedRulesResult(); - std::vector getManagedRules()const; - - protected: - void parse(const std::string &payload); - private: - std::vector managedRules_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTMANAGEDRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/ListRemediationsResult.h b/config/include/alibabacloud/config/model/ListRemediationsResult.h deleted file mode 100644 index 0b81aa8ef..000000000 --- a/config/include/alibabacloud/config/model/ListRemediationsResult.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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/ListTagResourcesRequest.h b/config/include/alibabacloud/config/model/ListTagResourcesRequest.h deleted file mode 100644 index 1205a0239..000000000 --- a/config/include/alibabacloud/config/model/ListTagResourcesRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListTagResourcesRequest : public RpcServiceRequest { -public: - ListTagResourcesRequest(); - ~ListTagResourcesRequest(); - std::vector getResourceId() const; - void setResourceId(const std::vector &resourceId); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - std::string getTag() const; - void setTag(const std::string &tag); - -private: - std::vector resourceId_; - std::string resourceType_; - std::string regionId_; - std::string nextToken_; - std::string tag_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ListTagResourcesResult.h b/config/include/alibabacloud/config/model/ListTagResourcesResult.h deleted file mode 100644 index 14ba71240..000000000 --- a/config/include/alibabacloud/config/model/ListTagResourcesResult.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTTAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTTAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT ListTagResourcesResult : public ServiceResult - { - public: - struct TagResource - { - std::string resourceId; - std::string tagKey; - std::string resourceType; - std::string tagValue; - }; - - - ListTagResourcesResult(); - explicit ListTagResourcesResult(const std::string &payload); - ~ListTagResourcesResult(); - std::string getNextToken()const; - std::vector getTagResources()const; - - protected: - void parse(const std::string &payload); - private: - std::string nextToken_; - std::vector tagResources_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/PutConfigRuleRequest.h b/config/include/alibabacloud/config/model/PutConfigRuleRequest.h new file mode 100644 index 000000000..5996f7f4c --- /dev/null +++ b/config/include/alibabacloud/config/model/PutConfigRuleRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Config { +namespace Model { +class ALIBABACLOUD_CONFIG_EXPORT PutConfigRuleRequest : public RpcServiceRequest { +public: + PutConfigRuleRequest(); + ~PutConfigRuleRequest(); + std::string getConfigRuleId() const; + void setConfigRuleId(const std::string &configRuleId); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSourceIdentifier() const; + void setSourceIdentifier(const std::string &sourceIdentifier); + std::string getSourceMaximumExecutionFrequency() const; + void setSourceMaximumExecutionFrequency(const std::string &sourceMaximumExecutionFrequency); + std::string getScopeComplianceResourceTypes() const; + void setScopeComplianceResourceTypes(const std::string &scopeComplianceResourceTypes); + std::string getSourceDetailMessageType() const; + void setSourceDetailMessageType(const std::string &sourceDetailMessageType); + int getRiskLevel() const; + void setRiskLevel(int riskLevel); + std::string getSourceOwner() const; + void setSourceOwner(const std::string &sourceOwner); + std::string getInputParameters() const; + void setInputParameters(const std::string &inputParameters); + std::string getScopeComplianceExcludeResourceIds() const; + void setScopeComplianceExcludeResourceIds(const std::string &scopeComplianceExcludeResourceIds); + std::string getConfigRuleName() const; + void setConfigRuleName(const std::string &configRuleName); + std::string getScopeComplianceResourceId() const; + void setScopeComplianceResourceId(const std::string &scopeComplianceResourceId); + std::string getScopeComplianceResourceIds() const; + void setScopeComplianceResourceIds(const std::string &scopeComplianceResourceIds); + std::string getScopeComplianceRegionIds() const; + void setScopeComplianceRegionIds(const std::string &scopeComplianceRegionIds); + long getMemberId() const; + void setMemberId(long memberId); + +private: + std::string configRuleId_; + bool multiAccount_; + std::string clientToken_; + std::string description_; + std::string sourceIdentifier_; + std::string sourceMaximumExecutionFrequency_; + std::string scopeComplianceResourceTypes_; + std::string sourceDetailMessageType_; + int riskLevel_; + std::string sourceOwner_; + std::string inputParameters_; + std::string scopeComplianceExcludeResourceIds_; + std::string configRuleName_; + std::string scopeComplianceResourceId_; + std::string scopeComplianceResourceIds_; + std::string scopeComplianceRegionIds_; + long memberId_; +}; +} // namespace Model +} // namespace Config +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateConfigRuleResult.h b/config/include/alibabacloud/config/model/PutConfigRuleResult.h similarity index 72% rename from config/include/alibabacloud/config/model/CreateConfigRuleResult.h rename to config/include/alibabacloud/config/model/PutConfigRuleResult.h index c8d54d5cd..a8c3e58bc 100644 --- a/config/include/alibabacloud/config/model/CreateConfigRuleResult.h +++ b/config/include/alibabacloud/config/model/PutConfigRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGRULERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGRULERESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULERESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT CreateConfigRuleResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT PutConfigRuleResult : public ServiceResult { public: - CreateConfigRuleResult(); - explicit CreateConfigRuleResult(const std::string &payload); - ~CreateConfigRuleResult(); + PutConfigRuleResult(); + explicit PutConfigRuleResult(const std::string &payload); + ~PutConfigRuleResult(); std::string getConfigRuleId()const; protected: @@ -48,4 +48,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/PutConfigurationRecorderRequest.h similarity index 66% rename from config/include/alibabacloud/config/model/GetConfigDeliveryChannelRequest.h rename to config/include/alibabacloud/config/model/PutConfigurationRecorderRequest.h index 70922bd18..9f01ce2e9 100644 --- a/config/include/alibabacloud/config/model/GetConfigDeliveryChannelRequest.h +++ b/config/include/alibabacloud/config/model/PutConfigurationRecorderRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCONFIGDELIVERYCHANNELREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCONFIGDELIVERYCHANNELREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_ #include #include @@ -26,17 +26,17 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetConfigDeliveryChannelRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT PutConfigurationRecorderRequest : public RpcServiceRequest { public: - GetConfigDeliveryChannelRequest(); - ~GetConfigDeliveryChannelRequest(); - std::string getDeliveryChannelId() const; - void setDeliveryChannelId(const std::string &deliveryChannelId); + PutConfigurationRecorderRequest(); + ~PutConfigurationRecorderRequest(); + std::string getResourceTypes() const; + void setResourceTypes(const std::string &resourceTypes); private: - std::string deliveryChannelId_; + std::string resourceTypes_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCONFIGDELIVERYCHANNELREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/GetCompliancePackReportResult.h b/config/include/alibabacloud/config/model/PutConfigurationRecorderResult.h similarity index 56% rename from config/include/alibabacloud/config/model/GetCompliancePackReportResult.h rename to config/include/alibabacloud/config/model/PutConfigurationRecorderResult.h index 87baf8ceb..a9572205c 100644 --- a/config/include/alibabacloud/config/model/GetCompliancePackReportResult.h +++ b/config/include/alibabacloud/config/model/PutConfigurationRecorderResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERRESULT_H_ #include #include @@ -29,31 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT GetCompliancePackReportResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT PutConfigurationRecorderResult : public ServiceResult { public: - struct CompliancePackReport + struct ConfigurationRecorder { - std::string compliancePackId; + std::string configurationRecorderStatus; + std::vector resourceTypes; long accountId; - std::string reportUrl; - std::string reportStatus; - long reportCreateTimestamp; + long organizationMasterId; + std::string organizationEnableStatus; }; - GetCompliancePackReportResult(); - explicit GetCompliancePackReportResult(const std::string &payload); - ~GetCompliancePackReportResult(); - CompliancePackReport getCompliancePackReport()const; + PutConfigurationRecorderResult(); + explicit PutConfigurationRecorderResult(const std::string &payload); + ~PutConfigurationRecorderResult(); + ConfigurationRecorder getConfigurationRecorder()const; protected: void parse(const std::string &payload); private: - CompliancePackReport compliancePackReport_; + ConfigurationRecorder configurationRecorder_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTCONFIGURATIONRECORDERRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/CreateConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/PutDeliveryChannelRequest.h similarity index 62% rename from config/include/alibabacloud/config/model/CreateConfigDeliveryChannelRequest.h rename to config/include/alibabacloud/config/model/PutDeliveryChannelRequest.h index b23b1cf73..437a0e917 100644 --- a/config/include/alibabacloud/config/model/CreateConfigDeliveryChannelRequest.h +++ b/config/include/alibabacloud/config/model/PutDeliveryChannelRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGDELIVERYCHANNELREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGDELIVERYCHANNELREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_ #include #include @@ -26,44 +26,41 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT CreateConfigDeliveryChannelRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT PutDeliveryChannelRequest : public RpcServiceRequest { public: - CreateConfigDeliveryChannelRequest(); - ~CreateConfigDeliveryChannelRequest(); - bool getNonCompliantNotification() const; - void setNonCompliantNotification(bool nonCompliantNotification); + PutDeliveryChannelRequest(); + ~PutDeliveryChannelRequest(); std::string getClientToken() const; void setClientToken(const std::string &clientToken); - bool getConfigurationSnapshot() const; - void setConfigurationSnapshot(bool configurationSnapshot); std::string getDescription() const; void setDescription(const std::string &description); std::string getDeliveryChannelTargetArn() const; void setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn); std::string getDeliveryChannelCondition() const; void setDeliveryChannelCondition(const std::string &deliveryChannelCondition); - bool getConfigurationItemChangeNotification() const; - void setConfigurationItemChangeNotification(bool configurationItemChangeNotification); + std::string getDeliveryChannelAssumeRoleArn() const; + void setDeliveryChannelAssumeRoleArn(const std::string &deliveryChannelAssumeRoleArn); std::string getDeliveryChannelName() const; void setDeliveryChannelName(const std::string &deliveryChannelName); - std::string getOversizedDataOSSTargetArn() const; - void setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn); + std::string getDeliveryChannelId() const; + void setDeliveryChannelId(const std::string &deliveryChannelId); std::string getDeliveryChannelType() const; void setDeliveryChannelType(const std::string &deliveryChannelType); + int getStatus() const; + void setStatus(int status); private: - bool nonCompliantNotification_; std::string clientToken_; - bool configurationSnapshot_; std::string description_; std::string deliveryChannelTargetArn_; std::string deliveryChannelCondition_; - bool configurationItemChangeNotification_; + std::string deliveryChannelAssumeRoleArn_; std::string deliveryChannelName_; - std::string oversizedDataOSSTargetArn_; + std::string deliveryChannelId_; std::string deliveryChannelType_; + int status_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATECONFIGDELIVERYCHANNELREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/PutDeliveryChannelResult.h similarity index 68% rename from config/include/alibabacloud/config/model/UpdateConfigDeliveryChannelResult.h rename to config/include/alibabacloud/config/model/PutDeliveryChannelResult.h index 86c9d3f68..5e85892ac 100644 --- a/config/include/alibabacloud/config/model/UpdateConfigDeliveryChannelResult.h +++ b/config/include/alibabacloud/config/model/PutDeliveryChannelResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGDELIVERYCHANNELRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGDELIVERYCHANNELRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT UpdateConfigDeliveryChannelResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT PutDeliveryChannelResult : public ServiceResult { public: - UpdateConfigDeliveryChannelResult(); - explicit UpdateConfigDeliveryChannelResult(const std::string &payload); - ~UpdateConfigDeliveryChannelResult(); + PutDeliveryChannelResult(); + explicit PutDeliveryChannelResult(const std::string &payload); + ~PutDeliveryChannelResult(); std::string getDeliveryChannelId()const; protected: @@ -48,4 +48,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGDELIVERYCHANNELRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTDELIVERYCHANNELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/DeleteAggregatorsRequest.h b/config/include/alibabacloud/config/model/PutEvaluationsRequest.h similarity index 57% rename from config/include/alibabacloud/config/model/DeleteAggregatorsRequest.h rename to config/include/alibabacloud/config/model/PutEvaluationsRequest.h index 2974ff49d..418e22d85 100644 --- a/config/include/alibabacloud/config/model/DeleteAggregatorsRequest.h +++ b/config/include/alibabacloud/config/model/PutEvaluationsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATORSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATORSREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_ #include #include @@ -26,20 +26,23 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT DeleteAggregatorsRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT PutEvaluationsRequest : public RpcServiceRequest { public: - DeleteAggregatorsRequest(); - ~DeleteAggregatorsRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getAggregatorIds() const; - void setAggregatorIds(const std::string &aggregatorIds); + PutEvaluationsRequest(); + ~PutEvaluationsRequest(); + std::string getEvaluations() const; + void setEvaluations(const std::string &evaluations); + bool getDeleteMode() const; + void setDeleteMode(bool deleteMode); + std::string getResultToken() const; + void setResultToken(const std::string &resultToken); private: - std::string clientToken_; - std::string aggregatorIds_; + std::string evaluations_; + bool deleteMode_; + std::string resultToken_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_DELETEAGGREGATORSREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UntagResourcesResult.h b/config/include/alibabacloud/config/model/PutEvaluationsResult.h similarity index 70% rename from config/include/alibabacloud/config/model/UntagResourcesResult.h rename to config/include/alibabacloud/config/model/PutEvaluationsResult.h index a33c3692c..22b20f80d 100644 --- a/config/include/alibabacloud/config/model/UntagResourcesResult.h +++ b/config/include/alibabacloud/config/model/PutEvaluationsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_UNTAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UNTAGRESOURCESRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSRESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT UntagResourcesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT PutEvaluationsResult : public ServiceResult { public: - UntagResourcesResult(); - explicit UntagResourcesResult(const std::string &payload); - ~UntagResourcesResult(); + PutEvaluationsResult(); + explicit PutEvaluationsResult(const std::string &payload); + ~PutEvaluationsResult(); + bool getResult()const; protected: void parse(const std::string &payload); private: + bool result_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_PUTEVALUATIONSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsRequest.h deleted file mode 100644 index 4e1cb5722..000000000 --- a/config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_REVERTAGGREGATEEVALUATIONRESULTSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_REVERTAGGREGATEEVALUATIONRESULTSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT RevertAggregateEvaluationResultsRequest : public RpcServiceRequest { -public: - struct Resources { - std::string resourceId; - long resourceAccountId; - std::string region; - std::string resourceType; - }; - RevertAggregateEvaluationResultsRequest(); - ~RevertAggregateEvaluationResultsRequest(); - std::string getConfigRuleId() const; - void setConfigRuleId(const std::string &configRuleId); - std::vector getResources() const; - void setResources(const std::vector &resources); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - -private: - std::string configRuleId_; - std::vector resources_; - std::string aggregatorId_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_REVERTAGGREGATEEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsResult.h b/config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsResult.h deleted file mode 100644 index d1f5c7b80..000000000 --- a/config/include/alibabacloud/config/model/RevertAggregateEvaluationResultsResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_REVERTAGGREGATEEVALUATIONRESULTSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_REVERTAGGREGATEEVALUATIONRESULTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT RevertAggregateEvaluationResultsResult : public ServiceResult - { - public: - - - RevertAggregateEvaluationResultsResult(); - explicit RevertAggregateEvaluationResultsResult(const std::string &payload); - ~RevertAggregateEvaluationResultsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_REVERTAGGREGATEEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/RevertEvaluationResultsRequest.h b/config/include/alibabacloud/config/model/RevertEvaluationResultsRequest.h deleted file mode 100644 index 4f66bffd7..000000000 --- a/config/include/alibabacloud/config/model/RevertEvaluationResultsRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_REVERTEVALUATIONRESULTSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_REVERTEVALUATIONRESULTSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT RevertEvaluationResultsRequest : public RpcServiceRequest { -public: - struct Resources { - std::string resourceId; - long resourceAccountId; - std::string region; - std::string resourceType; - }; - RevertEvaluationResultsRequest(); - ~RevertEvaluationResultsRequest(); - std::string getConfigRuleId() const; - void setConfigRuleId(const std::string &configRuleId); - std::vector getResources() const; - void setResources(const std::vector &resources); - -private: - std::string configRuleId_; - std::vector resources_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_REVERTEVALUATIONRESULTSREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/RevertEvaluationResultsResult.h b/config/include/alibabacloud/config/model/RevertEvaluationResultsResult.h deleted file mode 100644 index d6ff0762e..000000000 --- a/config/include/alibabacloud/config/model/RevertEvaluationResultsResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_REVERTEVALUATIONRESULTSRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_REVERTEVALUATIONRESULTSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT RevertEvaluationResultsResult : public ServiceResult - { - public: - - - RevertEvaluationResultsResult(); - explicit RevertEvaluationResultsResult(const std::string &payload); - ~RevertEvaluationResultsResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_REVERTEVALUATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationResult.h b/config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationResult.h deleted file mode 100644 index abb4b93b9..000000000 --- a/config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT StartAggregateConfigRuleEvaluationResult : public ServiceResult - { - public: - - - StartAggregateConfigRuleEvaluationResult(); - explicit StartAggregateConfigRuleEvaluationResult(const std::string &payload); - ~StartAggregateConfigRuleEvaluationResult(); - bool getResult()const; - - protected: - void parse(const std::string &payload); - private: - bool result_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationRequest.h b/config/include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h similarity index 68% rename from config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationRequest.h rename to config/include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h index 62667604a..6aab98498 100644 --- a/config/include/alibabacloud/config/model/StartAggregateConfigRuleEvaluationRequest.h +++ b/config/include/alibabacloud/config/model/StartConfigRuleEvaluationRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_ #include #include @@ -26,26 +26,29 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT StartAggregateConfigRuleEvaluationRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT StartConfigRuleEvaluationRequest : public RpcServiceRequest { public: - StartAggregateConfigRuleEvaluationRequest(); - ~StartAggregateConfigRuleEvaluationRequest(); + StartConfigRuleEvaluationRequest(); + ~StartConfigRuleEvaluationRequest(); std::string getConfigRuleId() const; void setConfigRuleId(const std::string &configRuleId); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); + bool getMultiAccount() const; + void setMultiAccount(bool multiAccount); std::string getCompliancePackId() const; void setCompliancePackId(const std::string &compliancePackId); bool getRevertEvaluation() const; void setRevertEvaluation(bool revertEvaluation); + long getMemberId() const; + void setMemberId(long memberId); private: std::string configRuleId_; - std::string aggregatorId_; + bool multiAccount_; std::string compliancePackId_; bool revertEvaluation_; + long memberId_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATECONFIGRULEEVALUATIONREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/StartAggregateRemediationResult.h b/config/include/alibabacloud/config/model/StartConfigRuleEvaluationResult.h similarity index 69% rename from config/include/alibabacloud/config/model/StartAggregateRemediationResult.h rename to config/include/alibabacloud/config/model/StartConfigRuleEvaluationResult.h index 3e875850b..c5a8d34fb 100644 --- a/config/include/alibabacloud/config/model/StartAggregateRemediationResult.h +++ b/config/include/alibabacloud/config/model/StartConfigRuleEvaluationResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONRESULT_H_ #include #include @@ -29,23 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT StartAggregateRemediationResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT StartConfigRuleEvaluationResult : public ServiceResult { public: - StartAggregateRemediationResult(); - explicit StartAggregateRemediationResult(const std::string &payload); - ~StartAggregateRemediationResult(); - bool getData()const; + StartConfigRuleEvaluationResult(); + explicit StartConfigRuleEvaluationResult(const std::string &payload); + ~StartConfigRuleEvaluationResult(); + bool getResult()const; protected: void parse(const std::string &payload); private: - bool data_; + bool result_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTAGGREGATEREMEDIATIONRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGRULEEVALUATIONRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/GetCompliancePackReportRequest.h b/config/include/alibabacloud/config/model/StartConfigurationRecorderRequest.h similarity index 63% rename from config/include/alibabacloud/config/model/GetCompliancePackReportRequest.h rename to config/include/alibabacloud/config/model/StartConfigurationRecorderRequest.h index 5aafa51ac..98d98f70b 100644 --- a/config/include/alibabacloud/config/model/GetCompliancePackReportRequest.h +++ b/config/include/alibabacloud/config/model/StartConfigurationRecorderRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_ #include #include @@ -26,17 +26,17 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT GetCompliancePackReportRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT StartConfigurationRecorderRequest : public RpcServiceRequest { public: - GetCompliancePackReportRequest(); - ~GetCompliancePackReportRequest(); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); + StartConfigurationRecorderRequest(); + ~StartConfigurationRecorderRequest(); + bool getEnterpriseEdition() const; + void setEnterpriseEdition(bool enterpriseEdition); private: - std::string compliancePackId_; + bool enterpriseEdition_; }; } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_GETCOMPLIANCEPACKREPORTREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/CreateAggregateRemediationResult.h b/config/include/alibabacloud/config/model/StartConfigurationRecorderResult.h similarity index 57% rename from config/include/alibabacloud/config/model/CreateAggregateRemediationResult.h rename to config/include/alibabacloud/config/model/StartConfigurationRecorderResult.h index 91457a0b5..fef17df5e 100644 --- a/config/include/alibabacloud/config/model/CreateAggregateRemediationResult.h +++ b/config/include/alibabacloud/config/model/StartConfigurationRecorderResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERRESULT_H_ #include #include @@ -29,23 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT CreateAggregateRemediationResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT StartConfigurationRecorderResult : public ServiceResult { public: + struct ConfigurationRecorder + { + std::string configurationRecorderStatus; + std::vector resourceTypes; + long accountId; + long organizationMasterId; + std::string organizationEnableStatus; + }; - CreateAggregateRemediationResult(); - explicit CreateAggregateRemediationResult(const std::string &payload); - ~CreateAggregateRemediationResult(); - std::string getRemediationId()const; + StartConfigurationRecorderResult(); + explicit StartConfigurationRecorderResult(const std::string &payload); + ~StartConfigurationRecorderResult(); + ConfigurationRecorder getConfigurationRecorder()const; protected: void parse(const std::string &payload); private: - std::string remediationId_; + ConfigurationRecorder configurationRecorder_; }; } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_CREATEAGGREGATEREMEDIATIONRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_STARTCONFIGURATIONRECORDERRESULT_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 deleted file mode 100644 index 81963216d..000000000 --- a/config/include/alibabacloud/config/model/StartRemediationRequest.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 deleted file mode 100644 index c1d22c91c..000000000 --- a/config/include/alibabacloud/config/model/StartRemediationResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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/ListRemediationsRequest.h b/config/include/alibabacloud/config/model/StopConfigRulesRequest.h similarity index 74% rename from config/include/alibabacloud/config/model/ListRemediationsRequest.h rename to config/include/alibabacloud/config/model/StopConfigRulesRequest.h index e047cdfa9..c8fa8235e 100644 --- a/config/include/alibabacloud/config/model/ListRemediationsRequest.h +++ b/config/include/alibabacloud/config/model/StopConfigRulesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONSREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONSREQUEST_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace Config { namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT ListRemediationsRequest : public RpcServiceRequest { +class ALIBABACLOUD_CONFIG_EXPORT StopConfigRulesRequest : public RpcServiceRequest { public: - ListRemediationsRequest(); - ~ListRemediationsRequest(); + StopConfigRulesRequest(); + ~StopConfigRulesRequest(); std::string getConfigRuleIds() const; void setConfigRuleIds(const std::string &configRuleIds); @@ -39,4 +39,4 @@ private: } // namespace Model } // namespace Config } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_LISTREMEDIATIONSREQUEST_H_ +#endif // !ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/ActiveAggregateConfigRulesResult.h b/config/include/alibabacloud/config/model/StopConfigRulesResult.h similarity index 73% rename from config/include/alibabacloud/config/model/ActiveAggregateConfigRulesResult.h rename to config/include/alibabacloud/config/model/StopConfigRulesResult.h index eaed51a8f..6b92b2441 100644 --- a/config/include/alibabacloud/config/model/ActiveAggregateConfigRulesResult.h +++ b/config/include/alibabacloud/config/model/StopConfigRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CONFIG_MODEL_ACTIVEAGGREGATECONFIGRULESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_ACTIVEAGGREGATECONFIGRULESRESULT_H_ +#ifndef ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESRESULT_H_ +#define ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CONFIG_EXPORT ActiveAggregateConfigRulesResult : public ServiceResult + class ALIBABACLOUD_CONFIG_EXPORT StopConfigRulesResult : public ServiceResult { public: struct OperateRuleResult @@ -44,9 +44,9 @@ namespace AlibabaCloud }; - ActiveAggregateConfigRulesResult(); - explicit ActiveAggregateConfigRulesResult(const std::string &payload); - ~ActiveAggregateConfigRulesResult(); + StopConfigRulesResult(); + explicit StopConfigRulesResult(const std::string &payload); + ~StopConfigRulesResult(); OperateRuleResult getOperateRuleResult()const; protected: @@ -58,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CONFIG_MODEL_ACTIVEAGGREGATECONFIGRULESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CONFIG_MODEL_STOPCONFIGRULESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/TagResourcesRequest.h b/config/include/alibabacloud/config/model/TagResourcesRequest.h deleted file mode 100644 index f2c9912a0..000000000 --- a/config/include/alibabacloud/config/model/TagResourcesRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_TAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_TAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT TagResourcesRequest : public RpcServiceRequest { -public: - TagResourcesRequest(); - ~TagResourcesRequest(); - std::vector getResourceId() const; - void setResourceId(const std::vector &resourceId); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getTag() const; - void setTag(const std::string &tag); - -private: - std::vector resourceId_; - std::string resourceType_; - std::string regionId_; - std::string tag_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/TagResourcesResult.h b/config/include/alibabacloud/config/model/TagResourcesResult.h deleted file mode 100644 index 7bd951315..000000000 --- a/config/include/alibabacloud/config/model/TagResourcesResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_TAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_TAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT TagResourcesResult : public ServiceResult - { - public: - - - TagResourcesResult(); - explicit TagResourcesResult(const std::string &payload); - ~TagResourcesResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UntagResourcesRequest.h b/config/include/alibabacloud/config/model/UntagResourcesRequest.h deleted file mode 100644 index ccb192cf9..000000000 --- a/config/include/alibabacloud/config/model/UntagResourcesRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UNTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UNTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT UntagResourcesRequest : public RpcServiceRequest { -public: - UntagResourcesRequest(); - ~UntagResourcesRequest(); - bool getAll() const; - void setAll(bool all); - std::vector getResourceId() const; - void setResourceId(const std::vector &resourceId); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::vector getTagKey() const; - void setTagKey(const std::vector &tagKey); - -private: - bool all_; - std::vector resourceId_; - std::string resourceType_; - std::string regionId_; - std::vector tagKey_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackRequest.h b/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackRequest.h deleted file mode 100644 index 0ea7f9ae5..000000000 --- a/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackRequest.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECOMPLIANCEPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECOMPLIANCEPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateCompliancePackRequest : public RpcServiceRequest { -public: - struct ConfigRules { - std::string managedRuleIdentifier; - struct ConfigRuleParametersItem { - std::string parameterValue; - std::string parameterName; - }; - ConfigRuleParametersItem configRuleParametersItem; - std::vector configRuleParameters; - std::string configRuleId; - std::string configRuleName; - std::string description; - int riskLevel; - }; - UpdateAggregateCompliancePackRequest(); - ~UpdateAggregateCompliancePackRequest(); - std::string getCompliancePackName() const; - void setCompliancePackName(const std::string &compliancePackName); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - std::vector getConfigRules() const; - void setConfigRules(const std::vector &configRules); - int getRiskLevel() const; - void setRiskLevel(int riskLevel); - -private: - std::string compliancePackName_; - std::string clientToken_; - std::string description_; - std::string aggregatorId_; - std::string compliancePackId_; - std::vector configRules_; - int riskLevel_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackResult.h b/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackResult.h deleted file mode 100644 index 8ec743731..000000000 --- a/config/include/alibabacloud/config/model/UpdateAggregateCompliancePackResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECOMPLIANCEPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECOMPLIANCEPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateCompliancePackResult : public ServiceResult - { - public: - - - UpdateAggregateCompliancePackResult(); - explicit UpdateAggregateCompliancePackResult(const std::string &payload); - ~UpdateAggregateCompliancePackResult(); - std::string getCompliancePackId()const; - - protected: - void parse(const std::string &payload); - private: - std::string compliancePackId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelRequest.h deleted file mode 100644 index ca591f3de..000000000 --- a/config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateConfigDeliveryChannelRequest : public RpcServiceRequest { -public: - UpdateAggregateConfigDeliveryChannelRequest(); - ~UpdateAggregateConfigDeliveryChannelRequest(); - bool getNonCompliantNotification() const; - void setNonCompliantNotification(bool nonCompliantNotification); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - bool getConfigurationSnapshot() const; - void setConfigurationSnapshot(bool configurationSnapshot); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getDeliveryChannelTargetArn() const; - void setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn); - std::string getDeliveryChannelCondition() const; - void setDeliveryChannelCondition(const std::string &deliveryChannelCondition); - bool getConfigurationItemChangeNotification() const; - void setConfigurationItemChangeNotification(bool configurationItemChangeNotification); - std::string getDeliveryChannelName() const; - void setDeliveryChannelName(const std::string &deliveryChannelName); - std::string getDeliveryChannelId() const; - void setDeliveryChannelId(const std::string &deliveryChannelId); - std::string getOversizedDataOSSTargetArn() const; - void setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn); - long getStatus() const; - void setStatus(long status); - -private: - bool nonCompliantNotification_; - std::string clientToken_; - bool configurationSnapshot_; - std::string description_; - std::string aggregatorId_; - std::string deliveryChannelTargetArn_; - std::string deliveryChannelCondition_; - bool configurationItemChangeNotification_; - std::string deliveryChannelName_; - std::string deliveryChannelId_; - std::string oversizedDataOSSTargetArn_; - long status_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelResult.h b/config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelResult.h deleted file mode 100644 index 9f759f61d..000000000 --- a/config/include/alibabacloud/config/model/UpdateAggregateConfigDeliveryChannelResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateConfigDeliveryChannelResult : public ServiceResult - { - public: - - - UpdateAggregateConfigDeliveryChannelResult(); - explicit UpdateAggregateConfigDeliveryChannelResult(const std::string &payload); - ~UpdateAggregateConfigDeliveryChannelResult(); - std::string getDeliveryChannelId()const; - - protected: - void parse(const std::string &payload); - private: - std::string deliveryChannelId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGDELIVERYCHANNELRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleRequest.h b/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleRequest.h deleted file mode 100644 index 3f59b8c0b..000000000 --- a/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleRequest.h +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGRULEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateConfigRuleRequest : public RpcServiceRequest { -public: - UpdateAggregateConfigRuleRequest(); - ~UpdateAggregateConfigRuleRequest(); - std::string getConfigRuleId() const; - void setConfigRuleId(const std::string &configRuleId); - std::string getTagKeyScope() const; - void setTagKeyScope(const std::string &tagKeyScope); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::vector getResourceTypesScope() const; - void setResourceTypesScope(const std::vector &resourceTypesScope); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::string getConfigRuleTriggerTypes() const; - void setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes); - std::string getTagValueScope() const; - void setTagValueScope(const std::string &tagValueScope); - std::string getExcludeAccountIdsScope() const; - void setExcludeAccountIdsScope(const std::string &excludeAccountIdsScope); - std::string getRegionIdsScope() const; - void setRegionIdsScope(const std::string ®ionIdsScope); - std::string getExcludeFolderIdsScope() const; - void setExcludeFolderIdsScope(const std::string &excludeFolderIdsScope); - int getRiskLevel() const; - void setRiskLevel(int riskLevel); - std::string getResourceGroupIdsScope() const; - void setResourceGroupIdsScope(const std::string &resourceGroupIdsScope); - std::string getInputParameters() const; - void setInputParameters(const std::string &inputParameters); - std::string getConfigRuleName() const; - void setConfigRuleName(const std::string &configRuleName); - std::string getTagKeyLogicScope() const; - void setTagKeyLogicScope(const std::string &tagKeyLogicScope); - std::string getMaximumExecutionFrequency() const; - void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency); - std::string getFolderIdsScope() const; - void setFolderIdsScope(const std::string &folderIdsScope); - std::string getExcludeResourceIdsScope() const; - void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope); - -private: - std::string configRuleId_; - std::string tagKeyScope_; - std::string clientToken_; - std::vector resourceTypesScope_; - std::string description_; - std::string aggregatorId_; - std::string configRuleTriggerTypes_; - std::string tagValueScope_; - std::string excludeAccountIdsScope_; - std::string regionIdsScope_; - std::string excludeFolderIdsScope_; - int riskLevel_; - std::string resourceGroupIdsScope_; - std::string inputParameters_; - std::string configRuleName_; - std::string tagKeyLogicScope_; - std::string maximumExecutionFrequency_; - std::string folderIdsScope_; - std::string excludeResourceIdsScope_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleResult.h b/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleResult.h deleted file mode 100644 index cfab4e4fd..000000000 --- a/config/include/alibabacloud/config/model/UpdateAggregateConfigRuleResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGRULERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregateConfigRuleResult : public ServiceResult - { - public: - - - UpdateAggregateConfigRuleResult(); - explicit UpdateAggregateConfigRuleResult(const std::string &payload); - ~UpdateAggregateConfigRuleResult(); - std::string getConfigRuleId()const; - - protected: - void parse(const std::string &payload); - private: - std::string configRuleId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATECONFIGRULERESULT_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 deleted file mode 100644 index cd0328d65..000000000 --- a/config/include/alibabacloud/config/model/UpdateAggregateRemediationRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 deleted file mode 100644 index 34bdc68a5..000000000 --- a/config/include/alibabacloud/config/model/UpdateAggregateRemediationResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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/include/alibabacloud/config/model/UpdateAggregatorRequest.h b/config/include/alibabacloud/config/model/UpdateAggregatorRequest.h deleted file mode 100644 index 6f6819bb6..000000000 --- a/config/include/alibabacloud/config/model/UpdateAggregatorRequest.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATORREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATORREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregatorRequest : public RpcServiceRequest { -public: - struct AggregatorAccounts { - long accountId; - std::string accountName; - std::string accountType; - }; - UpdateAggregatorRequest(); - ~UpdateAggregatorRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getAggregatorName() const; - void setAggregatorName(const std::string &aggregatorName); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getAggregatorId() const; - void setAggregatorId(const std::string &aggregatorId); - std::vector getAggregatorAccounts() const; - void setAggregatorAccounts(const std::vector &aggregatorAccounts); - -private: - std::string clientToken_; - std::string aggregatorName_; - std::string description_; - std::string aggregatorId_; - std::vector aggregatorAccounts_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATORREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateAggregatorResult.h b/config/include/alibabacloud/config/model/UpdateAggregatorResult.h deleted file mode 100644 index 3e96966ad..000000000 --- a/config/include/alibabacloud/config/model/UpdateAggregatorResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATORRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATORRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT UpdateAggregatorResult : public ServiceResult - { - public: - - - UpdateAggregatorResult(); - explicit UpdateAggregatorResult(const std::string &payload); - ~UpdateAggregatorResult(); - std::string getAggregatorId()const; - - protected: - void parse(const std::string &payload); - private: - std::string aggregatorId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATEAGGREGATORRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateCompliancePackRequest.h b/config/include/alibabacloud/config/model/UpdateCompliancePackRequest.h deleted file mode 100644 index fe4ec0166..000000000 --- a/config/include/alibabacloud/config/model/UpdateCompliancePackRequest.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATECOMPLIANCEPACKREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATECOMPLIANCEPACKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT UpdateCompliancePackRequest : public RpcServiceRequest { -public: - struct ConfigRules { - std::string managedRuleIdentifier; - struct ConfigRuleParametersItem { - std::string parameterValue; - std::string parameterName; - }; - ConfigRuleParametersItem configRuleParametersItem; - std::vector configRuleParameters; - std::string configRuleId; - std::string configRuleName; - std::string description; - int riskLevel; - }; - UpdateCompliancePackRequest(); - ~UpdateCompliancePackRequest(); - std::string getCompliancePackName() const; - void setCompliancePackName(const std::string &compliancePackName); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getCompliancePackId() const; - void setCompliancePackId(const std::string &compliancePackId); - std::vector getConfigRules() const; - void setConfigRules(const std::vector &configRules); - int getRiskLevel() const; - void setRiskLevel(int riskLevel); - -private: - std::string compliancePackName_; - std::string clientToken_; - std::string description_; - std::string compliancePackId_; - std::vector configRules_; - int riskLevel_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECOMPLIANCEPACKREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateCompliancePackResult.h b/config/include/alibabacloud/config/model/UpdateCompliancePackResult.h deleted file mode 100644 index 2df55d58e..000000000 --- a/config/include/alibabacloud/config/model/UpdateCompliancePackResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATECOMPLIANCEPACKRESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATECOMPLIANCEPACKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT UpdateCompliancePackResult : public ServiceResult - { - public: - - - UpdateCompliancePackResult(); - explicit UpdateCompliancePackResult(const std::string &payload); - ~UpdateCompliancePackResult(); - std::string getCompliancePackId()const; - - protected: - void parse(const std::string &payload); - private: - std::string compliancePackId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECOMPLIANCEPACKRESULT_H_ \ No newline at end of file diff --git a/config/include/alibabacloud/config/model/UpdateConfigDeliveryChannelRequest.h b/config/include/alibabacloud/config/model/UpdateConfigDeliveryChannelRequest.h deleted file mode 100644 index aff86f3e0..000000000 --- a/config/include/alibabacloud/config/model/UpdateConfigDeliveryChannelRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGDELIVERYCHANNELREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGDELIVERYCHANNELREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT UpdateConfigDeliveryChannelRequest : public RpcServiceRequest { -public: - UpdateConfigDeliveryChannelRequest(); - ~UpdateConfigDeliveryChannelRequest(); - bool getNonCompliantNotification() const; - void setNonCompliantNotification(bool nonCompliantNotification); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - bool getConfigurationSnapshot() const; - void setConfigurationSnapshot(bool configurationSnapshot); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getDeliveryChannelTargetArn() const; - void setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn); - std::string getDeliveryChannelCondition() const; - void setDeliveryChannelCondition(const std::string &deliveryChannelCondition); - bool getConfigurationItemChangeNotification() const; - void setConfigurationItemChangeNotification(bool configurationItemChangeNotification); - std::string getDeliveryChannelName() const; - void setDeliveryChannelName(const std::string &deliveryChannelName); - std::string getDeliveryChannelId() const; - void setDeliveryChannelId(const std::string &deliveryChannelId); - std::string getOversizedDataOSSTargetArn() const; - void setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn); - long getStatus() const; - void setStatus(long status); - -private: - bool nonCompliantNotification_; - std::string clientToken_; - bool configurationSnapshot_; - std::string description_; - std::string deliveryChannelTargetArn_; - std::string deliveryChannelCondition_; - bool configurationItemChangeNotification_; - std::string deliveryChannelName_; - std::string deliveryChannelId_; - std::string oversizedDataOSSTargetArn_; - long status_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGDELIVERYCHANNELREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateConfigRuleRequest.h b/config/include/alibabacloud/config/model/UpdateConfigRuleRequest.h deleted file mode 100644 index 2bc8ad9ed..000000000 --- a/config/include/alibabacloud/config/model/UpdateConfigRuleRequest.h +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGRULEREQUEST_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Config { -namespace Model { -class ALIBABACLOUD_CONFIG_EXPORT UpdateConfigRuleRequest : public RpcServiceRequest { -public: - UpdateConfigRuleRequest(); - ~UpdateConfigRuleRequest(); - std::string getConfigRuleId() const; - void setConfigRuleId(const std::string &configRuleId); - std::string getTagKeyScope() const; - void setTagKeyScope(const std::string &tagKeyScope); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::vector getResourceTypesScope() const; - void setResourceTypesScope(const std::vector &resourceTypesScope); - std::string getDescription() const; - void setDescription(const std::string &description); - std::string getConfigRuleTriggerTypes() const; - void setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes); - std::string getTagValueScope() const; - void setTagValueScope(const std::string &tagValueScope); - std::string getRegionIdsScope() const; - void setRegionIdsScope(const std::string ®ionIdsScope); - int getRiskLevel() const; - void setRiskLevel(int riskLevel); - std::string getResourceGroupIdsScope() const; - void setResourceGroupIdsScope(const std::string &resourceGroupIdsScope); - std::string getInputParameters() const; - void setInputParameters(const std::string &inputParameters); - std::string getConfigRuleName() const; - void setConfigRuleName(const std::string &configRuleName); - std::string getTagKeyLogicScope() const; - void setTagKeyLogicScope(const std::string &tagKeyLogicScope); - std::string getMaximumExecutionFrequency() const; - void setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency); - std::string getExcludeResourceIdsScope() const; - void setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope); - -private: - std::string configRuleId_; - std::string tagKeyScope_; - std::string clientToken_; - std::vector resourceTypesScope_; - std::string description_; - std::string configRuleTriggerTypes_; - std::string tagValueScope_; - std::string regionIdsScope_; - int riskLevel_; - std::string resourceGroupIdsScope_; - std::string inputParameters_; - std::string configRuleName_; - std::string tagKeyLogicScope_; - std::string maximumExecutionFrequency_; - std::string excludeResourceIdsScope_; -}; -} // namespace Model -} // namespace Config -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGRULEREQUEST_H_ diff --git a/config/include/alibabacloud/config/model/UpdateConfigRuleResult.h b/config/include/alibabacloud/config/model/UpdateConfigRuleResult.h deleted file mode 100644 index e850c24fa..000000000 --- a/config/include/alibabacloud/config/model/UpdateConfigRuleResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGRULERESULT_H_ -#define ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Config - { - namespace Model - { - class ALIBABACLOUD_CONFIG_EXPORT UpdateConfigRuleResult : public ServiceResult - { - public: - - - UpdateConfigRuleResult(); - explicit UpdateConfigRuleResult(const std::string &payload); - ~UpdateConfigRuleResult(); - std::string getConfigRuleId()const; - - protected: - void parse(const std::string &payload); - private: - std::string configRuleId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CONFIG_MODEL_UPDATECONFIGRULERESULT_H_ \ No newline at end of file diff --git a/config/src/ConfigClient.cc b/config/src/ConfigClient.cc index 1947cc29a..58177e892 100644 --- a/config/src/ConfigClient.cc +++ b/config/src/ConfigClient.cc @@ -51,1224 +51,324 @@ ConfigClient::ConfigClient(const std::string & accessKeyId, const std::string & ConfigClient::~ConfigClient() {} -ConfigClient::ActiveAggregateConfigRulesOutcome ConfigClient::activeAggregateConfigRules(const ActiveAggregateConfigRulesRequest &request) const +ConfigClient::ActiveConfigRulesOutcome ConfigClient::activeConfigRules(const ActiveConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ActiveAggregateConfigRulesOutcome(endpointOutcome.error()); + return ActiveConfigRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ActiveAggregateConfigRulesOutcome(ActiveAggregateConfigRulesResult(outcome.result())); + return ActiveConfigRulesOutcome(ActiveConfigRulesResult(outcome.result())); else - return ActiveAggregateConfigRulesOutcome(outcome.error()); + return ActiveConfigRulesOutcome(outcome.error()); } -void ConfigClient::activeAggregateConfigRulesAsync(const ActiveAggregateConfigRulesRequest& request, const ActiveAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::activeConfigRulesAsync(const ActiveConfigRulesRequest& request, const ActiveConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, activeAggregateConfigRules(request), context); + handler(this, request, activeConfigRules(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::ActiveAggregateConfigRulesOutcomeCallable ConfigClient::activeAggregateConfigRulesCallable(const ActiveAggregateConfigRulesRequest &request) const +ConfigClient::ActiveConfigRulesOutcomeCallable ConfigClient::activeConfigRulesCallable(const ActiveConfigRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->activeAggregateConfigRules(request); + return this->activeConfigRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::AttachAggregateConfigRuleToCompliancePackOutcome ConfigClient::attachAggregateConfigRuleToCompliancePack(const AttachAggregateConfigRuleToCompliancePackRequest &request) const +ConfigClient::DeleteConfigRulesOutcome ConfigClient::deleteConfigRules(const DeleteConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AttachAggregateConfigRuleToCompliancePackOutcome(endpointOutcome.error()); + return DeleteConfigRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AttachAggregateConfigRuleToCompliancePackOutcome(AttachAggregateConfigRuleToCompliancePackResult(outcome.result())); + return DeleteConfigRulesOutcome(DeleteConfigRulesResult(outcome.result())); else - return AttachAggregateConfigRuleToCompliancePackOutcome(outcome.error()); + return DeleteConfigRulesOutcome(outcome.error()); } -void ConfigClient::attachAggregateConfigRuleToCompliancePackAsync(const AttachAggregateConfigRuleToCompliancePackRequest& request, const AttachAggregateConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::deleteConfigRulesAsync(const DeleteConfigRulesRequest& request, const DeleteConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, attachAggregateConfigRuleToCompliancePack(request), context); + handler(this, request, deleteConfigRules(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::AttachAggregateConfigRuleToCompliancePackOutcomeCallable ConfigClient::attachAggregateConfigRuleToCompliancePackCallable(const AttachAggregateConfigRuleToCompliancePackRequest &request) const +ConfigClient::DeleteConfigRulesOutcomeCallable ConfigClient::deleteConfigRulesCallable(const DeleteConfigRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->attachAggregateConfigRuleToCompliancePack(request); + return this->deleteConfigRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::AttachConfigRuleToCompliancePackOutcome ConfigClient::attachConfigRuleToCompliancePack(const AttachConfigRuleToCompliancePackRequest &request) const +ConfigClient::DescribeComplianceOutcome ConfigClient::describeCompliance(const DescribeComplianceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AttachConfigRuleToCompliancePackOutcome(endpointOutcome.error()); + return DescribeComplianceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AttachConfigRuleToCompliancePackOutcome(AttachConfigRuleToCompliancePackResult(outcome.result())); + return DescribeComplianceOutcome(DescribeComplianceResult(outcome.result())); else - return AttachConfigRuleToCompliancePackOutcome(outcome.error()); + return DescribeComplianceOutcome(outcome.error()); } -void ConfigClient::attachConfigRuleToCompliancePackAsync(const AttachConfigRuleToCompliancePackRequest& request, const AttachConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::describeComplianceAsync(const DescribeComplianceRequest& request, const DescribeComplianceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, attachConfigRuleToCompliancePack(request), context); + handler(this, request, describeCompliance(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::AttachConfigRuleToCompliancePackOutcomeCallable ConfigClient::attachConfigRuleToCompliancePackCallable(const AttachConfigRuleToCompliancePackRequest &request) const +ConfigClient::DescribeComplianceOutcomeCallable ConfigClient::describeComplianceCallable(const DescribeComplianceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->attachConfigRuleToCompliancePack(request); + return this->describeCompliance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::CreateAggregateCompliancePackOutcome ConfigClient::createAggregateCompliancePack(const CreateAggregateCompliancePackRequest &request) const +ConfigClient::DescribeComplianceSummaryOutcome ConfigClient::describeComplianceSummary(const DescribeComplianceSummaryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateAggregateCompliancePackOutcome(endpointOutcome.error()); + return DescribeComplianceSummaryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateAggregateCompliancePackOutcome(CreateAggregateCompliancePackResult(outcome.result())); + return DescribeComplianceSummaryOutcome(DescribeComplianceSummaryResult(outcome.result())); else - return CreateAggregateCompliancePackOutcome(outcome.error()); + return DescribeComplianceSummaryOutcome(outcome.error()); } -void ConfigClient::createAggregateCompliancePackAsync(const CreateAggregateCompliancePackRequest& request, const CreateAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::describeComplianceSummaryAsync(const DescribeComplianceSummaryRequest& request, const DescribeComplianceSummaryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createAggregateCompliancePack(request), context); + handler(this, request, describeComplianceSummary(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::CreateAggregateCompliancePackOutcomeCallable ConfigClient::createAggregateCompliancePackCallable(const CreateAggregateCompliancePackRequest &request) const +ConfigClient::DescribeComplianceSummaryOutcomeCallable ConfigClient::describeComplianceSummaryCallable(const DescribeComplianceSummaryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createAggregateCompliancePack(request); + return this->describeComplianceSummary(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::CreateAggregateConfigDeliveryChannelOutcome ConfigClient::createAggregateConfigDeliveryChannel(const CreateAggregateConfigDeliveryChannelRequest &request) const +ConfigClient::DescribeConfigRuleOutcome ConfigClient::describeConfigRule(const DescribeConfigRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateAggregateConfigDeliveryChannelOutcome(endpointOutcome.error()); + return DescribeConfigRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateAggregateConfigDeliveryChannelOutcome(CreateAggregateConfigDeliveryChannelResult(outcome.result())); + return DescribeConfigRuleOutcome(DescribeConfigRuleResult(outcome.result())); else - return CreateAggregateConfigDeliveryChannelOutcome(outcome.error()); + return DescribeConfigRuleOutcome(outcome.error()); } -void ConfigClient::createAggregateConfigDeliveryChannelAsync(const CreateAggregateConfigDeliveryChannelRequest& request, const CreateAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::describeConfigRuleAsync(const DescribeConfigRuleRequest& request, const DescribeConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createAggregateConfigDeliveryChannel(request), context); + handler(this, request, describeConfigRule(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::CreateAggregateConfigDeliveryChannelOutcomeCallable ConfigClient::createAggregateConfigDeliveryChannelCallable(const CreateAggregateConfigDeliveryChannelRequest &request) const +ConfigClient::DescribeConfigRuleOutcomeCallable ConfigClient::describeConfigRuleCallable(const DescribeConfigRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createAggregateConfigDeliveryChannel(request); + return this->describeConfigRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::CreateAggregateConfigRuleOutcome ConfigClient::createAggregateConfigRule(const CreateAggregateConfigRuleRequest &request) const +ConfigClient::DescribeConfigurationRecorderOutcome ConfigClient::describeConfigurationRecorder(const DescribeConfigurationRecorderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateAggregateConfigRuleOutcome(endpointOutcome.error()); + return DescribeConfigurationRecorderOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateAggregateConfigRuleOutcome(CreateAggregateConfigRuleResult(outcome.result())); + return DescribeConfigurationRecorderOutcome(DescribeConfigurationRecorderResult(outcome.result())); else - return CreateAggregateConfigRuleOutcome(outcome.error()); + return DescribeConfigurationRecorderOutcome(outcome.error()); } -void ConfigClient::createAggregateConfigRuleAsync(const CreateAggregateConfigRuleRequest& request, const CreateAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::describeConfigurationRecorderAsync(const DescribeConfigurationRecorderRequest& request, const DescribeConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createAggregateConfigRule(request), context); + handler(this, request, describeConfigurationRecorder(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::CreateAggregateConfigRuleOutcomeCallable ConfigClient::createAggregateConfigRuleCallable(const CreateAggregateConfigRuleRequest &request) const +ConfigClient::DescribeConfigurationRecorderOutcomeCallable ConfigClient::describeConfigurationRecorderCallable(const DescribeConfigurationRecorderRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createAggregateConfigRule(request); + return this->describeConfigurationRecorder(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::CreateAggregateRemediationOutcome ConfigClient::createAggregateRemediation(const CreateAggregateRemediationRequest &request) const +ConfigClient::DescribeDeliveryChannelsOutcome ConfigClient::describeDeliveryChannels(const DescribeDeliveryChannelsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateAggregateRemediationOutcome(endpointOutcome.error()); + return DescribeDeliveryChannelsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateAggregateRemediationOutcome(CreateAggregateRemediationResult(outcome.result())); + return DescribeDeliveryChannelsOutcome(DescribeDeliveryChannelsResult(outcome.result())); else - return CreateAggregateRemediationOutcome(outcome.error()); + return DescribeDeliveryChannelsOutcome(outcome.error()); } -void ConfigClient::createAggregateRemediationAsync(const CreateAggregateRemediationRequest& request, const CreateAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::describeDeliveryChannelsAsync(const DescribeDeliveryChannelsRequest& request, const DescribeDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createAggregateRemediation(request), context); + handler(this, request, describeDeliveryChannels(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::CreateAggregateRemediationOutcomeCallable ConfigClient::createAggregateRemediationCallable(const CreateAggregateRemediationRequest &request) const +ConfigClient::DescribeDeliveryChannelsOutcomeCallable ConfigClient::describeDeliveryChannelsCallable(const DescribeDeliveryChannelsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createAggregateRemediation(request); + return this->describeDeliveryChannels(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::CreateAggregatorOutcome ConfigClient::createAggregator(const CreateAggregatorRequest &request) const +ConfigClient::DescribeDiscoveredResourceOutcome ConfigClient::describeDiscoveredResource(const DescribeDiscoveredResourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateAggregatorOutcome(endpointOutcome.error()); + return DescribeDiscoveredResourceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateAggregatorOutcome(CreateAggregatorResult(outcome.result())); + return DescribeDiscoveredResourceOutcome(DescribeDiscoveredResourceResult(outcome.result())); else - return CreateAggregatorOutcome(outcome.error()); + return DescribeDiscoveredResourceOutcome(outcome.error()); } -void ConfigClient::createAggregatorAsync(const CreateAggregatorRequest& request, const CreateAggregatorAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::describeDiscoveredResourceAsync(const DescribeDiscoveredResourceRequest& request, const DescribeDiscoveredResourceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createAggregator(request), context); + handler(this, request, describeDiscoveredResource(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::CreateAggregatorOutcomeCallable ConfigClient::createAggregatorCallable(const CreateAggregatorRequest &request) const +ConfigClient::DescribeDiscoveredResourceOutcomeCallable ConfigClient::describeDiscoveredResourceCallable(const DescribeDiscoveredResourceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createAggregator(request); + return this->describeDiscoveredResource(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::CreateCompliancePackOutcome ConfigClient::createCompliancePack(const CreateCompliancePackRequest &request) const +ConfigClient::DescribeEvaluationResultsOutcome ConfigClient::describeEvaluationResults(const DescribeEvaluationResultsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateCompliancePackOutcome(endpointOutcome.error()); + return DescribeEvaluationResultsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateCompliancePackOutcome(CreateCompliancePackResult(outcome.result())); + return DescribeEvaluationResultsOutcome(DescribeEvaluationResultsResult(outcome.result())); else - return CreateCompliancePackOutcome(outcome.error()); + return DescribeEvaluationResultsOutcome(outcome.error()); } -void ConfigClient::createCompliancePackAsync(const CreateCompliancePackRequest& request, const CreateCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::describeEvaluationResultsAsync(const DescribeEvaluationResultsRequest& request, const DescribeEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createCompliancePack(request), context); + handler(this, request, describeEvaluationResults(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::CreateCompliancePackOutcomeCallable ConfigClient::createCompliancePackCallable(const CreateCompliancePackRequest &request) const +ConfigClient::DescribeEvaluationResultsOutcomeCallable ConfigClient::describeEvaluationResultsCallable(const DescribeEvaluationResultsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createCompliancePack(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::CreateConfigDeliveryChannelOutcome ConfigClient::createConfigDeliveryChannel(const CreateConfigDeliveryChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateConfigDeliveryChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateConfigDeliveryChannelOutcome(CreateConfigDeliveryChannelResult(outcome.result())); - else - return CreateConfigDeliveryChannelOutcome(outcome.error()); -} - -void ConfigClient::createConfigDeliveryChannelAsync(const CreateConfigDeliveryChannelRequest& request, const CreateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createConfigDeliveryChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::CreateConfigDeliveryChannelOutcomeCallable ConfigClient::createConfigDeliveryChannelCallable(const CreateConfigDeliveryChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createConfigDeliveryChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::CreateConfigRuleOutcome ConfigClient::createConfigRule(const CreateConfigRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateConfigRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateConfigRuleOutcome(CreateConfigRuleResult(outcome.result())); - else - return CreateConfigRuleOutcome(outcome.error()); -} - -void ConfigClient::createConfigRuleAsync(const CreateConfigRuleRequest& request, const CreateConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createConfigRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::CreateConfigRuleOutcomeCallable ConfigClient::createConfigRuleCallable(const CreateConfigRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createConfigRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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(); - if (!endpointOutcome.isSuccess()) - return DeactiveAggregateConfigRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeactiveAggregateConfigRulesOutcome(DeactiveAggregateConfigRulesResult(outcome.result())); - else - return DeactiveAggregateConfigRulesOutcome(outcome.error()); -} - -void ConfigClient::deactiveAggregateConfigRulesAsync(const DeactiveAggregateConfigRulesRequest& request, const DeactiveAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deactiveAggregateConfigRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::DeactiveAggregateConfigRulesOutcomeCallable ConfigClient::deactiveAggregateConfigRulesCallable(const DeactiveAggregateConfigRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deactiveAggregateConfigRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::DeactiveConfigRulesOutcome ConfigClient::deactiveConfigRules(const DeactiveConfigRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeactiveConfigRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeactiveConfigRulesOutcome(DeactiveConfigRulesResult(outcome.result())); - else - return DeactiveConfigRulesOutcome(outcome.error()); -} - -void ConfigClient::deactiveConfigRulesAsync(const DeactiveConfigRulesRequest& request, const DeactiveConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deactiveConfigRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::DeactiveConfigRulesOutcomeCallable ConfigClient::deactiveConfigRulesCallable(const DeactiveConfigRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deactiveConfigRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::DeleteAggregateCompliancePacksOutcome ConfigClient::deleteAggregateCompliancePacks(const DeleteAggregateCompliancePacksRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteAggregateCompliancePacksOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteAggregateCompliancePacksOutcome(DeleteAggregateCompliancePacksResult(outcome.result())); - else - return DeleteAggregateCompliancePacksOutcome(outcome.error()); -} - -void ConfigClient::deleteAggregateCompliancePacksAsync(const DeleteAggregateCompliancePacksRequest& request, const DeleteAggregateCompliancePacksAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteAggregateCompliancePacks(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::DeleteAggregateCompliancePacksOutcomeCallable ConfigClient::deleteAggregateCompliancePacksCallable(const DeleteAggregateCompliancePacksRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteAggregateCompliancePacks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::DeleteAggregateConfigRulesOutcome ConfigClient::deleteAggregateConfigRules(const DeleteAggregateConfigRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteAggregateConfigRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteAggregateConfigRulesOutcome(DeleteAggregateConfigRulesResult(outcome.result())); - else - return DeleteAggregateConfigRulesOutcome(outcome.error()); -} - -void ConfigClient::deleteAggregateConfigRulesAsync(const DeleteAggregateConfigRulesRequest& request, const DeleteAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteAggregateConfigRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::DeleteAggregateConfigRulesOutcomeCallable ConfigClient::deleteAggregateConfigRulesCallable(const DeleteAggregateConfigRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteAggregateConfigRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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(); - if (!endpointOutcome.isSuccess()) - return DeleteAggregatorsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteAggregatorsOutcome(DeleteAggregatorsResult(outcome.result())); - else - return DeleteAggregatorsOutcome(outcome.error()); -} - -void ConfigClient::deleteAggregatorsAsync(const DeleteAggregatorsRequest& request, const DeleteAggregatorsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteAggregators(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::DeleteAggregatorsOutcomeCallable ConfigClient::deleteAggregatorsCallable(const DeleteAggregatorsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteAggregators(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::DeleteCompliancePacksOutcome ConfigClient::deleteCompliancePacks(const DeleteCompliancePacksRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteCompliancePacksOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteCompliancePacksOutcome(DeleteCompliancePacksResult(outcome.result())); - else - return DeleteCompliancePacksOutcome(outcome.error()); -} - -void ConfigClient::deleteCompliancePacksAsync(const DeleteCompliancePacksRequest& request, const DeleteCompliancePacksAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteCompliancePacks(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::DeleteCompliancePacksOutcomeCallable ConfigClient::deleteCompliancePacksCallable(const DeleteCompliancePacksRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteCompliancePacks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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(); - if (!endpointOutcome.isSuccess()) - return DetachAggregateConfigRuleToCompliancePackOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetachAggregateConfigRuleToCompliancePackOutcome(DetachAggregateConfigRuleToCompliancePackResult(outcome.result())); - else - return DetachAggregateConfigRuleToCompliancePackOutcome(outcome.error()); -} - -void ConfigClient::detachAggregateConfigRuleToCompliancePackAsync(const DetachAggregateConfigRuleToCompliancePackRequest& request, const DetachAggregateConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detachAggregateConfigRuleToCompliancePack(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::DetachAggregateConfigRuleToCompliancePackOutcomeCallable ConfigClient::detachAggregateConfigRuleToCompliancePackCallable(const DetachAggregateConfigRuleToCompliancePackRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detachAggregateConfigRuleToCompliancePack(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::DetachConfigRuleToCompliancePackOutcome ConfigClient::detachConfigRuleToCompliancePack(const DetachConfigRuleToCompliancePackRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DetachConfigRuleToCompliancePackOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DetachConfigRuleToCompliancePackOutcome(DetachConfigRuleToCompliancePackResult(outcome.result())); - else - return DetachConfigRuleToCompliancePackOutcome(outcome.error()); -} - -void ConfigClient::detachConfigRuleToCompliancePackAsync(const DetachConfigRuleToCompliancePackRequest& request, const DetachConfigRuleToCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, detachConfigRuleToCompliancePack(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::DetachConfigRuleToCompliancePackOutcomeCallable ConfigClient::detachConfigRuleToCompliancePackCallable(const DetachConfigRuleToCompliancePackRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->detachConfigRuleToCompliancePack(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GenerateAggregateCompliancePackReportOutcome ConfigClient::generateAggregateCompliancePackReport(const GenerateAggregateCompliancePackReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GenerateAggregateCompliancePackReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GenerateAggregateCompliancePackReportOutcome(GenerateAggregateCompliancePackReportResult(outcome.result())); - else - return GenerateAggregateCompliancePackReportOutcome(outcome.error()); -} - -void ConfigClient::generateAggregateCompliancePackReportAsync(const GenerateAggregateCompliancePackReportRequest& request, const GenerateAggregateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, generateAggregateCompliancePackReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GenerateAggregateCompliancePackReportOutcomeCallable ConfigClient::generateAggregateCompliancePackReportCallable(const GenerateAggregateCompliancePackReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->generateAggregateCompliancePackReport(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GenerateAggregateConfigRulesReportOutcome ConfigClient::generateAggregateConfigRulesReport(const GenerateAggregateConfigRulesReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GenerateAggregateConfigRulesReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GenerateAggregateConfigRulesReportOutcome(GenerateAggregateConfigRulesReportResult(outcome.result())); - else - return GenerateAggregateConfigRulesReportOutcome(outcome.error()); -} - -void ConfigClient::generateAggregateConfigRulesReportAsync(const GenerateAggregateConfigRulesReportRequest& request, const GenerateAggregateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, generateAggregateConfigRulesReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GenerateAggregateConfigRulesReportOutcomeCallable ConfigClient::generateAggregateConfigRulesReportCallable(const GenerateAggregateConfigRulesReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->generateAggregateConfigRulesReport(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GenerateCompliancePackReportOutcome ConfigClient::generateCompliancePackReport(const GenerateCompliancePackReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GenerateCompliancePackReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GenerateCompliancePackReportOutcome(GenerateCompliancePackReportResult(outcome.result())); - else - return GenerateCompliancePackReportOutcome(outcome.error()); -} - -void ConfigClient::generateCompliancePackReportAsync(const GenerateCompliancePackReportRequest& request, const GenerateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, generateCompliancePackReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GenerateCompliancePackReportOutcomeCallable ConfigClient::generateCompliancePackReportCallable(const GenerateCompliancePackReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->generateCompliancePackReport(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GenerateConfigRulesReportOutcome ConfigClient::generateConfigRulesReport(const GenerateConfigRulesReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GenerateConfigRulesReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GenerateConfigRulesReportOutcome(GenerateConfigRulesReportResult(outcome.result())); - else - return GenerateConfigRulesReportOutcome(outcome.error()); -} - -void ConfigClient::generateConfigRulesReportAsync(const GenerateConfigRulesReportRequest& request, const GenerateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, generateConfigRulesReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GenerateConfigRulesReportOutcomeCallable ConfigClient::generateConfigRulesReportCallable(const GenerateConfigRulesReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->generateConfigRulesReport(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateAccountComplianceByPackOutcome ConfigClient::getAggregateAccountComplianceByPack(const GetAggregateAccountComplianceByPackRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateAccountComplianceByPackOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateAccountComplianceByPackOutcome(GetAggregateAccountComplianceByPackResult(outcome.result())); - else - return GetAggregateAccountComplianceByPackOutcome(outcome.error()); -} - -void ConfigClient::getAggregateAccountComplianceByPackAsync(const GetAggregateAccountComplianceByPackRequest& request, const GetAggregateAccountComplianceByPackAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateAccountComplianceByPack(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateAccountComplianceByPackOutcomeCallable ConfigClient::getAggregateAccountComplianceByPackCallable(const GetAggregateAccountComplianceByPackRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateAccountComplianceByPack(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateCompliancePackOutcome ConfigClient::getAggregateCompliancePack(const GetAggregateCompliancePackRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateCompliancePackOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateCompliancePackOutcome(GetAggregateCompliancePackResult(outcome.result())); - else - return GetAggregateCompliancePackOutcome(outcome.error()); -} - -void ConfigClient::getAggregateCompliancePackAsync(const GetAggregateCompliancePackRequest& request, const GetAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateCompliancePack(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateCompliancePackOutcomeCallable ConfigClient::getAggregateCompliancePackCallable(const GetAggregateCompliancePackRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateCompliancePack(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateCompliancePackReportOutcome ConfigClient::getAggregateCompliancePackReport(const GetAggregateCompliancePackReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateCompliancePackReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateCompliancePackReportOutcome(GetAggregateCompliancePackReportResult(outcome.result())); - else - return GetAggregateCompliancePackReportOutcome(outcome.error()); -} - -void ConfigClient::getAggregateCompliancePackReportAsync(const GetAggregateCompliancePackReportRequest& request, const GetAggregateCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateCompliancePackReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateCompliancePackReportOutcomeCallable ConfigClient::getAggregateCompliancePackReportCallable(const GetAggregateCompliancePackReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateCompliancePackReport(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateConfigDeliveryChannelOutcome ConfigClient::getAggregateConfigDeliveryChannel(const GetAggregateConfigDeliveryChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateConfigDeliveryChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateConfigDeliveryChannelOutcome(GetAggregateConfigDeliveryChannelResult(outcome.result())); - else - return GetAggregateConfigDeliveryChannelOutcome(outcome.error()); -} - -void ConfigClient::getAggregateConfigDeliveryChannelAsync(const GetAggregateConfigDeliveryChannelRequest& request, const GetAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateConfigDeliveryChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateConfigDeliveryChannelOutcomeCallable ConfigClient::getAggregateConfigDeliveryChannelCallable(const GetAggregateConfigDeliveryChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateConfigDeliveryChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateConfigRuleOutcome ConfigClient::getAggregateConfigRule(const GetAggregateConfigRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateConfigRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateConfigRuleOutcome(GetAggregateConfigRuleResult(outcome.result())); - else - return GetAggregateConfigRuleOutcome(outcome.error()); -} - -void ConfigClient::getAggregateConfigRuleAsync(const GetAggregateConfigRuleRequest& request, const GetAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateConfigRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateConfigRuleOutcomeCallable ConfigClient::getAggregateConfigRuleCallable(const GetAggregateConfigRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateConfigRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateConfigRuleComplianceByPackOutcome ConfigClient::getAggregateConfigRuleComplianceByPack(const GetAggregateConfigRuleComplianceByPackRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateConfigRuleComplianceByPackOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateConfigRuleComplianceByPackOutcome(GetAggregateConfigRuleComplianceByPackResult(outcome.result())); - else - return GetAggregateConfigRuleComplianceByPackOutcome(outcome.error()); -} - -void ConfigClient::getAggregateConfigRuleComplianceByPackAsync(const GetAggregateConfigRuleComplianceByPackRequest& request, const GetAggregateConfigRuleComplianceByPackAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateConfigRuleComplianceByPack(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateConfigRuleComplianceByPackOutcomeCallable ConfigClient::getAggregateConfigRuleComplianceByPackCallable(const GetAggregateConfigRuleComplianceByPackRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateConfigRuleComplianceByPack(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateConfigRuleSummaryByRiskLevelOutcome ConfigClient::getAggregateConfigRuleSummaryByRiskLevel(const GetAggregateConfigRuleSummaryByRiskLevelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateConfigRuleSummaryByRiskLevelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateConfigRuleSummaryByRiskLevelOutcome(GetAggregateConfigRuleSummaryByRiskLevelResult(outcome.result())); - else - return GetAggregateConfigRuleSummaryByRiskLevelOutcome(outcome.error()); -} - -void ConfigClient::getAggregateConfigRuleSummaryByRiskLevelAsync(const GetAggregateConfigRuleSummaryByRiskLevelRequest& request, const GetAggregateConfigRuleSummaryByRiskLevelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateConfigRuleSummaryByRiskLevel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateConfigRuleSummaryByRiskLevelOutcomeCallable ConfigClient::getAggregateConfigRuleSummaryByRiskLevelCallable(const GetAggregateConfigRuleSummaryByRiskLevelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateConfigRuleSummaryByRiskLevel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateConfigRulesReportOutcome ConfigClient::getAggregateConfigRulesReport(const GetAggregateConfigRulesReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateConfigRulesReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateConfigRulesReportOutcome(GetAggregateConfigRulesReportResult(outcome.result())); - else - return GetAggregateConfigRulesReportOutcome(outcome.error()); -} - -void ConfigClient::getAggregateConfigRulesReportAsync(const GetAggregateConfigRulesReportRequest& request, const GetAggregateConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateConfigRulesReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateConfigRulesReportOutcomeCallable ConfigClient::getAggregateConfigRulesReportCallable(const GetAggregateConfigRulesReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateConfigRulesReport(request); + return this->describeEvaluationResults(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1311,864 +411,72 @@ ConfigClient::GetAggregateDiscoveredResourceOutcomeCallable ConfigClient::getAgg return task->get_future(); } -ConfigClient::GetAggregateResourceComplianceByConfigRuleOutcome ConfigClient::getAggregateResourceComplianceByConfigRule(const GetAggregateResourceComplianceByConfigRuleRequest &request) const +ConfigClient::GetDiscoveredResourceCountsOutcome ConfigClient::getDiscoveredResourceCounts(const GetDiscoveredResourceCountsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetAggregateResourceComplianceByConfigRuleOutcome(endpointOutcome.error()); + return GetDiscoveredResourceCountsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetAggregateResourceComplianceByConfigRuleOutcome(GetAggregateResourceComplianceByConfigRuleResult(outcome.result())); + return GetDiscoveredResourceCountsOutcome(GetDiscoveredResourceCountsResult(outcome.result())); else - return GetAggregateResourceComplianceByConfigRuleOutcome(outcome.error()); + return GetDiscoveredResourceCountsOutcome(outcome.error()); } -void ConfigClient::getAggregateResourceComplianceByConfigRuleAsync(const GetAggregateResourceComplianceByConfigRuleRequest& request, const GetAggregateResourceComplianceByConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::getDiscoveredResourceCountsAsync(const GetDiscoveredResourceCountsRequest& request, const GetDiscoveredResourceCountsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getAggregateResourceComplianceByConfigRule(request), context); + handler(this, request, getDiscoveredResourceCounts(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::GetAggregateResourceComplianceByConfigRuleOutcomeCallable ConfigClient::getAggregateResourceComplianceByConfigRuleCallable(const GetAggregateResourceComplianceByConfigRuleRequest &request) const +ConfigClient::GetDiscoveredResourceCountsOutcomeCallable ConfigClient::getDiscoveredResourceCountsCallable(const GetDiscoveredResourceCountsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getAggregateResourceComplianceByConfigRule(request); + return this->getDiscoveredResourceCounts(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::GetAggregateResourceComplianceByPackOutcome ConfigClient::getAggregateResourceComplianceByPack(const GetAggregateResourceComplianceByPackRequest &request) const +ConfigClient::GetDiscoveredResourceSummaryOutcome ConfigClient::getDiscoveredResourceSummary(const GetDiscoveredResourceSummaryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetAggregateResourceComplianceByPackOutcome(endpointOutcome.error()); + return GetDiscoveredResourceSummaryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetAggregateResourceComplianceByPackOutcome(GetAggregateResourceComplianceByPackResult(outcome.result())); + return GetDiscoveredResourceSummaryOutcome(GetDiscoveredResourceSummaryResult(outcome.result())); else - return GetAggregateResourceComplianceByPackOutcome(outcome.error()); + return GetDiscoveredResourceSummaryOutcome(outcome.error()); } -void ConfigClient::getAggregateResourceComplianceByPackAsync(const GetAggregateResourceComplianceByPackRequest& request, const GetAggregateResourceComplianceByPackAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::getDiscoveredResourceSummaryAsync(const GetDiscoveredResourceSummaryRequest& request, const GetDiscoveredResourceSummaryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getAggregateResourceComplianceByPack(request), context); + handler(this, request, getDiscoveredResourceSummary(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::GetAggregateResourceComplianceByPackOutcomeCallable ConfigClient::getAggregateResourceComplianceByPackCallable(const GetAggregateResourceComplianceByPackRequest &request) const +ConfigClient::GetDiscoveredResourceSummaryOutcomeCallable ConfigClient::getDiscoveredResourceSummaryCallable(const GetDiscoveredResourceSummaryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getAggregateResourceComplianceByPack(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateResourceComplianceGroupByRegionOutcome ConfigClient::getAggregateResourceComplianceGroupByRegion(const GetAggregateResourceComplianceGroupByRegionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateResourceComplianceGroupByRegionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateResourceComplianceGroupByRegionOutcome(GetAggregateResourceComplianceGroupByRegionResult(outcome.result())); - else - return GetAggregateResourceComplianceGroupByRegionOutcome(outcome.error()); -} - -void ConfigClient::getAggregateResourceComplianceGroupByRegionAsync(const GetAggregateResourceComplianceGroupByRegionRequest& request, const GetAggregateResourceComplianceGroupByRegionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateResourceComplianceGroupByRegion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateResourceComplianceGroupByRegionOutcomeCallable ConfigClient::getAggregateResourceComplianceGroupByRegionCallable(const GetAggregateResourceComplianceGroupByRegionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateResourceComplianceGroupByRegion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateResourceComplianceGroupByResourceTypeOutcome ConfigClient::getAggregateResourceComplianceGroupByResourceType(const GetAggregateResourceComplianceGroupByResourceTypeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateResourceComplianceGroupByResourceTypeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateResourceComplianceGroupByResourceTypeOutcome(GetAggregateResourceComplianceGroupByResourceTypeResult(outcome.result())); - else - return GetAggregateResourceComplianceGroupByResourceTypeOutcome(outcome.error()); -} - -void ConfigClient::getAggregateResourceComplianceGroupByResourceTypeAsync(const GetAggregateResourceComplianceGroupByResourceTypeRequest& request, const GetAggregateResourceComplianceGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateResourceComplianceGroupByResourceType(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateResourceComplianceGroupByResourceTypeOutcomeCallable ConfigClient::getAggregateResourceComplianceGroupByResourceTypeCallable(const GetAggregateResourceComplianceGroupByResourceTypeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateResourceComplianceGroupByResourceType(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateResourceComplianceTimelineOutcome ConfigClient::getAggregateResourceComplianceTimeline(const GetAggregateResourceComplianceTimelineRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateResourceComplianceTimelineOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateResourceComplianceTimelineOutcome(GetAggregateResourceComplianceTimelineResult(outcome.result())); - else - return GetAggregateResourceComplianceTimelineOutcome(outcome.error()); -} - -void ConfigClient::getAggregateResourceComplianceTimelineAsync(const GetAggregateResourceComplianceTimelineRequest& request, const GetAggregateResourceComplianceTimelineAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateResourceComplianceTimeline(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateResourceComplianceTimelineOutcomeCallable ConfigClient::getAggregateResourceComplianceTimelineCallable(const GetAggregateResourceComplianceTimelineRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateResourceComplianceTimeline(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateResourceConfigurationTimelineOutcome ConfigClient::getAggregateResourceConfigurationTimeline(const GetAggregateResourceConfigurationTimelineRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateResourceConfigurationTimelineOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateResourceConfigurationTimelineOutcome(GetAggregateResourceConfigurationTimelineResult(outcome.result())); - else - return GetAggregateResourceConfigurationTimelineOutcome(outcome.error()); -} - -void ConfigClient::getAggregateResourceConfigurationTimelineAsync(const GetAggregateResourceConfigurationTimelineRequest& request, const GetAggregateResourceConfigurationTimelineAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateResourceConfigurationTimeline(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateResourceConfigurationTimelineOutcomeCallable ConfigClient::getAggregateResourceConfigurationTimelineCallable(const GetAggregateResourceConfigurationTimelineRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateResourceConfigurationTimeline(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateResourceCountsGroupByRegionOutcome ConfigClient::getAggregateResourceCountsGroupByRegion(const GetAggregateResourceCountsGroupByRegionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateResourceCountsGroupByRegionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateResourceCountsGroupByRegionOutcome(GetAggregateResourceCountsGroupByRegionResult(outcome.result())); - else - return GetAggregateResourceCountsGroupByRegionOutcome(outcome.error()); -} - -void ConfigClient::getAggregateResourceCountsGroupByRegionAsync(const GetAggregateResourceCountsGroupByRegionRequest& request, const GetAggregateResourceCountsGroupByRegionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateResourceCountsGroupByRegion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateResourceCountsGroupByRegionOutcomeCallable ConfigClient::getAggregateResourceCountsGroupByRegionCallable(const GetAggregateResourceCountsGroupByRegionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateResourceCountsGroupByRegion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregateResourceCountsGroupByResourceTypeOutcome ConfigClient::getAggregateResourceCountsGroupByResourceType(const GetAggregateResourceCountsGroupByResourceTypeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregateResourceCountsGroupByResourceTypeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregateResourceCountsGroupByResourceTypeOutcome(GetAggregateResourceCountsGroupByResourceTypeResult(outcome.result())); - else - return GetAggregateResourceCountsGroupByResourceTypeOutcome(outcome.error()); -} - -void ConfigClient::getAggregateResourceCountsGroupByResourceTypeAsync(const GetAggregateResourceCountsGroupByResourceTypeRequest& request, const GetAggregateResourceCountsGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregateResourceCountsGroupByResourceType(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregateResourceCountsGroupByResourceTypeOutcomeCallable ConfigClient::getAggregateResourceCountsGroupByResourceTypeCallable(const GetAggregateResourceCountsGroupByResourceTypeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregateResourceCountsGroupByResourceType(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetAggregatorOutcome ConfigClient::getAggregator(const GetAggregatorRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetAggregatorOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetAggregatorOutcome(GetAggregatorResult(outcome.result())); - else - return GetAggregatorOutcome(outcome.error()); -} - -void ConfigClient::getAggregatorAsync(const GetAggregatorRequest& request, const GetAggregatorAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getAggregator(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetAggregatorOutcomeCallable ConfigClient::getAggregatorCallable(const GetAggregatorRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getAggregator(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetCompliancePackOutcome ConfigClient::getCompliancePack(const GetCompliancePackRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetCompliancePackOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetCompliancePackOutcome(GetCompliancePackResult(outcome.result())); - else - return GetCompliancePackOutcome(outcome.error()); -} - -void ConfigClient::getCompliancePackAsync(const GetCompliancePackRequest& request, const GetCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getCompliancePack(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetCompliancePackOutcomeCallable ConfigClient::getCompliancePackCallable(const GetCompliancePackRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getCompliancePack(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetCompliancePackReportOutcome ConfigClient::getCompliancePackReport(const GetCompliancePackReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetCompliancePackReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetCompliancePackReportOutcome(GetCompliancePackReportResult(outcome.result())); - else - return GetCompliancePackReportOutcome(outcome.error()); -} - -void ConfigClient::getCompliancePackReportAsync(const GetCompliancePackReportRequest& request, const GetCompliancePackReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getCompliancePackReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetCompliancePackReportOutcomeCallable ConfigClient::getCompliancePackReportCallable(const GetCompliancePackReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getCompliancePackReport(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetConfigDeliveryChannelOutcome ConfigClient::getConfigDeliveryChannel(const GetConfigDeliveryChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetConfigDeliveryChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetConfigDeliveryChannelOutcome(GetConfigDeliveryChannelResult(outcome.result())); - else - return GetConfigDeliveryChannelOutcome(outcome.error()); -} - -void ConfigClient::getConfigDeliveryChannelAsync(const GetConfigDeliveryChannelRequest& request, const GetConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getConfigDeliveryChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetConfigDeliveryChannelOutcomeCallable ConfigClient::getConfigDeliveryChannelCallable(const GetConfigDeliveryChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getConfigDeliveryChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetConfigRuleOutcome ConfigClient::getConfigRule(const GetConfigRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetConfigRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetConfigRuleOutcome(GetConfigRuleResult(outcome.result())); - else - return GetConfigRuleOutcome(outcome.error()); -} - -void ConfigClient::getConfigRuleAsync(const GetConfigRuleRequest& request, const GetConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getConfigRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetConfigRuleOutcomeCallable ConfigClient::getConfigRuleCallable(const GetConfigRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getConfigRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetConfigRuleComplianceByPackOutcome ConfigClient::getConfigRuleComplianceByPack(const GetConfigRuleComplianceByPackRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetConfigRuleComplianceByPackOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetConfigRuleComplianceByPackOutcome(GetConfigRuleComplianceByPackResult(outcome.result())); - else - return GetConfigRuleComplianceByPackOutcome(outcome.error()); -} - -void ConfigClient::getConfigRuleComplianceByPackAsync(const GetConfigRuleComplianceByPackRequest& request, const GetConfigRuleComplianceByPackAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getConfigRuleComplianceByPack(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetConfigRuleComplianceByPackOutcomeCallable ConfigClient::getConfigRuleComplianceByPackCallable(const GetConfigRuleComplianceByPackRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getConfigRuleComplianceByPack(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetConfigRuleSummaryByRiskLevelOutcome ConfigClient::getConfigRuleSummaryByRiskLevel(const GetConfigRuleSummaryByRiskLevelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetConfigRuleSummaryByRiskLevelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetConfigRuleSummaryByRiskLevelOutcome(GetConfigRuleSummaryByRiskLevelResult(outcome.result())); - else - return GetConfigRuleSummaryByRiskLevelOutcome(outcome.error()); -} - -void ConfigClient::getConfigRuleSummaryByRiskLevelAsync(const GetConfigRuleSummaryByRiskLevelRequest& request, const GetConfigRuleSummaryByRiskLevelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getConfigRuleSummaryByRiskLevel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetConfigRuleSummaryByRiskLevelOutcomeCallable ConfigClient::getConfigRuleSummaryByRiskLevelCallable(const GetConfigRuleSummaryByRiskLevelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getConfigRuleSummaryByRiskLevel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetConfigRulesReportOutcome ConfigClient::getConfigRulesReport(const GetConfigRulesReportRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetConfigRulesReportOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetConfigRulesReportOutcome(GetConfigRulesReportResult(outcome.result())); - else - return GetConfigRulesReportOutcome(outcome.error()); -} - -void ConfigClient::getConfigRulesReportAsync(const GetConfigRulesReportRequest& request, const GetConfigRulesReportAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getConfigRulesReport(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetConfigRulesReportOutcomeCallable ConfigClient::getConfigRulesReportCallable(const GetConfigRulesReportRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getConfigRulesReport(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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(); - if (!endpointOutcome.isSuccess()) - return GetDiscoveredResourceCountsGroupByRegionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetDiscoveredResourceCountsGroupByRegionOutcome(GetDiscoveredResourceCountsGroupByRegionResult(outcome.result())); - else - return GetDiscoveredResourceCountsGroupByRegionOutcome(outcome.error()); -} - -void ConfigClient::getDiscoveredResourceCountsGroupByRegionAsync(const GetDiscoveredResourceCountsGroupByRegionRequest& request, const GetDiscoveredResourceCountsGroupByRegionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getDiscoveredResourceCountsGroupByRegion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetDiscoveredResourceCountsGroupByRegionOutcomeCallable ConfigClient::getDiscoveredResourceCountsGroupByRegionCallable(const GetDiscoveredResourceCountsGroupByRegionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getDiscoveredResourceCountsGroupByRegion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetDiscoveredResourceCountsGroupByResourceTypeOutcome ConfigClient::getDiscoveredResourceCountsGroupByResourceType(const GetDiscoveredResourceCountsGroupByResourceTypeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetDiscoveredResourceCountsGroupByResourceTypeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetDiscoveredResourceCountsGroupByResourceTypeOutcome(GetDiscoveredResourceCountsGroupByResourceTypeResult(outcome.result())); - else - return GetDiscoveredResourceCountsGroupByResourceTypeOutcome(outcome.error()); -} - -void ConfigClient::getDiscoveredResourceCountsGroupByResourceTypeAsync(const GetDiscoveredResourceCountsGroupByResourceTypeRequest& request, const GetDiscoveredResourceCountsGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getDiscoveredResourceCountsGroupByResourceType(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetDiscoveredResourceCountsGroupByResourceTypeOutcomeCallable ConfigClient::getDiscoveredResourceCountsGroupByResourceTypeCallable(const GetDiscoveredResourceCountsGroupByResourceTypeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getDiscoveredResourceCountsGroupByResourceType(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetManagedRuleOutcome ConfigClient::getManagedRule(const GetManagedRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetManagedRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetManagedRuleOutcome(GetManagedRuleResult(outcome.result())); - else - return GetManagedRuleOutcome(outcome.error()); -} - -void ConfigClient::getManagedRuleAsync(const GetManagedRuleRequest& request, const GetManagedRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getManagedRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetManagedRuleOutcomeCallable ConfigClient::getManagedRuleCallable(const GetManagedRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getManagedRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetResourceComplianceByConfigRuleOutcome ConfigClient::getResourceComplianceByConfigRule(const GetResourceComplianceByConfigRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetResourceComplianceByConfigRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetResourceComplianceByConfigRuleOutcome(GetResourceComplianceByConfigRuleResult(outcome.result())); - else - return GetResourceComplianceByConfigRuleOutcome(outcome.error()); -} - -void ConfigClient::getResourceComplianceByConfigRuleAsync(const GetResourceComplianceByConfigRuleRequest& request, const GetResourceComplianceByConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getResourceComplianceByConfigRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetResourceComplianceByConfigRuleOutcomeCallable ConfigClient::getResourceComplianceByConfigRuleCallable(const GetResourceComplianceByConfigRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getResourceComplianceByConfigRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetResourceComplianceByPackOutcome ConfigClient::getResourceComplianceByPack(const GetResourceComplianceByPackRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetResourceComplianceByPackOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetResourceComplianceByPackOutcome(GetResourceComplianceByPackResult(outcome.result())); - else - return GetResourceComplianceByPackOutcome(outcome.error()); -} - -void ConfigClient::getResourceComplianceByPackAsync(const GetResourceComplianceByPackRequest& request, const GetResourceComplianceByPackAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getResourceComplianceByPack(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetResourceComplianceByPackOutcomeCallable ConfigClient::getResourceComplianceByPackCallable(const GetResourceComplianceByPackRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getResourceComplianceByPack(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetResourceComplianceGroupByRegionOutcome ConfigClient::getResourceComplianceGroupByRegion(const GetResourceComplianceGroupByRegionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetResourceComplianceGroupByRegionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetResourceComplianceGroupByRegionOutcome(GetResourceComplianceGroupByRegionResult(outcome.result())); - else - return GetResourceComplianceGroupByRegionOutcome(outcome.error()); -} - -void ConfigClient::getResourceComplianceGroupByRegionAsync(const GetResourceComplianceGroupByRegionRequest& request, const GetResourceComplianceGroupByRegionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getResourceComplianceGroupByRegion(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetResourceComplianceGroupByRegionOutcomeCallable ConfigClient::getResourceComplianceGroupByRegionCallable(const GetResourceComplianceGroupByRegionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getResourceComplianceGroupByRegion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::GetResourceComplianceGroupByResourceTypeOutcome ConfigClient::getResourceComplianceGroupByResourceType(const GetResourceComplianceGroupByResourceTypeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetResourceComplianceGroupByResourceTypeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetResourceComplianceGroupByResourceTypeOutcome(GetResourceComplianceGroupByResourceTypeResult(outcome.result())); - else - return GetResourceComplianceGroupByResourceTypeOutcome(outcome.error()); -} - -void ConfigClient::getResourceComplianceGroupByResourceTypeAsync(const GetResourceComplianceGroupByResourceTypeRequest& request, const GetResourceComplianceGroupByResourceTypeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getResourceComplianceGroupByResourceType(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::GetResourceComplianceGroupByResourceTypeOutcomeCallable ConfigClient::getResourceComplianceGroupByResourceTypeCallable(const GetResourceComplianceGroupByResourceTypeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getResourceComplianceGroupByResourceType(request); + return this->getDiscoveredResourceSummary(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2247,216 +555,36 @@ ConfigClient::GetResourceConfigurationTimelineOutcomeCallable ConfigClient::getR return task->get_future(); } -ConfigClient::IgnoreAggregateEvaluationResultsOutcome ConfigClient::ignoreAggregateEvaluationResults(const IgnoreAggregateEvaluationResultsRequest &request) const +ConfigClient::GetSupportedResourceTypesOutcome ConfigClient::getSupportedResourceTypes(const GetSupportedResourceTypesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return IgnoreAggregateEvaluationResultsOutcome(endpointOutcome.error()); + return GetSupportedResourceTypesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return IgnoreAggregateEvaluationResultsOutcome(IgnoreAggregateEvaluationResultsResult(outcome.result())); + return GetSupportedResourceTypesOutcome(GetSupportedResourceTypesResult(outcome.result())); else - return IgnoreAggregateEvaluationResultsOutcome(outcome.error()); + return GetSupportedResourceTypesOutcome(outcome.error()); } -void ConfigClient::ignoreAggregateEvaluationResultsAsync(const IgnoreAggregateEvaluationResultsRequest& request, const IgnoreAggregateEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::getSupportedResourceTypesAsync(const GetSupportedResourceTypesRequest& request, const GetSupportedResourceTypesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, ignoreAggregateEvaluationResults(request), context); + handler(this, request, getSupportedResourceTypes(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::IgnoreAggregateEvaluationResultsOutcomeCallable ConfigClient::ignoreAggregateEvaluationResultsCallable(const IgnoreAggregateEvaluationResultsRequest &request) const +ConfigClient::GetSupportedResourceTypesOutcomeCallable ConfigClient::getSupportedResourceTypesCallable(const GetSupportedResourceTypesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->ignoreAggregateEvaluationResults(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::IgnoreEvaluationResultsOutcome ConfigClient::ignoreEvaluationResults(const IgnoreEvaluationResultsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return IgnoreEvaluationResultsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return IgnoreEvaluationResultsOutcome(IgnoreEvaluationResultsResult(outcome.result())); - else - return IgnoreEvaluationResultsOutcome(outcome.error()); -} - -void ConfigClient::ignoreEvaluationResultsAsync(const IgnoreEvaluationResultsRequest& request, const IgnoreEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, ignoreEvaluationResults(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::IgnoreEvaluationResultsOutcomeCallable ConfigClient::ignoreEvaluationResultsCallable(const IgnoreEvaluationResultsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->ignoreEvaluationResults(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::ListAggregateCompliancePacksOutcome ConfigClient::listAggregateCompliancePacks(const ListAggregateCompliancePacksRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAggregateCompliancePacksOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAggregateCompliancePacksOutcome(ListAggregateCompliancePacksResult(outcome.result())); - else - return ListAggregateCompliancePacksOutcome(outcome.error()); -} - -void ConfigClient::listAggregateCompliancePacksAsync(const ListAggregateCompliancePacksRequest& request, const ListAggregateCompliancePacksAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAggregateCompliancePacks(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::ListAggregateCompliancePacksOutcomeCallable ConfigClient::listAggregateCompliancePacksCallable(const ListAggregateCompliancePacksRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAggregateCompliancePacks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::ListAggregateConfigDeliveryChannelsOutcome ConfigClient::listAggregateConfigDeliveryChannels(const ListAggregateConfigDeliveryChannelsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAggregateConfigDeliveryChannelsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAggregateConfigDeliveryChannelsOutcome(ListAggregateConfigDeliveryChannelsResult(outcome.result())); - else - return ListAggregateConfigDeliveryChannelsOutcome(outcome.error()); -} - -void ConfigClient::listAggregateConfigDeliveryChannelsAsync(const ListAggregateConfigDeliveryChannelsRequest& request, const ListAggregateConfigDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAggregateConfigDeliveryChannels(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::ListAggregateConfigDeliveryChannelsOutcomeCallable ConfigClient::listAggregateConfigDeliveryChannelsCallable(const ListAggregateConfigDeliveryChannelsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAggregateConfigDeliveryChannels(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::ListAggregateConfigRuleEvaluationResultsOutcome ConfigClient::listAggregateConfigRuleEvaluationResults(const ListAggregateConfigRuleEvaluationResultsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAggregateConfigRuleEvaluationResultsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAggregateConfigRuleEvaluationResultsOutcome(ListAggregateConfigRuleEvaluationResultsResult(outcome.result())); - else - return ListAggregateConfigRuleEvaluationResultsOutcome(outcome.error()); -} - -void ConfigClient::listAggregateConfigRuleEvaluationResultsAsync(const ListAggregateConfigRuleEvaluationResultsRequest& request, const ListAggregateConfigRuleEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAggregateConfigRuleEvaluationResults(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::ListAggregateConfigRuleEvaluationResultsOutcomeCallable ConfigClient::listAggregateConfigRuleEvaluationResultsCallable(const ListAggregateConfigRuleEvaluationResultsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAggregateConfigRuleEvaluationResults(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::ListAggregateConfigRulesOutcome ConfigClient::listAggregateConfigRules(const ListAggregateConfigRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAggregateConfigRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAggregateConfigRulesOutcome(ListAggregateConfigRulesResult(outcome.result())); - else - return ListAggregateConfigRulesOutcome(outcome.error()); -} - -void ConfigClient::listAggregateConfigRulesAsync(const ListAggregateConfigRulesRequest& request, const ListAggregateConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAggregateConfigRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::ListAggregateConfigRulesOutcomeCallable ConfigClient::listAggregateConfigRulesCallable(const ListAggregateConfigRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAggregateConfigRules(request); + return this->getSupportedResourceTypes(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2499,252 +627,36 @@ ConfigClient::ListAggregateDiscoveredResourcesOutcomeCallable ConfigClient::list return task->get_future(); } -ConfigClient::ListAggregateRemediationsOutcome ConfigClient::listAggregateRemediations(const ListAggregateRemediationsRequest &request) const +ConfigClient::ListConfigRulesOutcome ConfigClient::listConfigRules(const ListConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListAggregateRemediationsOutcome(endpointOutcome.error()); + return ListConfigRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListAggregateRemediationsOutcome(ListAggregateRemediationsResult(outcome.result())); + return ListConfigRulesOutcome(ListConfigRulesResult(outcome.result())); else - return ListAggregateRemediationsOutcome(outcome.error()); + return ListConfigRulesOutcome(outcome.error()); } -void ConfigClient::listAggregateRemediationsAsync(const ListAggregateRemediationsRequest& request, const ListAggregateRemediationsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::listConfigRulesAsync(const ListConfigRulesRequest& request, const ListConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listAggregateRemediations(request), context); + handler(this, request, listConfigRules(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::ListAggregateRemediationsOutcomeCallable ConfigClient::listAggregateRemediationsCallable(const ListAggregateRemediationsRequest &request) const +ConfigClient::ListConfigRulesOutcomeCallable ConfigClient::listConfigRulesCallable(const ListConfigRulesRequest &request) const { - auto task = std::make_shared>( + 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(); - if (!endpointOutcome.isSuccess()) - return ListAggregateResourceEvaluationResultsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAggregateResourceEvaluationResultsOutcome(ListAggregateResourceEvaluationResultsResult(outcome.result())); - else - return ListAggregateResourceEvaluationResultsOutcome(outcome.error()); -} - -void ConfigClient::listAggregateResourceEvaluationResultsAsync(const ListAggregateResourceEvaluationResultsRequest& request, const ListAggregateResourceEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAggregateResourceEvaluationResults(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::ListAggregateResourceEvaluationResultsOutcomeCallable ConfigClient::listAggregateResourceEvaluationResultsCallable(const ListAggregateResourceEvaluationResultsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAggregateResourceEvaluationResults(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::ListAggregatorsOutcome ConfigClient::listAggregators(const ListAggregatorsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListAggregatorsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListAggregatorsOutcome(ListAggregatorsResult(outcome.result())); - else - return ListAggregatorsOutcome(outcome.error()); -} - -void ConfigClient::listAggregatorsAsync(const ListAggregatorsRequest& request, const ListAggregatorsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listAggregators(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::ListAggregatorsOutcomeCallable ConfigClient::listAggregatorsCallable(const ListAggregatorsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listAggregators(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::ListCompliancePackTemplatesOutcome ConfigClient::listCompliancePackTemplates(const ListCompliancePackTemplatesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListCompliancePackTemplatesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListCompliancePackTemplatesOutcome(ListCompliancePackTemplatesResult(outcome.result())); - else - return ListCompliancePackTemplatesOutcome(outcome.error()); -} - -void ConfigClient::listCompliancePackTemplatesAsync(const ListCompliancePackTemplatesRequest& request, const ListCompliancePackTemplatesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listCompliancePackTemplates(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::ListCompliancePackTemplatesOutcomeCallable ConfigClient::listCompliancePackTemplatesCallable(const ListCompliancePackTemplatesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listCompliancePackTemplates(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::ListCompliancePacksOutcome ConfigClient::listCompliancePacks(const ListCompliancePacksRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListCompliancePacksOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListCompliancePacksOutcome(ListCompliancePacksResult(outcome.result())); - else - return ListCompliancePacksOutcome(outcome.error()); -} - -void ConfigClient::listCompliancePacksAsync(const ListCompliancePacksRequest& request, const ListCompliancePacksAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listCompliancePacks(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::ListCompliancePacksOutcomeCallable ConfigClient::listCompliancePacksCallable(const ListCompliancePacksRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listCompliancePacks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::ListConfigDeliveryChannelsOutcome ConfigClient::listConfigDeliveryChannels(const ListConfigDeliveryChannelsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListConfigDeliveryChannelsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListConfigDeliveryChannelsOutcome(ListConfigDeliveryChannelsResult(outcome.result())); - else - return ListConfigDeliveryChannelsOutcome(outcome.error()); -} - -void ConfigClient::listConfigDeliveryChannelsAsync(const ListConfigDeliveryChannelsRequest& request, const ListConfigDeliveryChannelsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listConfigDeliveryChannels(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::ListConfigDeliveryChannelsOutcomeCallable ConfigClient::listConfigDeliveryChannelsCallable(const ListConfigDeliveryChannelsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listConfigDeliveryChannels(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::ListConfigRuleEvaluationResultsOutcome ConfigClient::listConfigRuleEvaluationResults(const ListConfigRuleEvaluationResultsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListConfigRuleEvaluationResultsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListConfigRuleEvaluationResultsOutcome(ListConfigRuleEvaluationResultsResult(outcome.result())); - else - return ListConfigRuleEvaluationResultsOutcome(outcome.error()); -} - -void ConfigClient::listConfigRuleEvaluationResultsAsync(const ListConfigRuleEvaluationResultsRequest& request, const ListConfigRuleEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listConfigRuleEvaluationResults(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::ListConfigRuleEvaluationResultsOutcomeCallable ConfigClient::listConfigRuleEvaluationResultsCallable(const ListConfigRuleEvaluationResultsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listConfigRuleEvaluationResults(request); + return this->listConfigRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2787,42 +699,6 @@ ConfigClient::ListDiscoveredResourcesOutcomeCallable ConfigClient::listDiscovere return task->get_future(); } -ConfigClient::ListManagedRulesOutcome ConfigClient::listManagedRules(const ListManagedRulesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListManagedRulesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListManagedRulesOutcome(ListManagedRulesResult(outcome.result())); - else - return ListManagedRulesOutcome(outcome.error()); -} - -void ConfigClient::listManagedRulesAsync(const ListManagedRulesRequest& request, const ListManagedRulesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listManagedRules(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::ListManagedRulesOutcomeCallable ConfigClient::listManagedRulesCallable(const ListManagedRulesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listManagedRules(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ConfigClient::ListRemediationTemplatesOutcome ConfigClient::listRemediationTemplates(const ListRemediationTemplatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,648 +735,252 @@ ConfigClient::ListRemediationTemplatesOutcomeCallable ConfigClient::listRemediat return task->get_future(); } -ConfigClient::ListRemediationsOutcome ConfigClient::listRemediations(const ListRemediationsRequest &request) const +ConfigClient::PutConfigRuleOutcome ConfigClient::putConfigRule(const PutConfigRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListRemediationsOutcome(endpointOutcome.error()); + return PutConfigRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListRemediationsOutcome(ListRemediationsResult(outcome.result())); + return PutConfigRuleOutcome(PutConfigRuleResult(outcome.result())); else - return ListRemediationsOutcome(outcome.error()); + return PutConfigRuleOutcome(outcome.error()); } -void ConfigClient::listRemediationsAsync(const ListRemediationsRequest& request, const ListRemediationsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::putConfigRuleAsync(const PutConfigRuleRequest& request, const PutConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listRemediations(request), context); + handler(this, request, putConfigRule(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::ListRemediationsOutcomeCallable ConfigClient::listRemediationsCallable(const ListRemediationsRequest &request) const +ConfigClient::PutConfigRuleOutcomeCallable ConfigClient::putConfigRuleCallable(const PutConfigRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listRemediations(request); + return this->putConfigRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::ListResourceEvaluationResultsOutcome ConfigClient::listResourceEvaluationResults(const ListResourceEvaluationResultsRequest &request) const +ConfigClient::PutConfigurationRecorderOutcome ConfigClient::putConfigurationRecorder(const PutConfigurationRecorderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListResourceEvaluationResultsOutcome(endpointOutcome.error()); + return PutConfigurationRecorderOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListResourceEvaluationResultsOutcome(ListResourceEvaluationResultsResult(outcome.result())); + return PutConfigurationRecorderOutcome(PutConfigurationRecorderResult(outcome.result())); else - return ListResourceEvaluationResultsOutcome(outcome.error()); + return PutConfigurationRecorderOutcome(outcome.error()); } -void ConfigClient::listResourceEvaluationResultsAsync(const ListResourceEvaluationResultsRequest& request, const ListResourceEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::putConfigurationRecorderAsync(const PutConfigurationRecorderRequest& request, const PutConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listResourceEvaluationResults(request), context); + handler(this, request, putConfigurationRecorder(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::ListResourceEvaluationResultsOutcomeCallable ConfigClient::listResourceEvaluationResultsCallable(const ListResourceEvaluationResultsRequest &request) const +ConfigClient::PutConfigurationRecorderOutcomeCallable ConfigClient::putConfigurationRecorderCallable(const PutConfigurationRecorderRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listResourceEvaluationResults(request); + return this->putConfigurationRecorder(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::ListTagResourcesOutcome ConfigClient::listTagResources(const ListTagResourcesRequest &request) const +ConfigClient::PutDeliveryChannelOutcome ConfigClient::putDeliveryChannel(const PutDeliveryChannelRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListTagResourcesOutcome(endpointOutcome.error()); + return PutDeliveryChannelOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + return PutDeliveryChannelOutcome(PutDeliveryChannelResult(outcome.result())); else - return ListTagResourcesOutcome(outcome.error()); + return PutDeliveryChannelOutcome(outcome.error()); } -void ConfigClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::putDeliveryChannelAsync(const PutDeliveryChannelRequest& request, const PutDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listTagResources(request), context); + handler(this, request, putDeliveryChannel(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::ListTagResourcesOutcomeCallable ConfigClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +ConfigClient::PutDeliveryChannelOutcomeCallable ConfigClient::putDeliveryChannelCallable(const PutDeliveryChannelRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listTagResources(request); + return this->putDeliveryChannel(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::RevertAggregateEvaluationResultsOutcome ConfigClient::revertAggregateEvaluationResults(const RevertAggregateEvaluationResultsRequest &request) const +ConfigClient::PutEvaluationsOutcome ConfigClient::putEvaluations(const PutEvaluationsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RevertAggregateEvaluationResultsOutcome(endpointOutcome.error()); + return PutEvaluationsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RevertAggregateEvaluationResultsOutcome(RevertAggregateEvaluationResultsResult(outcome.result())); + return PutEvaluationsOutcome(PutEvaluationsResult(outcome.result())); else - return RevertAggregateEvaluationResultsOutcome(outcome.error()); + return PutEvaluationsOutcome(outcome.error()); } -void ConfigClient::revertAggregateEvaluationResultsAsync(const RevertAggregateEvaluationResultsRequest& request, const RevertAggregateEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::putEvaluationsAsync(const PutEvaluationsRequest& request, const PutEvaluationsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, revertAggregateEvaluationResults(request), context); + handler(this, request, putEvaluations(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::RevertAggregateEvaluationResultsOutcomeCallable ConfigClient::revertAggregateEvaluationResultsCallable(const RevertAggregateEvaluationResultsRequest &request) const +ConfigClient::PutEvaluationsOutcomeCallable ConfigClient::putEvaluationsCallable(const PutEvaluationsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->revertAggregateEvaluationResults(request); + return this->putEvaluations(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::RevertEvaluationResultsOutcome ConfigClient::revertEvaluationResults(const RevertEvaluationResultsRequest &request) const +ConfigClient::StartConfigRuleEvaluationOutcome ConfigClient::startConfigRuleEvaluation(const StartConfigRuleEvaluationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RevertEvaluationResultsOutcome(endpointOutcome.error()); + return StartConfigRuleEvaluationOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RevertEvaluationResultsOutcome(RevertEvaluationResultsResult(outcome.result())); + return StartConfigRuleEvaluationOutcome(StartConfigRuleEvaluationResult(outcome.result())); else - return RevertEvaluationResultsOutcome(outcome.error()); + return StartConfigRuleEvaluationOutcome(outcome.error()); } -void ConfigClient::revertEvaluationResultsAsync(const RevertEvaluationResultsRequest& request, const RevertEvaluationResultsAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::startConfigRuleEvaluationAsync(const StartConfigRuleEvaluationRequest& request, const StartConfigRuleEvaluationAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, revertEvaluationResults(request), context); + handler(this, request, startConfigRuleEvaluation(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::RevertEvaluationResultsOutcomeCallable ConfigClient::revertEvaluationResultsCallable(const RevertEvaluationResultsRequest &request) const +ConfigClient::StartConfigRuleEvaluationOutcomeCallable ConfigClient::startConfigRuleEvaluationCallable(const StartConfigRuleEvaluationRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->revertEvaluationResults(request); + return this->startConfigRuleEvaluation(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::StartAggregateConfigRuleEvaluationOutcome ConfigClient::startAggregateConfigRuleEvaluation(const StartAggregateConfigRuleEvaluationRequest &request) const +ConfigClient::StartConfigurationRecorderOutcome ConfigClient::startConfigurationRecorder(const StartConfigurationRecorderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return StartAggregateConfigRuleEvaluationOutcome(endpointOutcome.error()); + return StartConfigurationRecorderOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return StartAggregateConfigRuleEvaluationOutcome(StartAggregateConfigRuleEvaluationResult(outcome.result())); + return StartConfigurationRecorderOutcome(StartConfigurationRecorderResult(outcome.result())); else - return StartAggregateConfigRuleEvaluationOutcome(outcome.error()); + return StartConfigurationRecorderOutcome(outcome.error()); } -void ConfigClient::startAggregateConfigRuleEvaluationAsync(const StartAggregateConfigRuleEvaluationRequest& request, const StartAggregateConfigRuleEvaluationAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::startConfigurationRecorderAsync(const StartConfigurationRecorderRequest& request, const StartConfigurationRecorderAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, startAggregateConfigRuleEvaluation(request), context); + handler(this, request, startConfigurationRecorder(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::StartAggregateConfigRuleEvaluationOutcomeCallable ConfigClient::startAggregateConfigRuleEvaluationCallable(const StartAggregateConfigRuleEvaluationRequest &request) const +ConfigClient::StartConfigurationRecorderOutcomeCallable ConfigClient::startConfigurationRecorderCallable(const StartConfigurationRecorderRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->startAggregateConfigRuleEvaluation(request); + return this->startConfigurationRecorder(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ConfigClient::StartAggregateRemediationOutcome ConfigClient::startAggregateRemediation(const StartAggregateRemediationRequest &request) const +ConfigClient::StopConfigRulesOutcome ConfigClient::stopConfigRules(const StopConfigRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return StartAggregateRemediationOutcome(endpointOutcome.error()); + return StopConfigRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return StartAggregateRemediationOutcome(StartAggregateRemediationResult(outcome.result())); + return StopConfigRulesOutcome(StopConfigRulesResult(outcome.result())); else - return StartAggregateRemediationOutcome(outcome.error()); + return StopConfigRulesOutcome(outcome.error()); } -void ConfigClient::startAggregateRemediationAsync(const StartAggregateRemediationRequest& request, const StartAggregateRemediationAsyncHandler& handler, const std::shared_ptr& context) const +void ConfigClient::stopConfigRulesAsync(const StopConfigRulesRequest& request, const StopConfigRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, startAggregateRemediation(request), context); + handler(this, request, stopConfigRules(request), context); }; asyncExecute(new Runnable(fn)); } -ConfigClient::StartAggregateRemediationOutcomeCallable ConfigClient::startAggregateRemediationCallable(const StartAggregateRemediationRequest &request) const +ConfigClient::StopConfigRulesOutcomeCallable ConfigClient::stopConfigRulesCallable(const StopConfigRulesRequest &request) const { - auto task = std::make_shared>( + 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::TagResourcesOutcome ConfigClient::tagResources(const TagResourcesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TagResourcesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TagResourcesOutcome(TagResourcesResult(outcome.result())); - else - return TagResourcesOutcome(outcome.error()); -} - -void ConfigClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, tagResources(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::TagResourcesOutcomeCallable ConfigClient::tagResourcesCallable(const TagResourcesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->tagResources(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::UntagResourcesOutcome ConfigClient::untagResources(const UntagResourcesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UntagResourcesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); - else - return UntagResourcesOutcome(outcome.error()); -} - -void ConfigClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, untagResources(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::UntagResourcesOutcomeCallable ConfigClient::untagResourcesCallable(const UntagResourcesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->untagResources(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::UpdateAggregateCompliancePackOutcome ConfigClient::updateAggregateCompliancePack(const UpdateAggregateCompliancePackRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateAggregateCompliancePackOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateAggregateCompliancePackOutcome(UpdateAggregateCompliancePackResult(outcome.result())); - else - return UpdateAggregateCompliancePackOutcome(outcome.error()); -} - -void ConfigClient::updateAggregateCompliancePackAsync(const UpdateAggregateCompliancePackRequest& request, const UpdateAggregateCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateAggregateCompliancePack(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::UpdateAggregateCompliancePackOutcomeCallable ConfigClient::updateAggregateCompliancePackCallable(const UpdateAggregateCompliancePackRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateAggregateCompliancePack(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::UpdateAggregateConfigDeliveryChannelOutcome ConfigClient::updateAggregateConfigDeliveryChannel(const UpdateAggregateConfigDeliveryChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateAggregateConfigDeliveryChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateAggregateConfigDeliveryChannelOutcome(UpdateAggregateConfigDeliveryChannelResult(outcome.result())); - else - return UpdateAggregateConfigDeliveryChannelOutcome(outcome.error()); -} - -void ConfigClient::updateAggregateConfigDeliveryChannelAsync(const UpdateAggregateConfigDeliveryChannelRequest& request, const UpdateAggregateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateAggregateConfigDeliveryChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::UpdateAggregateConfigDeliveryChannelOutcomeCallable ConfigClient::updateAggregateConfigDeliveryChannelCallable(const UpdateAggregateConfigDeliveryChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateAggregateConfigDeliveryChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::UpdateAggregateConfigRuleOutcome ConfigClient::updateAggregateConfigRule(const UpdateAggregateConfigRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateAggregateConfigRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateAggregateConfigRuleOutcome(UpdateAggregateConfigRuleResult(outcome.result())); - else - return UpdateAggregateConfigRuleOutcome(outcome.error()); -} - -void ConfigClient::updateAggregateConfigRuleAsync(const UpdateAggregateConfigRuleRequest& request, const UpdateAggregateConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateAggregateConfigRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::UpdateAggregateConfigRuleOutcomeCallable ConfigClient::updateAggregateConfigRuleCallable(const UpdateAggregateConfigRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateAggregateConfigRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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(); - if (!endpointOutcome.isSuccess()) - return UpdateAggregatorOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateAggregatorOutcome(UpdateAggregatorResult(outcome.result())); - else - return UpdateAggregatorOutcome(outcome.error()); -} - -void ConfigClient::updateAggregatorAsync(const UpdateAggregatorRequest& request, const UpdateAggregatorAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateAggregator(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::UpdateAggregatorOutcomeCallable ConfigClient::updateAggregatorCallable(const UpdateAggregatorRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateAggregator(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::UpdateCompliancePackOutcome ConfigClient::updateCompliancePack(const UpdateCompliancePackRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateCompliancePackOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateCompliancePackOutcome(UpdateCompliancePackResult(outcome.result())); - else - return UpdateCompliancePackOutcome(outcome.error()); -} - -void ConfigClient::updateCompliancePackAsync(const UpdateCompliancePackRequest& request, const UpdateCompliancePackAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateCompliancePack(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::UpdateCompliancePackOutcomeCallable ConfigClient::updateCompliancePackCallable(const UpdateCompliancePackRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateCompliancePack(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::UpdateConfigDeliveryChannelOutcome ConfigClient::updateConfigDeliveryChannel(const UpdateConfigDeliveryChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateConfigDeliveryChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateConfigDeliveryChannelOutcome(UpdateConfigDeliveryChannelResult(outcome.result())); - else - return UpdateConfigDeliveryChannelOutcome(outcome.error()); -} - -void ConfigClient::updateConfigDeliveryChannelAsync(const UpdateConfigDeliveryChannelRequest& request, const UpdateConfigDeliveryChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateConfigDeliveryChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::UpdateConfigDeliveryChannelOutcomeCallable ConfigClient::updateConfigDeliveryChannelCallable(const UpdateConfigDeliveryChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateConfigDeliveryChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ConfigClient::UpdateConfigRuleOutcome ConfigClient::updateConfigRule(const UpdateConfigRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateConfigRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateConfigRuleOutcome(UpdateConfigRuleResult(outcome.result())); - else - return UpdateConfigRuleOutcome(outcome.error()); -} - -void ConfigClient::updateConfigRuleAsync(const UpdateConfigRuleRequest& request, const UpdateConfigRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateConfigRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ConfigClient::UpdateConfigRuleOutcomeCallable ConfigClient::updateConfigRuleCallable(const UpdateConfigRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateConfigRule(request); + return this->stopConfigRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/config/src/model/ActiveAggregateConfigRulesRequest.cc b/config/src/model/ActiveAggregateConfigRulesRequest.cc deleted file mode 100644 index d7aa5d334..000000000 --- a/config/src/model/ActiveAggregateConfigRulesRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ActiveAggregateConfigRulesRequest; - -ActiveAggregateConfigRulesRequest::ActiveAggregateConfigRulesRequest() - : RpcServiceRequest("config", "2020-09-07", "ActiveAggregateConfigRules") { - setMethod(HttpRequest::Method::Post); -} - -ActiveAggregateConfigRulesRequest::~ActiveAggregateConfigRulesRequest() {} - -std::string ActiveAggregateConfigRulesRequest::getConfigRuleIds() const { - return configRuleIds_; -} - -void ActiveAggregateConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setParameter(std::string("ConfigRuleIds"), configRuleIds); -} - -std::string ActiveAggregateConfigRulesRequest::getAggregatorId() const { - return aggregatorId_; -} - -void ActiveAggregateConfigRulesRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - diff --git a/config/src/model/DeactiveConfigRulesRequest.cc b/config/src/model/ActiveConfigRulesRequest.cc similarity index 61% rename from config/src/model/DeactiveConfigRulesRequest.cc rename to config/src/model/ActiveConfigRulesRequest.cc index ea0ef609d..03d63fada 100644 --- a/config/src/model/DeactiveConfigRulesRequest.cc +++ b/config/src/model/ActiveConfigRulesRequest.cc @@ -14,22 +14,22 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::DeactiveConfigRulesRequest; +using AlibabaCloud::Config::Model::ActiveConfigRulesRequest; -DeactiveConfigRulesRequest::DeactiveConfigRulesRequest() - : RpcServiceRequest("config", "2020-09-07", "DeactiveConfigRules") { +ActiveConfigRulesRequest::ActiveConfigRulesRequest() + : RpcServiceRequest("config", "2019-01-08", "ActiveConfigRules") { setMethod(HttpRequest::Method::Post); } -DeactiveConfigRulesRequest::~DeactiveConfigRulesRequest() {} +ActiveConfigRulesRequest::~ActiveConfigRulesRequest() {} -std::string DeactiveConfigRulesRequest::getConfigRuleIds() const { +std::string ActiveConfigRulesRequest::getConfigRuleIds() const { return configRuleIds_; } -void DeactiveConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { +void ActiveConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { configRuleIds_ = configRuleIds; setParameter(std::string("ConfigRuleIds"), configRuleIds); } diff --git a/config/src/model/DeactiveConfigRulesResult.cc b/config/src/model/ActiveConfigRulesResult.cc similarity index 82% rename from config/src/model/DeactiveConfigRulesResult.cc rename to config/src/model/ActiveConfigRulesResult.cc index 9c48ecb9d..bff2daf29 100644 --- a/config/src/model/DeactiveConfigRulesResult.cc +++ b/config/src/model/ActiveConfigRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -DeactiveConfigRulesResult::DeactiveConfigRulesResult() : +ActiveConfigRulesResult::ActiveConfigRulesResult() : ServiceResult() {} -DeactiveConfigRulesResult::DeactiveConfigRulesResult(const std::string &payload) : +ActiveConfigRulesResult::ActiveConfigRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeactiveConfigRulesResult::~DeactiveConfigRulesResult() +ActiveConfigRulesResult::~ActiveConfigRulesResult() {} -void DeactiveConfigRulesResult::parse(const std::string &payload) +void ActiveConfigRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -55,7 +55,7 @@ void DeactiveConfigRulesResult::parse(const std::string &payload) } -DeactiveConfigRulesResult::OperateRuleResult DeactiveConfigRulesResult::getOperateRuleResult()const +ActiveConfigRulesResult::OperateRuleResult ActiveConfigRulesResult::getOperateRuleResult()const { return operateRuleResult_; } diff --git a/config/src/model/AttachAggregateConfigRuleToCompliancePackRequest.cc b/config/src/model/AttachAggregateConfigRuleToCompliancePackRequest.cc deleted file mode 100644 index 17374a0a5..000000000 --- a/config/src/model/AttachAggregateConfigRuleToCompliancePackRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::AttachAggregateConfigRuleToCompliancePackRequest; - -AttachAggregateConfigRuleToCompliancePackRequest::AttachAggregateConfigRuleToCompliancePackRequest() - : RpcServiceRequest("config", "2020-09-07", "AttachAggregateConfigRuleToCompliancePack") { - setMethod(HttpRequest::Method::Post); -} - -AttachAggregateConfigRuleToCompliancePackRequest::~AttachAggregateConfigRuleToCompliancePackRequest() {} - -std::string AttachAggregateConfigRuleToCompliancePackRequest::getConfigRuleIds() const { - return configRuleIds_; -} - -void AttachAggregateConfigRuleToCompliancePackRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setParameter(std::string("ConfigRuleIds"), configRuleIds); -} - -std::string AttachAggregateConfigRuleToCompliancePackRequest::getAggregatorId() const { - return aggregatorId_; -} - -void AttachAggregateConfigRuleToCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string AttachAggregateConfigRuleToCompliancePackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void AttachAggregateConfigRuleToCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/AttachAggregateConfigRuleToCompliancePackResult.cc b/config/src/model/AttachAggregateConfigRuleToCompliancePackResult.cc deleted file mode 100644 index 98b67e973..000000000 --- a/config/src/model/AttachAggregateConfigRuleToCompliancePackResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -AttachAggregateConfigRuleToCompliancePackResult::AttachAggregateConfigRuleToCompliancePackResult() : - ServiceResult() -{} - -AttachAggregateConfigRuleToCompliancePackResult::AttachAggregateConfigRuleToCompliancePackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AttachAggregateConfigRuleToCompliancePackResult::~AttachAggregateConfigRuleToCompliancePackResult() -{} - -void AttachAggregateConfigRuleToCompliancePackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto operateRuleResultNode = value["OperateRuleResult"]; - auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"]; - for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode) - { - OperateRuleResult::OperateRuleItem operateRuleItemObject; - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull()) - operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString(); - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull()) - operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true"; - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull()) - operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString(); - operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject); - } - -} - -AttachAggregateConfigRuleToCompliancePackResult::OperateRuleResult AttachAggregateConfigRuleToCompliancePackResult::getOperateRuleResult()const -{ - return operateRuleResult_; -} - diff --git a/config/src/model/AttachConfigRuleToCompliancePackRequest.cc b/config/src/model/AttachConfigRuleToCompliancePackRequest.cc deleted file mode 100644 index 2647b775d..000000000 --- a/config/src/model/AttachConfigRuleToCompliancePackRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::AttachConfigRuleToCompliancePackRequest; - -AttachConfigRuleToCompliancePackRequest::AttachConfigRuleToCompliancePackRequest() - : RpcServiceRequest("config", "2020-09-07", "AttachConfigRuleToCompliancePack") { - setMethod(HttpRequest::Method::Post); -} - -AttachConfigRuleToCompliancePackRequest::~AttachConfigRuleToCompliancePackRequest() {} - -std::string AttachConfigRuleToCompliancePackRequest::getConfigRuleIds() const { - return configRuleIds_; -} - -void AttachConfigRuleToCompliancePackRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setParameter(std::string("ConfigRuleIds"), configRuleIds); -} - -std::string AttachConfigRuleToCompliancePackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void AttachConfigRuleToCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/AttachConfigRuleToCompliancePackResult.cc b/config/src/model/AttachConfigRuleToCompliancePackResult.cc deleted file mode 100644 index e2bab61bb..000000000 --- a/config/src/model/AttachConfigRuleToCompliancePackResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -AttachConfigRuleToCompliancePackResult::AttachConfigRuleToCompliancePackResult() : - ServiceResult() -{} - -AttachConfigRuleToCompliancePackResult::AttachConfigRuleToCompliancePackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AttachConfigRuleToCompliancePackResult::~AttachConfigRuleToCompliancePackResult() -{} - -void AttachConfigRuleToCompliancePackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto operateRuleResultNode = value["OperateRuleResult"]; - auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"]; - for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode) - { - OperateRuleResult::OperateRuleItem operateRuleItemObject; - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull()) - operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString(); - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull()) - operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true"; - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull()) - operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString(); - operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject); - } - -} - -AttachConfigRuleToCompliancePackResult::OperateRuleResult AttachConfigRuleToCompliancePackResult::getOperateRuleResult()const -{ - return operateRuleResult_; -} - diff --git a/config/src/model/CreateAggregateCompliancePackRequest.cc b/config/src/model/CreateAggregateCompliancePackRequest.cc deleted file mode 100644 index 2b9a04887..000000000 --- a/config/src/model/CreateAggregateCompliancePackRequest.cc +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::CreateAggregateCompliancePackRequest; - -CreateAggregateCompliancePackRequest::CreateAggregateCompliancePackRequest() - : RpcServiceRequest("config", "2020-09-07", "CreateAggregateCompliancePack") { - setMethod(HttpRequest::Method::Post); -} - -CreateAggregateCompliancePackRequest::~CreateAggregateCompliancePackRequest() {} - -std::string CreateAggregateCompliancePackRequest::getCompliancePackName() const { - return compliancePackName_; -} - -void CreateAggregateCompliancePackRequest::setCompliancePackName(const std::string &compliancePackName) { - compliancePackName_ = compliancePackName; - setBodyParameter(std::string("CompliancePackName"), compliancePackName); -} - -std::string CreateAggregateCompliancePackRequest::getClientToken() const { - return clientToken_; -} - -void CreateAggregateCompliancePackRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string CreateAggregateCompliancePackRequest::getCompliancePackTemplateId() const { - return compliancePackTemplateId_; -} - -void CreateAggregateCompliancePackRequest::setCompliancePackTemplateId(const std::string &compliancePackTemplateId) { - compliancePackTemplateId_ = compliancePackTemplateId; - setBodyParameter(std::string("CompliancePackTemplateId"), compliancePackTemplateId); -} - -std::string CreateAggregateCompliancePackRequest::getDescription() const { - return description_; -} - -void CreateAggregateCompliancePackRequest::setDescription(const std::string &description) { - description_ = description; - setBodyParameter(std::string("Description"), description); -} - -std::string CreateAggregateCompliancePackRequest::getAggregatorId() const { - return aggregatorId_; -} - -void CreateAggregateCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setBodyParameter(std::string("AggregatorId"), aggregatorId); -} - -std::vector CreateAggregateCompliancePackRequest::getConfigRules() const { - return configRules_; -} - -void CreateAggregateCompliancePackRequest::setConfigRules(const std::vector &configRules) { - configRules_ = configRules; - for(int dep1 = 0; dep1 != configRules.size(); dep1++) { - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ManagedRuleIdentifier", configRules[dep1].managedRuleIdentifier); - for(int dep2 = 0; dep2 != configRules[dep1].configRuleParameters.size(); dep2++) { - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterValue", configRules[dep1].configRuleParameters[dep2].parameterValue); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterName", configRules[dep1].configRuleParameters[dep2].parameterName); - } - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleId", configRules[dep1].configRuleId); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleName", configRules[dep1].configRuleName); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".Description", configRules[dep1].description); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".RiskLevel", std::to_string(configRules[dep1].riskLevel)); - } -} - -int CreateAggregateCompliancePackRequest::getRiskLevel() const { - return riskLevel_; -} - -void CreateAggregateCompliancePackRequest::setRiskLevel(int riskLevel) { - riskLevel_ = riskLevel; - setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); -} - diff --git a/config/src/model/CreateAggregateCompliancePackResult.cc b/config/src/model/CreateAggregateCompliancePackResult.cc deleted file mode 100644 index 6566c37bb..000000000 --- a/config/src/model/CreateAggregateCompliancePackResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -CreateAggregateCompliancePackResult::CreateAggregateCompliancePackResult() : - ServiceResult() -{} - -CreateAggregateCompliancePackResult::CreateAggregateCompliancePackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAggregateCompliancePackResult::~CreateAggregateCompliancePackResult() -{} - -void CreateAggregateCompliancePackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["CompliancePackId"].isNull()) - compliancePackId_ = value["CompliancePackId"].asString(); - -} - -std::string CreateAggregateCompliancePackResult::getCompliancePackId()const -{ - return compliancePackId_; -} - diff --git a/config/src/model/CreateAggregateConfigDeliveryChannelRequest.cc b/config/src/model/CreateAggregateConfigDeliveryChannelRequest.cc deleted file mode 100644 index 74d3ef3cf..000000000 --- a/config/src/model/CreateAggregateConfigDeliveryChannelRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::CreateAggregateConfigDeliveryChannelRequest; - -CreateAggregateConfigDeliveryChannelRequest::CreateAggregateConfigDeliveryChannelRequest() - : RpcServiceRequest("config", "2020-09-07", "CreateAggregateConfigDeliveryChannel") { - setMethod(HttpRequest::Method::Post); -} - -CreateAggregateConfigDeliveryChannelRequest::~CreateAggregateConfigDeliveryChannelRequest() {} - -bool CreateAggregateConfigDeliveryChannelRequest::getNonCompliantNotification() const { - return nonCompliantNotification_; -} - -void CreateAggregateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) { - nonCompliantNotification_ = nonCompliantNotification; - setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false"); -} - -std::string CreateAggregateConfigDeliveryChannelRequest::getClientToken() const { - return clientToken_; -} - -void CreateAggregateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -bool CreateAggregateConfigDeliveryChannelRequest::getConfigurationSnapshot() const { - return configurationSnapshot_; -} - -void CreateAggregateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) { - configurationSnapshot_ = configurationSnapshot; - setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false"); -} - -std::string CreateAggregateConfigDeliveryChannelRequest::getDescription() const { - return description_; -} - -void CreateAggregateConfigDeliveryChannelRequest::setDescription(const std::string &description) { - description_ = description; - setParameter(std::string("Description"), description); -} - -std::string CreateAggregateConfigDeliveryChannelRequest::getAggregatorId() const { - return aggregatorId_; -} - -void CreateAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const { - return deliveryChannelTargetArn_; -} - -void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) { - deliveryChannelTargetArn_ = deliveryChannelTargetArn; - setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn); -} - -std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const { - return deliveryChannelCondition_; -} - -void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) { - deliveryChannelCondition_ = deliveryChannelCondition; - setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition); -} - -bool CreateAggregateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const { - return configurationItemChangeNotification_; -} - -void CreateAggregateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) { - configurationItemChangeNotification_ = configurationItemChangeNotification; - setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false"); -} - -std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelName() const { - return deliveryChannelName_; -} - -void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) { - deliveryChannelName_ = deliveryChannelName; - setParameter(std::string("DeliveryChannelName"), deliveryChannelName); -} - -std::string CreateAggregateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const { - return oversizedDataOSSTargetArn_; -} - -void CreateAggregateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) { - oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn; - setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn); -} - -std::string CreateAggregateConfigDeliveryChannelRequest::getDeliveryChannelType() const { - return deliveryChannelType_; -} - -void CreateAggregateConfigDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) { - deliveryChannelType_ = deliveryChannelType; - setParameter(std::string("DeliveryChannelType"), deliveryChannelType); -} - diff --git a/config/src/model/CreateAggregateConfigDeliveryChannelResult.cc b/config/src/model/CreateAggregateConfigDeliveryChannelResult.cc deleted file mode 100644 index 66a2c08df..000000000 --- a/config/src/model/CreateAggregateConfigDeliveryChannelResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -CreateAggregateConfigDeliveryChannelResult::CreateAggregateConfigDeliveryChannelResult() : - ServiceResult() -{} - -CreateAggregateConfigDeliveryChannelResult::CreateAggregateConfigDeliveryChannelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAggregateConfigDeliveryChannelResult::~CreateAggregateConfigDeliveryChannelResult() -{} - -void CreateAggregateConfigDeliveryChannelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["DeliveryChannelId"].isNull()) - deliveryChannelId_ = value["DeliveryChannelId"].asString(); - -} - -std::string CreateAggregateConfigDeliveryChannelResult::getDeliveryChannelId()const -{ - return deliveryChannelId_; -} - diff --git a/config/src/model/CreateAggregateConfigRuleRequest.cc b/config/src/model/CreateAggregateConfigRuleRequest.cc deleted file mode 100644 index f4fe01edb..000000000 --- a/config/src/model/CreateAggregateConfigRuleRequest.cc +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::CreateAggregateConfigRuleRequest; - -CreateAggregateConfigRuleRequest::CreateAggregateConfigRuleRequest() - : RpcServiceRequest("config", "2020-09-07", "CreateAggregateConfigRule") { - setMethod(HttpRequest::Method::Post); -} - -CreateAggregateConfigRuleRequest::~CreateAggregateConfigRuleRequest() {} - -std::string CreateAggregateConfigRuleRequest::getTagKeyScope() const { - return tagKeyScope_; -} - -void CreateAggregateConfigRuleRequest::setTagKeyScope(const std::string &tagKeyScope) { - tagKeyScope_ = tagKeyScope; - setBodyParameter(std::string("TagKeyScope"), tagKeyScope); -} - -std::string CreateAggregateConfigRuleRequest::getClientToken() const { - return clientToken_; -} - -void CreateAggregateConfigRuleRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::vector CreateAggregateConfigRuleRequest::getResourceTypesScope() const { - return resourceTypesScope_; -} - -void CreateAggregateConfigRuleRequest::setResourceTypesScope(const std::vector &resourceTypesScope) { - resourceTypesScope_ = resourceTypesScope; - for(int dep1 = 0; dep1 != resourceTypesScope.size(); dep1++) { - setBodyParameter(std::string("ResourceTypesScope") + "." + std::to_string(dep1 + 1), resourceTypesScope[dep1]); - } -} - -std::string CreateAggregateConfigRuleRequest::getDescription() const { - return description_; -} - -void CreateAggregateConfigRuleRequest::setDescription(const std::string &description) { - description_ = description; - setBodyParameter(std::string("Description"), description); -} - -std::string CreateAggregateConfigRuleRequest::getAggregatorId() const { - return aggregatorId_; -} - -void CreateAggregateConfigRuleRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setBodyParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string CreateAggregateConfigRuleRequest::getConfigRuleTriggerTypes() const { - return configRuleTriggerTypes_; -} - -void CreateAggregateConfigRuleRequest::setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes) { - configRuleTriggerTypes_ = configRuleTriggerTypes; - setBodyParameter(std::string("ConfigRuleTriggerTypes"), configRuleTriggerTypes); -} - -std::string CreateAggregateConfigRuleRequest::getSourceIdentifier() const { - return sourceIdentifier_; -} - -void CreateAggregateConfigRuleRequest::setSourceIdentifier(const std::string &sourceIdentifier) { - sourceIdentifier_ = sourceIdentifier; - setBodyParameter(std::string("SourceIdentifier"), sourceIdentifier); -} - -std::string CreateAggregateConfigRuleRequest::getTagValueScope() const { - return tagValueScope_; -} - -void CreateAggregateConfigRuleRequest::setTagValueScope(const std::string &tagValueScope) { - tagValueScope_ = tagValueScope; - setBodyParameter(std::string("TagValueScope"), tagValueScope); -} - -std::string CreateAggregateConfigRuleRequest::getExcludeAccountIdsScope() const { - return excludeAccountIdsScope_; -} - -void CreateAggregateConfigRuleRequest::setExcludeAccountIdsScope(const std::string &excludeAccountIdsScope) { - excludeAccountIdsScope_ = excludeAccountIdsScope; - setBodyParameter(std::string("ExcludeAccountIdsScope"), excludeAccountIdsScope); -} - -std::string CreateAggregateConfigRuleRequest::getRegionIdsScope() const { - return regionIdsScope_; -} - -void CreateAggregateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) { - regionIdsScope_ = regionIdsScope; - setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); -} - -std::string CreateAggregateConfigRuleRequest::getExcludeFolderIdsScope() const { - return excludeFolderIdsScope_; -} - -void CreateAggregateConfigRuleRequest::setExcludeFolderIdsScope(const std::string &excludeFolderIdsScope) { - excludeFolderIdsScope_ = excludeFolderIdsScope; - setBodyParameter(std::string("ExcludeFolderIdsScope"), excludeFolderIdsScope); -} - -int CreateAggregateConfigRuleRequest::getRiskLevel() const { - return riskLevel_; -} - -void CreateAggregateConfigRuleRequest::setRiskLevel(int riskLevel) { - riskLevel_ = riskLevel; - setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); -} - -std::string CreateAggregateConfigRuleRequest::getSourceOwner() const { - return sourceOwner_; -} - -void CreateAggregateConfigRuleRequest::setSourceOwner(const std::string &sourceOwner) { - sourceOwner_ = sourceOwner; - setBodyParameter(std::string("SourceOwner"), sourceOwner); -} - -std::string CreateAggregateConfigRuleRequest::getResourceGroupIdsScope() const { - return resourceGroupIdsScope_; -} - -void CreateAggregateConfigRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) { - resourceGroupIdsScope_ = resourceGroupIdsScope; - setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope); -} - -std::string CreateAggregateConfigRuleRequest::getInputParameters() const { - return inputParameters_; -} - -void CreateAggregateConfigRuleRequest::setInputParameters(const std::string &inputParameters) { - inputParameters_ = inputParameters; - setBodyParameter(std::string("InputParameters"), inputParameters); -} - -std::string CreateAggregateConfigRuleRequest::getConfigRuleName() const { - return configRuleName_; -} - -void CreateAggregateConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) { - configRuleName_ = configRuleName; - setBodyParameter(std::string("ConfigRuleName"), configRuleName); -} - -std::string CreateAggregateConfigRuleRequest::getTagKeyLogicScope() const { - return tagKeyLogicScope_; -} - -void CreateAggregateConfigRuleRequest::setTagKeyLogicScope(const std::string &tagKeyLogicScope) { - tagKeyLogicScope_ = tagKeyLogicScope; - setBodyParameter(std::string("TagKeyLogicScope"), tagKeyLogicScope); -} - -std::string CreateAggregateConfigRuleRequest::getMaximumExecutionFrequency() const { - return maximumExecutionFrequency_; -} - -void CreateAggregateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) { - maximumExecutionFrequency_ = maximumExecutionFrequency; - setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency); -} - -std::string CreateAggregateConfigRuleRequest::getFolderIdsScope() const { - return folderIdsScope_; -} - -void CreateAggregateConfigRuleRequest::setFolderIdsScope(const std::string &folderIdsScope) { - folderIdsScope_ = folderIdsScope; - setBodyParameter(std::string("FolderIdsScope"), folderIdsScope); -} - -std::string CreateAggregateConfigRuleRequest::getExcludeResourceIdsScope() const { - return excludeResourceIdsScope_; -} - -void CreateAggregateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) { - excludeResourceIdsScope_ = excludeResourceIdsScope; - setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope); -} - diff --git a/config/src/model/CreateAggregateConfigRuleResult.cc b/config/src/model/CreateAggregateConfigRuleResult.cc deleted file mode 100644 index 8e127aa3b..000000000 --- a/config/src/model/CreateAggregateConfigRuleResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -CreateAggregateConfigRuleResult::CreateAggregateConfigRuleResult() : - ServiceResult() -{} - -CreateAggregateConfigRuleResult::CreateAggregateConfigRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAggregateConfigRuleResult::~CreateAggregateConfigRuleResult() -{} - -void CreateAggregateConfigRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ConfigRuleId"].isNull()) - configRuleId_ = value["ConfigRuleId"].asString(); - -} - -std::string CreateAggregateConfigRuleResult::getConfigRuleId()const -{ - return configRuleId_; -} - diff --git a/config/src/model/CreateAggregateRemediationRequest.cc b/config/src/model/CreateAggregateRemediationRequest.cc deleted file mode 100644 index 388fe241f..000000000 --- a/config/src/model/CreateAggregateRemediationRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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 deleted file mode 100644 index 9755b08bb..000000000 --- a/config/src/model/CreateAggregateRemediationResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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/CreateAggregatorRequest.cc b/config/src/model/CreateAggregatorRequest.cc deleted file mode 100644 index c6641a9b4..000000000 --- a/config/src/model/CreateAggregatorRequest.cc +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::CreateAggregatorRequest; - -CreateAggregatorRequest::CreateAggregatorRequest() - : RpcServiceRequest("config", "2020-09-07", "CreateAggregator") { - setMethod(HttpRequest::Method::Post); -} - -CreateAggregatorRequest::~CreateAggregatorRequest() {} - -std::string CreateAggregatorRequest::getAggregatorType() const { - return aggregatorType_; -} - -void CreateAggregatorRequest::setAggregatorType(const std::string &aggregatorType) { - aggregatorType_ = aggregatorType; - setBodyParameter(std::string("AggregatorType"), aggregatorType); -} - -std::string CreateAggregatorRequest::getClientToken() const { - return clientToken_; -} - -void CreateAggregatorRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string CreateAggregatorRequest::getAggregatorName() const { - return aggregatorName_; -} - -void CreateAggregatorRequest::setAggregatorName(const std::string &aggregatorName) { - aggregatorName_ = aggregatorName; - setBodyParameter(std::string("AggregatorName"), aggregatorName); -} - -std::string CreateAggregatorRequest::getDescription() const { - return description_; -} - -void CreateAggregatorRequest::setDescription(const std::string &description) { - description_ = description; - setBodyParameter(std::string("Description"), description); -} - -std::vector CreateAggregatorRequest::getAggregatorAccounts() const { - return aggregatorAccounts_; -} - -void CreateAggregatorRequest::setAggregatorAccounts(const std::vector &aggregatorAccounts) { - aggregatorAccounts_ = aggregatorAccounts; - for(int dep1 = 0; dep1 != aggregatorAccounts.size(); dep1++) { - setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountId", std::to_string(aggregatorAccounts[dep1].accountId)); - setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountName", aggregatorAccounts[dep1].accountName); - setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountType", aggregatorAccounts[dep1].accountType); - } -} - diff --git a/config/src/model/CreateAggregatorResult.cc b/config/src/model/CreateAggregatorResult.cc deleted file mode 100644 index 00e47f4d2..000000000 --- a/config/src/model/CreateAggregatorResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -CreateAggregatorResult::CreateAggregatorResult() : - ServiceResult() -{} - -CreateAggregatorResult::CreateAggregatorResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateAggregatorResult::~CreateAggregatorResult() -{} - -void CreateAggregatorResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["AggregatorId"].isNull()) - aggregatorId_ = value["AggregatorId"].asString(); - -} - -std::string CreateAggregatorResult::getAggregatorId()const -{ - return aggregatorId_; -} - diff --git a/config/src/model/CreateCompliancePackRequest.cc b/config/src/model/CreateCompliancePackRequest.cc deleted file mode 100644 index 5f1c3fb79..000000000 --- a/config/src/model/CreateCompliancePackRequest.cc +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::CreateCompliancePackRequest; - -CreateCompliancePackRequest::CreateCompliancePackRequest() - : RpcServiceRequest("config", "2020-09-07", "CreateCompliancePack") { - setMethod(HttpRequest::Method::Post); -} - -CreateCompliancePackRequest::~CreateCompliancePackRequest() {} - -std::string CreateCompliancePackRequest::getCompliancePackName() const { - return compliancePackName_; -} - -void CreateCompliancePackRequest::setCompliancePackName(const std::string &compliancePackName) { - compliancePackName_ = compliancePackName; - setBodyParameter(std::string("CompliancePackName"), compliancePackName); -} - -std::string CreateCompliancePackRequest::getClientToken() const { - return clientToken_; -} - -void CreateCompliancePackRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string CreateCompliancePackRequest::getCompliancePackTemplateId() const { - return compliancePackTemplateId_; -} - -void CreateCompliancePackRequest::setCompliancePackTemplateId(const std::string &compliancePackTemplateId) { - compliancePackTemplateId_ = compliancePackTemplateId; - setBodyParameter(std::string("CompliancePackTemplateId"), compliancePackTemplateId); -} - -std::string CreateCompliancePackRequest::getDescription() const { - return description_; -} - -void CreateCompliancePackRequest::setDescription(const std::string &description) { - description_ = description; - setBodyParameter(std::string("Description"), description); -} - -std::vector CreateCompliancePackRequest::getConfigRules() const { - return configRules_; -} - -void CreateCompliancePackRequest::setConfigRules(const std::vector &configRules) { - configRules_ = configRules; - for(int dep1 = 0; dep1 != configRules.size(); dep1++) { - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ManagedRuleIdentifier", configRules[dep1].managedRuleIdentifier); - for(int dep2 = 0; dep2 != configRules[dep1].configRuleParameters.size(); dep2++) { - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterValue", configRules[dep1].configRuleParameters[dep2].parameterValue); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterName", configRules[dep1].configRuleParameters[dep2].parameterName); - } - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleId", configRules[dep1].configRuleId); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleName", configRules[dep1].configRuleName); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".Description", configRules[dep1].description); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".RiskLevel", std::to_string(configRules[dep1].riskLevel)); - } -} - -int CreateCompliancePackRequest::getRiskLevel() const { - return riskLevel_; -} - -void CreateCompliancePackRequest::setRiskLevel(int riskLevel) { - riskLevel_ = riskLevel; - setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); -} - diff --git a/config/src/model/CreateCompliancePackResult.cc b/config/src/model/CreateCompliancePackResult.cc deleted file mode 100644 index 0270eba37..000000000 --- a/config/src/model/CreateCompliancePackResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -CreateCompliancePackResult::CreateCompliancePackResult() : - ServiceResult() -{} - -CreateCompliancePackResult::CreateCompliancePackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateCompliancePackResult::~CreateCompliancePackResult() -{} - -void CreateCompliancePackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["CompliancePackId"].isNull()) - compliancePackId_ = value["CompliancePackId"].asString(); - -} - -std::string CreateCompliancePackResult::getCompliancePackId()const -{ - return compliancePackId_; -} - diff --git a/config/src/model/CreateConfigDeliveryChannelRequest.cc b/config/src/model/CreateConfigDeliveryChannelRequest.cc deleted file mode 100644 index 88d2332ef..000000000 --- a/config/src/model/CreateConfigDeliveryChannelRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::CreateConfigDeliveryChannelRequest; - -CreateConfigDeliveryChannelRequest::CreateConfigDeliveryChannelRequest() - : RpcServiceRequest("config", "2020-09-07", "CreateConfigDeliveryChannel") { - setMethod(HttpRequest::Method::Post); -} - -CreateConfigDeliveryChannelRequest::~CreateConfigDeliveryChannelRequest() {} - -bool CreateConfigDeliveryChannelRequest::getNonCompliantNotification() const { - return nonCompliantNotification_; -} - -void CreateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) { - nonCompliantNotification_ = nonCompliantNotification; - setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false"); -} - -std::string CreateConfigDeliveryChannelRequest::getClientToken() const { - return clientToken_; -} - -void CreateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -bool CreateConfigDeliveryChannelRequest::getConfigurationSnapshot() const { - return configurationSnapshot_; -} - -void CreateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) { - configurationSnapshot_ = configurationSnapshot; - setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false"); -} - -std::string CreateConfigDeliveryChannelRequest::getDescription() const { - return description_; -} - -void CreateConfigDeliveryChannelRequest::setDescription(const std::string &description) { - description_ = description; - setParameter(std::string("Description"), description); -} - -std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const { - return deliveryChannelTargetArn_; -} - -void CreateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) { - deliveryChannelTargetArn_ = deliveryChannelTargetArn; - setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn); -} - -std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const { - return deliveryChannelCondition_; -} - -void CreateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) { - deliveryChannelCondition_ = deliveryChannelCondition; - setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition); -} - -bool CreateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const { - return configurationItemChangeNotification_; -} - -void CreateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) { - configurationItemChangeNotification_ = configurationItemChangeNotification; - setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false"); -} - -std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelName() const { - return deliveryChannelName_; -} - -void CreateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) { - deliveryChannelName_ = deliveryChannelName; - setParameter(std::string("DeliveryChannelName"), deliveryChannelName); -} - -std::string CreateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const { - return oversizedDataOSSTargetArn_; -} - -void CreateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) { - oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn; - setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn); -} - -std::string CreateConfigDeliveryChannelRequest::getDeliveryChannelType() const { - return deliveryChannelType_; -} - -void CreateConfigDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) { - deliveryChannelType_ = deliveryChannelType; - setParameter(std::string("DeliveryChannelType"), deliveryChannelType); -} - diff --git a/config/src/model/CreateConfigRuleRequest.cc b/config/src/model/CreateConfigRuleRequest.cc deleted file mode 100644 index 04f075cf8..000000000 --- a/config/src/model/CreateConfigRuleRequest.cc +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::CreateConfigRuleRequest; - -CreateConfigRuleRequest::CreateConfigRuleRequest() - : RpcServiceRequest("config", "2020-09-07", "CreateConfigRule") { - setMethod(HttpRequest::Method::Post); -} - -CreateConfigRuleRequest::~CreateConfigRuleRequest() {} - -std::string CreateConfigRuleRequest::getTagKeyScope() const { - return tagKeyScope_; -} - -void CreateConfigRuleRequest::setTagKeyScope(const std::string &tagKeyScope) { - tagKeyScope_ = tagKeyScope; - setBodyParameter(std::string("TagKeyScope"), tagKeyScope); -} - -std::string CreateConfigRuleRequest::getClientToken() const { - return clientToken_; -} - -void CreateConfigRuleRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::vector CreateConfigRuleRequest::getResourceTypesScope() const { - return resourceTypesScope_; -} - -void CreateConfigRuleRequest::setResourceTypesScope(const std::vector &resourceTypesScope) { - resourceTypesScope_ = resourceTypesScope; - for(int dep1 = 0; dep1 != resourceTypesScope.size(); dep1++) { - setBodyParameter(std::string("ResourceTypesScope") + "." + std::to_string(dep1 + 1), resourceTypesScope[dep1]); - } -} - -std::string CreateConfigRuleRequest::getDescription() const { - return description_; -} - -void CreateConfigRuleRequest::setDescription(const std::string &description) { - description_ = description; - setBodyParameter(std::string("Description"), description); -} - -std::string CreateConfigRuleRequest::getConfigRuleTriggerTypes() const { - return configRuleTriggerTypes_; -} - -void CreateConfigRuleRequest::setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes) { - configRuleTriggerTypes_ = configRuleTriggerTypes; - setBodyParameter(std::string("ConfigRuleTriggerTypes"), configRuleTriggerTypes); -} - -std::string CreateConfigRuleRequest::getSourceIdentifier() const { - return sourceIdentifier_; -} - -void CreateConfigRuleRequest::setSourceIdentifier(const std::string &sourceIdentifier) { - sourceIdentifier_ = sourceIdentifier; - setBodyParameter(std::string("SourceIdentifier"), sourceIdentifier); -} - -std::string CreateConfigRuleRequest::getTagValueScope() const { - return tagValueScope_; -} - -void CreateConfigRuleRequest::setTagValueScope(const std::string &tagValueScope) { - tagValueScope_ = tagValueScope; - setBodyParameter(std::string("TagValueScope"), tagValueScope); -} - -std::string CreateConfigRuleRequest::getRegionIdsScope() const { - return regionIdsScope_; -} - -void CreateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) { - regionIdsScope_ = regionIdsScope; - setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); -} - -int CreateConfigRuleRequest::getRiskLevel() const { - return riskLevel_; -} - -void CreateConfigRuleRequest::setRiskLevel(int riskLevel) { - riskLevel_ = riskLevel; - setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); -} - -std::string CreateConfigRuleRequest::getSourceOwner() const { - return sourceOwner_; -} - -void CreateConfigRuleRequest::setSourceOwner(const std::string &sourceOwner) { - sourceOwner_ = sourceOwner; - setBodyParameter(std::string("SourceOwner"), sourceOwner); -} - -std::string CreateConfigRuleRequest::getResourceGroupIdsScope() const { - return resourceGroupIdsScope_; -} - -void CreateConfigRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) { - resourceGroupIdsScope_ = resourceGroupIdsScope; - setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope); -} - -std::string CreateConfigRuleRequest::getInputParameters() const { - return inputParameters_; -} - -void CreateConfigRuleRequest::setInputParameters(const std::string &inputParameters) { - inputParameters_ = inputParameters; - setBodyParameter(std::string("InputParameters"), inputParameters); -} - -std::string CreateConfigRuleRequest::getConfigRuleName() const { - return configRuleName_; -} - -void CreateConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) { - configRuleName_ = configRuleName; - setBodyParameter(std::string("ConfigRuleName"), configRuleName); -} - -std::string CreateConfigRuleRequest::getTagKeyLogicScope() const { - return tagKeyLogicScope_; -} - -void CreateConfigRuleRequest::setTagKeyLogicScope(const std::string &tagKeyLogicScope) { - tagKeyLogicScope_ = tagKeyLogicScope; - setBodyParameter(std::string("TagKeyLogicScope"), tagKeyLogicScope); -} - -std::string CreateConfigRuleRequest::getMaximumExecutionFrequency() const { - return maximumExecutionFrequency_; -} - -void CreateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) { - maximumExecutionFrequency_ = maximumExecutionFrequency; - setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency); -} - -std::string CreateConfigRuleRequest::getExcludeResourceIdsScope() const { - return excludeResourceIdsScope_; -} - -void CreateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) { - excludeResourceIdsScope_ = excludeResourceIdsScope; - setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope); -} - diff --git a/config/src/model/CreateConfigRuleResult.cc b/config/src/model/CreateConfigRuleResult.cc deleted file mode 100644 index 864a18983..000000000 --- a/config/src/model/CreateConfigRuleResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -CreateConfigRuleResult::CreateConfigRuleResult() : - ServiceResult() -{} - -CreateConfigRuleResult::CreateConfigRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateConfigRuleResult::~CreateConfigRuleResult() -{} - -void CreateConfigRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ConfigRuleId"].isNull()) - configRuleId_ = value["ConfigRuleId"].asString(); - -} - -std::string CreateConfigRuleResult::getConfigRuleId()const -{ - return configRuleId_; -} - diff --git a/config/src/model/CreateRemediationRequest.cc b/config/src/model/CreateRemediationRequest.cc deleted file mode 100644 index 7df868d94..000000000 --- a/config/src/model/CreateRemediationRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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 deleted file mode 100644 index 66913c9d1..000000000 --- a/config/src/model/CreateRemediationResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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/DeactiveAggregateConfigRulesRequest.cc b/config/src/model/DeactiveAggregateConfigRulesRequest.cc deleted file mode 100644 index eb101d6d9..000000000 --- a/config/src/model/DeactiveAggregateConfigRulesRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::DeactiveAggregateConfigRulesRequest; - -DeactiveAggregateConfigRulesRequest::DeactiveAggregateConfigRulesRequest() - : RpcServiceRequest("config", "2020-09-07", "DeactiveAggregateConfigRules") { - setMethod(HttpRequest::Method::Post); -} - -DeactiveAggregateConfigRulesRequest::~DeactiveAggregateConfigRulesRequest() {} - -std::string DeactiveAggregateConfigRulesRequest::getConfigRuleIds() const { - return configRuleIds_; -} - -void DeactiveAggregateConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setParameter(std::string("ConfigRuleIds"), configRuleIds); -} - -std::string DeactiveAggregateConfigRulesRequest::getAggregatorId() const { - return aggregatorId_; -} - -void DeactiveAggregateConfigRulesRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - diff --git a/config/src/model/DeactiveAggregateConfigRulesResult.cc b/config/src/model/DeactiveAggregateConfigRulesResult.cc deleted file mode 100644 index c468ed501..000000000 --- a/config/src/model/DeactiveAggregateConfigRulesResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -DeactiveAggregateConfigRulesResult::DeactiveAggregateConfigRulesResult() : - ServiceResult() -{} - -DeactiveAggregateConfigRulesResult::DeactiveAggregateConfigRulesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeactiveAggregateConfigRulesResult::~DeactiveAggregateConfigRulesResult() -{} - -void DeactiveAggregateConfigRulesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto operateRuleResultNode = value["OperateRuleResult"]; - auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"]; - for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode) - { - OperateRuleResult::OperateRuleItem operateRuleItemObject; - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull()) - operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString(); - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull()) - operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true"; - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull()) - operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString(); - operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject); - } - -} - -DeactiveAggregateConfigRulesResult::OperateRuleResult DeactiveAggregateConfigRulesResult::getOperateRuleResult()const -{ - return operateRuleResult_; -} - diff --git a/config/src/model/DeleteAggregateCompliancePacksRequest.cc b/config/src/model/DeleteAggregateCompliancePacksRequest.cc deleted file mode 100644 index 15c47e782..000000000 --- a/config/src/model/DeleteAggregateCompliancePacksRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::DeleteAggregateCompliancePacksRequest; - -DeleteAggregateCompliancePacksRequest::DeleteAggregateCompliancePacksRequest() - : RpcServiceRequest("config", "2020-09-07", "DeleteAggregateCompliancePacks") { - setMethod(HttpRequest::Method::Post); -} - -DeleteAggregateCompliancePacksRequest::~DeleteAggregateCompliancePacksRequest() {} - -std::string DeleteAggregateCompliancePacksRequest::getClientToken() const { - return clientToken_; -} - -void DeleteAggregateCompliancePacksRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string DeleteAggregateCompliancePacksRequest::getAggregatorId() const { - return aggregatorId_; -} - -void DeleteAggregateCompliancePacksRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setBodyParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string DeleteAggregateCompliancePacksRequest::getCompliancePackIds() const { - return compliancePackIds_; -} - -void DeleteAggregateCompliancePacksRequest::setCompliancePackIds(const std::string &compliancePackIds) { - compliancePackIds_ = compliancePackIds; - setBodyParameter(std::string("CompliancePackIds"), compliancePackIds); -} - -bool DeleteAggregateCompliancePacksRequest::getDeleteRule() const { - return deleteRule_; -} - -void DeleteAggregateCompliancePacksRequest::setDeleteRule(bool deleteRule) { - deleteRule_ = deleteRule; - setBodyParameter(std::string("DeleteRule"), deleteRule ? "true" : "false"); -} - diff --git a/config/src/model/DeleteAggregateCompliancePacksResult.cc b/config/src/model/DeleteAggregateCompliancePacksResult.cc deleted file mode 100644 index 2dbc83435..000000000 --- a/config/src/model/DeleteAggregateCompliancePacksResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -DeleteAggregateCompliancePacksResult::DeleteAggregateCompliancePacksResult() : - ServiceResult() -{} - -DeleteAggregateCompliancePacksResult::DeleteAggregateCompliancePacksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteAggregateCompliancePacksResult::~DeleteAggregateCompliancePacksResult() -{} - -void DeleteAggregateCompliancePacksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto operateCompliancePacksResultNode = value["OperateCompliancePacksResult"]; - auto allOperateCompliancePacksNode = operateCompliancePacksResultNode["OperateCompliancePacks"]["OperateCompliancePacksItem"]; - for (auto operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem : allOperateCompliancePacksNode) - { - OperateCompliancePacksResult::OperateCompliancePacksItem operateCompliancePacksItemObject; - if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["CompliancePackId"].isNull()) - operateCompliancePacksItemObject.compliancePackId = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["CompliancePackId"].asString(); - if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["ErrorCode"].isNull()) - operateCompliancePacksItemObject.errorCode = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["ErrorCode"].asString(); - if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["Success"].isNull()) - operateCompliancePacksItemObject.success = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["Success"].asString() == "true"; - operateCompliancePacksResult_.operateCompliancePacks.push_back(operateCompliancePacksItemObject); - } - -} - -DeleteAggregateCompliancePacksResult::OperateCompliancePacksResult DeleteAggregateCompliancePacksResult::getOperateCompliancePacksResult()const -{ - return operateCompliancePacksResult_; -} - diff --git a/config/src/model/DeleteAggregateConfigRulesRequest.cc b/config/src/model/DeleteAggregateConfigRulesRequest.cc deleted file mode 100644 index 8eee0836a..000000000 --- a/config/src/model/DeleteAggregateConfigRulesRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::DeleteAggregateConfigRulesRequest; - -DeleteAggregateConfigRulesRequest::DeleteAggregateConfigRulesRequest() - : RpcServiceRequest("config", "2020-09-07", "DeleteAggregateConfigRules") { - setMethod(HttpRequest::Method::Post); -} - -DeleteAggregateConfigRulesRequest::~DeleteAggregateConfigRulesRequest() {} - -std::string DeleteAggregateConfigRulesRequest::getConfigRuleIds() const { - return configRuleIds_; -} - -void DeleteAggregateConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setParameter(std::string("ConfigRuleIds"), configRuleIds); -} - -std::string DeleteAggregateConfigRulesRequest::getAggregatorId() const { - return aggregatorId_; -} - -void DeleteAggregateConfigRulesRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - diff --git a/config/src/model/DeleteAggregateRemediationsRequest.cc b/config/src/model/DeleteAggregateRemediationsRequest.cc deleted file mode 100644 index aec47da7d..000000000 --- a/config/src/model/DeleteAggregateRemediationsRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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 deleted file mode 100644 index a02938390..000000000 --- a/config/src/model/DeleteAggregateRemediationsResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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/DeleteAggregatorsRequest.cc b/config/src/model/DeleteAggregatorsRequest.cc deleted file mode 100644 index 66cfb9fab..000000000 --- a/config/src/model/DeleteAggregatorsRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::DeleteAggregatorsRequest; - -DeleteAggregatorsRequest::DeleteAggregatorsRequest() - : RpcServiceRequest("config", "2020-09-07", "DeleteAggregators") { - setMethod(HttpRequest::Method::Post); -} - -DeleteAggregatorsRequest::~DeleteAggregatorsRequest() {} - -std::string DeleteAggregatorsRequest::getClientToken() const { - return clientToken_; -} - -void DeleteAggregatorsRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string DeleteAggregatorsRequest::getAggregatorIds() const { - return aggregatorIds_; -} - -void DeleteAggregatorsRequest::setAggregatorIds(const std::string &aggregatorIds) { - aggregatorIds_ = aggregatorIds; - setBodyParameter(std::string("AggregatorIds"), aggregatorIds); -} - diff --git a/config/src/model/DeleteAggregatorsResult.cc b/config/src/model/DeleteAggregatorsResult.cc deleted file mode 100644 index 1ec325366..000000000 --- a/config/src/model/DeleteAggregatorsResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -DeleteAggregatorsResult::DeleteAggregatorsResult() : - ServiceResult() -{} - -DeleteAggregatorsResult::DeleteAggregatorsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteAggregatorsResult::~DeleteAggregatorsResult() -{} - -void DeleteAggregatorsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto operateAggregatorsResultNode = value["OperateAggregatorsResult"]; - auto allOperateAggregatorsNode = operateAggregatorsResultNode["OperateAggregators"]["OperateAggregatorList"]; - for (auto operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList : allOperateAggregatorsNode) - { - OperateAggregatorsResult::OperateAggregatorList operateAggregatorListObject; - if(!operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["ErrorCode"].isNull()) - operateAggregatorListObject.errorCode = operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["ErrorCode"].asString(); - if(!operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["Success"].isNull()) - operateAggregatorListObject.success = operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["Success"].asString() == "true"; - if(!operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["AggregatorId"].isNull()) - operateAggregatorListObject.aggregatorId = operateAggregatorsResultNodeOperateAggregatorsOperateAggregatorList["AggregatorId"].asString(); - operateAggregatorsResult_.operateAggregators.push_back(operateAggregatorListObject); - } - -} - -DeleteAggregatorsResult::OperateAggregatorsResult DeleteAggregatorsResult::getOperateAggregatorsResult()const -{ - return operateAggregatorsResult_; -} - diff --git a/config/src/model/DeleteCompliancePacksRequest.cc b/config/src/model/DeleteCompliancePacksRequest.cc deleted file mode 100644 index 9e4c51b49..000000000 --- a/config/src/model/DeleteCompliancePacksRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::DeleteCompliancePacksRequest; - -DeleteCompliancePacksRequest::DeleteCompliancePacksRequest() - : RpcServiceRequest("config", "2020-09-07", "DeleteCompliancePacks") { - setMethod(HttpRequest::Method::Post); -} - -DeleteCompliancePacksRequest::~DeleteCompliancePacksRequest() {} - -std::string DeleteCompliancePacksRequest::getClientToken() const { - return clientToken_; -} - -void DeleteCompliancePacksRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string DeleteCompliancePacksRequest::getCompliancePackIds() const { - return compliancePackIds_; -} - -void DeleteCompliancePacksRequest::setCompliancePackIds(const std::string &compliancePackIds) { - compliancePackIds_ = compliancePackIds; - setBodyParameter(std::string("CompliancePackIds"), compliancePackIds); -} - -bool DeleteCompliancePacksRequest::getDeleteRule() const { - return deleteRule_; -} - -void DeleteCompliancePacksRequest::setDeleteRule(bool deleteRule) { - deleteRule_ = deleteRule; - setBodyParameter(std::string("DeleteRule"), deleteRule ? "true" : "false"); -} - diff --git a/config/src/model/DeleteCompliancePacksResult.cc b/config/src/model/DeleteCompliancePacksResult.cc deleted file mode 100644 index 6fa89083e..000000000 --- a/config/src/model/DeleteCompliancePacksResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -DeleteCompliancePacksResult::DeleteCompliancePacksResult() : - ServiceResult() -{} - -DeleteCompliancePacksResult::DeleteCompliancePacksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteCompliancePacksResult::~DeleteCompliancePacksResult() -{} - -void DeleteCompliancePacksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto operateCompliancePacksResultNode = value["OperateCompliancePacksResult"]; - auto allOperateCompliancePacksNode = operateCompliancePacksResultNode["OperateCompliancePacks"]["OperateCompliancePacksItem"]; - for (auto operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem : allOperateCompliancePacksNode) - { - OperateCompliancePacksResult::OperateCompliancePacksItem operateCompliancePacksItemObject; - if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["CompliancePackId"].isNull()) - operateCompliancePacksItemObject.compliancePackId = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["CompliancePackId"].asString(); - if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["ErrorCode"].isNull()) - operateCompliancePacksItemObject.errorCode = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["ErrorCode"].asString(); - if(!operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["Success"].isNull()) - operateCompliancePacksItemObject.success = operateCompliancePacksResultNodeOperateCompliancePacksOperateCompliancePacksItem["Success"].asString() == "true"; - operateCompliancePacksResult_.operateCompliancePacks.push_back(operateCompliancePacksItemObject); - } - -} - -DeleteCompliancePacksResult::OperateCompliancePacksResult DeleteCompliancePacksResult::getOperateCompliancePacksResult()const -{ - return operateCompliancePacksResult_; -} - diff --git a/config/src/model/GetResourceComplianceGroupByRegionRequest.cc b/config/src/model/DeleteConfigRulesRequest.cc similarity index 55% rename from config/src/model/GetResourceComplianceGroupByRegionRequest.cc rename to config/src/model/DeleteConfigRulesRequest.cc index e837308b5..94dadc03b 100644 --- a/config/src/model/GetResourceComplianceGroupByRegionRequest.cc +++ b/config/src/model/DeleteConfigRulesRequest.cc @@ -14,22 +14,22 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::GetResourceComplianceGroupByRegionRequest; +using AlibabaCloud::Config::Model::DeleteConfigRulesRequest; -GetResourceComplianceGroupByRegionRequest::GetResourceComplianceGroupByRegionRequest() - : RpcServiceRequest("config", "2020-09-07", "GetResourceComplianceGroupByRegion") { +DeleteConfigRulesRequest::DeleteConfigRulesRequest() + : RpcServiceRequest("config", "2019-01-08", "DeleteConfigRules") { setMethod(HttpRequest::Method::Post); } -GetResourceComplianceGroupByRegionRequest::~GetResourceComplianceGroupByRegionRequest() {} +DeleteConfigRulesRequest::~DeleteConfigRulesRequest() {} -std::string GetResourceComplianceGroupByRegionRequest::getConfigRuleIds() const { +std::string DeleteConfigRulesRequest::getConfigRuleIds() const { return configRuleIds_; } -void GetResourceComplianceGroupByRegionRequest::setConfigRuleIds(const std::string &configRuleIds) { +void DeleteConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { configRuleIds_ = configRuleIds; setParameter(std::string("ConfigRuleIds"), configRuleIds); } diff --git a/config/src/model/DeleteAggregateConfigRulesResult.cc b/config/src/model/DeleteConfigRulesResult.cc similarity index 79% rename from config/src/model/DeleteAggregateConfigRulesResult.cc rename to config/src/model/DeleteConfigRulesResult.cc index 637e09bcb..1492c6597 100644 --- a/config/src/model/DeleteAggregateConfigRulesResult.cc +++ b/config/src/model/DeleteConfigRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -DeleteAggregateConfigRulesResult::DeleteAggregateConfigRulesResult() : +DeleteConfigRulesResult::DeleteConfigRulesResult() : ServiceResult() {} -DeleteAggregateConfigRulesResult::DeleteAggregateConfigRulesResult(const std::string &payload) : +DeleteConfigRulesResult::DeleteConfigRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteAggregateConfigRulesResult::~DeleteAggregateConfigRulesResult() +DeleteConfigRulesResult::~DeleteConfigRulesResult() {} -void DeleteAggregateConfigRulesResult::parse(const std::string &payload) +void DeleteConfigRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -55,7 +55,7 @@ void DeleteAggregateConfigRulesResult::parse(const std::string &payload) } -DeleteAggregateConfigRulesResult::OperateRuleResult DeleteAggregateConfigRulesResult::getOperateRuleResult()const +DeleteConfigRulesResult::OperateRuleResult DeleteConfigRulesResult::getOperateRuleResult()const { return operateRuleResult_; } diff --git a/config/src/model/DeleteRemediationsRequest.cc b/config/src/model/DeleteRemediationsRequest.cc deleted file mode 100644 index 7679e30c0..000000000 --- a/config/src/model/DeleteRemediationsRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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 deleted file mode 100644 index e257442cc..000000000 --- a/config/src/model/DeleteRemediationsResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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/DescribeComplianceRequest.cc b/config/src/model/DescribeComplianceRequest.cc new file mode 100644 index 000000000..2bfa4ae3f --- /dev/null +++ b/config/src/model/DescribeComplianceRequest.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::DescribeComplianceRequest; + +DescribeComplianceRequest::DescribeComplianceRequest() + : RpcServiceRequest("config", "2019-01-08", "DescribeCompliance") { + setMethod(HttpRequest::Method::Post); +} + +DescribeComplianceRequest::~DescribeComplianceRequest() {} + +std::string DescribeComplianceRequest::getConfigRuleId() const { + return configRuleId_; +} + +void DescribeComplianceRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +std::string DescribeComplianceRequest::getResourceId() const { + return resourceId_; +} + +void DescribeComplianceRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +bool DescribeComplianceRequest::getMultiAccount() const { + return multiAccount_; +} + +void DescribeComplianceRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +} + +std::string DescribeComplianceRequest::getResourceType() const { + return resourceType_; +} + +void DescribeComplianceRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string DescribeComplianceRequest::getComplianceType() const { + return complianceType_; +} + +void DescribeComplianceRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + +long DescribeComplianceRequest::getMemberId() const { + return memberId_; +} + +void DescribeComplianceRequest::setMemberId(long memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), std::to_string(memberId)); +} + diff --git a/config/src/model/GetResourceComplianceByConfigRuleResult.cc b/config/src/model/DescribeComplianceResult.cc similarity index 76% rename from config/src/model/GetResourceComplianceByConfigRuleResult.cc rename to config/src/model/DescribeComplianceResult.cc index 6b7c42c81..97b5786c9 100644 --- a/config/src/model/GetResourceComplianceByConfigRuleResult.cc +++ b/config/src/model/DescribeComplianceResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -GetResourceComplianceByConfigRuleResult::GetResourceComplianceByConfigRuleResult() : +DescribeComplianceResult::DescribeComplianceResult() : ServiceResult() {} -GetResourceComplianceByConfigRuleResult::GetResourceComplianceByConfigRuleResult(const std::string &payload) : +DescribeComplianceResult::DescribeComplianceResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetResourceComplianceByConfigRuleResult::~GetResourceComplianceByConfigRuleResult() +DescribeComplianceResult::~DescribeComplianceResult() {} -void GetResourceComplianceByConfigRuleResult::parse(const std::string &payload) +void DescribeComplianceResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -55,7 +55,7 @@ void GetResourceComplianceByConfigRuleResult::parse(const std::string &payload) } -GetResourceComplianceByConfigRuleResult::ComplianceResult GetResourceComplianceByConfigRuleResult::getComplianceResult()const +DescribeComplianceResult::ComplianceResult DescribeComplianceResult::getComplianceResult()const { return complianceResult_; } diff --git a/config/src/model/DescribeComplianceSummaryRequest.cc b/config/src/model/DescribeComplianceSummaryRequest.cc new file mode 100644 index 000000000..a80fc1e94 --- /dev/null +++ b/config/src/model/DescribeComplianceSummaryRequest.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::DescribeComplianceSummaryRequest; + +DescribeComplianceSummaryRequest::DescribeComplianceSummaryRequest() + : RpcServiceRequest("config", "2019-01-08", "DescribeComplianceSummary") { + setMethod(HttpRequest::Method::Post); +} + +DescribeComplianceSummaryRequest::~DescribeComplianceSummaryRequest() {} + +bool DescribeComplianceSummaryRequest::getMultiAccount() const { + return multiAccount_; +} + +void DescribeComplianceSummaryRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +} + +long DescribeComplianceSummaryRequest::getMemberId() const { + return memberId_; +} + +void DescribeComplianceSummaryRequest::setMemberId(long memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), std::to_string(memberId)); +} + diff --git a/config/src/model/DescribeComplianceSummaryResult.cc b/config/src/model/DescribeComplianceSummaryResult.cc new file mode 100644 index 000000000..c0f890fad --- /dev/null +++ b/config/src/model/DescribeComplianceSummaryResult.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +DescribeComplianceSummaryResult::DescribeComplianceSummaryResult() : + ServiceResult() +{} + +DescribeComplianceSummaryResult::DescribeComplianceSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeComplianceSummaryResult::~DescribeComplianceSummaryResult() +{} + +void DescribeComplianceSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto complianceSummaryNode = value["ComplianceSummary"]; + auto complianceSummaryByResourceNode = complianceSummaryNode["ComplianceSummaryByResource"]; + if(!complianceSummaryByResourceNode["CompliantCount"].isNull()) + complianceSummary_.complianceSummaryByResource.compliantCount = std::stoi(complianceSummaryByResourceNode["CompliantCount"].asString()); + if(!complianceSummaryByResourceNode["NonCompliantCount"].isNull()) + complianceSummary_.complianceSummaryByResource.nonCompliantCount = std::stoi(complianceSummaryByResourceNode["NonCompliantCount"].asString()); + if(!complianceSummaryByResourceNode["ComplianceSummaryTimestamp"].isNull()) + complianceSummary_.complianceSummaryByResource.complianceSummaryTimestamp = std::stol(complianceSummaryByResourceNode["ComplianceSummaryTimestamp"].asString()); + if(!complianceSummaryByResourceNode["TotalCount"].isNull()) + complianceSummary_.complianceSummaryByResource.totalCount = std::stol(complianceSummaryByResourceNode["TotalCount"].asString()); + auto complianceSummaryByConfigRuleNode = complianceSummaryNode["ComplianceSummaryByConfigRule"]; + if(!complianceSummaryByConfigRuleNode["CompliantCount"].isNull()) + complianceSummary_.complianceSummaryByConfigRule.compliantCount = std::stoi(complianceSummaryByConfigRuleNode["CompliantCount"].asString()); + if(!complianceSummaryByConfigRuleNode["NonCompliantCount"].isNull()) + complianceSummary_.complianceSummaryByConfigRule.nonCompliantCount = std::stoi(complianceSummaryByConfigRuleNode["NonCompliantCount"].asString()); + if(!complianceSummaryByConfigRuleNode["ComplianceSummaryTimestamp"].isNull()) + complianceSummary_.complianceSummaryByConfigRule.complianceSummaryTimestamp = std::stol(complianceSummaryByConfigRuleNode["ComplianceSummaryTimestamp"].asString()); + if(!complianceSummaryByConfigRuleNode["TotalCount"].isNull()) + complianceSummary_.complianceSummaryByConfigRule.totalCount = std::stol(complianceSummaryByConfigRuleNode["TotalCount"].asString()); + +} + +DescribeComplianceSummaryResult::ComplianceSummary DescribeComplianceSummaryResult::getComplianceSummary()const +{ + return complianceSummary_; +} + diff --git a/config/src/model/DescribeConfigRuleRequest.cc b/config/src/model/DescribeConfigRuleRequest.cc new file mode 100644 index 000000000..086eb8475 --- /dev/null +++ b/config/src/model/DescribeConfigRuleRequest.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::DescribeConfigRuleRequest; + +DescribeConfigRuleRequest::DescribeConfigRuleRequest() + : RpcServiceRequest("config", "2019-01-08", "DescribeConfigRule") { + setMethod(HttpRequest::Method::Post); +} + +DescribeConfigRuleRequest::~DescribeConfigRuleRequest() {} + +std::string DescribeConfigRuleRequest::getConfigRuleId() const { + return configRuleId_; +} + +void DescribeConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +bool DescribeConfigRuleRequest::getMultiAccount() const { + return multiAccount_; +} + +void DescribeConfigRuleRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +} + +long DescribeConfigRuleRequest::getMemberId() const { + return memberId_; +} + +void DescribeConfigRuleRequest::setMemberId(long memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), std::to_string(memberId)); +} + diff --git a/config/src/model/GetConfigRuleResult.cc b/config/src/model/DescribeConfigRuleResult.cc similarity index 75% rename from config/src/model/GetConfigRuleResult.cc rename to config/src/model/DescribeConfigRuleResult.cc index 012f1ab1d..f928858e3 100644 --- a/config/src/model/GetConfigRuleResult.cc +++ b/config/src/model/DescribeConfigRuleResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -GetConfigRuleResult::GetConfigRuleResult() : +DescribeConfigRuleResult::DescribeConfigRuleResult() : ServiceResult() {} -GetConfigRuleResult::GetConfigRuleResult(const std::string &payload) : +DescribeConfigRuleResult::DescribeConfigRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetConfigRuleResult::~GetConfigRuleResult() +DescribeConfigRuleResult::~DescribeConfigRuleResult() {} -void GetConfigRuleResult::parse(const std::string &payload) +void DescribeConfigRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,6 +48,8 @@ void GetConfigRuleResult::parse(const std::string &payload) configRule_.configRuleState = configRuleNode["ConfigRuleState"].asString(); if(!configRuleNode["MaximumExecutionFrequency"].isNull()) configRule_.maximumExecutionFrequency = configRuleNode["MaximumExecutionFrequency"].asString(); + if(!configRuleNode["OrganizationRule"].isNull()) + configRule_.organizationRule = configRuleNode["OrganizationRule"].asString() == "true"; if(!configRuleNode["ConfigRuleArn"].isNull()) configRule_.configRuleArn = configRuleNode["ConfigRuleArn"].asString(); if(!configRuleNode["Description"].isNull()) @@ -60,24 +62,6 @@ void GetConfigRuleResult::parse(const std::string &payload) configRule_.modifiedTimestamp = std::stol(configRuleNode["ModifiedTimestamp"].asString()); if(!configRuleNode["CreateTimestamp"].isNull()) configRule_.createTimestamp = std::stol(configRuleNode["CreateTimestamp"].asString()); - if(!configRuleNode["ResourceTypesScope"].isNull()) - configRule_.resourceTypesScope = configRuleNode["ResourceTypesScope"].asString(); - if(!configRuleNode["RegionIdsScope"].isNull()) - configRule_.regionIdsScope = configRuleNode["RegionIdsScope"].asString(); - if(!configRuleNode["ExcludeResourceIdsScope"].isNull()) - configRule_.excludeResourceIdsScope = configRuleNode["ExcludeResourceIdsScope"].asString(); - if(!configRuleNode["ResourceGroupIdsScope"].isNull()) - configRule_.resourceGroupIdsScope = configRuleNode["ResourceGroupIdsScope"].asString(); - if(!configRuleNode["TagKeyScope"].isNull()) - configRule_.tagKeyScope = configRuleNode["TagKeyScope"].asString(); - if(!configRuleNode["TagValueScope"].isNull()) - configRule_.tagValueScope = configRuleNode["TagValueScope"].asString(); - if(!configRuleNode["ConfigRuleTriggerTypes"].isNull()) - configRule_.configRuleTriggerTypes = configRuleNode["ConfigRuleTriggerTypes"].asString(); - if(!configRuleNode["TagKeyLogicScope"].isNull()) - configRule_.tagKeyLogicScope = configRuleNode["TagKeyLogicScope"].asString(); - if(!configRuleNode["AccountId"].isNull()) - configRule_.accountId = std::stol(configRuleNode["AccountId"].asString()); auto sourceNode = configRuleNode["Source"]; if(!sourceNode["Owner"].isNull()) configRule_.source.owner = sourceNode["Owner"].asString(); @@ -95,9 +79,24 @@ void GetConfigRuleResult::parse(const std::string &payload) sourceDetailsItemObject.maximumExecutionFrequency = sourceNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString(); configRule_.source.sourceDetails.push_back(sourceDetailsItemObject); } - auto allSourceConditions = sourceNode["SourceConditions"]["SourceConditions"]; - for (auto value : allSourceConditions) - configRule_.source.sourceConditions.push_back(value.asString()); + auto allSourceConditionsNode = sourceNode["SourceConditions"]["SourceConditionsItem"]; + for (auto sourceNodeSourceConditionsSourceConditionsItem : allSourceConditionsNode) + { + ConfigRule::Source::SourceConditionsItem sourceConditionsItemObject; + if(!sourceNodeSourceConditionsSourceConditionsItem["DesiredValue"].isNull()) + sourceConditionsItemObject.desiredValue = sourceNodeSourceConditionsSourceConditionsItem["DesiredValue"].asString(); + if(!sourceNodeSourceConditionsSourceConditionsItem["Required"].isNull()) + sourceConditionsItemObject.required = sourceNodeSourceConditionsSourceConditionsItem["Required"].asString() == "true"; + if(!sourceNodeSourceConditionsSourceConditionsItem["Tips"].isNull()) + sourceConditionsItemObject.tips = sourceNodeSourceConditionsSourceConditionsItem["Tips"].asString(); + if(!sourceNodeSourceConditionsSourceConditionsItem["Operator"].isNull()) + sourceConditionsItemObject._operator = sourceNodeSourceConditionsSourceConditionsItem["Operator"].asString(); + if(!sourceNodeSourceConditionsSourceConditionsItem["Name"].isNull()) + sourceConditionsItemObject.name = sourceNodeSourceConditionsSourceConditionsItem["Name"].asString(); + if(!sourceNodeSourceConditionsSourceConditionsItem["SelectPath"].isNull()) + sourceConditionsItemObject.selectPath = sourceNodeSourceConditionsSourceConditionsItem["SelectPath"].asString(); + configRule_.source.sourceConditions.push_back(sourceConditionsItemObject); + } auto managedRuleNode = configRuleNode["ManagedRule"]; if(!managedRuleNode["HelpUrl"].isNull()) configRule_.managedRule.helpUrl = managedRuleNode["HelpUrl"].asString(); @@ -127,20 +126,22 @@ void GetConfigRuleResult::parse(const std::string &payload) for (auto value : allLabels) configRule_.managedRule.labels.push_back(value.asString()); auto createByNode = configRuleNode["CreateBy"]; - if(!createByNode["CompliancePackId"].isNull()) - configRule_.createBy.compliancePackId = createByNode["CompliancePackId"].asString(); - if(!createByNode["AggregatorName"].isNull()) - configRule_.createBy.aggregatorName = createByNode["AggregatorName"].asString(); - if(!createByNode["CompliancePackName"].isNull()) - configRule_.createBy.compliancePackName = createByNode["CompliancePackName"].asString(); + if(!createByNode["ConfigRuleSceneId"].isNull()) + configRule_.createBy.configRuleSceneId = createByNode["ConfigRuleSceneId"].asString(); if(!createByNode["CreatorName"].isNull()) configRule_.createBy.creatorName = createByNode["CreatorName"].asString(); if(!createByNode["CreatorType"].isNull()) configRule_.createBy.creatorType = createByNode["CreatorType"].asString(); if(!createByNode["CreatorId"].isNull()) configRule_.createBy.creatorId = createByNode["CreatorId"].asString(); - if(!createByNode["AggregatorId"].isNull()) - configRule_.createBy.aggregatorId = createByNode["AggregatorId"].asString(); + if(!createByNode["ConfigRuleSceneName"].isNull()) + configRule_.createBy.configRuleSceneName = createByNode["ConfigRuleSceneName"].asString(); + auto scopeNode = configRuleNode["Scope"]; + if(!scopeNode["ComplianceResourceId"].isNull()) + configRule_.scope.complianceResourceId = scopeNode["ComplianceResourceId"].asString(); + auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["ComplianceResourceTypes"]; + for (auto value : allComplianceResourceTypes) + configRule_.scope.complianceResourceTypes.push_back(value.asString()); auto configRuleEvaluationStatusNode = configRuleNode["ConfigRuleEvaluationStatus"]; if(!configRuleEvaluationStatusNode["LastErrorCode"].isNull()) configRule_.configRuleEvaluationStatus.lastErrorCode = configRuleEvaluationStatusNode["LastErrorCode"].asString(); @@ -158,19 +159,10 @@ void GetConfigRuleResult::parse(const std::string &payload) configRule_.configRuleEvaluationStatus.lastFailedEvaluationTimestamp = std::stol(configRuleEvaluationStatusNode["LastFailedEvaluationTimestamp"].asString()); if(!configRuleEvaluationStatusNode["LastFailedInvocationTimestamp"].isNull()) configRule_.configRuleEvaluationStatus.lastFailedInvocationTimestamp = std::stol(configRuleEvaluationStatusNode["LastFailedInvocationTimestamp"].asString()); - auto scopeNode = configRuleNode["Scope"]; - auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["ComplianceResourceTypes"]; - for (auto value : allComplianceResourceTypes) - configRule_.scope.complianceResourceTypes.push_back(value.asString()); - auto complianceNode = configRuleNode["Compliance"]; - if(!complianceNode["ComplianceType"].isNull()) - configRule_.compliance.complianceType = complianceNode["ComplianceType"].asString(); - if(!complianceNode["Count"].isNull()) - configRule_.compliance.count = std::stoi(complianceNode["Count"].asString()); } -GetConfigRuleResult::ConfigRule GetConfigRuleResult::getConfigRule()const +DescribeConfigRuleResult::ConfigRule DescribeConfigRuleResult::getConfigRule()const { return configRule_; } diff --git a/config/src/model/GetConfigRuleSummaryByRiskLevelRequest.cc b/config/src/model/DescribeConfigurationRecorderRequest.cc similarity index 58% rename from config/src/model/GetConfigRuleSummaryByRiskLevelRequest.cc rename to config/src/model/DescribeConfigurationRecorderRequest.cc index 7b6525d7c..eb1ce6c9b 100644 --- a/config/src/model/GetConfigRuleSummaryByRiskLevelRequest.cc +++ b/config/src/model/DescribeConfigurationRecorderRequest.cc @@ -14,14 +14,14 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::GetConfigRuleSummaryByRiskLevelRequest; +using AlibabaCloud::Config::Model::DescribeConfigurationRecorderRequest; -GetConfigRuleSummaryByRiskLevelRequest::GetConfigRuleSummaryByRiskLevelRequest() - : RpcServiceRequest("config", "2020-09-07", "GetConfigRuleSummaryByRiskLevel") { - setMethod(HttpRequest::Method::Get); +DescribeConfigurationRecorderRequest::DescribeConfigurationRecorderRequest() + : RpcServiceRequest("config", "2019-01-08", "DescribeConfigurationRecorder") { + setMethod(HttpRequest::Method::Post); } -GetConfigRuleSummaryByRiskLevelRequest::~GetConfigRuleSummaryByRiskLevelRequest() {} +DescribeConfigurationRecorderRequest::~DescribeConfigurationRecorderRequest() {} diff --git a/config/src/model/DescribeConfigurationRecorderResult.cc b/config/src/model/DescribeConfigurationRecorderResult.cc new file mode 100644 index 000000000..e4df26b0b --- /dev/null +++ b/config/src/model/DescribeConfigurationRecorderResult.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; + +DescribeConfigurationRecorderResult::DescribeConfigurationRecorderResult() : + ServiceResult() +{} + +DescribeConfigurationRecorderResult::DescribeConfigurationRecorderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeConfigurationRecorderResult::~DescribeConfigurationRecorderResult() +{} + +void DescribeConfigurationRecorderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configurationRecorderNode = value["ConfigurationRecorder"]; + if(!configurationRecorderNode["OrganizationEnableStatus"].isNull()) + configurationRecorder_.organizationEnableStatus = configurationRecorderNode["OrganizationEnableStatus"].asString(); + if(!configurationRecorderNode["ConfigurationRecorderStatus"].isNull()) + configurationRecorder_.configurationRecorderStatus = configurationRecorderNode["ConfigurationRecorderStatus"].asString(); + if(!configurationRecorderNode["OrganizationMasterId"].isNull()) + configurationRecorder_.organizationMasterId = std::stol(configurationRecorderNode["OrganizationMasterId"].asString()); + if(!configurationRecorderNode["AccountId"].isNull()) + configurationRecorder_.accountId = std::stol(configurationRecorderNode["AccountId"].asString()); + auto allResourceTypes = configurationRecorderNode["ResourceTypes"]["ResourceType"]; + for (auto value : allResourceTypes) + configurationRecorder_.resourceTypes.push_back(value.asString()); + +} + +DescribeConfigurationRecorderResult::ConfigurationRecorder DescribeConfigurationRecorderResult::getConfigurationRecorder()const +{ + return configurationRecorder_; +} + diff --git a/config/src/model/ListConfigDeliveryChannelsRequest.cc b/config/src/model/DescribeDeliveryChannelsRequest.cc similarity index 58% rename from config/src/model/ListConfigDeliveryChannelsRequest.cc rename to config/src/model/DescribeDeliveryChannelsRequest.cc index c6c505af8..07a251410 100644 --- a/config/src/model/ListConfigDeliveryChannelsRequest.cc +++ b/config/src/model/DescribeDeliveryChannelsRequest.cc @@ -14,22 +14,22 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::ListConfigDeliveryChannelsRequest; +using AlibabaCloud::Config::Model::DescribeDeliveryChannelsRequest; -ListConfigDeliveryChannelsRequest::ListConfigDeliveryChannelsRequest() - : RpcServiceRequest("config", "2020-09-07", "ListConfigDeliveryChannels") { +DescribeDeliveryChannelsRequest::DescribeDeliveryChannelsRequest() + : RpcServiceRequest("config", "2019-01-08", "DescribeDeliveryChannels") { setMethod(HttpRequest::Method::Post); } -ListConfigDeliveryChannelsRequest::~ListConfigDeliveryChannelsRequest() {} +DescribeDeliveryChannelsRequest::~DescribeDeliveryChannelsRequest() {} -std::string ListConfigDeliveryChannelsRequest::getDeliveryChannelIds() const { +std::string DescribeDeliveryChannelsRequest::getDeliveryChannelIds() const { return deliveryChannelIds_; } -void ListConfigDeliveryChannelsRequest::setDeliveryChannelIds(const std::string &deliveryChannelIds) { +void DescribeDeliveryChannelsRequest::setDeliveryChannelIds(const std::string &deliveryChannelIds) { deliveryChannelIds_ = deliveryChannelIds; setParameter(std::string("DeliveryChannelIds"), deliveryChannelIds); } diff --git a/config/src/model/ListConfigDeliveryChannelsResult.cc b/config/src/model/DescribeDeliveryChannelsResult.cc similarity index 84% rename from config/src/model/ListConfigDeliveryChannelsResult.cc rename to config/src/model/DescribeDeliveryChannelsResult.cc index bd236d072..298aa8acc 100644 --- a/config/src/model/ListConfigDeliveryChannelsResult.cc +++ b/config/src/model/DescribeDeliveryChannelsResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -ListConfigDeliveryChannelsResult::ListConfigDeliveryChannelsResult() : +DescribeDeliveryChannelsResult::DescribeDeliveryChannelsResult() : ServiceResult() {} -ListConfigDeliveryChannelsResult::ListConfigDeliveryChannelsResult(const std::string &payload) : +DescribeDeliveryChannelsResult::DescribeDeliveryChannelsResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListConfigDeliveryChannelsResult::~ListConfigDeliveryChannelsResult() +DescribeDeliveryChannelsResult::~DescribeDeliveryChannelsResult() {} -void ListConfigDeliveryChannelsResult::parse(const std::string &payload) +void DescribeDeliveryChannelsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -51,30 +51,28 @@ void ListConfigDeliveryChannelsResult::parse(const std::string &payload) deliveryChannelsObject.deliveryChannelId = valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].asString(); if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].isNull()) deliveryChannelsObject.deliveryChannelType = valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].isNull()) - deliveryChannelsObject.deliveryChannelTargetArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].asString(); if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].isNull()) deliveryChannelsObject.deliveryChannelAssumeRoleArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].isNull()) - deliveryChannelsObject.deliveryChannelCondition = valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].isNull()) - deliveryChannelsObject.oversizedDataOSSTargetArn = valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].asString(); if(!valueDeliveryChannelsDeliveryChannel["Description"].isNull()) deliveryChannelsObject.description = valueDeliveryChannelsDeliveryChannel["Description"].asString(); + if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].isNull()) + deliveryChannelsObject.deliveryChannelCondition = valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].asString(); + if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].isNull()) + deliveryChannelsObject.deliveryChannelTargetArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].asString(); if(!valueDeliveryChannelsDeliveryChannel["ConfigurationSnapshot"].isNull()) deliveryChannelsObject.configurationSnapshot = valueDeliveryChannelsDeliveryChannel["ConfigurationSnapshot"].asString() == "true"; if(!valueDeliveryChannelsDeliveryChannel["ConfigurationItemChangeNotification"].isNull()) deliveryChannelsObject.configurationItemChangeNotification = valueDeliveryChannelsDeliveryChannel["ConfigurationItemChangeNotification"].asString() == "true"; if(!valueDeliveryChannelsDeliveryChannel["NonCompliantNotification"].isNull()) deliveryChannelsObject.nonCompliantNotification = valueDeliveryChannelsDeliveryChannel["NonCompliantNotification"].asString() == "true"; - if(!valueDeliveryChannelsDeliveryChannel["AccountId"].isNull()) - deliveryChannelsObject.accountId = std::stol(valueDeliveryChannelsDeliveryChannel["AccountId"].asString()); + if(!valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].isNull()) + deliveryChannelsObject.oversizedDataOSSTargetArn = valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].asString(); deliveryChannels_.push_back(deliveryChannelsObject); } } -std::vector ListConfigDeliveryChannelsResult::getDeliveryChannels()const +std::vector DescribeDeliveryChannelsResult::getDeliveryChannels()const { return deliveryChannels_; } diff --git a/config/src/model/DescribeDiscoveredResourceRequest.cc b/config/src/model/DescribeDiscoveredResourceRequest.cc new file mode 100644 index 000000000..1d35cce2f --- /dev/null +++ b/config/src/model/DescribeDiscoveredResourceRequest.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::DescribeDiscoveredResourceRequest; + +DescribeDiscoveredResourceRequest::DescribeDiscoveredResourceRequest() + : RpcServiceRequest("config", "2019-01-08", "DescribeDiscoveredResource") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDiscoveredResourceRequest::~DescribeDiscoveredResourceRequest() {} + +std::string DescribeDiscoveredResourceRequest::getResourceId() const { + return resourceId_; +} + +void DescribeDiscoveredResourceRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +bool DescribeDiscoveredResourceRequest::getMultiAccount() const { + return multiAccount_; +} + +void DescribeDiscoveredResourceRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +} + +std::string DescribeDiscoveredResourceRequest::getResourceType() const { + return resourceType_; +} + +void DescribeDiscoveredResourceRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string DescribeDiscoveredResourceRequest::getRegion() const { + return region_; +} + +void DescribeDiscoveredResourceRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + +long DescribeDiscoveredResourceRequest::getMemberId() const { + return memberId_; +} + +void DescribeDiscoveredResourceRequest::setMemberId(long memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), std::to_string(memberId)); +} + diff --git a/config/src/model/GetDiscoveredResourceResult.cc b/config/src/model/DescribeDiscoveredResourceResult.cc similarity index 84% rename from config/src/model/GetDiscoveredResourceResult.cc rename to config/src/model/DescribeDiscoveredResourceResult.cc index fded20c7e..57dcf7997 100644 --- a/config/src/model/GetDiscoveredResourceResult.cc +++ b/config/src/model/DescribeDiscoveredResourceResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -GetDiscoveredResourceResult::GetDiscoveredResourceResult() : +DescribeDiscoveredResourceResult::DescribeDiscoveredResourceResult() : ServiceResult() {} -GetDiscoveredResourceResult::GetDiscoveredResourceResult(const std::string &payload) : +DescribeDiscoveredResourceResult::DescribeDiscoveredResourceResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetDiscoveredResourceResult::~GetDiscoveredResourceResult() +DescribeDiscoveredResourceResult::~DescribeDiscoveredResourceResult() {} -void GetDiscoveredResourceResult::parse(const std::string &payload) +void DescribeDiscoveredResourceResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -65,7 +65,7 @@ void GetDiscoveredResourceResult::parse(const std::string &payload) } -GetDiscoveredResourceResult::DiscoveredResourceDetail GetDiscoveredResourceResult::getDiscoveredResourceDetail()const +DescribeDiscoveredResourceResult::DiscoveredResourceDetail DescribeDiscoveredResourceResult::getDiscoveredResourceDetail()const { return discoveredResourceDetail_; } diff --git a/config/src/model/DescribeEvaluationResultsRequest.cc b/config/src/model/DescribeEvaluationResultsRequest.cc new file mode 100644 index 000000000..7a425a83f --- /dev/null +++ b/config/src/model/DescribeEvaluationResultsRequest.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::DescribeEvaluationResultsRequest; + +DescribeEvaluationResultsRequest::DescribeEvaluationResultsRequest() + : RpcServiceRequest("config", "2019-01-08", "DescribeEvaluationResults") { + setMethod(HttpRequest::Method::Get); +} + +DescribeEvaluationResultsRequest::~DescribeEvaluationResultsRequest() {} + +std::string DescribeEvaluationResultsRequest::getConfigRuleId() const { + return configRuleId_; +} + +void DescribeEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +bool DescribeEvaluationResultsRequest::getMultiAccount() const { + return multiAccount_; +} + +void DescribeEvaluationResultsRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +} + +int DescribeEvaluationResultsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeEvaluationResultsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int DescribeEvaluationResultsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeEvaluationResultsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeEvaluationResultsRequest::getComplianceType() const { + return complianceType_; +} + +void DescribeEvaluationResultsRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + +std::string DescribeEvaluationResultsRequest::getResourceId() const { + return resourceId_; +} + +void DescribeEvaluationResultsRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string DescribeEvaluationResultsRequest::getResourceType() const { + return resourceType_; +} + +void DescribeEvaluationResultsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +long DescribeEvaluationResultsRequest::getMemberId() const { + return memberId_; +} + +void DescribeEvaluationResultsRequest::setMemberId(long memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), std::to_string(memberId)); +} + diff --git a/config/src/model/ListResourceEvaluationResultsResult.cc b/config/src/model/DescribeEvaluationResultsResult.cc similarity index 83% rename from config/src/model/ListResourceEvaluationResultsResult.cc rename to config/src/model/DescribeEvaluationResultsResult.cc index 64bbb3f6a..9729288db 100644 --- a/config/src/model/ListResourceEvaluationResultsResult.cc +++ b/config/src/model/DescribeEvaluationResultsResult.cc @@ -14,36 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -ListResourceEvaluationResultsResult::ListResourceEvaluationResultsResult() : +DescribeEvaluationResultsResult::DescribeEvaluationResultsResult() : ServiceResult() {} -ListResourceEvaluationResultsResult::ListResourceEvaluationResultsResult(const std::string &payload) : +DescribeEvaluationResultsResult::DescribeEvaluationResultsResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListResourceEvaluationResultsResult::~ListResourceEvaluationResultsResult() +DescribeEvaluationResultsResult::~DescribeEvaluationResultsResult() {} -void ListResourceEvaluationResultsResult::parse(const std::string &payload) +void DescribeEvaluationResultsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto evaluationResultsNode = value["EvaluationResults"]; - if(!evaluationResultsNode["NextToken"].isNull()) - evaluationResults_.nextToken = evaluationResultsNode["NextToken"].asString(); - if(!evaluationResultsNode["MaxResults"].isNull()) - evaluationResults_.maxResults = std::stoi(evaluationResultsNode["MaxResults"].asString()); + if(!evaluationResultsNode["PageNumber"].isNull()) + evaluationResults_.pageNumber = std::stoi(evaluationResultsNode["PageNumber"].asString()); + if(!evaluationResultsNode["PageSize"].isNull()) + evaluationResults_.pageSize = std::stoi(evaluationResultsNode["PageSize"].asString()); + if(!evaluationResultsNode["TotalCount"].isNull()) + evaluationResults_.totalCount = std::stol(evaluationResultsNode["TotalCount"].asString()); auto allEvaluationResultListNode = evaluationResultsNode["EvaluationResultList"]["EvaluationResult"]; for (auto evaluationResultsNodeEvaluationResultListEvaluationResult : allEvaluationResultListNode) { @@ -80,14 +82,12 @@ void ListResourceEvaluationResultsResult::parse(const std::string &payload) evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceName = evaluationResultQualifierNode["ResourceName"].asString(); if(!evaluationResultQualifierNode["RegionId"].isNull()) evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString(); - if(!evaluationResultQualifierNode["IgnoreDate"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.ignoreDate = evaluationResultQualifierNode["IgnoreDate"].asString(); evaluationResults_.evaluationResultList.push_back(evaluationResultObject); } } -ListResourceEvaluationResultsResult::EvaluationResults ListResourceEvaluationResultsResult::getEvaluationResults()const +DescribeEvaluationResultsResult::EvaluationResults DescribeEvaluationResultsResult::getEvaluationResults()const { return evaluationResults_; } diff --git a/config/src/model/DetachAggregateConfigRuleToCompliancePackRequest.cc b/config/src/model/DetachAggregateConfigRuleToCompliancePackRequest.cc deleted file mode 100644 index 59420fe3a..000000000 --- a/config/src/model/DetachAggregateConfigRuleToCompliancePackRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::DetachAggregateConfigRuleToCompliancePackRequest; - -DetachAggregateConfigRuleToCompliancePackRequest::DetachAggregateConfigRuleToCompliancePackRequest() - : RpcServiceRequest("config", "2020-09-07", "DetachAggregateConfigRuleToCompliancePack") { - setMethod(HttpRequest::Method::Post); -} - -DetachAggregateConfigRuleToCompliancePackRequest::~DetachAggregateConfigRuleToCompliancePackRequest() {} - -std::string DetachAggregateConfigRuleToCompliancePackRequest::getConfigRuleIds() const { - return configRuleIds_; -} - -void DetachAggregateConfigRuleToCompliancePackRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setParameter(std::string("ConfigRuleIds"), configRuleIds); -} - -std::string DetachAggregateConfigRuleToCompliancePackRequest::getAggregatorId() const { - return aggregatorId_; -} - -void DetachAggregateConfigRuleToCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string DetachAggregateConfigRuleToCompliancePackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void DetachAggregateConfigRuleToCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/DetachAggregateConfigRuleToCompliancePackResult.cc b/config/src/model/DetachAggregateConfigRuleToCompliancePackResult.cc deleted file mode 100644 index d58023715..000000000 --- a/config/src/model/DetachAggregateConfigRuleToCompliancePackResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -DetachAggregateConfigRuleToCompliancePackResult::DetachAggregateConfigRuleToCompliancePackResult() : - ServiceResult() -{} - -DetachAggregateConfigRuleToCompliancePackResult::DetachAggregateConfigRuleToCompliancePackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetachAggregateConfigRuleToCompliancePackResult::~DetachAggregateConfigRuleToCompliancePackResult() -{} - -void DetachAggregateConfigRuleToCompliancePackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto operateRuleResultNode = value["OperateRuleResult"]; - auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"]; - for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode) - { - OperateRuleResult::OperateRuleItem operateRuleItemObject; - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull()) - operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString(); - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull()) - operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true"; - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull()) - operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString(); - operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject); - } - -} - -DetachAggregateConfigRuleToCompliancePackResult::OperateRuleResult DetachAggregateConfigRuleToCompliancePackResult::getOperateRuleResult()const -{ - return operateRuleResult_; -} - diff --git a/config/src/model/DetachConfigRuleToCompliancePackRequest.cc b/config/src/model/DetachConfigRuleToCompliancePackRequest.cc deleted file mode 100644 index 14c977cd2..000000000 --- a/config/src/model/DetachConfigRuleToCompliancePackRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::DetachConfigRuleToCompliancePackRequest; - -DetachConfigRuleToCompliancePackRequest::DetachConfigRuleToCompliancePackRequest() - : RpcServiceRequest("config", "2020-09-07", "DetachConfigRuleToCompliancePack") { - setMethod(HttpRequest::Method::Post); -} - -DetachConfigRuleToCompliancePackRequest::~DetachConfigRuleToCompliancePackRequest() {} - -std::string DetachConfigRuleToCompliancePackRequest::getConfigRuleIds() const { - return configRuleIds_; -} - -void DetachConfigRuleToCompliancePackRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setParameter(std::string("ConfigRuleIds"), configRuleIds); -} - -std::string DetachConfigRuleToCompliancePackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void DetachConfigRuleToCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/DetachConfigRuleToCompliancePackResult.cc b/config/src/model/DetachConfigRuleToCompliancePackResult.cc deleted file mode 100644 index bdd16cee4..000000000 --- a/config/src/model/DetachConfigRuleToCompliancePackResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -DetachConfigRuleToCompliancePackResult::DetachConfigRuleToCompliancePackResult() : - ServiceResult() -{} - -DetachConfigRuleToCompliancePackResult::DetachConfigRuleToCompliancePackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DetachConfigRuleToCompliancePackResult::~DetachConfigRuleToCompliancePackResult() -{} - -void DetachConfigRuleToCompliancePackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto operateRuleResultNode = value["OperateRuleResult"]; - auto allOperateRuleItemListNode = operateRuleResultNode["OperateRuleItemList"]["OperateRuleItem"]; - for (auto operateRuleResultNodeOperateRuleItemListOperateRuleItem : allOperateRuleItemListNode) - { - OperateRuleResult::OperateRuleItem operateRuleItemObject; - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].isNull()) - operateRuleItemObject.errorCode = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ErrorCode"].asString(); - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].isNull()) - operateRuleItemObject.success = operateRuleResultNodeOperateRuleItemListOperateRuleItem["Success"].asString() == "true"; - if(!operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].isNull()) - operateRuleItemObject.configRuleId = operateRuleResultNodeOperateRuleItemListOperateRuleItem["ConfigRuleId"].asString(); - operateRuleResult_.operateRuleItemList.push_back(operateRuleItemObject); - } - -} - -DetachConfigRuleToCompliancePackResult::OperateRuleResult DetachConfigRuleToCompliancePackResult::getOperateRuleResult()const -{ - return operateRuleResult_; -} - diff --git a/config/src/model/GenerateAggregateCompliancePackReportRequest.cc b/config/src/model/GenerateAggregateCompliancePackReportRequest.cc deleted file mode 100644 index 3a148a745..000000000 --- a/config/src/model/GenerateAggregateCompliancePackReportRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GenerateAggregateCompliancePackReportRequest; - -GenerateAggregateCompliancePackReportRequest::GenerateAggregateCompliancePackReportRequest() - : RpcServiceRequest("config", "2020-09-07", "GenerateAggregateCompliancePackReport") { - setMethod(HttpRequest::Method::Post); -} - -GenerateAggregateCompliancePackReportRequest::~GenerateAggregateCompliancePackReportRequest() {} - -std::string GenerateAggregateCompliancePackReportRequest::getClientToken() const { - return clientToken_; -} - -void GenerateAggregateCompliancePackReportRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string GenerateAggregateCompliancePackReportRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GenerateAggregateCompliancePackReportRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setBodyParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string GenerateAggregateCompliancePackReportRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void GenerateAggregateCompliancePackReportRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setBodyParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/GenerateAggregateCompliancePackReportResult.cc b/config/src/model/GenerateAggregateCompliancePackReportResult.cc deleted file mode 100644 index 156a3ebcd..000000000 --- a/config/src/model/GenerateAggregateCompliancePackReportResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GenerateAggregateCompliancePackReportResult::GenerateAggregateCompliancePackReportResult() : - ServiceResult() -{} - -GenerateAggregateCompliancePackReportResult::GenerateAggregateCompliancePackReportResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GenerateAggregateCompliancePackReportResult::~GenerateAggregateCompliancePackReportResult() -{} - -void GenerateAggregateCompliancePackReportResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["CompliancePackId"].isNull()) - compliancePackId_ = value["CompliancePackId"].asString(); - -} - -std::string GenerateAggregateCompliancePackReportResult::getCompliancePackId()const -{ - return compliancePackId_; -} - diff --git a/config/src/model/GenerateAggregateConfigRulesReportRequest.cc b/config/src/model/GenerateAggregateConfigRulesReportRequest.cc deleted file mode 100644 index 1a7ebe77d..000000000 --- a/config/src/model/GenerateAggregateConfigRulesReportRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GenerateAggregateConfigRulesReportRequest; - -GenerateAggregateConfigRulesReportRequest::GenerateAggregateConfigRulesReportRequest() - : RpcServiceRequest("config", "2020-09-07", "GenerateAggregateConfigRulesReport") { - setMethod(HttpRequest::Method::Post); -} - -GenerateAggregateConfigRulesReportRequest::~GenerateAggregateConfigRulesReportRequest() {} - -std::string GenerateAggregateConfigRulesReportRequest::getClientToken() const { - return clientToken_; -} - -void GenerateAggregateConfigRulesReportRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string GenerateAggregateConfigRulesReportRequest::getConfigRuleIds() const { - return configRuleIds_; -} - -void GenerateAggregateConfigRulesReportRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setBodyParameter(std::string("ConfigRuleIds"), configRuleIds); -} - -std::string GenerateAggregateConfigRulesReportRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GenerateAggregateConfigRulesReportRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setBodyParameter(std::string("AggregatorId"), aggregatorId); -} - diff --git a/config/src/model/GenerateAggregateConfigRulesReportResult.cc b/config/src/model/GenerateAggregateConfigRulesReportResult.cc deleted file mode 100644 index 33175c52a..000000000 --- a/config/src/model/GenerateAggregateConfigRulesReportResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GenerateAggregateConfigRulesReportResult::GenerateAggregateConfigRulesReportResult() : - ServiceResult() -{} - -GenerateAggregateConfigRulesReportResult::GenerateAggregateConfigRulesReportResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GenerateAggregateConfigRulesReportResult::~GenerateAggregateConfigRulesReportResult() -{} - -void GenerateAggregateConfigRulesReportResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["AggregatorId"].isNull()) - aggregatorId_ = value["AggregatorId"].asString(); - if(!value["ReportId"].isNull()) - reportId_ = value["ReportId"].asString(); - -} - -std::string GenerateAggregateConfigRulesReportResult::getReportId()const -{ - return reportId_; -} - -std::string GenerateAggregateConfigRulesReportResult::getAggregatorId()const -{ - return aggregatorId_; -} - diff --git a/config/src/model/GenerateCompliancePackReportRequest.cc b/config/src/model/GenerateCompliancePackReportRequest.cc deleted file mode 100644 index e10c6a97a..000000000 --- a/config/src/model/GenerateCompliancePackReportRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GenerateCompliancePackReportRequest; - -GenerateCompliancePackReportRequest::GenerateCompliancePackReportRequest() - : RpcServiceRequest("config", "2020-09-07", "GenerateCompliancePackReport") { - setMethod(HttpRequest::Method::Post); -} - -GenerateCompliancePackReportRequest::~GenerateCompliancePackReportRequest() {} - -std::string GenerateCompliancePackReportRequest::getClientToken() const { - return clientToken_; -} - -void GenerateCompliancePackReportRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string GenerateCompliancePackReportRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void GenerateCompliancePackReportRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setBodyParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/GenerateCompliancePackReportResult.cc b/config/src/model/GenerateCompliancePackReportResult.cc deleted file mode 100644 index 77141a446..000000000 --- a/config/src/model/GenerateCompliancePackReportResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GenerateCompliancePackReportResult::GenerateCompliancePackReportResult() : - ServiceResult() -{} - -GenerateCompliancePackReportResult::GenerateCompliancePackReportResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GenerateCompliancePackReportResult::~GenerateCompliancePackReportResult() -{} - -void GenerateCompliancePackReportResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["CompliancePackId"].isNull()) - compliancePackId_ = value["CompliancePackId"].asString(); - -} - -std::string GenerateCompliancePackReportResult::getCompliancePackId()const -{ - return compliancePackId_; -} - diff --git a/config/src/model/GenerateConfigRulesReportRequest.cc b/config/src/model/GenerateConfigRulesReportRequest.cc deleted file mode 100644 index d5c5273d0..000000000 --- a/config/src/model/GenerateConfigRulesReportRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GenerateConfigRulesReportRequest; - -GenerateConfigRulesReportRequest::GenerateConfigRulesReportRequest() - : RpcServiceRequest("config", "2020-09-07", "GenerateConfigRulesReport") { - setMethod(HttpRequest::Method::Post); -} - -GenerateConfigRulesReportRequest::~GenerateConfigRulesReportRequest() {} - -std::string GenerateConfigRulesReportRequest::getClientToken() const { - return clientToken_; -} - -void GenerateConfigRulesReportRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string GenerateConfigRulesReportRequest::getConfigRuleIds() const { - return configRuleIds_; -} - -void GenerateConfigRulesReportRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setBodyParameter(std::string("ConfigRuleIds"), configRuleIds); -} - diff --git a/config/src/model/GetAggregateAccountComplianceByPackRequest.cc b/config/src/model/GetAggregateAccountComplianceByPackRequest.cc deleted file mode 100644 index 81db52ed6..000000000 --- a/config/src/model/GetAggregateAccountComplianceByPackRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateAccountComplianceByPackRequest; - -GetAggregateAccountComplianceByPackRequest::GetAggregateAccountComplianceByPackRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateAccountComplianceByPack") { - setMethod(HttpRequest::Method::Get); -} - -GetAggregateAccountComplianceByPackRequest::~GetAggregateAccountComplianceByPackRequest() {} - -std::string GetAggregateAccountComplianceByPackRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateAccountComplianceByPackRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string GetAggregateAccountComplianceByPackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void GetAggregateAccountComplianceByPackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/GetAggregateAccountComplianceByPackResult.cc b/config/src/model/GetAggregateAccountComplianceByPackResult.cc deleted file mode 100644 index 55684b294..000000000 --- a/config/src/model/GetAggregateAccountComplianceByPackResult.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateAccountComplianceByPackResult::GetAggregateAccountComplianceByPackResult() : - ServiceResult() -{} - -GetAggregateAccountComplianceByPackResult::GetAggregateAccountComplianceByPackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateAccountComplianceByPackResult::~GetAggregateAccountComplianceByPackResult() -{} - -void GetAggregateAccountComplianceByPackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto accountComplianceResultNode = value["AccountComplianceResult"]; - if(!accountComplianceResultNode["CompliancePackId"].isNull()) - accountComplianceResult_.compliancePackId = accountComplianceResultNode["CompliancePackId"].asString(); - if(!accountComplianceResultNode["NonCompliantCount"].isNull()) - accountComplianceResult_.nonCompliantCount = std::stoi(accountComplianceResultNode["NonCompliantCount"].asString()); - if(!accountComplianceResultNode["TotalCount"].isNull()) - accountComplianceResult_.totalCount = std::stoi(accountComplianceResultNode["TotalCount"].asString()); - auto allAccountCompliancesNode = accountComplianceResultNode["AccountCompliances"]["AccountCompliancesItem"]; - for (auto accountComplianceResultNodeAccountCompliancesAccountCompliancesItem : allAccountCompliancesNode) - { - AccountComplianceResult::AccountCompliancesItem accountCompliancesItemObject; - if(!accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["ComplianceType"].isNull()) - accountCompliancesItemObject.complianceType = accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["ComplianceType"].asString(); - if(!accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["AccountId"].isNull()) - accountCompliancesItemObject.accountId = std::stol(accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["AccountId"].asString()); - if(!accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["AccountName"].isNull()) - accountCompliancesItemObject.accountName = accountComplianceResultNodeAccountCompliancesAccountCompliancesItem["AccountName"].asString(); - accountComplianceResult_.accountCompliances.push_back(accountCompliancesItemObject); - } - -} - -GetAggregateAccountComplianceByPackResult::AccountComplianceResult GetAggregateAccountComplianceByPackResult::getAccountComplianceResult()const -{ - return accountComplianceResult_; -} - diff --git a/config/src/model/GetAggregateCompliancePackReportRequest.cc b/config/src/model/GetAggregateCompliancePackReportRequest.cc deleted file mode 100644 index 2e7df2a74..000000000 --- a/config/src/model/GetAggregateCompliancePackReportRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateCompliancePackReportRequest; - -GetAggregateCompliancePackReportRequest::GetAggregateCompliancePackReportRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateCompliancePackReport") { - setMethod(HttpRequest::Method::Get); -} - -GetAggregateCompliancePackReportRequest::~GetAggregateCompliancePackReportRequest() {} - -std::string GetAggregateCompliancePackReportRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateCompliancePackReportRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string GetAggregateCompliancePackReportRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void GetAggregateCompliancePackReportRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/GetAggregateCompliancePackReportResult.cc b/config/src/model/GetAggregateCompliancePackReportResult.cc deleted file mode 100644 index 0c954954f..000000000 --- a/config/src/model/GetAggregateCompliancePackReportResult.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateCompliancePackReportResult::GetAggregateCompliancePackReportResult() : - ServiceResult() -{} - -GetAggregateCompliancePackReportResult::GetAggregateCompliancePackReportResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateCompliancePackReportResult::~GetAggregateCompliancePackReportResult() -{} - -void GetAggregateCompliancePackReportResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto compliancePackReportNode = value["CompliancePackReport"]; - if(!compliancePackReportNode["ReportUrl"].isNull()) - compliancePackReport_.reportUrl = compliancePackReportNode["ReportUrl"].asString(); - if(!compliancePackReportNode["ReportStatus"].isNull()) - compliancePackReport_.reportStatus = compliancePackReportNode["ReportStatus"].asString(); - if(!compliancePackReportNode["CompliancePackId"].isNull()) - compliancePackReport_.compliancePackId = compliancePackReportNode["CompliancePackId"].asString(); - if(!compliancePackReportNode["AccountId"].isNull()) - compliancePackReport_.accountId = std::stol(compliancePackReportNode["AccountId"].asString()); - if(!compliancePackReportNode["ReportCreateTimestamp"].isNull()) - compliancePackReport_.reportCreateTimestamp = std::stol(compliancePackReportNode["ReportCreateTimestamp"].asString()); - -} - -GetAggregateCompliancePackReportResult::CompliancePackReport GetAggregateCompliancePackReportResult::getCompliancePackReport()const -{ - return compliancePackReport_; -} - diff --git a/config/src/model/GetAggregateCompliancePackRequest.cc b/config/src/model/GetAggregateCompliancePackRequest.cc deleted file mode 100644 index 127b66b9d..000000000 --- a/config/src/model/GetAggregateCompliancePackRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateCompliancePackRequest; - -GetAggregateCompliancePackRequest::GetAggregateCompliancePackRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateCompliancePack") { - setMethod(HttpRequest::Method::Get); -} - -GetAggregateCompliancePackRequest::~GetAggregateCompliancePackRequest() {} - -std::string GetAggregateCompliancePackRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string GetAggregateCompliancePackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void GetAggregateCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/GetAggregateCompliancePackResult.cc b/config/src/model/GetAggregateCompliancePackResult.cc deleted file mode 100644 index 96dc58d0f..000000000 --- a/config/src/model/GetAggregateCompliancePackResult.cc +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateCompliancePackResult::GetAggregateCompliancePackResult() : - ServiceResult() -{} - -GetAggregateCompliancePackResult::GetAggregateCompliancePackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateCompliancePackResult::~GetAggregateCompliancePackResult() -{} - -void GetAggregateCompliancePackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto compliancePackNode = value["CompliancePack"]; - if(!compliancePackNode["Status"].isNull()) - compliancePack_.status = compliancePackNode["Status"].asString(); - if(!compliancePackNode["RiskLevel"].isNull()) - compliancePack_.riskLevel = std::stoi(compliancePackNode["RiskLevel"].asString()); - if(!compliancePackNode["CompliancePackId"].isNull()) - compliancePack_.compliancePackId = compliancePackNode["CompliancePackId"].asString(); - if(!compliancePackNode["Description"].isNull()) - compliancePack_.description = compliancePackNode["Description"].asString(); - if(!compliancePackNode["CompliancePackName"].isNull()) - compliancePack_.compliancePackName = compliancePackNode["CompliancePackName"].asString(); - if(!compliancePackNode["AccountId"].isNull()) - compliancePack_.accountId = std::stol(compliancePackNode["AccountId"].asString()); - if(!compliancePackNode["AggregatorId"].isNull()) - compliancePack_.aggregatorId = compliancePackNode["AggregatorId"].asString(); - if(!compliancePackNode["CompliancePackTemplateId"].isNull()) - compliancePack_.compliancePackTemplateId = compliancePackNode["CompliancePackTemplateId"].asString(); - if(!compliancePackNode["CreateTimestamp"].isNull()) - compliancePack_.createTimestamp = std::stol(compliancePackNode["CreateTimestamp"].asString()); - auto allConfigRulesNode = compliancePackNode["ConfigRules"]["ConfigRulesItem"]; - for (auto compliancePackNodeConfigRulesConfigRulesItem : allConfigRulesNode) - { - CompliancePack::ConfigRulesItem configRulesItemObject; - if(!compliancePackNodeConfigRulesConfigRulesItem["ManagedRuleIdentifier"].isNull()) - configRulesItemObject.managedRuleIdentifier = compliancePackNodeConfigRulesConfigRulesItem["ManagedRuleIdentifier"].asString(); - if(!compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleName"].isNull()) - configRulesItemObject.configRuleName = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleName"].asString(); - if(!compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleId"].isNull()) - configRulesItemObject.configRuleId = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleId"].asString(); - if(!compliancePackNodeConfigRulesConfigRulesItem["Description"].isNull()) - configRulesItemObject.description = compliancePackNodeConfigRulesConfigRulesItem["Description"].asString(); - if(!compliancePackNodeConfigRulesConfigRulesItem["RiskLevel"].isNull()) - configRulesItemObject.riskLevel = std::stoi(compliancePackNodeConfigRulesConfigRulesItem["RiskLevel"].asString()); - auto allConfigRuleParametersNode = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleParameters"]["ConfigRuleParametersItem"]; - for (auto compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem : allConfigRuleParametersNode) - { - CompliancePack::ConfigRulesItem::ConfigRuleParametersItem configRuleParametersObject; - if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].isNull()) - configRuleParametersObject.required = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].asString() == "true"; - if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].isNull()) - configRuleParametersObject.parameterName = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].asString(); - if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].isNull()) - configRuleParametersObject.parameterValue = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].asString(); - configRulesItemObject.configRuleParameters.push_back(configRuleParametersObject); - } - compliancePack_.configRules.push_back(configRulesItemObject); - } - -} - -GetAggregateCompliancePackResult::CompliancePack GetAggregateCompliancePackResult::getCompliancePack()const -{ - return compliancePack_; -} - diff --git a/config/src/model/GetAggregateConfigDeliveryChannelRequest.cc b/config/src/model/GetAggregateConfigDeliveryChannelRequest.cc deleted file mode 100644 index 6a4502a54..000000000 --- a/config/src/model/GetAggregateConfigDeliveryChannelRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateConfigDeliveryChannelRequest; - -GetAggregateConfigDeliveryChannelRequest::GetAggregateConfigDeliveryChannelRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigDeliveryChannel") { - setMethod(HttpRequest::Method::Post); -} - -GetAggregateConfigDeliveryChannelRequest::~GetAggregateConfigDeliveryChannelRequest() {} - -std::string GetAggregateConfigDeliveryChannelRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string GetAggregateConfigDeliveryChannelRequest::getDeliveryChannelId() const { - return deliveryChannelId_; -} - -void GetAggregateConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { - deliveryChannelId_ = deliveryChannelId; - setParameter(std::string("DeliveryChannelId"), deliveryChannelId); -} - diff --git a/config/src/model/GetAggregateConfigDeliveryChannelResult.cc b/config/src/model/GetAggregateConfigDeliveryChannelResult.cc deleted file mode 100644 index 3bd83ffd6..000000000 --- a/config/src/model/GetAggregateConfigDeliveryChannelResult.cc +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateConfigDeliveryChannelResult::GetAggregateConfigDeliveryChannelResult() : - ServiceResult() -{} - -GetAggregateConfigDeliveryChannelResult::GetAggregateConfigDeliveryChannelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateConfigDeliveryChannelResult::~GetAggregateConfigDeliveryChannelResult() -{} - -void GetAggregateConfigDeliveryChannelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto deliveryChannelNode = value["DeliveryChannel"]; - if(!deliveryChannelNode["Status"].isNull()) - deliveryChannel_.status = std::stoi(deliveryChannelNode["Status"].asString()); - if(!deliveryChannelNode["DeliveryChannelId"].isNull()) - deliveryChannel_.deliveryChannelId = deliveryChannelNode["DeliveryChannelId"].asString(); - if(!deliveryChannelNode["DeliveryChannelName"].isNull()) - deliveryChannel_.deliveryChannelName = deliveryChannelNode["DeliveryChannelName"].asString(); - if(!deliveryChannelNode["DeliveryChannelType"].isNull()) - deliveryChannel_.deliveryChannelType = deliveryChannelNode["DeliveryChannelType"].asString(); - if(!deliveryChannelNode["DeliveryChannelTargetArn"].isNull()) - deliveryChannel_.deliveryChannelTargetArn = deliveryChannelNode["DeliveryChannelTargetArn"].asString(); - if(!deliveryChannelNode["DeliveryChannelAssumeRoleArn"].isNull()) - deliveryChannel_.deliveryChannelAssumeRoleArn = deliveryChannelNode["DeliveryChannelAssumeRoleArn"].asString(); - if(!deliveryChannelNode["DeliveryChannelCondition"].isNull()) - deliveryChannel_.deliveryChannelCondition = deliveryChannelNode["DeliveryChannelCondition"].asString(); - if(!deliveryChannelNode["OversizedDataOSSTargetArn"].isNull()) - deliveryChannel_.oversizedDataOSSTargetArn = deliveryChannelNode["OversizedDataOSSTargetArn"].asString(); - if(!deliveryChannelNode["Description"].isNull()) - deliveryChannel_.description = deliveryChannelNode["Description"].asString(); - if(!deliveryChannelNode["ConfigurationSnapshot"].isNull()) - deliveryChannel_.configurationSnapshot = deliveryChannelNode["ConfigurationSnapshot"].asString() == "true"; - if(!deliveryChannelNode["ConfigurationItemChangeNotification"].isNull()) - deliveryChannel_.configurationItemChangeNotification = deliveryChannelNode["ConfigurationItemChangeNotification"].asString() == "true"; - if(!deliveryChannelNode["NonCompliantNotification"].isNull()) - deliveryChannel_.nonCompliantNotification = deliveryChannelNode["NonCompliantNotification"].asString() == "true"; - if(!deliveryChannelNode["AggregatorId"].isNull()) - deliveryChannel_.aggregatorId = deliveryChannelNode["AggregatorId"].asString(); - if(!deliveryChannelNode["AccountId"].isNull()) - deliveryChannel_.accountId = deliveryChannelNode["AccountId"].asString(); - -} - -GetAggregateConfigDeliveryChannelResult::DeliveryChannel GetAggregateConfigDeliveryChannelResult::getDeliveryChannel()const -{ - return deliveryChannel_; -} - diff --git a/config/src/model/GetAggregateConfigRuleComplianceByPackRequest.cc b/config/src/model/GetAggregateConfigRuleComplianceByPackRequest.cc deleted file mode 100644 index 018745ee7..000000000 --- a/config/src/model/GetAggregateConfigRuleComplianceByPackRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateConfigRuleComplianceByPackRequest; - -GetAggregateConfigRuleComplianceByPackRequest::GetAggregateConfigRuleComplianceByPackRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRuleComplianceByPack") { - setMethod(HttpRequest::Method::Get); -} - -GetAggregateConfigRuleComplianceByPackRequest::~GetAggregateConfigRuleComplianceByPackRequest() {} - -std::string GetAggregateConfigRuleComplianceByPackRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateConfigRuleComplianceByPackRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string GetAggregateConfigRuleComplianceByPackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void GetAggregateConfigRuleComplianceByPackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/GetAggregateConfigRuleComplianceByPackResult.cc b/config/src/model/GetAggregateConfigRuleComplianceByPackResult.cc deleted file mode 100644 index d328a0f34..000000000 --- a/config/src/model/GetAggregateConfigRuleComplianceByPackResult.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateConfigRuleComplianceByPackResult::GetAggregateConfigRuleComplianceByPackResult() : - ServiceResult() -{} - -GetAggregateConfigRuleComplianceByPackResult::GetAggregateConfigRuleComplianceByPackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateConfigRuleComplianceByPackResult::~GetAggregateConfigRuleComplianceByPackResult() -{} - -void GetAggregateConfigRuleComplianceByPackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto configRuleComplianceResultNode = value["ConfigRuleComplianceResult"]; - if(!configRuleComplianceResultNode["CompliancePackId"].isNull()) - configRuleComplianceResult_.compliancePackId = configRuleComplianceResultNode["CompliancePackId"].asString(); - if(!configRuleComplianceResultNode["NonCompliantCount"].isNull()) - configRuleComplianceResult_.nonCompliantCount = std::stoi(configRuleComplianceResultNode["NonCompliantCount"].asString()); - if(!configRuleComplianceResultNode["TotalCount"].isNull()) - configRuleComplianceResult_.totalCount = std::stoi(configRuleComplianceResultNode["TotalCount"].asString()); - auto allConfigRuleCompliancesNode = configRuleComplianceResultNode["ConfigRuleCompliances"]["ConfigRuleCompliancesItem"]; - for (auto configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem : allConfigRuleCompliancesNode) - { - ConfigRuleComplianceResult::ConfigRuleCompliancesItem configRuleCompliancesItemObject; - if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ComplianceType"].isNull()) - configRuleCompliancesItemObject.complianceType = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ComplianceType"].asString(); - if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleName"].isNull()) - configRuleCompliancesItemObject.configRuleName = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleName"].asString(); - if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleId"].isNull()) - configRuleCompliancesItemObject.configRuleId = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleId"].asString(); - configRuleComplianceResult_.configRuleCompliances.push_back(configRuleCompliancesItemObject); - } - -} - -GetAggregateConfigRuleComplianceByPackResult::ConfigRuleComplianceResult GetAggregateConfigRuleComplianceByPackResult::getConfigRuleComplianceResult()const -{ - return configRuleComplianceResult_; -} - diff --git a/config/src/model/GetAggregateConfigRuleRequest.cc b/config/src/model/GetAggregateConfigRuleRequest.cc deleted file mode 100644 index 5906c35e8..000000000 --- a/config/src/model/GetAggregateConfigRuleRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateConfigRuleRequest; - -GetAggregateConfigRuleRequest::GetAggregateConfigRuleRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRule") { - setMethod(HttpRequest::Method::Post); -} - -GetAggregateConfigRuleRequest::~GetAggregateConfigRuleRequest() {} - -std::string GetAggregateConfigRuleRequest::getConfigRuleId() const { - return configRuleId_; -} - -void GetAggregateConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setParameter(std::string("ConfigRuleId"), configRuleId); -} - -std::string GetAggregateConfigRuleRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateConfigRuleRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - diff --git a/config/src/model/GetAggregateConfigRuleResult.cc b/config/src/model/GetAggregateConfigRuleResult.cc deleted file mode 100644 index 6b79dd3ad..000000000 --- a/config/src/model/GetAggregateConfigRuleResult.cc +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateConfigRuleResult::GetAggregateConfigRuleResult() : - ServiceResult() -{} - -GetAggregateConfigRuleResult::GetAggregateConfigRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateConfigRuleResult::~GetAggregateConfigRuleResult() -{} - -void GetAggregateConfigRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto configRuleNode = value["ConfigRule"]; - if(!configRuleNode["RiskLevel"].isNull()) - configRule_.riskLevel = std::stoi(configRuleNode["RiskLevel"].asString()); - if(!configRuleNode["InputParameters"].isNull()) - configRule_.inputParameters = configRuleNode["InputParameters"].asString(); - if(!configRuleNode["ConfigRuleState"].isNull()) - configRule_.configRuleState = configRuleNode["ConfigRuleState"].asString(); - if(!configRuleNode["MaximumExecutionFrequency"].isNull()) - configRule_.maximumExecutionFrequency = configRuleNode["MaximumExecutionFrequency"].asString(); - if(!configRuleNode["ConfigRuleArn"].isNull()) - configRule_.configRuleArn = configRuleNode["ConfigRuleArn"].asString(); - if(!configRuleNode["Description"].isNull()) - configRule_.description = configRuleNode["Description"].asString(); - if(!configRuleNode["ConfigRuleName"].isNull()) - configRule_.configRuleName = configRuleNode["ConfigRuleName"].asString(); - if(!configRuleNode["ConfigRuleId"].isNull()) - configRule_.configRuleId = configRuleNode["ConfigRuleId"].asString(); - if(!configRuleNode["ModifiedTimestamp"].isNull()) - configRule_.modifiedTimestamp = std::stol(configRuleNode["ModifiedTimestamp"].asString()); - if(!configRuleNode["CreateTimestamp"].isNull()) - configRule_.createTimestamp = std::stol(configRuleNode["CreateTimestamp"].asString()); - if(!configRuleNode["ResourceTypesScope"].isNull()) - configRule_.resourceTypesScope = configRuleNode["ResourceTypesScope"].asString(); - if(!configRuleNode["RegionIdsScope"].isNull()) - configRule_.regionIdsScope = configRuleNode["RegionIdsScope"].asString(); - if(!configRuleNode["ExcludeResourceIdsScope"].isNull()) - configRule_.excludeResourceIdsScope = configRuleNode["ExcludeResourceIdsScope"].asString(); - if(!configRuleNode["ResourceGroupIdsScope"].isNull()) - configRule_.resourceGroupIdsScope = configRuleNode["ResourceGroupIdsScope"].asString(); - if(!configRuleNode["TagKeyScope"].isNull()) - configRule_.tagKeyScope = configRuleNode["TagKeyScope"].asString(); - if(!configRuleNode["TagValueScope"].isNull()) - configRule_.tagValueScope = configRuleNode["TagValueScope"].asString(); - if(!configRuleNode["ConfigRuleTriggerTypes"].isNull()) - configRule_.configRuleTriggerTypes = configRuleNode["ConfigRuleTriggerTypes"].asString(); - if(!configRuleNode["TagKeyLogicScope"].isNull()) - configRule_.tagKeyLogicScope = configRuleNode["TagKeyLogicScope"].asString(); - if(!configRuleNode["FolderIdsScope"].isNull()) - configRule_.folderIdsScope = configRuleNode["FolderIdsScope"].asString(); - if(!configRuleNode["ExcludeFolderIdsScope"].isNull()) - configRule_.excludeFolderIdsScope = configRuleNode["ExcludeFolderIdsScope"].asString(); - if(!configRuleNode["ExcludeAccountIdsScope"].isNull()) - configRule_.excludeAccountIdsScope = configRuleNode["ExcludeAccountIdsScope"].asString(); - if(!configRuleNode["AccountId"].isNull()) - configRule_.accountId = std::stol(configRuleNode["AccountId"].asString()); - auto sourceNode = configRuleNode["Source"]; - if(!sourceNode["Owner"].isNull()) - configRule_.source.owner = sourceNode["Owner"].asString(); - if(!sourceNode["Identifier"].isNull()) - configRule_.source.identifier = sourceNode["Identifier"].asString(); - auto allSourceDetailsNode = sourceNode["SourceDetails"]["SourceDetailsItem"]; - for (auto sourceNodeSourceDetailsSourceDetailsItem : allSourceDetailsNode) - { - ConfigRule::Source::SourceDetailsItem sourceDetailsItemObject; - if(!sourceNodeSourceDetailsSourceDetailsItem["MessageType"].isNull()) - sourceDetailsItemObject.messageType = sourceNodeSourceDetailsSourceDetailsItem["MessageType"].asString(); - if(!sourceNodeSourceDetailsSourceDetailsItem["EventSource"].isNull()) - sourceDetailsItemObject.eventSource = sourceNodeSourceDetailsSourceDetailsItem["EventSource"].asString(); - if(!sourceNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].isNull()) - sourceDetailsItemObject.maximumExecutionFrequency = sourceNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString(); - configRule_.source.sourceDetails.push_back(sourceDetailsItemObject); - } - auto allSourceConditions = sourceNode["SourceConditions"]["SourceConditions"]; - for (auto value : allSourceConditions) - configRule_.source.sourceConditions.push_back(value.asString()); - auto managedRuleNode = configRuleNode["ManagedRule"]; - if(!managedRuleNode["HelpUrl"].isNull()) - configRule_.managedRule.helpUrl = managedRuleNode["HelpUrl"].asString(); - if(!managedRuleNode["Description"].isNull()) - configRule_.managedRule.description = managedRuleNode["Description"].asString(); - if(!managedRuleNode["Identifier"].isNull()) - configRule_.managedRule.identifier = managedRuleNode["Identifier"].asString(); - if(!managedRuleNode["OptionalInputParameterDetails"].isNull()) - configRule_.managedRule.optionalInputParameterDetails = managedRuleNode["OptionalInputParameterDetails"].asString(); - if(!managedRuleNode["ManagedRuleName"].isNull()) - configRule_.managedRule.managedRuleName = managedRuleNode["ManagedRuleName"].asString(); - if(!managedRuleNode["CompulsoryInputParameterDetails"].isNull()) - configRule_.managedRule.compulsoryInputParameterDetails = managedRuleNode["CompulsoryInputParameterDetails"].asString(); - auto allSourceDetails1Node = managedRuleNode["SourceDetails"]["SourceDetailsItem"]; - for (auto managedRuleNodeSourceDetailsSourceDetailsItem : allSourceDetails1Node) - { - ConfigRule::ManagedRule::SourceDetailsItem2 sourceDetailsItem2Object; - if(!managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].isNull()) - sourceDetailsItem2Object.messageType = managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].asString(); - if(!managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].isNull()) - sourceDetailsItem2Object.eventSource = managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].asString(); - if(!managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].isNull()) - sourceDetailsItem2Object.maximumExecutionFrequency = managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString(); - configRule_.managedRule.sourceDetails1.push_back(sourceDetailsItem2Object); - } - auto allLabels = managedRuleNode["Labels"]["Labels"]; - for (auto value : allLabels) - configRule_.managedRule.labels.push_back(value.asString()); - auto createByNode = configRuleNode["CreateBy"]; - if(!createByNode["CompliancePackId"].isNull()) - configRule_.createBy.compliancePackId = createByNode["CompliancePackId"].asString(); - if(!createByNode["AggregatorName"].isNull()) - configRule_.createBy.aggregatorName = createByNode["AggregatorName"].asString(); - if(!createByNode["CompliancePackName"].isNull()) - configRule_.createBy.compliancePackName = createByNode["CompliancePackName"].asString(); - if(!createByNode["CreatorName"].isNull()) - configRule_.createBy.creatorName = createByNode["CreatorName"].asString(); - if(!createByNode["CreatorType"].isNull()) - configRule_.createBy.creatorType = createByNode["CreatorType"].asString(); - if(!createByNode["CreatorId"].isNull()) - configRule_.createBy.creatorId = createByNode["CreatorId"].asString(); - if(!createByNode["AggregatorId"].isNull()) - configRule_.createBy.aggregatorId = createByNode["AggregatorId"].asString(); - auto configRuleEvaluationStatusNode = configRuleNode["ConfigRuleEvaluationStatus"]; - if(!configRuleEvaluationStatusNode["LastErrorCode"].isNull()) - configRule_.configRuleEvaluationStatus.lastErrorCode = configRuleEvaluationStatusNode["LastErrorCode"].asString(); - if(!configRuleEvaluationStatusNode["LastSuccessfulEvaluationTimestamp"].isNull()) - configRule_.configRuleEvaluationStatus.lastSuccessfulEvaluationTimestamp = std::stol(configRuleEvaluationStatusNode["LastSuccessfulEvaluationTimestamp"].asString()); - if(!configRuleEvaluationStatusNode["FirstActivatedTimestamp"].isNull()) - configRule_.configRuleEvaluationStatus.firstActivatedTimestamp = std::stol(configRuleEvaluationStatusNode["FirstActivatedTimestamp"].asString()); - if(!configRuleEvaluationStatusNode["FirstEvaluationStarted"].isNull()) - configRule_.configRuleEvaluationStatus.firstEvaluationStarted = configRuleEvaluationStatusNode["FirstEvaluationStarted"].asString() == "true"; - if(!configRuleEvaluationStatusNode["LastSuccessfulInvocationTimestamp"].isNull()) - configRule_.configRuleEvaluationStatus.lastSuccessfulInvocationTimestamp = std::stol(configRuleEvaluationStatusNode["LastSuccessfulInvocationTimestamp"].asString()); - if(!configRuleEvaluationStatusNode["LastErrorMessage"].isNull()) - configRule_.configRuleEvaluationStatus.lastErrorMessage = configRuleEvaluationStatusNode["LastErrorMessage"].asString(); - if(!configRuleEvaluationStatusNode["LastFailedEvaluationTimestamp"].isNull()) - configRule_.configRuleEvaluationStatus.lastFailedEvaluationTimestamp = std::stol(configRuleEvaluationStatusNode["LastFailedEvaluationTimestamp"].asString()); - if(!configRuleEvaluationStatusNode["LastFailedInvocationTimestamp"].isNull()) - configRule_.configRuleEvaluationStatus.lastFailedInvocationTimestamp = std::stol(configRuleEvaluationStatusNode["LastFailedInvocationTimestamp"].asString()); - auto scopeNode = configRuleNode["Scope"]; - auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["ComplianceResourceTypes"]; - for (auto value : allComplianceResourceTypes) - configRule_.scope.complianceResourceTypes.push_back(value.asString()); - auto complianceNode = configRuleNode["Compliance"]; - if(!complianceNode["ComplianceType"].isNull()) - configRule_.compliance.complianceType = complianceNode["ComplianceType"].asString(); - if(!complianceNode["Count"].isNull()) - configRule_.compliance.count = std::stoi(complianceNode["Count"].asString()); - -} - -GetAggregateConfigRuleResult::ConfigRule GetAggregateConfigRuleResult::getConfigRule()const -{ - return configRule_; -} - diff --git a/config/src/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.cc b/config/src/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.cc deleted file mode 100644 index a85afa34f..000000000 --- a/config/src/model/GetAggregateConfigRuleSummaryByRiskLevelRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateConfigRuleSummaryByRiskLevelRequest; - -GetAggregateConfigRuleSummaryByRiskLevelRequest::GetAggregateConfigRuleSummaryByRiskLevelRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRuleSummaryByRiskLevel") { - setMethod(HttpRequest::Method::Get); -} - -GetAggregateConfigRuleSummaryByRiskLevelRequest::~GetAggregateConfigRuleSummaryByRiskLevelRequest() {} - -std::string GetAggregateConfigRuleSummaryByRiskLevelRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateConfigRuleSummaryByRiskLevelRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - diff --git a/config/src/model/GetAggregateConfigRuleSummaryByRiskLevelResult.cc b/config/src/model/GetAggregateConfigRuleSummaryByRiskLevelResult.cc deleted file mode 100644 index 911b86c6e..000000000 --- a/config/src/model/GetAggregateConfigRuleSummaryByRiskLevelResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateConfigRuleSummaryByRiskLevelResult::GetAggregateConfigRuleSummaryByRiskLevelResult() : - ServiceResult() -{} - -GetAggregateConfigRuleSummaryByRiskLevelResult::GetAggregateConfigRuleSummaryByRiskLevelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateConfigRuleSummaryByRiskLevelResult::~GetAggregateConfigRuleSummaryByRiskLevelResult() -{} - -void GetAggregateConfigRuleSummaryByRiskLevelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allConfigRuleSummariesNode = value["ConfigRuleSummaries"]["Data"]; - for (auto valueConfigRuleSummariesData : allConfigRuleSummariesNode) - { - Data configRuleSummariesObject; - if(!valueConfigRuleSummariesData["RiskLevel"].isNull()) - configRuleSummariesObject.riskLevel = std::stoi(valueConfigRuleSummariesData["RiskLevel"].asString()); - if(!valueConfigRuleSummariesData["CompliantCount"].isNull()) - configRuleSummariesObject.compliantCount = std::stoi(valueConfigRuleSummariesData["CompliantCount"].asString()); - if(!valueConfigRuleSummariesData["NonCompliantCount"].isNull()) - configRuleSummariesObject.nonCompliantCount = std::stoi(valueConfigRuleSummariesData["NonCompliantCount"].asString()); - configRuleSummaries_.push_back(configRuleSummariesObject); - } - -} - -std::vector GetAggregateConfigRuleSummaryByRiskLevelResult::getConfigRuleSummaries()const -{ - return configRuleSummaries_; -} - diff --git a/config/src/model/GetAggregateConfigRulesReportRequest.cc b/config/src/model/GetAggregateConfigRulesReportRequest.cc deleted file mode 100644 index 92ca9985a..000000000 --- a/config/src/model/GetAggregateConfigRulesReportRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateConfigRulesReportRequest; - -GetAggregateConfigRulesReportRequest::GetAggregateConfigRulesReportRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateConfigRulesReport") { - setMethod(HttpRequest::Method::Post); -} - -GetAggregateConfigRulesReportRequest::~GetAggregateConfigRulesReportRequest() {} - -std::string GetAggregateConfigRulesReportRequest::getReportId() const { - return reportId_; -} - -void GetAggregateConfigRulesReportRequest::setReportId(const std::string &reportId) { - reportId_ = reportId; - setParameter(std::string("ReportId"), reportId); -} - -std::string GetAggregateConfigRulesReportRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateConfigRulesReportRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - diff --git a/config/src/model/GetAggregateConfigRulesReportResult.cc b/config/src/model/GetAggregateConfigRulesReportResult.cc deleted file mode 100644 index badc8a3ed..000000000 --- a/config/src/model/GetAggregateConfigRulesReportResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateConfigRulesReportResult::GetAggregateConfigRulesReportResult() : - ServiceResult() -{} - -GetAggregateConfigRulesReportResult::GetAggregateConfigRulesReportResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateConfigRulesReportResult::~GetAggregateConfigRulesReportResult() -{} - -void GetAggregateConfigRulesReportResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto configRulesReportNode = value["ConfigRulesReport"]; - if(!configRulesReportNode["ReportUrl"].isNull()) - configRulesReport_.reportUrl = configRulesReportNode["ReportUrl"].asString(); - if(!configRulesReportNode["ReportStatus"].isNull()) - configRulesReport_.reportStatus = configRulesReportNode["ReportStatus"].asString(); - if(!configRulesReportNode["AccountId"].isNull()) - configRulesReport_.accountId = std::stol(configRulesReportNode["AccountId"].asString()); - if(!configRulesReportNode["AggregatorId"].isNull()) - configRulesReport_.aggregatorId = configRulesReportNode["AggregatorId"].asString(); - if(!configRulesReportNode["ReportCreateTimestamp"].isNull()) - configRulesReport_.reportCreateTimestamp = std::stol(configRulesReportNode["ReportCreateTimestamp"].asString()); - if(!configRulesReportNode["ReportId"].isNull()) - configRulesReport_.reportId = configRulesReportNode["ReportId"].asString(); - -} - -GetAggregateConfigRulesReportResult::ConfigRulesReport GetAggregateConfigRulesReportResult::getConfigRulesReport()const -{ - return configRulesReport_; -} - diff --git a/config/src/model/GetAggregateDiscoveredResourceRequest.cc b/config/src/model/GetAggregateDiscoveredResourceRequest.cc index 58a9853b6..7087638b5 100644 --- a/config/src/model/GetAggregateDiscoveredResourceRequest.cc +++ b/config/src/model/GetAggregateDiscoveredResourceRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Config::Model::GetAggregateDiscoveredResourceRequest; GetAggregateDiscoveredResourceRequest::GetAggregateDiscoveredResourceRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateDiscoveredResource") { + : RpcServiceRequest("config", "2019-01-08", "GetAggregateDiscoveredResource") { setMethod(HttpRequest::Method::Get); } diff --git a/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc b/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc deleted file mode 100644 index 1dca64564..000000000 --- a/config/src/model/GetAggregateResourceComplianceByConfigRuleRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateResourceComplianceByConfigRuleRequest; - -GetAggregateResourceComplianceByConfigRuleRequest::GetAggregateResourceComplianceByConfigRuleRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceComplianceByConfigRule") { - setMethod(HttpRequest::Method::Post); -} - -GetAggregateResourceComplianceByConfigRuleRequest::~GetAggregateResourceComplianceByConfigRuleRequest() {} - -std::string GetAggregateResourceComplianceByConfigRuleRequest::getConfigRuleId() const { - return configRuleId_; -} - -void GetAggregateResourceComplianceByConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - 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_; -} - -void GetAggregateResourceComplianceByConfigRuleRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string GetAggregateResourceComplianceByConfigRuleRequest::getComplianceType() const { - return complianceType_; -} - -void GetAggregateResourceComplianceByConfigRuleRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); -} - diff --git a/config/src/model/GetAggregateResourceComplianceByConfigRuleResult.cc b/config/src/model/GetAggregateResourceComplianceByConfigRuleResult.cc deleted file mode 100644 index 86bf0c0af..000000000 --- a/config/src/model/GetAggregateResourceComplianceByConfigRuleResult.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateResourceComplianceByConfigRuleResult::GetAggregateResourceComplianceByConfigRuleResult() : - ServiceResult() -{} - -GetAggregateResourceComplianceByConfigRuleResult::GetAggregateResourceComplianceByConfigRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateResourceComplianceByConfigRuleResult::~GetAggregateResourceComplianceByConfigRuleResult() -{} - -void GetAggregateResourceComplianceByConfigRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto complianceResultNode = value["ComplianceResult"]; - if(!complianceResultNode["TotalCount"].isNull()) - complianceResult_.totalCount = std::stol(complianceResultNode["TotalCount"].asString()); - auto allCompliancesNode = complianceResultNode["Compliances"]["CompliancesItem"]; - for (auto complianceResultNodeCompliancesCompliancesItem : allCompliancesNode) - { - ComplianceResult::CompliancesItem compliancesItemObject; - if(!complianceResultNodeCompliancesCompliancesItem["ComplianceType"].isNull()) - compliancesItemObject.complianceType = complianceResultNodeCompliancesCompliancesItem["ComplianceType"].asString(); - if(!complianceResultNodeCompliancesCompliancesItem["Count"].isNull()) - compliancesItemObject.count = std::stoi(complianceResultNodeCompliancesCompliancesItem["Count"].asString()); - complianceResult_.compliances.push_back(compliancesItemObject); - } - -} - -GetAggregateResourceComplianceByConfigRuleResult::ComplianceResult GetAggregateResourceComplianceByConfigRuleResult::getComplianceResult()const -{ - return complianceResult_; -} - diff --git a/config/src/model/GetAggregateResourceComplianceByPackRequest.cc b/config/src/model/GetAggregateResourceComplianceByPackRequest.cc deleted file mode 100644 index 6c4c8a999..000000000 --- a/config/src/model/GetAggregateResourceComplianceByPackRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateResourceComplianceByPackRequest; - -GetAggregateResourceComplianceByPackRequest::GetAggregateResourceComplianceByPackRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceComplianceByPack") { - setMethod(HttpRequest::Method::Get); -} - -GetAggregateResourceComplianceByPackRequest::~GetAggregateResourceComplianceByPackRequest() {} - -std::string GetAggregateResourceComplianceByPackRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateResourceComplianceByPackRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string GetAggregateResourceComplianceByPackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void GetAggregateResourceComplianceByPackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/GetAggregateResourceComplianceByPackResult.cc b/config/src/model/GetAggregateResourceComplianceByPackResult.cc deleted file mode 100644 index 7a780e82d..000000000 --- a/config/src/model/GetAggregateResourceComplianceByPackResult.cc +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateResourceComplianceByPackResult::GetAggregateResourceComplianceByPackResult() : - ServiceResult() -{} - -GetAggregateResourceComplianceByPackResult::GetAggregateResourceComplianceByPackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateResourceComplianceByPackResult::~GetAggregateResourceComplianceByPackResult() -{} - -void GetAggregateResourceComplianceByPackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto resourceComplianceResultNode = value["ResourceComplianceResult"]; - if(!resourceComplianceResultNode["CompliancePackId"].isNull()) - resourceComplianceResult_.compliancePackId = resourceComplianceResultNode["CompliancePackId"].asString(); - if(!resourceComplianceResultNode["NonCompliantCount"].isNull()) - resourceComplianceResult_.nonCompliantCount = std::stoi(resourceComplianceResultNode["NonCompliantCount"].asString()); - if(!resourceComplianceResultNode["TotalCount"].isNull()) - resourceComplianceResult_.totalCount = std::stoi(resourceComplianceResultNode["TotalCount"].asString()); - -} - -GetAggregateResourceComplianceByPackResult::ResourceComplianceResult GetAggregateResourceComplianceByPackResult::getResourceComplianceResult()const -{ - return resourceComplianceResult_; -} - diff --git a/config/src/model/GetAggregateResourceComplianceGroupByRegionRequest.cc b/config/src/model/GetAggregateResourceComplianceGroupByRegionRequest.cc deleted file mode 100644 index d2f86f9cf..000000000 --- a/config/src/model/GetAggregateResourceComplianceGroupByRegionRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateResourceComplianceGroupByRegionRequest; - -GetAggregateResourceComplianceGroupByRegionRequest::GetAggregateResourceComplianceGroupByRegionRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceComplianceGroupByRegion") { - setMethod(HttpRequest::Method::Post); -} - -GetAggregateResourceComplianceGroupByRegionRequest::~GetAggregateResourceComplianceGroupByRegionRequest() {} - -std::string GetAggregateResourceComplianceGroupByRegionRequest::getConfigRuleIds() const { - return configRuleIds_; -} - -void GetAggregateResourceComplianceGroupByRegionRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setParameter(std::string("ConfigRuleIds"), configRuleIds); -} - -std::string GetAggregateResourceComplianceGroupByRegionRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateResourceComplianceGroupByRegionRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - diff --git a/config/src/model/GetAggregateResourceComplianceGroupByRegionResult.cc b/config/src/model/GetAggregateResourceComplianceGroupByRegionResult.cc deleted file mode 100644 index 04e590948..000000000 --- a/config/src/model/GetAggregateResourceComplianceGroupByRegionResult.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateResourceComplianceGroupByRegionResult::GetAggregateResourceComplianceGroupByRegionResult() : - ServiceResult() -{} - -GetAggregateResourceComplianceGroupByRegionResult::GetAggregateResourceComplianceGroupByRegionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateResourceComplianceGroupByRegionResult::~GetAggregateResourceComplianceGroupByRegionResult() -{} - -void GetAggregateResourceComplianceGroupByRegionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto complianceResultNode = value["ComplianceResult"]; - auto allComplianceResultListNode = complianceResultNode["ComplianceResultList"]["ComplianceResultListItem"]; - for (auto complianceResultNodeComplianceResultListComplianceResultListItem : allComplianceResultListNode) - { - ComplianceResult::ComplianceResultListItem complianceResultListItemObject; - if(!complianceResultNodeComplianceResultListComplianceResultListItem["RegionId"].isNull()) - complianceResultListItemObject.regionId = complianceResultNodeComplianceResultListComplianceResultListItem["RegionId"].asString(); - auto allCompliancesNode = complianceResultNodeComplianceResultListComplianceResultListItem["Compliances"]["CompliancesItem"]; - for (auto complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem : allCompliancesNode) - { - ComplianceResult::ComplianceResultListItem::CompliancesItem compliancesObject; - if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].isNull()) - compliancesObject.complianceType = complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].asString(); - if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].isNull()) - compliancesObject.count = std::stol(complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].asString()); - complianceResultListItemObject.compliances.push_back(compliancesObject); - } - complianceResult_.complianceResultList.push_back(complianceResultListItemObject); - } - -} - -GetAggregateResourceComplianceGroupByRegionResult::ComplianceResult GetAggregateResourceComplianceGroupByRegionResult::getComplianceResult()const -{ - return complianceResult_; -} - diff --git a/config/src/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.cc b/config/src/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.cc deleted file mode 100644 index 31a348f93..000000000 --- a/config/src/model/GetAggregateResourceComplianceGroupByResourceTypeRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateResourceComplianceGroupByResourceTypeRequest; - -GetAggregateResourceComplianceGroupByResourceTypeRequest::GetAggregateResourceComplianceGroupByResourceTypeRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceComplianceGroupByResourceType") { - setMethod(HttpRequest::Method::Post); -} - -GetAggregateResourceComplianceGroupByResourceTypeRequest::~GetAggregateResourceComplianceGroupByResourceTypeRequest() {} - -std::string GetAggregateResourceComplianceGroupByResourceTypeRequest::getConfigRuleIds() const { - return configRuleIds_; -} - -void GetAggregateResourceComplianceGroupByResourceTypeRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setParameter(std::string("ConfigRuleIds"), configRuleIds); -} - -std::string GetAggregateResourceComplianceGroupByResourceTypeRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateResourceComplianceGroupByResourceTypeRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - diff --git a/config/src/model/GetAggregateResourceComplianceGroupByResourceTypeResult.cc b/config/src/model/GetAggregateResourceComplianceGroupByResourceTypeResult.cc deleted file mode 100644 index 06347c007..000000000 --- a/config/src/model/GetAggregateResourceComplianceGroupByResourceTypeResult.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateResourceComplianceGroupByResourceTypeResult::GetAggregateResourceComplianceGroupByResourceTypeResult() : - ServiceResult() -{} - -GetAggregateResourceComplianceGroupByResourceTypeResult::GetAggregateResourceComplianceGroupByResourceTypeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateResourceComplianceGroupByResourceTypeResult::~GetAggregateResourceComplianceGroupByResourceTypeResult() -{} - -void GetAggregateResourceComplianceGroupByResourceTypeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto complianceResultNode = value["ComplianceResult"]; - auto allComplianceResultListNode = complianceResultNode["ComplianceResultList"]["ComplianceResultListItem"]; - for (auto complianceResultNodeComplianceResultListComplianceResultListItem : allComplianceResultListNode) - { - ComplianceResult::ComplianceResultListItem complianceResultListItemObject; - if(!complianceResultNodeComplianceResultListComplianceResultListItem["ResourceType"].isNull()) - complianceResultListItemObject.resourceType = complianceResultNodeComplianceResultListComplianceResultListItem["ResourceType"].asString(); - auto allCompliancesNode = complianceResultNodeComplianceResultListComplianceResultListItem["Compliances"]["CompliancesItem"]; - for (auto complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem : allCompliancesNode) - { - ComplianceResult::ComplianceResultListItem::CompliancesItem compliancesObject; - if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].isNull()) - compliancesObject.complianceType = complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].asString(); - if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].isNull()) - compliancesObject.count = std::stol(complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].asString()); - complianceResultListItemObject.compliances.push_back(compliancesObject); - } - complianceResult_.complianceResultList.push_back(complianceResultListItemObject); - } - -} - -GetAggregateResourceComplianceGroupByResourceTypeResult::ComplianceResult GetAggregateResourceComplianceGroupByResourceTypeResult::getComplianceResult()const -{ - return complianceResult_; -} - diff --git a/config/src/model/GetAggregateResourceComplianceTimelineRequest.cc b/config/src/model/GetAggregateResourceComplianceTimelineRequest.cc deleted file mode 100644 index 58550fb02..000000000 --- a/config/src/model/GetAggregateResourceComplianceTimelineRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateResourceComplianceTimelineRequest; - -GetAggregateResourceComplianceTimelineRequest::GetAggregateResourceComplianceTimelineRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceComplianceTimeline") { - setMethod(HttpRequest::Method::Get); -} - -GetAggregateResourceComplianceTimelineRequest::~GetAggregateResourceComplianceTimelineRequest() {} - -long GetAggregateResourceComplianceTimelineRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void GetAggregateResourceComplianceTimelineRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string GetAggregateResourceComplianceTimelineRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateResourceComplianceTimelineRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -long GetAggregateResourceComplianceTimelineRequest::getStartTime() const { - return startTime_; -} - -void GetAggregateResourceComplianceTimelineRequest::setStartTime(long startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), std::to_string(startTime)); -} - -std::string GetAggregateResourceComplianceTimelineRequest::getNextToken() const { - return nextToken_; -} - -void GetAggregateResourceComplianceTimelineRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -std::string GetAggregateResourceComplianceTimelineRequest::getResourceId() const { - return resourceId_; -} - -void GetAggregateResourceComplianceTimelineRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); -} - -long GetAggregateResourceComplianceTimelineRequest::getEndTime() const { - return endTime_; -} - -void GetAggregateResourceComplianceTimelineRequest::setEndTime(long endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), std::to_string(endTime)); -} - -std::string GetAggregateResourceComplianceTimelineRequest::getResourceType() const { - return resourceType_; -} - -void GetAggregateResourceComplianceTimelineRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -int GetAggregateResourceComplianceTimelineRequest::getMaxResults() const { - return maxResults_; -} - -void GetAggregateResourceComplianceTimelineRequest::setMaxResults(int maxResults) { - maxResults_ = maxResults; - setParameter(std::string("MaxResults"), std::to_string(maxResults)); -} - -std::string GetAggregateResourceComplianceTimelineRequest::getRegion() const { - return region_; -} - -void GetAggregateResourceComplianceTimelineRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - diff --git a/config/src/model/GetAggregateResourceComplianceTimelineResult.cc b/config/src/model/GetAggregateResourceComplianceTimelineResult.cc deleted file mode 100644 index 0bf3a1e60..000000000 --- a/config/src/model/GetAggregateResourceComplianceTimelineResult.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateResourceComplianceTimelineResult::GetAggregateResourceComplianceTimelineResult() : - ServiceResult() -{} - -GetAggregateResourceComplianceTimelineResult::GetAggregateResourceComplianceTimelineResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateResourceComplianceTimelineResult::~GetAggregateResourceComplianceTimelineResult() -{} - -void GetAggregateResourceComplianceTimelineResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto resourceComplianceTimelineNode = value["ResourceComplianceTimeline"]; - if(!resourceComplianceTimelineNode["NextToken"].isNull()) - resourceComplianceTimeline_.nextToken = resourceComplianceTimelineNode["NextToken"].asString(); - if(!resourceComplianceTimelineNode["MaxResults"].isNull()) - resourceComplianceTimeline_.maxResults = std::stoi(resourceComplianceTimelineNode["MaxResults"].asString()); - auto allComplianceListNode = resourceComplianceTimelineNode["ComplianceList"]["ComplianceListItem"]; - for (auto resourceComplianceTimelineNodeComplianceListComplianceListItem : allComplianceListNode) - { - ResourceComplianceTimeline::ComplianceListItem complianceListItemObject; - if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["Tags"].isNull()) - complianceListItemObject.tags = resourceComplianceTimelineNodeComplianceListComplianceListItem["Tags"].asString(); - if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["AccountId"].isNull()) - complianceListItemObject.accountId = resourceComplianceTimelineNodeComplianceListComplianceListItem["AccountId"].asString(); - if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["AvailabilityZone"].isNull()) - complianceListItemObject.availabilityZone = resourceComplianceTimelineNodeComplianceListComplianceListItem["AvailabilityZone"].asString(); - if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceType"].isNull()) - complianceListItemObject.resourceType = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceType"].asString(); - if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceCreateTime"].isNull()) - complianceListItemObject.resourceCreateTime = std::stol(resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceCreateTime"].asString()); - if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["Region"].isNull()) - complianceListItemObject.region = resourceComplianceTimelineNodeComplianceListComplianceListItem["Region"].asString(); - if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["Configuration"].isNull()) - complianceListItemObject.configuration = resourceComplianceTimelineNodeComplianceListComplianceListItem["Configuration"].asString(); - if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["CaptureTime"].isNull()) - complianceListItemObject.captureTime = std::stol(resourceComplianceTimelineNodeComplianceListComplianceListItem["CaptureTime"].asString()); - if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ConfigurationDiff"].isNull()) - complianceListItemObject.configurationDiff = resourceComplianceTimelineNodeComplianceListComplianceListItem["ConfigurationDiff"].asString(); - if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceId"].isNull()) - complianceListItemObject.resourceId = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceId"].asString(); - if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceName"].isNull()) - complianceListItemObject.resourceName = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceName"].asString(); - if(!resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceStatus"].isNull()) - complianceListItemObject.resourceStatus = resourceComplianceTimelineNodeComplianceListComplianceListItem["ResourceStatus"].asString(); - resourceComplianceTimeline_.complianceList.push_back(complianceListItemObject); - } - -} - -GetAggregateResourceComplianceTimelineResult::ResourceComplianceTimeline GetAggregateResourceComplianceTimelineResult::getResourceComplianceTimeline()const -{ - return resourceComplianceTimeline_; -} - diff --git a/config/src/model/GetAggregateResourceConfigurationTimelineRequest.cc b/config/src/model/GetAggregateResourceConfigurationTimelineRequest.cc deleted file mode 100644 index 6ebdd7ec7..000000000 --- a/config/src/model/GetAggregateResourceConfigurationTimelineRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateResourceConfigurationTimelineRequest; - -GetAggregateResourceConfigurationTimelineRequest::GetAggregateResourceConfigurationTimelineRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceConfigurationTimeline") { - setMethod(HttpRequest::Method::Get); -} - -GetAggregateResourceConfigurationTimelineRequest::~GetAggregateResourceConfigurationTimelineRequest() {} - -long GetAggregateResourceConfigurationTimelineRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void GetAggregateResourceConfigurationTimelineRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string GetAggregateResourceConfigurationTimelineRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateResourceConfigurationTimelineRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -long GetAggregateResourceConfigurationTimelineRequest::getStartTime() const { - return startTime_; -} - -void GetAggregateResourceConfigurationTimelineRequest::setStartTime(long startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), std::to_string(startTime)); -} - -std::string GetAggregateResourceConfigurationTimelineRequest::getNextToken() const { - return nextToken_; -} - -void GetAggregateResourceConfigurationTimelineRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -std::string GetAggregateResourceConfigurationTimelineRequest::getResourceId() const { - return resourceId_; -} - -void GetAggregateResourceConfigurationTimelineRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); -} - -long GetAggregateResourceConfigurationTimelineRequest::getEndTime() const { - return endTime_; -} - -void GetAggregateResourceConfigurationTimelineRequest::setEndTime(long endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), std::to_string(endTime)); -} - -std::string GetAggregateResourceConfigurationTimelineRequest::getResourceType() const { - return resourceType_; -} - -void GetAggregateResourceConfigurationTimelineRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -int GetAggregateResourceConfigurationTimelineRequest::getMaxResults() const { - return maxResults_; -} - -void GetAggregateResourceConfigurationTimelineRequest::setMaxResults(int maxResults) { - maxResults_ = maxResults; - setParameter(std::string("MaxResults"), std::to_string(maxResults)); -} - -std::string GetAggregateResourceConfigurationTimelineRequest::getRegion() const { - return region_; -} - -void GetAggregateResourceConfigurationTimelineRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - diff --git a/config/src/model/GetAggregateResourceConfigurationTimelineResult.cc b/config/src/model/GetAggregateResourceConfigurationTimelineResult.cc deleted file mode 100644 index 7a8459807..000000000 --- a/config/src/model/GetAggregateResourceConfigurationTimelineResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateResourceConfigurationTimelineResult::GetAggregateResourceConfigurationTimelineResult() : - ServiceResult() -{} - -GetAggregateResourceConfigurationTimelineResult::GetAggregateResourceConfigurationTimelineResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateResourceConfigurationTimelineResult::~GetAggregateResourceConfigurationTimelineResult() -{} - -void GetAggregateResourceConfigurationTimelineResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto resourceConfigurationTimelineNode = value["ResourceConfigurationTimeline"]; - if(!resourceConfigurationTimelineNode["NextToken"].isNull()) - resourceConfigurationTimeline_.nextToken = resourceConfigurationTimelineNode["NextToken"].asString(); - if(!resourceConfigurationTimelineNode["MaxResults"].isNull()) - resourceConfigurationTimeline_.maxResults = std::stoi(resourceConfigurationTimelineNode["MaxResults"].asString()); - auto allConfigurationListNode = resourceConfigurationTimelineNode["ConfigurationList"]["ConfigurationListItem"]; - for (auto resourceConfigurationTimelineNodeConfigurationListConfigurationListItem : allConfigurationListNode) - { - ResourceConfigurationTimeline::ConfigurationListItem configurationListItemObject; - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].isNull()) - configurationListItemObject.relationship = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].isNull()) - configurationListItemObject.tags = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AccountId"].isNull()) - configurationListItemObject.accountId = std::stol(resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AccountId"].asString()); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].isNull()) - configurationListItemObject.resourceEventType = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].isNull()) - configurationListItemObject.relationshipDiff = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AvailabilityZone"].isNull()) - configurationListItemObject.availabilityZone = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AvailabilityZone"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceType"].isNull()) - configurationListItemObject.resourceType = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceType"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceCreateTime"].isNull()) - configurationListItemObject.resourceCreateTime = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceCreateTime"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Region"].isNull()) - configurationListItemObject.region = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Region"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["CaptureTime"].isNull()) - configurationListItemObject.captureTime = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["CaptureTime"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ConfigurationDiff"].isNull()) - configurationListItemObject.configurationDiff = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ConfigurationDiff"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceId"].isNull()) - configurationListItemObject.resourceId = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceId"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceName"].isNull()) - configurationListItemObject.resourceName = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceName"].asString(); - resourceConfigurationTimeline_.configurationList.push_back(configurationListItemObject); - } - -} - -GetAggregateResourceConfigurationTimelineResult::ResourceConfigurationTimeline GetAggregateResourceConfigurationTimelineResult::getResourceConfigurationTimeline()const -{ - return resourceConfigurationTimeline_; -} - diff --git a/config/src/model/GetAggregateResourceCountsGroupByRegionRequest.cc b/config/src/model/GetAggregateResourceCountsGroupByRegionRequest.cc deleted file mode 100644 index f6b051125..000000000 --- a/config/src/model/GetAggregateResourceCountsGroupByRegionRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateResourceCountsGroupByRegionRequest; - -GetAggregateResourceCountsGroupByRegionRequest::GetAggregateResourceCountsGroupByRegionRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceCountsGroupByRegion") { - setMethod(HttpRequest::Method::Get); -} - -GetAggregateResourceCountsGroupByRegionRequest::~GetAggregateResourceCountsGroupByRegionRequest() {} - -long GetAggregateResourceCountsGroupByRegionRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void GetAggregateResourceCountsGroupByRegionRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string GetAggregateResourceCountsGroupByRegionRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateResourceCountsGroupByRegionRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string GetAggregateResourceCountsGroupByRegionRequest::getResourceType() const { - return resourceType_; -} - -void GetAggregateResourceCountsGroupByRegionRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -std::string GetAggregateResourceCountsGroupByRegionRequest::getFolderId() const { - return folderId_; -} - -void GetAggregateResourceCountsGroupByRegionRequest::setFolderId(const std::string &folderId) { - folderId_ = folderId; - setParameter(std::string("FolderId"), folderId); -} - diff --git a/config/src/model/GetAggregateResourceCountsGroupByRegionResult.cc b/config/src/model/GetAggregateResourceCountsGroupByRegionResult.cc deleted file mode 100644 index 76662f959..000000000 --- a/config/src/model/GetAggregateResourceCountsGroupByRegionResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateResourceCountsGroupByRegionResult::GetAggregateResourceCountsGroupByRegionResult() : - ServiceResult() -{} - -GetAggregateResourceCountsGroupByRegionResult::GetAggregateResourceCountsGroupByRegionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateResourceCountsGroupByRegionResult::~GetAggregateResourceCountsGroupByRegionResult() -{} - -void GetAggregateResourceCountsGroupByRegionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDiscoveredResourceCountsSummaryNode = value["DiscoveredResourceCountsSummary"]["GroupedResourceCount"]; - for (auto valueDiscoveredResourceCountsSummaryGroupedResourceCount : allDiscoveredResourceCountsSummaryNode) - { - GroupedResourceCount discoveredResourceCountsSummaryObject; - if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].isNull()) - discoveredResourceCountsSummaryObject.resourceCount = std::stol(valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].asString()); - if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].isNull()) - discoveredResourceCountsSummaryObject.groupName = valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].asString(); - if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["Region"].isNull()) - discoveredResourceCountsSummaryObject.region = valueDiscoveredResourceCountsSummaryGroupedResourceCount["Region"].asString(); - discoveredResourceCountsSummary_.push_back(discoveredResourceCountsSummaryObject); - } - -} - -std::vector GetAggregateResourceCountsGroupByRegionResult::getDiscoveredResourceCountsSummary()const -{ - return discoveredResourceCountsSummary_; -} - diff --git a/config/src/model/GetAggregateResourceCountsGroupByResourceTypeRequest.cc b/config/src/model/GetAggregateResourceCountsGroupByResourceTypeRequest.cc deleted file mode 100644 index ddfc1cb12..000000000 --- a/config/src/model/GetAggregateResourceCountsGroupByResourceTypeRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregateResourceCountsGroupByResourceTypeRequest; - -GetAggregateResourceCountsGroupByResourceTypeRequest::GetAggregateResourceCountsGroupByResourceTypeRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregateResourceCountsGroupByResourceType") { - setMethod(HttpRequest::Method::Get); -} - -GetAggregateResourceCountsGroupByResourceTypeRequest::~GetAggregateResourceCountsGroupByResourceTypeRequest() {} - -long GetAggregateResourceCountsGroupByResourceTypeRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void GetAggregateResourceCountsGroupByResourceTypeRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string GetAggregateResourceCountsGroupByResourceTypeRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregateResourceCountsGroupByResourceTypeRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string GetAggregateResourceCountsGroupByResourceTypeRequest::getFolderId() const { - return folderId_; -} - -void GetAggregateResourceCountsGroupByResourceTypeRequest::setFolderId(const std::string &folderId) { - folderId_ = folderId; - setParameter(std::string("FolderId"), folderId); -} - -std::string GetAggregateResourceCountsGroupByResourceTypeRequest::getRegion() const { - return region_; -} - -void GetAggregateResourceCountsGroupByResourceTypeRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - diff --git a/config/src/model/GetAggregateResourceCountsGroupByResourceTypeResult.cc b/config/src/model/GetAggregateResourceCountsGroupByResourceTypeResult.cc deleted file mode 100644 index 0b169ef28..000000000 --- a/config/src/model/GetAggregateResourceCountsGroupByResourceTypeResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregateResourceCountsGroupByResourceTypeResult::GetAggregateResourceCountsGroupByResourceTypeResult() : - ServiceResult() -{} - -GetAggregateResourceCountsGroupByResourceTypeResult::GetAggregateResourceCountsGroupByResourceTypeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregateResourceCountsGroupByResourceTypeResult::~GetAggregateResourceCountsGroupByResourceTypeResult() -{} - -void GetAggregateResourceCountsGroupByResourceTypeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDiscoveredResourceCountsSummaryNode = value["DiscoveredResourceCountsSummary"]["GroupedResourceCount"]; - for (auto valueDiscoveredResourceCountsSummaryGroupedResourceCount : allDiscoveredResourceCountsSummaryNode) - { - GroupedResourceCount discoveredResourceCountsSummaryObject; - if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].isNull()) - discoveredResourceCountsSummaryObject.resourceCount = std::stol(valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].asString()); - if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].isNull()) - discoveredResourceCountsSummaryObject.groupName = valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].asString(); - if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceType"].isNull()) - discoveredResourceCountsSummaryObject.resourceType = valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceType"].asString(); - discoveredResourceCountsSummary_.push_back(discoveredResourceCountsSummaryObject); - } - -} - -std::vector GetAggregateResourceCountsGroupByResourceTypeResult::getDiscoveredResourceCountsSummary()const -{ - return discoveredResourceCountsSummary_; -} - diff --git a/config/src/model/GetAggregatorRequest.cc b/config/src/model/GetAggregatorRequest.cc deleted file mode 100644 index 38a07148d..000000000 --- a/config/src/model/GetAggregatorRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetAggregatorRequest; - -GetAggregatorRequest::GetAggregatorRequest() - : RpcServiceRequest("config", "2020-09-07", "GetAggregator") { - setMethod(HttpRequest::Method::Get); -} - -GetAggregatorRequest::~GetAggregatorRequest() {} - -std::string GetAggregatorRequest::getAggregatorId() const { - return aggregatorId_; -} - -void GetAggregatorRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - diff --git a/config/src/model/GetAggregatorResult.cc b/config/src/model/GetAggregatorResult.cc deleted file mode 100644 index b58e6e328..000000000 --- a/config/src/model/GetAggregatorResult.cc +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetAggregatorResult::GetAggregatorResult() : - ServiceResult() -{} - -GetAggregatorResult::GetAggregatorResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetAggregatorResult::~GetAggregatorResult() -{} - -void GetAggregatorResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto aggregatorNode = value["Aggregator"]; - if(!aggregatorNode["AggregatorCreateTimestamp"].isNull()) - aggregator_.aggregatorCreateTimestamp = aggregatorNode["AggregatorCreateTimestamp"].asString(); - if(!aggregatorNode["AggregatorAccountCount"].isNull()) - aggregator_.aggregatorAccountCount = std::stol(aggregatorNode["AggregatorAccountCount"].asString()); - if(!aggregatorNode["Description"].isNull()) - aggregator_.description = aggregatorNode["Description"].asString(); - if(!aggregatorNode["AggregatorName"].isNull()) - aggregator_.aggregatorName = aggregatorNode["AggregatorName"].asString(); - if(!aggregatorNode["AggregatorStatus"].isNull()) - aggregator_.aggregatorStatus = std::stoi(aggregatorNode["AggregatorStatus"].asString()); - if(!aggregatorNode["AggregatorType"].isNull()) - aggregator_.aggregatorType = aggregatorNode["AggregatorType"].asString(); - if(!aggregatorNode["AccountId"].isNull()) - aggregator_.accountId = std::stol(aggregatorNode["AccountId"].asString()); - if(!aggregatorNode["AggregatorId"].isNull()) - aggregator_.aggregatorId = aggregatorNode["AggregatorId"].asString(); - auto allAggregatorAccountsNode = aggregatorNode["AggregatorAccounts"]["AggregatorAccountsItem"]; - for (auto aggregatorNodeAggregatorAccountsAggregatorAccountsItem : allAggregatorAccountsNode) - { - Aggregator::AggregatorAccountsItem aggregatorAccountsItemObject; - if(!aggregatorNodeAggregatorAccountsAggregatorAccountsItem["RecorderStatus"].isNull()) - aggregatorAccountsItemObject.recorderStatus = aggregatorNodeAggregatorAccountsAggregatorAccountsItem["RecorderStatus"].asString(); - if(!aggregatorNodeAggregatorAccountsAggregatorAccountsItem["AccountId"].isNull()) - aggregatorAccountsItemObject.accountId = std::stol(aggregatorNodeAggregatorAccountsAggregatorAccountsItem["AccountId"].asString()); - if(!aggregatorNodeAggregatorAccountsAggregatorAccountsItem["AccountType"].isNull()) - aggregatorAccountsItemObject.accountType = aggregatorNodeAggregatorAccountsAggregatorAccountsItem["AccountType"].asString(); - if(!aggregatorNodeAggregatorAccountsAggregatorAccountsItem["AccountName"].isNull()) - aggregatorAccountsItemObject.accountName = aggregatorNodeAggregatorAccountsAggregatorAccountsItem["AccountName"].asString(); - aggregator_.aggregatorAccounts.push_back(aggregatorAccountsItemObject); - } - -} - -GetAggregatorResult::Aggregator GetAggregatorResult::getAggregator()const -{ - return aggregator_; -} - diff --git a/config/src/model/GetCompliancePackReportRequest.cc b/config/src/model/GetCompliancePackReportRequest.cc deleted file mode 100644 index 1cff5bbad..000000000 --- a/config/src/model/GetCompliancePackReportRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetCompliancePackReportRequest; - -GetCompliancePackReportRequest::GetCompliancePackReportRequest() - : RpcServiceRequest("config", "2020-09-07", "GetCompliancePackReport") { - setMethod(HttpRequest::Method::Get); -} - -GetCompliancePackReportRequest::~GetCompliancePackReportRequest() {} - -std::string GetCompliancePackReportRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void GetCompliancePackReportRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/GetCompliancePackReportResult.cc b/config/src/model/GetCompliancePackReportResult.cc deleted file mode 100644 index 22a8847d9..000000000 --- a/config/src/model/GetCompliancePackReportResult.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetCompliancePackReportResult::GetCompliancePackReportResult() : - ServiceResult() -{} - -GetCompliancePackReportResult::GetCompliancePackReportResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetCompliancePackReportResult::~GetCompliancePackReportResult() -{} - -void GetCompliancePackReportResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto compliancePackReportNode = value["CompliancePackReport"]; - if(!compliancePackReportNode["ReportUrl"].isNull()) - compliancePackReport_.reportUrl = compliancePackReportNode["ReportUrl"].asString(); - if(!compliancePackReportNode["ReportStatus"].isNull()) - compliancePackReport_.reportStatus = compliancePackReportNode["ReportStatus"].asString(); - if(!compliancePackReportNode["CompliancePackId"].isNull()) - compliancePackReport_.compliancePackId = compliancePackReportNode["CompliancePackId"].asString(); - if(!compliancePackReportNode["AccountId"].isNull()) - compliancePackReport_.accountId = std::stol(compliancePackReportNode["AccountId"].asString()); - if(!compliancePackReportNode["ReportCreateTimestamp"].isNull()) - compliancePackReport_.reportCreateTimestamp = std::stol(compliancePackReportNode["ReportCreateTimestamp"].asString()); - -} - -GetCompliancePackReportResult::CompliancePackReport GetCompliancePackReportResult::getCompliancePackReport()const -{ - return compliancePackReport_; -} - diff --git a/config/src/model/GetCompliancePackRequest.cc b/config/src/model/GetCompliancePackRequest.cc deleted file mode 100644 index 3ff5895cc..000000000 --- a/config/src/model/GetCompliancePackRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetCompliancePackRequest; - -GetCompliancePackRequest::GetCompliancePackRequest() - : RpcServiceRequest("config", "2020-09-07", "GetCompliancePack") { - setMethod(HttpRequest::Method::Get); -} - -GetCompliancePackRequest::~GetCompliancePackRequest() {} - -std::string GetCompliancePackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void GetCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/GetCompliancePackResult.cc b/config/src/model/GetCompliancePackResult.cc deleted file mode 100644 index af4a03177..000000000 --- a/config/src/model/GetCompliancePackResult.cc +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetCompliancePackResult::GetCompliancePackResult() : - ServiceResult() -{} - -GetCompliancePackResult::GetCompliancePackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetCompliancePackResult::~GetCompliancePackResult() -{} - -void GetCompliancePackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto compliancePackNode = value["CompliancePack"]; - if(!compliancePackNode["Status"].isNull()) - compliancePack_.status = compliancePackNode["Status"].asString(); - if(!compliancePackNode["CompliancePackId"].isNull()) - compliancePack_.compliancePackId = compliancePackNode["CompliancePackId"].asString(); - if(!compliancePackNode["RiskLevel"].isNull()) - compliancePack_.riskLevel = std::stoi(compliancePackNode["RiskLevel"].asString()); - if(!compliancePackNode["Description"].isNull()) - compliancePack_.description = compliancePackNode["Description"].asString(); - if(!compliancePackNode["CompliancePackName"].isNull()) - compliancePack_.compliancePackName = compliancePackNode["CompliancePackName"].asString(); - if(!compliancePackNode["AccountId"].isNull()) - compliancePack_.accountId = std::stol(compliancePackNode["AccountId"].asString()); - if(!compliancePackNode["CompliancePackTemplateId"].isNull()) - compliancePack_.compliancePackTemplateId = compliancePackNode["CompliancePackTemplateId"].asString(); - if(!compliancePackNode["CreateTimestamp"].isNull()) - compliancePack_.createTimestamp = std::stol(compliancePackNode["CreateTimestamp"].asString()); - auto allConfigRulesNode = compliancePackNode["ConfigRules"]["ConfigRulesItem"]; - for (auto compliancePackNodeConfigRulesConfigRulesItem : allConfigRulesNode) - { - CompliancePack::ConfigRulesItem configRulesItemObject; - if(!compliancePackNodeConfigRulesConfigRulesItem["ManagedRuleIdentifier"].isNull()) - configRulesItemObject.managedRuleIdentifier = compliancePackNodeConfigRulesConfigRulesItem["ManagedRuleIdentifier"].asString(); - if(!compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleName"].isNull()) - configRulesItemObject.configRuleName = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleName"].asString(); - if(!compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleId"].isNull()) - configRulesItemObject.configRuleId = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleId"].asString(); - if(!compliancePackNodeConfigRulesConfigRulesItem["Description"].isNull()) - configRulesItemObject.description = compliancePackNodeConfigRulesConfigRulesItem["Description"].asString(); - if(!compliancePackNodeConfigRulesConfigRulesItem["RiskLevel"].isNull()) - configRulesItemObject.riskLevel = std::stoi(compliancePackNodeConfigRulesConfigRulesItem["RiskLevel"].asString()); - auto allConfigRuleParametersNode = compliancePackNodeConfigRulesConfigRulesItem["ConfigRuleParameters"]["ConfigRuleParametersItem"]; - for (auto compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem : allConfigRuleParametersNode) - { - CompliancePack::ConfigRulesItem::ConfigRuleParametersItem configRuleParametersObject; - if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].isNull()) - configRuleParametersObject.required = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].asString() == "true"; - if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].isNull()) - configRuleParametersObject.parameterName = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].asString(); - if(!compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].isNull()) - configRuleParametersObject.parameterValue = compliancePackNodeConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].asString(); - configRulesItemObject.configRuleParameters.push_back(configRuleParametersObject); - } - compliancePack_.configRules.push_back(configRulesItemObject); - } - -} - -GetCompliancePackResult::CompliancePack GetCompliancePackResult::getCompliancePack()const -{ - return compliancePack_; -} - diff --git a/config/src/model/GetConfigDeliveryChannelResult.cc b/config/src/model/GetConfigDeliveryChannelResult.cc deleted file mode 100644 index ea89cc2f0..000000000 --- a/config/src/model/GetConfigDeliveryChannelResult.cc +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetConfigDeliveryChannelResult::GetConfigDeliveryChannelResult() : - ServiceResult() -{} - -GetConfigDeliveryChannelResult::GetConfigDeliveryChannelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetConfigDeliveryChannelResult::~GetConfigDeliveryChannelResult() -{} - -void GetConfigDeliveryChannelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto deliveryChannelNode = value["DeliveryChannel"]; - if(!deliveryChannelNode["Status"].isNull()) - deliveryChannel_.status = std::stoi(deliveryChannelNode["Status"].asString()); - if(!deliveryChannelNode["DeliveryChannelId"].isNull()) - deliveryChannel_.deliveryChannelId = deliveryChannelNode["DeliveryChannelId"].asString(); - if(!deliveryChannelNode["DeliveryChannelName"].isNull()) - deliveryChannel_.deliveryChannelName = deliveryChannelNode["DeliveryChannelName"].asString(); - if(!deliveryChannelNode["DeliveryChannelType"].isNull()) - deliveryChannel_.deliveryChannelType = deliveryChannelNode["DeliveryChannelType"].asString(); - if(!deliveryChannelNode["DeliveryChannelTargetArn"].isNull()) - deliveryChannel_.deliveryChannelTargetArn = deliveryChannelNode["DeliveryChannelTargetArn"].asString(); - if(!deliveryChannelNode["DeliveryChannelAssumeRoleArn"].isNull()) - deliveryChannel_.deliveryChannelAssumeRoleArn = deliveryChannelNode["DeliveryChannelAssumeRoleArn"].asString(); - if(!deliveryChannelNode["DeliveryChannelCondition"].isNull()) - deliveryChannel_.deliveryChannelCondition = deliveryChannelNode["DeliveryChannelCondition"].asString(); - if(!deliveryChannelNode["OversizedDataOSSTargetArn"].isNull()) - deliveryChannel_.oversizedDataOSSTargetArn = deliveryChannelNode["OversizedDataOSSTargetArn"].asString(); - if(!deliveryChannelNode["Description"].isNull()) - deliveryChannel_.description = deliveryChannelNode["Description"].asString(); - if(!deliveryChannelNode["ConfigurationSnapshot"].isNull()) - deliveryChannel_.configurationSnapshot = deliveryChannelNode["ConfigurationSnapshot"].asString() == "true"; - if(!deliveryChannelNode["ConfigurationItemChangeNotification"].isNull()) - deliveryChannel_.configurationItemChangeNotification = deliveryChannelNode["ConfigurationItemChangeNotification"].asString() == "true"; - if(!deliveryChannelNode["NonCompliantNotification"].isNull()) - deliveryChannel_.nonCompliantNotification = deliveryChannelNode["NonCompliantNotification"].asString() == "true"; - if(!deliveryChannelNode["AccountId"].isNull()) - deliveryChannel_.accountId = std::stol(deliveryChannelNode["AccountId"].asString()); - -} - -GetConfigDeliveryChannelResult::DeliveryChannel GetConfigDeliveryChannelResult::getDeliveryChannel()const -{ - return deliveryChannel_; -} - diff --git a/config/src/model/GetConfigRuleComplianceByPackRequest.cc b/config/src/model/GetConfigRuleComplianceByPackRequest.cc deleted file mode 100644 index 42b5fd48a..000000000 --- a/config/src/model/GetConfigRuleComplianceByPackRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetConfigRuleComplianceByPackRequest; - -GetConfigRuleComplianceByPackRequest::GetConfigRuleComplianceByPackRequest() - : RpcServiceRequest("config", "2020-09-07", "GetConfigRuleComplianceByPack") { - setMethod(HttpRequest::Method::Get); -} - -GetConfigRuleComplianceByPackRequest::~GetConfigRuleComplianceByPackRequest() {} - -std::string GetConfigRuleComplianceByPackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void GetConfigRuleComplianceByPackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/GetConfigRuleComplianceByPackResult.cc b/config/src/model/GetConfigRuleComplianceByPackResult.cc deleted file mode 100644 index d4c498dae..000000000 --- a/config/src/model/GetConfigRuleComplianceByPackResult.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetConfigRuleComplianceByPackResult::GetConfigRuleComplianceByPackResult() : - ServiceResult() -{} - -GetConfigRuleComplianceByPackResult::GetConfigRuleComplianceByPackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetConfigRuleComplianceByPackResult::~GetConfigRuleComplianceByPackResult() -{} - -void GetConfigRuleComplianceByPackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto configRuleComplianceResultNode = value["ConfigRuleComplianceResult"]; - if(!configRuleComplianceResultNode["CompliancePackId"].isNull()) - configRuleComplianceResult_.compliancePackId = configRuleComplianceResultNode["CompliancePackId"].asString(); - if(!configRuleComplianceResultNode["NonCompliantCount"].isNull()) - configRuleComplianceResult_.nonCompliantCount = std::stoi(configRuleComplianceResultNode["NonCompliantCount"].asString()); - if(!configRuleComplianceResultNode["TotalCount"].isNull()) - configRuleComplianceResult_.totalCount = std::stoi(configRuleComplianceResultNode["TotalCount"].asString()); - auto allConfigRuleCompliancesNode = configRuleComplianceResultNode["ConfigRuleCompliances"]["ConfigRuleCompliancesItem"]; - for (auto configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem : allConfigRuleCompliancesNode) - { - ConfigRuleComplianceResult::ConfigRuleCompliancesItem configRuleCompliancesItemObject; - if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ComplianceType"].isNull()) - configRuleCompliancesItemObject.complianceType = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ComplianceType"].asString(); - if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleName"].isNull()) - configRuleCompliancesItemObject.configRuleName = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleName"].asString(); - if(!configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleId"].isNull()) - configRuleCompliancesItemObject.configRuleId = configRuleComplianceResultNodeConfigRuleCompliancesConfigRuleCompliancesItem["ConfigRuleId"].asString(); - configRuleComplianceResult_.configRuleCompliances.push_back(configRuleCompliancesItemObject); - } - -} - -GetConfigRuleComplianceByPackResult::ConfigRuleComplianceResult GetConfigRuleComplianceByPackResult::getConfigRuleComplianceResult()const -{ - return configRuleComplianceResult_; -} - diff --git a/config/src/model/GetConfigRuleRequest.cc b/config/src/model/GetConfigRuleRequest.cc deleted file mode 100644 index 6a13f2988..000000000 --- a/config/src/model/GetConfigRuleRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetConfigRuleRequest; - -GetConfigRuleRequest::GetConfigRuleRequest() - : RpcServiceRequest("config", "2020-09-07", "GetConfigRule") { - setMethod(HttpRequest::Method::Post); -} - -GetConfigRuleRequest::~GetConfigRuleRequest() {} - -std::string GetConfigRuleRequest::getConfigRuleId() const { - return configRuleId_; -} - -void GetConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setParameter(std::string("ConfigRuleId"), configRuleId); -} - diff --git a/config/src/model/GetConfigRuleSummaryByRiskLevelResult.cc b/config/src/model/GetConfigRuleSummaryByRiskLevelResult.cc deleted file mode 100644 index 166e3e412..000000000 --- a/config/src/model/GetConfigRuleSummaryByRiskLevelResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetConfigRuleSummaryByRiskLevelResult::GetConfigRuleSummaryByRiskLevelResult() : - ServiceResult() -{} - -GetConfigRuleSummaryByRiskLevelResult::GetConfigRuleSummaryByRiskLevelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetConfigRuleSummaryByRiskLevelResult::~GetConfigRuleSummaryByRiskLevelResult() -{} - -void GetConfigRuleSummaryByRiskLevelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allConfigRuleSummariesNode = value["ConfigRuleSummaries"]["Data"]; - for (auto valueConfigRuleSummariesData : allConfigRuleSummariesNode) - { - Data configRuleSummariesObject; - if(!valueConfigRuleSummariesData["RiskLevel"].isNull()) - configRuleSummariesObject.riskLevel = std::stoi(valueConfigRuleSummariesData["RiskLevel"].asString()); - if(!valueConfigRuleSummariesData["CompliantCount"].isNull()) - configRuleSummariesObject.compliantCount = std::stoi(valueConfigRuleSummariesData["CompliantCount"].asString()); - if(!valueConfigRuleSummariesData["NonCompliantCount"].isNull()) - configRuleSummariesObject.nonCompliantCount = std::stoi(valueConfigRuleSummariesData["NonCompliantCount"].asString()); - configRuleSummaries_.push_back(configRuleSummariesObject); - } - -} - -std::vector GetConfigRuleSummaryByRiskLevelResult::getConfigRuleSummaries()const -{ - return configRuleSummaries_; -} - diff --git a/config/src/model/GetConfigRulesReportRequest.cc b/config/src/model/GetConfigRulesReportRequest.cc deleted file mode 100644 index b2b111f3a..000000000 --- a/config/src/model/GetConfigRulesReportRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetConfigRulesReportRequest; - -GetConfigRulesReportRequest::GetConfigRulesReportRequest() - : RpcServiceRequest("config", "2020-09-07", "GetConfigRulesReport") { - setMethod(HttpRequest::Method::Post); -} - -GetConfigRulesReportRequest::~GetConfigRulesReportRequest() {} - -std::string GetConfigRulesReportRequest::getReportId() const { - return reportId_; -} - -void GetConfigRulesReportRequest::setReportId(const std::string &reportId) { - reportId_ = reportId; - setParameter(std::string("ReportId"), reportId); -} - diff --git a/config/src/model/GetConfigRulesReportResult.cc b/config/src/model/GetConfigRulesReportResult.cc deleted file mode 100644 index 6370f148a..000000000 --- a/config/src/model/GetConfigRulesReportResult.cc +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetConfigRulesReportResult::GetConfigRulesReportResult() : - ServiceResult() -{} - -GetConfigRulesReportResult::GetConfigRulesReportResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetConfigRulesReportResult::~GetConfigRulesReportResult() -{} - -void GetConfigRulesReportResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto configRulesReportNode = value["ConfigRulesReport"]; - if(!configRulesReportNode["ReportStatus"].isNull()) - configRulesReport_.reportStatus = configRulesReportNode["ReportStatus"].asString(); - if(!configRulesReportNode["ReportUrl"].isNull()) - configRulesReport_.reportUrl = configRulesReportNode["ReportUrl"].asString(); - if(!configRulesReportNode["AccountId"].isNull()) - configRulesReport_.accountId = std::stol(configRulesReportNode["AccountId"].asString()); - if(!configRulesReportNode["ReportCreateTimestamp"].isNull()) - configRulesReport_.reportCreateTimestamp = std::stol(configRulesReportNode["ReportCreateTimestamp"].asString()); - if(!configRulesReportNode["ReportId"].isNull()) - configRulesReport_.reportId = configRulesReportNode["ReportId"].asString(); - -} - -GetConfigRulesReportResult::ConfigRulesReport GetConfigRulesReportResult::getConfigRulesReport()const -{ - return configRulesReport_; -} - diff --git a/config/src/model/GetDiscoveredResourceCountsGroupByRegionRequest.cc b/config/src/model/GetDiscoveredResourceCountsGroupByRegionRequest.cc deleted file mode 100644 index a06ca1dc7..000000000 --- a/config/src/model/GetDiscoveredResourceCountsGroupByRegionRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetDiscoveredResourceCountsGroupByRegionRequest; - -GetDiscoveredResourceCountsGroupByRegionRequest::GetDiscoveredResourceCountsGroupByRegionRequest() - : RpcServiceRequest("config", "2020-09-07", "GetDiscoveredResourceCountsGroupByRegion") { - setMethod(HttpRequest::Method::Get); -} - -GetDiscoveredResourceCountsGroupByRegionRequest::~GetDiscoveredResourceCountsGroupByRegionRequest() {} - -std::string GetDiscoveredResourceCountsGroupByRegionRequest::getResourceType() const { - return resourceType_; -} - -void GetDiscoveredResourceCountsGroupByRegionRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - diff --git a/config/src/model/GetDiscoveredResourceCountsGroupByRegionResult.cc b/config/src/model/GetDiscoveredResourceCountsGroupByRegionResult.cc deleted file mode 100644 index c38737b10..000000000 --- a/config/src/model/GetDiscoveredResourceCountsGroupByRegionResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetDiscoveredResourceCountsGroupByRegionResult::GetDiscoveredResourceCountsGroupByRegionResult() : - ServiceResult() -{} - -GetDiscoveredResourceCountsGroupByRegionResult::GetDiscoveredResourceCountsGroupByRegionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetDiscoveredResourceCountsGroupByRegionResult::~GetDiscoveredResourceCountsGroupByRegionResult() -{} - -void GetDiscoveredResourceCountsGroupByRegionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDiscoveredResourceCountsSummaryNode = value["DiscoveredResourceCountsSummary"]["GroupedResourceCount"]; - for (auto valueDiscoveredResourceCountsSummaryGroupedResourceCount : allDiscoveredResourceCountsSummaryNode) - { - GroupedResourceCount discoveredResourceCountsSummaryObject; - if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].isNull()) - discoveredResourceCountsSummaryObject.resourceCount = std::stol(valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].asString()); - if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].isNull()) - discoveredResourceCountsSummaryObject.groupName = valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].asString(); - if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["Region"].isNull()) - discoveredResourceCountsSummaryObject.region = valueDiscoveredResourceCountsSummaryGroupedResourceCount["Region"].asString(); - discoveredResourceCountsSummary_.push_back(discoveredResourceCountsSummaryObject); - } - -} - -std::vector GetDiscoveredResourceCountsGroupByRegionResult::getDiscoveredResourceCountsSummary()const -{ - return discoveredResourceCountsSummary_; -} - diff --git a/config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.cc b/config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.cc deleted file mode 100644 index e942ea343..000000000 --- a/config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetDiscoveredResourceCountsGroupByResourceTypeRequest; - -GetDiscoveredResourceCountsGroupByResourceTypeRequest::GetDiscoveredResourceCountsGroupByResourceTypeRequest() - : RpcServiceRequest("config", "2020-09-07", "GetDiscoveredResourceCountsGroupByResourceType") { - setMethod(HttpRequest::Method::Get); -} - -GetDiscoveredResourceCountsGroupByResourceTypeRequest::~GetDiscoveredResourceCountsGroupByResourceTypeRequest() {} - -std::string GetDiscoveredResourceCountsGroupByResourceTypeRequest::getRegion() const { - return region_; -} - -void GetDiscoveredResourceCountsGroupByResourceTypeRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - diff --git a/config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.cc b/config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.cc deleted file mode 100644 index 2982b3feb..000000000 --- a/config/src/model/GetDiscoveredResourceCountsGroupByResourceTypeResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetDiscoveredResourceCountsGroupByResourceTypeResult::GetDiscoveredResourceCountsGroupByResourceTypeResult() : - ServiceResult() -{} - -GetDiscoveredResourceCountsGroupByResourceTypeResult::GetDiscoveredResourceCountsGroupByResourceTypeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetDiscoveredResourceCountsGroupByResourceTypeResult::~GetDiscoveredResourceCountsGroupByResourceTypeResult() -{} - -void GetDiscoveredResourceCountsGroupByResourceTypeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDiscoveredResourceCountsSummaryNode = value["DiscoveredResourceCountsSummary"]["GroupedResourceCount"]; - for (auto valueDiscoveredResourceCountsSummaryGroupedResourceCount : allDiscoveredResourceCountsSummaryNode) - { - GroupedResourceCount discoveredResourceCountsSummaryObject; - if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].isNull()) - discoveredResourceCountsSummaryObject.resourceCount = std::stol(valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceCount"].asString()); - if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].isNull()) - discoveredResourceCountsSummaryObject.groupName = valueDiscoveredResourceCountsSummaryGroupedResourceCount["GroupName"].asString(); - if(!valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceType"].isNull()) - discoveredResourceCountsSummaryObject.resourceType = valueDiscoveredResourceCountsSummaryGroupedResourceCount["ResourceType"].asString(); - discoveredResourceCountsSummary_.push_back(discoveredResourceCountsSummaryObject); - } - -} - -std::vector GetDiscoveredResourceCountsGroupByResourceTypeResult::getDiscoveredResourceCountsSummary()const -{ - return discoveredResourceCountsSummary_; -} - diff --git a/config/src/model/GetDiscoveredResourceCountsRequest.cc b/config/src/model/GetDiscoveredResourceCountsRequest.cc new file mode 100644 index 000000000..e0e4c387a --- /dev/null +++ b/config/src/model/GetDiscoveredResourceCountsRequest.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::GetDiscoveredResourceCountsRequest; + +GetDiscoveredResourceCountsRequest::GetDiscoveredResourceCountsRequest() + : RpcServiceRequest("config", "2019-01-08", "GetDiscoveredResourceCounts") { + setMethod(HttpRequest::Method::Post); +} + +GetDiscoveredResourceCountsRequest::~GetDiscoveredResourceCountsRequest() {} + +bool GetDiscoveredResourceCountsRequest::getMultiAccount() const { + return multiAccount_; +} + +void GetDiscoveredResourceCountsRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +} + +std::string GetDiscoveredResourceCountsRequest::getGroupByKey() const { + return groupByKey_; +} + +void GetDiscoveredResourceCountsRequest::setGroupByKey(const std::string &groupByKey) { + groupByKey_ = groupByKey; + setParameter(std::string("GroupByKey"), groupByKey); +} + +long GetDiscoveredResourceCountsRequest::getMemberId() const { + return memberId_; +} + +void GetDiscoveredResourceCountsRequest::setMemberId(long memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), std::to_string(memberId)); +} + diff --git a/config/src/model/GetDiscoveredResourceCountsResult.cc b/config/src/model/GetDiscoveredResourceCountsResult.cc new file mode 100644 index 000000000..12f427e58 --- /dev/null +++ b/config/src/model/GetDiscoveredResourceCountsResult.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Config; +using namespace AlibabaCloud::Config::Model; + +GetDiscoveredResourceCountsResult::GetDiscoveredResourceCountsResult() : + ServiceResult() +{} + +GetDiscoveredResourceCountsResult::GetDiscoveredResourceCountsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDiscoveredResourceCountsResult::~GetDiscoveredResourceCountsResult() +{} + +void GetDiscoveredResourceCountsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto groupedResourceCountsNode = value["GroupedResourceCounts"]; + if(!groupedResourceCountsNode["GroupByKey"].isNull()) + groupedResourceCounts_.groupByKey = groupedResourceCountsNode["GroupByKey"].asString(); + auto allGroupedResourceCountListNode = groupedResourceCountsNode["GroupedResourceCountList"]["GroupedResourceCount"]; + for (auto groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount : allGroupedResourceCountListNode) + { + GroupedResourceCounts::GroupedResourceCount groupedResourceCountObject; + if(!groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["ResourceCount"].isNull()) + groupedResourceCountObject.resourceCount = std::stol(groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["ResourceCount"].asString()); + if(!groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["GroupName"].isNull()) + groupedResourceCountObject.groupName = groupedResourceCountsNodeGroupedResourceCountListGroupedResourceCount["GroupName"].asString(); + groupedResourceCounts_.groupedResourceCountList.push_back(groupedResourceCountObject); + } + +} + +GetDiscoveredResourceCountsResult::GroupedResourceCounts GetDiscoveredResourceCountsResult::getGroupedResourceCounts()const +{ + return groupedResourceCounts_; +} + diff --git a/config/src/model/GetDiscoveredResourceRequest.cc b/config/src/model/GetDiscoveredResourceRequest.cc deleted file mode 100644 index 5e0077c31..000000000 --- a/config/src/model/GetDiscoveredResourceRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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/GetDiscoveredResourceSummaryRequest.cc b/config/src/model/GetDiscoveredResourceSummaryRequest.cc new file mode 100644 index 000000000..f50d89892 --- /dev/null +++ b/config/src/model/GetDiscoveredResourceSummaryRequest.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::GetDiscoveredResourceSummaryRequest; + +GetDiscoveredResourceSummaryRequest::GetDiscoveredResourceSummaryRequest() + : RpcServiceRequest("config", "2019-01-08", "GetDiscoveredResourceSummary") { + setMethod(HttpRequest::Method::Post); +} + +GetDiscoveredResourceSummaryRequest::~GetDiscoveredResourceSummaryRequest() {} + +bool GetDiscoveredResourceSummaryRequest::getMultiAccount() const { + return multiAccount_; +} + +void GetDiscoveredResourceSummaryRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +} + +long GetDiscoveredResourceSummaryRequest::getMemberId() const { + return memberId_; +} + +void GetDiscoveredResourceSummaryRequest::setMemberId(long memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), std::to_string(memberId)); +} + diff --git a/config/src/model/GetDiscoveredResourceSummaryResult.cc b/config/src/model/GetDiscoveredResourceSummaryResult.cc new file mode 100644 index 000000000..0c73d08a2 --- /dev/null +++ b/config/src/model/GetDiscoveredResourceSummaryResult.cc @@ -0,0 +1,56 @@ +/* + * 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; + +GetDiscoveredResourceSummaryResult::GetDiscoveredResourceSummaryResult() : + ServiceResult() +{} + +GetDiscoveredResourceSummaryResult::GetDiscoveredResourceSummaryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDiscoveredResourceSummaryResult::~GetDiscoveredResourceSummaryResult() +{} + +void GetDiscoveredResourceSummaryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto discoveredResourceSummaryNode = value["DiscoveredResourceSummary"]; + if(!discoveredResourceSummaryNode["RegionCount"].isNull()) + discoveredResourceSummary_.regionCount = std::stoi(discoveredResourceSummaryNode["RegionCount"].asString()); + if(!discoveredResourceSummaryNode["ResourceCount"].isNull()) + discoveredResourceSummary_.resourceCount = std::stoi(discoveredResourceSummaryNode["ResourceCount"].asString()); + if(!discoveredResourceSummaryNode["ResourceTypeCount"].isNull()) + discoveredResourceSummary_.resourceTypeCount = std::stoi(discoveredResourceSummaryNode["ResourceTypeCount"].asString()); + +} + +GetDiscoveredResourceSummaryResult::DiscoveredResourceSummary GetDiscoveredResourceSummaryResult::getDiscoveredResourceSummary()const +{ + return discoveredResourceSummary_; +} + diff --git a/config/src/model/GetManagedRuleResult.cc b/config/src/model/GetManagedRuleResult.cc deleted file mode 100644 index a758d94f1..000000000 --- a/config/src/model/GetManagedRuleResult.cc +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetManagedRuleResult::GetManagedRuleResult() : - ServiceResult() -{} - -GetManagedRuleResult::GetManagedRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetManagedRuleResult::~GetManagedRuleResult() -{} - -void GetManagedRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto managedRuleNode = value["ManagedRule"]; - if(!managedRuleNode["RiskLevel"].isNull()) - managedRule_.riskLevel = std::stoi(managedRuleNode["RiskLevel"].asString()); - if(!managedRuleNode["HelpHint"].isNull()) - managedRule_.helpHint = managedRuleNode["HelpHint"].asString(); - if(!managedRuleNode["DefaultName"].isNull()) - managedRule_.defaultName = managedRuleNode["DefaultName"].asString(); - if(!managedRuleNode["OptionalInputParameterDetails"].isNull()) - managedRule_.optionalInputParameterDetails = managedRuleNode["OptionalInputParameterDetails"].asString(); - if(!managedRuleNode["Identifier"].isNull()) - managedRule_.identifier = managedRuleNode["Identifier"].asString(); - if(!managedRuleNode["CompulsoryInputParameterDetails"].isNull()) - managedRule_.compulsoryInputParameterDetails = managedRuleNode["CompulsoryInputParameterDetails"].asString(); - if(!managedRuleNode["RegionId"].isNull()) - managedRule_.regionId = managedRuleNode["RegionId"].asString(); - if(!managedRuleNode["Description"].isNull()) - managedRule_.description = managedRuleNode["Description"].asString(); - if(!managedRuleNode["FunctionName"].isNull()) - managedRule_.functionName = managedRuleNode["FunctionName"].asString(); - if(!managedRuleNode["ConfigRuleName"].isNull()) - managedRule_.configRuleName = managedRuleNode["ConfigRuleName"].asString(); - if(!managedRuleNode["HelpDoc"].isNull()) - managedRule_.helpDoc = managedRuleNode["HelpDoc"].asString(); - if(!managedRuleNode["HelpUrls"].isNull()) - managedRule_.helpUrls = managedRuleNode["HelpUrls"].asString(); - if(!managedRuleNode["ServiceName"].isNull()) - managedRule_.serviceName = managedRuleNode["ServiceName"].asString(); - if(!managedRuleNode["CreateTimestamp"].isNull()) - managedRule_.createTimestamp = std::stol(managedRuleNode["CreateTimestamp"].asString()); - auto allSourceDetailsNode = managedRuleNode["SourceDetails"]["SourceDetailsItem"]; - for (auto managedRuleNodeSourceDetailsSourceDetailsItem : allSourceDetailsNode) - { - ManagedRule::SourceDetailsItem sourceDetailsItemObject; - if(!managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].isNull()) - sourceDetailsItemObject.messageType = managedRuleNodeSourceDetailsSourceDetailsItem["MessageType"].asString(); - if(!managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].isNull()) - sourceDetailsItemObject.eventSource = managedRuleNodeSourceDetailsSourceDetailsItem["EventSource"].asString(); - if(!managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].isNull()) - sourceDetailsItemObject.maximumExecutionFrequency = managedRuleNodeSourceDetailsSourceDetailsItem["MaximumExecutionFrequency"].asString(); - managedRule_.sourceDetails.push_back(sourceDetailsItemObject); - } - auto scopeNode = managedRuleNode["Scope"]; - auto allComplianceResourceTypes = scopeNode["ComplianceResourceTypes"]["ComplianceResourceTypes"]; - for (auto value : allComplianceResourceTypes) - managedRule_.scope.complianceResourceTypes.push_back(value.asString()); - auto allLabels = managedRuleNode["Labels"]["Labels"]; - for (auto value : allLabels) - managedRule_.labels.push_back(value.asString()); - auto allSourceConditions = managedRuleNode["SourceConditions"]["SourceConditions"]; - for (auto value : allSourceConditions) - managedRule_.sourceConditions.push_back(value.asString()); - -} - -GetManagedRuleResult::ManagedRule GetManagedRuleResult::getManagedRule()const -{ - return managedRule_; -} - diff --git a/config/src/model/GetResourceComplianceByConfigRuleRequest.cc b/config/src/model/GetResourceComplianceByConfigRuleRequest.cc deleted file mode 100644 index caf97fbf0..000000000 --- a/config/src/model/GetResourceComplianceByConfigRuleRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetResourceComplianceByConfigRuleRequest; - -GetResourceComplianceByConfigRuleRequest::GetResourceComplianceByConfigRuleRequest() - : RpcServiceRequest("config", "2020-09-07", "GetResourceComplianceByConfigRule") { - setMethod(HttpRequest::Method::Get); -} - -GetResourceComplianceByConfigRuleRequest::~GetResourceComplianceByConfigRuleRequest() {} - -std::string GetResourceComplianceByConfigRuleRequest::getConfigRuleId() const { - return configRuleId_; -} - -void GetResourceComplianceByConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setParameter(std::string("ConfigRuleId"), configRuleId); -} - -std::string GetResourceComplianceByConfigRuleRequest::getComplianceType() const { - return complianceType_; -} - -void GetResourceComplianceByConfigRuleRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); -} - diff --git a/config/src/model/GetResourceComplianceByPackRequest.cc b/config/src/model/GetResourceComplianceByPackRequest.cc deleted file mode 100644 index fa7c28786..000000000 --- a/config/src/model/GetResourceComplianceByPackRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetResourceComplianceByPackRequest; - -GetResourceComplianceByPackRequest::GetResourceComplianceByPackRequest() - : RpcServiceRequest("config", "2020-09-07", "GetResourceComplianceByPack") { - setMethod(HttpRequest::Method::Get); -} - -GetResourceComplianceByPackRequest::~GetResourceComplianceByPackRequest() {} - -std::string GetResourceComplianceByPackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void GetResourceComplianceByPackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - diff --git a/config/src/model/GetResourceComplianceByPackResult.cc b/config/src/model/GetResourceComplianceByPackResult.cc deleted file mode 100644 index ccc4eca11..000000000 --- a/config/src/model/GetResourceComplianceByPackResult.cc +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetResourceComplianceByPackResult::GetResourceComplianceByPackResult() : - ServiceResult() -{} - -GetResourceComplianceByPackResult::GetResourceComplianceByPackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetResourceComplianceByPackResult::~GetResourceComplianceByPackResult() -{} - -void GetResourceComplianceByPackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto resourceComplianceResultNode = value["ResourceComplianceResult"]; - if(!resourceComplianceResultNode["CompliancePackId"].isNull()) - resourceComplianceResult_.compliancePackId = resourceComplianceResultNode["CompliancePackId"].asString(); - if(!resourceComplianceResultNode["NonCompliantCount"].isNull()) - resourceComplianceResult_.nonCompliantCount = std::stoi(resourceComplianceResultNode["NonCompliantCount"].asString()); - if(!resourceComplianceResultNode["TotalCount"].isNull()) - resourceComplianceResult_.totalCount = std::stoi(resourceComplianceResultNode["TotalCount"].asString()); - -} - -GetResourceComplianceByPackResult::ResourceComplianceResult GetResourceComplianceByPackResult::getResourceComplianceResult()const -{ - return resourceComplianceResult_; -} - diff --git a/config/src/model/GetResourceComplianceGroupByRegionResult.cc b/config/src/model/GetResourceComplianceGroupByRegionResult.cc deleted file mode 100644 index 3bc8cbce5..000000000 --- a/config/src/model/GetResourceComplianceGroupByRegionResult.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetResourceComplianceGroupByRegionResult::GetResourceComplianceGroupByRegionResult() : - ServiceResult() -{} - -GetResourceComplianceGroupByRegionResult::GetResourceComplianceGroupByRegionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetResourceComplianceGroupByRegionResult::~GetResourceComplianceGroupByRegionResult() -{} - -void GetResourceComplianceGroupByRegionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto complianceResultNode = value["ComplianceResult"]; - auto allComplianceResultListNode = complianceResultNode["ComplianceResultList"]["ComplianceResultListItem"]; - for (auto complianceResultNodeComplianceResultListComplianceResultListItem : allComplianceResultListNode) - { - ComplianceResult::ComplianceResultListItem complianceResultListItemObject; - if(!complianceResultNodeComplianceResultListComplianceResultListItem["RegionId"].isNull()) - complianceResultListItemObject.regionId = complianceResultNodeComplianceResultListComplianceResultListItem["RegionId"].asString(); - auto allCompliancesNode = complianceResultNodeComplianceResultListComplianceResultListItem["Compliances"]["CompliancesItem"]; - for (auto complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem : allCompliancesNode) - { - ComplianceResult::ComplianceResultListItem::CompliancesItem compliancesObject; - if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].isNull()) - compliancesObject.complianceType = complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].asString(); - if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].isNull()) - compliancesObject.count = std::stol(complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].asString()); - complianceResultListItemObject.compliances.push_back(compliancesObject); - } - complianceResult_.complianceResultList.push_back(complianceResultListItemObject); - } - -} - -GetResourceComplianceGroupByRegionResult::ComplianceResult GetResourceComplianceGroupByRegionResult::getComplianceResult()const -{ - return complianceResult_; -} - diff --git a/config/src/model/GetResourceComplianceGroupByResourceTypeRequest.cc b/config/src/model/GetResourceComplianceGroupByResourceTypeRequest.cc deleted file mode 100644 index 85ddb0db7..000000000 --- a/config/src/model/GetResourceComplianceGroupByResourceTypeRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::GetResourceComplianceGroupByResourceTypeRequest; - -GetResourceComplianceGroupByResourceTypeRequest::GetResourceComplianceGroupByResourceTypeRequest() - : RpcServiceRequest("config", "2020-09-07", "GetResourceComplianceGroupByResourceType") { - setMethod(HttpRequest::Method::Post); -} - -GetResourceComplianceGroupByResourceTypeRequest::~GetResourceComplianceGroupByResourceTypeRequest() {} - -std::string GetResourceComplianceGroupByResourceTypeRequest::getConfigRuleIds() const { - return configRuleIds_; -} - -void GetResourceComplianceGroupByResourceTypeRequest::setConfigRuleIds(const std::string &configRuleIds) { - configRuleIds_ = configRuleIds; - setParameter(std::string("ConfigRuleIds"), configRuleIds); -} - diff --git a/config/src/model/GetResourceComplianceGroupByResourceTypeResult.cc b/config/src/model/GetResourceComplianceGroupByResourceTypeResult.cc deleted file mode 100644 index a149946a8..000000000 --- a/config/src/model/GetResourceComplianceGroupByResourceTypeResult.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -GetResourceComplianceGroupByResourceTypeResult::GetResourceComplianceGroupByResourceTypeResult() : - ServiceResult() -{} - -GetResourceComplianceGroupByResourceTypeResult::GetResourceComplianceGroupByResourceTypeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetResourceComplianceGroupByResourceTypeResult::~GetResourceComplianceGroupByResourceTypeResult() -{} - -void GetResourceComplianceGroupByResourceTypeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto complianceResultNode = value["ComplianceResult"]; - auto allComplianceResultListNode = complianceResultNode["ComplianceResultList"]["ComplianceResultListItem"]; - for (auto complianceResultNodeComplianceResultListComplianceResultListItem : allComplianceResultListNode) - { - ComplianceResult::ComplianceResultListItem complianceResultListItemObject; - if(!complianceResultNodeComplianceResultListComplianceResultListItem["ResourceType"].isNull()) - complianceResultListItemObject.resourceType = complianceResultNodeComplianceResultListComplianceResultListItem["ResourceType"].asString(); - auto allCompliancesNode = complianceResultNodeComplianceResultListComplianceResultListItem["Compliances"]["CompliancesItem"]; - for (auto complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem : allCompliancesNode) - { - ComplianceResult::ComplianceResultListItem::CompliancesItem compliancesObject; - if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].isNull()) - compliancesObject.complianceType = complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["ComplianceType"].asString(); - if(!complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].isNull()) - compliancesObject.count = std::stol(complianceResultNodeComplianceResultListComplianceResultListItemCompliancesCompliancesItem["Count"].asString()); - complianceResultListItemObject.compliances.push_back(compliancesObject); - } - complianceResult_.complianceResultList.push_back(complianceResultListItemObject); - } - -} - -GetResourceComplianceGroupByResourceTypeResult::ComplianceResult GetResourceComplianceGroupByResourceTypeResult::getComplianceResult()const -{ - return complianceResult_; -} - diff --git a/config/src/model/GetResourceComplianceTimelineRequest.cc b/config/src/model/GetResourceComplianceTimelineRequest.cc index 0f78d263a..7a91d44fa 100644 --- a/config/src/model/GetResourceComplianceTimelineRequest.cc +++ b/config/src/model/GetResourceComplianceTimelineRequest.cc @@ -19,12 +19,48 @@ using AlibabaCloud::Config::Model::GetResourceComplianceTimelineRequest; GetResourceComplianceTimelineRequest::GetResourceComplianceTimelineRequest() - : RpcServiceRequest("config", "2020-09-07", "GetResourceComplianceTimeline") { - setMethod(HttpRequest::Method::Get); + : RpcServiceRequest("config", "2019-01-08", "GetResourceComplianceTimeline") { + setMethod(HttpRequest::Method::Post); } GetResourceComplianceTimelineRequest::~GetResourceComplianceTimelineRequest() {} +bool GetResourceComplianceTimelineRequest::getMultiAccount() const { + return multiAccount_; +} + +void GetResourceComplianceTimelineRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +} + +long GetResourceComplianceTimelineRequest::getStartTime() const { + return startTime_; +} + +void GetResourceComplianceTimelineRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string GetResourceComplianceTimelineRequest::getNextToken() const { + return nextToken_; +} + +void GetResourceComplianceTimelineRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int GetResourceComplianceTimelineRequest::getLimit() const { + return limit_; +} + +void GetResourceComplianceTimelineRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + std::string GetResourceComplianceTimelineRequest::getResourceId() const { return resourceId_; } @@ -43,15 +79,6 @@ void GetResourceComplianceTimelineRequest::setEndTime(long endTime) { setParameter(std::string("EndTime"), std::to_string(endTime)); } -long GetResourceComplianceTimelineRequest::getStartTime() const { - return startTime_; -} - -void GetResourceComplianceTimelineRequest::setStartTime(long startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), std::to_string(startTime)); -} - std::string GetResourceComplianceTimelineRequest::getResourceType() const { return resourceType_; } @@ -61,24 +88,6 @@ void GetResourceComplianceTimelineRequest::setResourceType(const std::string &re setParameter(std::string("ResourceType"), resourceType); } -std::string GetResourceComplianceTimelineRequest::getNextToken() const { - return nextToken_; -} - -void GetResourceComplianceTimelineRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -int GetResourceComplianceTimelineRequest::getMaxResults() const { - return maxResults_; -} - -void GetResourceComplianceTimelineRequest::setMaxResults(int maxResults) { - maxResults_ = maxResults; - setParameter(std::string("MaxResults"), std::to_string(maxResults)); -} - std::string GetResourceComplianceTimelineRequest::getRegion() const { return region_; } @@ -88,3 +97,12 @@ void GetResourceComplianceTimelineRequest::setRegion(const std::string ®ion) setParameter(std::string("Region"), region); } +std::string GetResourceComplianceTimelineRequest::getMemberId() const { + return memberId_; +} + +void GetResourceComplianceTimelineRequest::setMemberId(const std::string &memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), memberId); +} + diff --git a/config/src/model/GetResourceComplianceTimelineResult.cc b/config/src/model/GetResourceComplianceTimelineResult.cc index 477838f54..b2ac0c9f0 100644 --- a/config/src/model/GetResourceComplianceTimelineResult.cc +++ b/config/src/model/GetResourceComplianceTimelineResult.cc @@ -42,8 +42,10 @@ void GetResourceComplianceTimelineResult::parse(const std::string &payload) auto resourceComplianceTimelineNode = value["ResourceComplianceTimeline"]; if(!resourceComplianceTimelineNode["NextToken"].isNull()) resourceComplianceTimeline_.nextToken = resourceComplianceTimelineNode["NextToken"].asString(); - if(!resourceComplianceTimelineNode["MaxResults"].isNull()) - resourceComplianceTimeline_.maxResults = std::stoi(resourceComplianceTimelineNode["MaxResults"].asString()); + if(!resourceComplianceTimelineNode["Limit"].isNull()) + resourceComplianceTimeline_.limit = std::stoi(resourceComplianceTimelineNode["Limit"].asString()); + if(!resourceComplianceTimelineNode["TotalCount"].isNull()) + resourceComplianceTimeline_.totalCount = std::stol(resourceComplianceTimelineNode["TotalCount"].asString()); auto allComplianceListNode = resourceComplianceTimelineNode["ComplianceList"]["ComplianceListItem"]; for (auto resourceComplianceTimelineNodeComplianceListComplianceListItem : allComplianceListNode) { diff --git a/config/src/model/GetResourceConfigurationTimelineRequest.cc b/config/src/model/GetResourceConfigurationTimelineRequest.cc index cc0b0333c..ec5e1490f 100644 --- a/config/src/model/GetResourceConfigurationTimelineRequest.cc +++ b/config/src/model/GetResourceConfigurationTimelineRequest.cc @@ -19,12 +19,48 @@ using AlibabaCloud::Config::Model::GetResourceConfigurationTimelineRequest; GetResourceConfigurationTimelineRequest::GetResourceConfigurationTimelineRequest() - : RpcServiceRequest("config", "2020-09-07", "GetResourceConfigurationTimeline") { - setMethod(HttpRequest::Method::Get); + : RpcServiceRequest("config", "2019-01-08", "GetResourceConfigurationTimeline") { + setMethod(HttpRequest::Method::Post); } GetResourceConfigurationTimelineRequest::~GetResourceConfigurationTimelineRequest() {} +bool GetResourceConfigurationTimelineRequest::getMultiAccount() const { + return multiAccount_; +} + +void GetResourceConfigurationTimelineRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +} + +long GetResourceConfigurationTimelineRequest::getStartTime() const { + return startTime_; +} + +void GetResourceConfigurationTimelineRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +std::string GetResourceConfigurationTimelineRequest::getNextToken() const { + return nextToken_; +} + +void GetResourceConfigurationTimelineRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int GetResourceConfigurationTimelineRequest::getLimit() const { + return limit_; +} + +void GetResourceConfigurationTimelineRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + std::string GetResourceConfigurationTimelineRequest::getResourceId() const { return resourceId_; } @@ -43,15 +79,6 @@ void GetResourceConfigurationTimelineRequest::setEndTime(long endTime) { setParameter(std::string("EndTime"), std::to_string(endTime)); } -long GetResourceConfigurationTimelineRequest::getStartTime() const { - return startTime_; -} - -void GetResourceConfigurationTimelineRequest::setStartTime(long startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), std::to_string(startTime)); -} - std::string GetResourceConfigurationTimelineRequest::getResourceType() const { return resourceType_; } @@ -61,24 +88,6 @@ void GetResourceConfigurationTimelineRequest::setResourceType(const std::string setParameter(std::string("ResourceType"), resourceType); } -std::string GetResourceConfigurationTimelineRequest::getNextToken() const { - return nextToken_; -} - -void GetResourceConfigurationTimelineRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -int GetResourceConfigurationTimelineRequest::getMaxResults() const { - return maxResults_; -} - -void GetResourceConfigurationTimelineRequest::setMaxResults(int maxResults) { - maxResults_ = maxResults; - setParameter(std::string("MaxResults"), std::to_string(maxResults)); -} - std::string GetResourceConfigurationTimelineRequest::getRegion() const { return region_; } @@ -88,3 +97,12 @@ void GetResourceConfigurationTimelineRequest::setRegion(const std::string ®io setParameter(std::string("Region"), region); } +long GetResourceConfigurationTimelineRequest::getMemberId() const { + return memberId_; +} + +void GetResourceConfigurationTimelineRequest::setMemberId(long memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), std::to_string(memberId)); +} + diff --git a/config/src/model/GetResourceConfigurationTimelineResult.cc b/config/src/model/GetResourceConfigurationTimelineResult.cc index 01578de27..f41862143 100644 --- a/config/src/model/GetResourceConfigurationTimelineResult.cc +++ b/config/src/model/GetResourceConfigurationTimelineResult.cc @@ -42,18 +42,24 @@ void GetResourceConfigurationTimelineResult::parse(const std::string &payload) auto resourceConfigurationTimelineNode = value["ResourceConfigurationTimeline"]; if(!resourceConfigurationTimelineNode["NextToken"].isNull()) resourceConfigurationTimeline_.nextToken = resourceConfigurationTimelineNode["NextToken"].asString(); - if(!resourceConfigurationTimelineNode["MaxResults"].isNull()) - resourceConfigurationTimeline_.maxResults = std::stoi(resourceConfigurationTimelineNode["MaxResults"].asString()); + if(!resourceConfigurationTimelineNode["Limit"].isNull()) + resourceConfigurationTimeline_.limit = std::stoi(resourceConfigurationTimelineNode["Limit"].asString()); + if(!resourceConfigurationTimelineNode["TotalCount"].isNull()) + resourceConfigurationTimeline_.totalCount = std::stol(resourceConfigurationTimelineNode["TotalCount"].asString()); auto allConfigurationListNode = resourceConfigurationTimelineNode["ConfigurationList"]["ConfigurationListItem"]; for (auto resourceConfigurationTimelineNodeConfigurationListConfigurationListItem : allConfigurationListNode) { ResourceConfigurationTimeline::ConfigurationListItem configurationListItemObject; + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].isNull()) + configurationListItemObject.relationship = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].asString(); if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].isNull()) configurationListItemObject.tags = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Tags"].asString(); if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AccountId"].isNull()) configurationListItemObject.accountId = std::stol(resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AccountId"].asString()); if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].isNull()) configurationListItemObject.resourceEventType = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceEventType"].asString(); + if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].isNull()) + configurationListItemObject.relationshipDiff = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].asString(); if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AvailabilityZone"].isNull()) configurationListItemObject.availabilityZone = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["AvailabilityZone"].asString(); if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceType"].isNull()) @@ -70,10 +76,6 @@ void GetResourceConfigurationTimelineResult::parse(const std::string &payload) configurationListItemObject.resourceId = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceId"].asString(); if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceName"].isNull()) configurationListItemObject.resourceName = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["ResourceName"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].isNull()) - configurationListItemObject.relationship = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["Relationship"].asString(); - if(!resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].isNull()) - configurationListItemObject.relationshipDiff = resourceConfigurationTimelineNodeConfigurationListConfigurationListItem["RelationshipDiff"].asString(); resourceConfigurationTimeline_.configurationList.push_back(configurationListItemObject); } diff --git a/config/src/model/GetManagedRuleRequest.cc b/config/src/model/GetSupportedResourceTypesRequest.cc similarity index 54% rename from config/src/model/GetManagedRuleRequest.cc rename to config/src/model/GetSupportedResourceTypesRequest.cc index dcc0ff3fb..bd7639b33 100644 --- a/config/src/model/GetManagedRuleRequest.cc +++ b/config/src/model/GetSupportedResourceTypesRequest.cc @@ -14,23 +14,14 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::GetManagedRuleRequest; +using AlibabaCloud::Config::Model::GetSupportedResourceTypesRequest; -GetManagedRuleRequest::GetManagedRuleRequest() - : RpcServiceRequest("config", "2020-09-07", "GetManagedRule") { +GetSupportedResourceTypesRequest::GetSupportedResourceTypesRequest() + : RpcServiceRequest("config", "2019-01-08", "GetSupportedResourceTypes") { setMethod(HttpRequest::Method::Post); } -GetManagedRuleRequest::~GetManagedRuleRequest() {} - -std::string GetManagedRuleRequest::getIdentifier() const { - return identifier_; -} - -void GetManagedRuleRequest::setIdentifier(const std::string &identifier) { - identifier_ = identifier; - setParameter(std::string("Identifier"), identifier); -} +GetSupportedResourceTypesRequest::~GetSupportedResourceTypesRequest() {} diff --git a/config/src/model/GenerateConfigRulesReportResult.cc b/config/src/model/GetSupportedResourceTypesResult.cc similarity index 62% rename from config/src/model/GenerateConfigRulesReportResult.cc rename to config/src/model/GetSupportedResourceTypesResult.cc index a9d8f2b70..ec9fb813a 100644 --- a/config/src/model/GenerateConfigRulesReportResult.cc +++ b/config/src/model/GetSupportedResourceTypesResult.cc @@ -14,38 +14,39 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -GenerateConfigRulesReportResult::GenerateConfigRulesReportResult() : +GetSupportedResourceTypesResult::GetSupportedResourceTypesResult() : ServiceResult() {} -GenerateConfigRulesReportResult::GenerateConfigRulesReportResult(const std::string &payload) : +GetSupportedResourceTypesResult::GetSupportedResourceTypesResult(const std::string &payload) : ServiceResult() { parse(payload); } -GenerateConfigRulesReportResult::~GenerateConfigRulesReportResult() +GetSupportedResourceTypesResult::~GetSupportedResourceTypesResult() {} -void GenerateConfigRulesReportResult::parse(const std::string &payload) +void GetSupportedResourceTypesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ReportId"].isNull()) - reportId_ = value["ReportId"].asString(); + auto allResourceTypes = value["ResourceTypes"]["ResourceType"]; + for (const auto &item : allResourceTypes) + resourceTypes_.push_back(item.asString()); } -std::string GenerateConfigRulesReportResult::getReportId()const +std::vector GetSupportedResourceTypesResult::getResourceTypes()const { - return reportId_; + return resourceTypes_; } diff --git a/config/src/model/IgnoreAggregateEvaluationResultsRequest.cc b/config/src/model/IgnoreAggregateEvaluationResultsRequest.cc deleted file mode 100644 index e77ccac69..000000000 --- a/config/src/model/IgnoreAggregateEvaluationResultsRequest.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::IgnoreAggregateEvaluationResultsRequest; - -IgnoreAggregateEvaluationResultsRequest::IgnoreAggregateEvaluationResultsRequest() - : RpcServiceRequest("config", "2020-09-07", "IgnoreAggregateEvaluationResults") { - setMethod(HttpRequest::Method::Post); -} - -IgnoreAggregateEvaluationResultsRequest::~IgnoreAggregateEvaluationResultsRequest() {} - -std::string IgnoreAggregateEvaluationResultsRequest::getConfigRuleId() const { - return configRuleId_; -} - -void IgnoreAggregateEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setBodyParameter(std::string("ConfigRuleId"), configRuleId); -} - -std::string IgnoreAggregateEvaluationResultsRequest::getReason() const { - return reason_; -} - -void IgnoreAggregateEvaluationResultsRequest::setReason(const std::string &reason) { - reason_ = reason; - setBodyParameter(std::string("Reason"), reason); -} - -std::string IgnoreAggregateEvaluationResultsRequest::getIgnoreDate() const { - return ignoreDate_; -} - -void IgnoreAggregateEvaluationResultsRequest::setIgnoreDate(const std::string &ignoreDate) { - ignoreDate_ = ignoreDate; - setBodyParameter(std::string("IgnoreDate"), ignoreDate); -} - -std::vector IgnoreAggregateEvaluationResultsRequest::getResources() const { - return resources_; -} - -void IgnoreAggregateEvaluationResultsRequest::setResources(const std::vector &resources) { - resources_ = resources; - for(int dep1 = 0; dep1 != resources.size(); dep1++) { - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceId", resources[dep1].resourceId); - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceAccountId", std::to_string(resources[dep1].resourceAccountId)); - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".Region", resources[dep1].region); - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceType", resources[dep1].resourceType); - } -} - -std::string IgnoreAggregateEvaluationResultsRequest::getAggregatorId() const { - return aggregatorId_; -} - -void IgnoreAggregateEvaluationResultsRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setBodyParameter(std::string("AggregatorId"), aggregatorId); -} - diff --git a/config/src/model/IgnoreAggregateEvaluationResultsResult.cc b/config/src/model/IgnoreAggregateEvaluationResultsResult.cc deleted file mode 100644 index 5056ee4c0..000000000 --- a/config/src/model/IgnoreAggregateEvaluationResultsResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -IgnoreAggregateEvaluationResultsResult::IgnoreAggregateEvaluationResultsResult() : - ServiceResult() -{} - -IgnoreAggregateEvaluationResultsResult::IgnoreAggregateEvaluationResultsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -IgnoreAggregateEvaluationResultsResult::~IgnoreAggregateEvaluationResultsResult() -{} - -void IgnoreAggregateEvaluationResultsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/config/src/model/IgnoreEvaluationResultsRequest.cc b/config/src/model/IgnoreEvaluationResultsRequest.cc deleted file mode 100644 index b7f0cb2bc..000000000 --- a/config/src/model/IgnoreEvaluationResultsRequest.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::IgnoreEvaluationResultsRequest; - -IgnoreEvaluationResultsRequest::IgnoreEvaluationResultsRequest() - : RpcServiceRequest("config", "2020-09-07", "IgnoreEvaluationResults") { - setMethod(HttpRequest::Method::Post); -} - -IgnoreEvaluationResultsRequest::~IgnoreEvaluationResultsRequest() {} - -std::string IgnoreEvaluationResultsRequest::getConfigRuleId() const { - return configRuleId_; -} - -void IgnoreEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setBodyParameter(std::string("ConfigRuleId"), configRuleId); -} - -std::string IgnoreEvaluationResultsRequest::getReason() const { - return reason_; -} - -void IgnoreEvaluationResultsRequest::setReason(const std::string &reason) { - reason_ = reason; - setBodyParameter(std::string("Reason"), reason); -} - -std::string IgnoreEvaluationResultsRequest::getIgnoreDate() const { - return ignoreDate_; -} - -void IgnoreEvaluationResultsRequest::setIgnoreDate(const std::string &ignoreDate) { - ignoreDate_ = ignoreDate; - setBodyParameter(std::string("IgnoreDate"), ignoreDate); -} - -std::vector IgnoreEvaluationResultsRequest::getResources() const { - return resources_; -} - -void IgnoreEvaluationResultsRequest::setResources(const std::vector &resources) { - resources_ = resources; - for(int dep1 = 0; dep1 != resources.size(); dep1++) { - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceId", resources[dep1].resourceId); - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceAccountId", std::to_string(resources[dep1].resourceAccountId)); - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".Region", resources[dep1].region); - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceType", resources[dep1].resourceType); - } -} - diff --git a/config/src/model/IgnoreEvaluationResultsResult.cc b/config/src/model/IgnoreEvaluationResultsResult.cc deleted file mode 100644 index 9c4d0d7ac..000000000 --- a/config/src/model/IgnoreEvaluationResultsResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -IgnoreEvaluationResultsResult::IgnoreEvaluationResultsResult() : - ServiceResult() -{} - -IgnoreEvaluationResultsResult::IgnoreEvaluationResultsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -IgnoreEvaluationResultsResult::~IgnoreEvaluationResultsResult() -{} - -void IgnoreEvaluationResultsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/config/src/model/ListAggregateCompliancePacksRequest.cc b/config/src/model/ListAggregateCompliancePacksRequest.cc deleted file mode 100644 index 83677b6c5..000000000 --- a/config/src/model/ListAggregateCompliancePacksRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ListAggregateCompliancePacksRequest; - -ListAggregateCompliancePacksRequest::ListAggregateCompliancePacksRequest() - : RpcServiceRequest("config", "2020-09-07", "ListAggregateCompliancePacks") { - setMethod(HttpRequest::Method::Post); -} - -ListAggregateCompliancePacksRequest::~ListAggregateCompliancePacksRequest() {} - -std::string ListAggregateCompliancePacksRequest::getAggregatorId() const { - return aggregatorId_; -} - -void ListAggregateCompliancePacksRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -int ListAggregateCompliancePacksRequest::getPageNumber() const { - return pageNumber_; -} - -void ListAggregateCompliancePacksRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -int ListAggregateCompliancePacksRequest::getPageSize() const { - return pageSize_; -} - -void ListAggregateCompliancePacksRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string ListAggregateCompliancePacksRequest::getStatus() const { - return status_; -} - -void ListAggregateCompliancePacksRequest::setStatus(const std::string &status) { - status_ = status; - setParameter(std::string("Status"), status); -} - diff --git a/config/src/model/ListAggregateCompliancePacksResult.cc b/config/src/model/ListAggregateCompliancePacksResult.cc deleted file mode 100644 index 14f6fc7b4..000000000 --- a/config/src/model/ListAggregateCompliancePacksResult.cc +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListAggregateCompliancePacksResult::ListAggregateCompliancePacksResult() : - ServiceResult() -{} - -ListAggregateCompliancePacksResult::ListAggregateCompliancePacksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAggregateCompliancePacksResult::~ListAggregateCompliancePacksResult() -{} - -void ListAggregateCompliancePacksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto compliancePacksResultNode = value["CompliancePacksResult"]; - if(!compliancePacksResultNode["PageSize"].isNull()) - compliancePacksResult_.pageSize = std::stoi(compliancePacksResultNode["PageSize"].asString()); - if(!compliancePacksResultNode["PageNumber"].isNull()) - compliancePacksResult_.pageNumber = std::stoi(compliancePacksResultNode["PageNumber"].asString()); - if(!compliancePacksResultNode["TotalCount"].isNull()) - compliancePacksResult_.totalCount = std::stol(compliancePacksResultNode["TotalCount"].asString()); - auto allCompliancePacksNode = compliancePacksResultNode["CompliancePacks"]["CompliancePacksItem"]; - for (auto compliancePacksResultNodeCompliancePacksCompliancePacksItem : allCompliancePacksNode) - { - CompliancePacksResult::CompliancePacksItem compliancePacksItemObject; - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["Status"].isNull()) - compliancePacksItemObject.status = compliancePacksResultNodeCompliancePacksCompliancePacksItem["Status"].asString(); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["RiskLevel"].isNull()) - compliancePacksItemObject.riskLevel = std::stoi(compliancePacksResultNodeCompliancePacksCompliancePacksItem["RiskLevel"].asString()); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackId"].isNull()) - compliancePacksItemObject.compliancePackId = compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackId"].asString(); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["Description"].isNull()) - compliancePacksItemObject.description = compliancePacksResultNodeCompliancePacksCompliancePacksItem["Description"].asString(); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackName"].isNull()) - compliancePacksItemObject.compliancePackName = compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackName"].asString(); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["AccountId"].isNull()) - compliancePacksItemObject.accountId = std::stol(compliancePacksResultNodeCompliancePacksCompliancePacksItem["AccountId"].asString()); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["AggregatorId"].isNull()) - compliancePacksItemObject.aggregatorId = compliancePacksResultNodeCompliancePacksCompliancePacksItem["AggregatorId"].asString(); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackTemplateId"].isNull()) - compliancePacksItemObject.compliancePackTemplateId = compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackTemplateId"].asString(); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CreateTimestamp"].isNull()) - compliancePacksItemObject.createTimestamp = std::stol(compliancePacksResultNodeCompliancePacksCompliancePacksItem["CreateTimestamp"].asString()); - compliancePacksResult_.compliancePacks.push_back(compliancePacksItemObject); - } - -} - -ListAggregateCompliancePacksResult::CompliancePacksResult ListAggregateCompliancePacksResult::getCompliancePacksResult()const -{ - return compliancePacksResult_; -} - diff --git a/config/src/model/ListAggregateConfigDeliveryChannelsRequest.cc b/config/src/model/ListAggregateConfigDeliveryChannelsRequest.cc deleted file mode 100644 index 6cadd9fb0..000000000 --- a/config/src/model/ListAggregateConfigDeliveryChannelsRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ListAggregateConfigDeliveryChannelsRequest; - -ListAggregateConfigDeliveryChannelsRequest::ListAggregateConfigDeliveryChannelsRequest() - : RpcServiceRequest("config", "2020-09-07", "ListAggregateConfigDeliveryChannels") { - setMethod(HttpRequest::Method::Post); -} - -ListAggregateConfigDeliveryChannelsRequest::~ListAggregateConfigDeliveryChannelsRequest() {} - -std::string ListAggregateConfigDeliveryChannelsRequest::getAggregatorId() const { - return aggregatorId_; -} - -void ListAggregateConfigDeliveryChannelsRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string ListAggregateConfigDeliveryChannelsRequest::getDeliveryChannelIds() const { - return deliveryChannelIds_; -} - -void ListAggregateConfigDeliveryChannelsRequest::setDeliveryChannelIds(const std::string &deliveryChannelIds) { - deliveryChannelIds_ = deliveryChannelIds; - setParameter(std::string("DeliveryChannelIds"), deliveryChannelIds); -} - diff --git a/config/src/model/ListAggregateConfigDeliveryChannelsResult.cc b/config/src/model/ListAggregateConfigDeliveryChannelsResult.cc deleted file mode 100644 index be9eeee34..000000000 --- a/config/src/model/ListAggregateConfigDeliveryChannelsResult.cc +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListAggregateConfigDeliveryChannelsResult::ListAggregateConfigDeliveryChannelsResult() : - ServiceResult() -{} - -ListAggregateConfigDeliveryChannelsResult::ListAggregateConfigDeliveryChannelsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAggregateConfigDeliveryChannelsResult::~ListAggregateConfigDeliveryChannelsResult() -{} - -void ListAggregateConfigDeliveryChannelsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDeliveryChannelsNode = value["DeliveryChannels"]["DeliveryChannel"]; - for (auto valueDeliveryChannelsDeliveryChannel : allDeliveryChannelsNode) - { - DeliveryChannel deliveryChannelsObject; - if(!valueDeliveryChannelsDeliveryChannel["Status"].isNull()) - deliveryChannelsObject.status = std::stoi(valueDeliveryChannelsDeliveryChannel["Status"].asString()); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelName"].isNull()) - deliveryChannelsObject.deliveryChannelName = valueDeliveryChannelsDeliveryChannel["DeliveryChannelName"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].isNull()) - deliveryChannelsObject.deliveryChannelId = valueDeliveryChannelsDeliveryChannel["DeliveryChannelId"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].isNull()) - deliveryChannelsObject.deliveryChannelType = valueDeliveryChannelsDeliveryChannel["DeliveryChannelType"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].isNull()) - deliveryChannelsObject.deliveryChannelTargetArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelTargetArn"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].isNull()) - deliveryChannelsObject.deliveryChannelAssumeRoleArn = valueDeliveryChannelsDeliveryChannel["DeliveryChannelAssumeRoleArn"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].isNull()) - deliveryChannelsObject.deliveryChannelCondition = valueDeliveryChannelsDeliveryChannel["DeliveryChannelCondition"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].isNull()) - deliveryChannelsObject.oversizedDataOSSTargetArn = valueDeliveryChannelsDeliveryChannel["OversizedDataOSSTargetArn"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["Description"].isNull()) - deliveryChannelsObject.description = valueDeliveryChannelsDeliveryChannel["Description"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["ConfigurationSnapshot"].isNull()) - deliveryChannelsObject.configurationSnapshot = valueDeliveryChannelsDeliveryChannel["ConfigurationSnapshot"].asString() == "true"; - if(!valueDeliveryChannelsDeliveryChannel["ConfigurationItemChangeNotification"].isNull()) - deliveryChannelsObject.configurationItemChangeNotification = valueDeliveryChannelsDeliveryChannel["ConfigurationItemChangeNotification"].asString() == "true"; - if(!valueDeliveryChannelsDeliveryChannel["NonCompliantNotification"].isNull()) - deliveryChannelsObject.nonCompliantNotification = valueDeliveryChannelsDeliveryChannel["NonCompliantNotification"].asString() == "true"; - if(!valueDeliveryChannelsDeliveryChannel["AggregatorId"].isNull()) - deliveryChannelsObject.aggregatorId = valueDeliveryChannelsDeliveryChannel["AggregatorId"].asString(); - if(!valueDeliveryChannelsDeliveryChannel["AccountId"].isNull()) - deliveryChannelsObject.accountId = std::stol(valueDeliveryChannelsDeliveryChannel["AccountId"].asString()); - deliveryChannels_.push_back(deliveryChannelsObject); - } - -} - -std::vector ListAggregateConfigDeliveryChannelsResult::getDeliveryChannels()const -{ - return deliveryChannels_; -} - diff --git a/config/src/model/ListAggregateConfigRuleEvaluationResultsRequest.cc b/config/src/model/ListAggregateConfigRuleEvaluationResultsRequest.cc deleted file mode 100644 index 00eb2f390..000000000 --- a/config/src/model/ListAggregateConfigRuleEvaluationResultsRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ListAggregateConfigRuleEvaluationResultsRequest; - -ListAggregateConfigRuleEvaluationResultsRequest::ListAggregateConfigRuleEvaluationResultsRequest() - : RpcServiceRequest("config", "2020-09-07", "ListAggregateConfigRuleEvaluationResults") { - setMethod(HttpRequest::Method::Get); -} - -ListAggregateConfigRuleEvaluationResultsRequest::~ListAggregateConfigRuleEvaluationResultsRequest() {} - -std::string ListAggregateConfigRuleEvaluationResultsRequest::getConfigRuleId() const { - return configRuleId_; -} - -void ListAggregateConfigRuleEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setParameter(std::string("ConfigRuleId"), configRuleId); -} - -long ListAggregateConfigRuleEvaluationResultsRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void ListAggregateConfigRuleEvaluationResultsRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string ListAggregateConfigRuleEvaluationResultsRequest::getAggregatorId() const { - return aggregatorId_; -} - -void ListAggregateConfigRuleEvaluationResultsRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string ListAggregateConfigRuleEvaluationResultsRequest::getNextToken() const { - return nextToken_; -} - -void ListAggregateConfigRuleEvaluationResultsRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -int ListAggregateConfigRuleEvaluationResultsRequest::getMaxResults() const { - return maxResults_; -} - -void ListAggregateConfigRuleEvaluationResultsRequest::setMaxResults(int maxResults) { - maxResults_ = maxResults; - setParameter(std::string("MaxResults"), std::to_string(maxResults)); -} - -std::string ListAggregateConfigRuleEvaluationResultsRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void ListAggregateConfigRuleEvaluationResultsRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - -std::string ListAggregateConfigRuleEvaluationResultsRequest::getComplianceType() const { - return complianceType_; -} - -void ListAggregateConfigRuleEvaluationResultsRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); -} - diff --git a/config/src/model/ListAggregateConfigRuleEvaluationResultsResult.cc b/config/src/model/ListAggregateConfigRuleEvaluationResultsResult.cc deleted file mode 100644 index 5b2e52408..000000000 --- a/config/src/model/ListAggregateConfigRuleEvaluationResultsResult.cc +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListAggregateConfigRuleEvaluationResultsResult::ListAggregateConfigRuleEvaluationResultsResult() : - ServiceResult() -{} - -ListAggregateConfigRuleEvaluationResultsResult::ListAggregateConfigRuleEvaluationResultsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAggregateConfigRuleEvaluationResultsResult::~ListAggregateConfigRuleEvaluationResultsResult() -{} - -void ListAggregateConfigRuleEvaluationResultsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto evaluationResultsNode = value["EvaluationResults"]; - if(!evaluationResultsNode["NextToken"].isNull()) - evaluationResults_.nextToken = evaluationResultsNode["NextToken"].asString(); - if(!evaluationResultsNode["MaxResults"].isNull()) - evaluationResults_.maxResults = std::stoi(evaluationResultsNode["MaxResults"].asString()); - auto allEvaluationResultListNode = evaluationResultsNode["EvaluationResultList"]["EvaluationResult"]; - for (auto evaluationResultsNodeEvaluationResultListEvaluationResult : allEvaluationResultListNode) - { - EvaluationResults::EvaluationResult evaluationResultObject; - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].isNull()) - evaluationResultObject.riskLevel = std::stoi(evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].asString()); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].isNull()) - evaluationResultObject.complianceType = evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].asString(); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].isNull()) - evaluationResultObject.resultRecordedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].asString()); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].isNull()) - evaluationResultObject.annotation = evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].asString(); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].isNull()) - evaluationResultObject.configRuleInvokedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].asString()); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].isNull()) - evaluationResultObject.invokingEventMessageType = evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].asString(); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].isNull()) - evaluationResultObject.remediationEnabled = evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].asString() == "true"; - auto evaluationResultIdentifierNode = value["EvaluationResultIdentifier"]; - if(!evaluationResultIdentifierNode["OrderingTimestamp"].isNull()) - evaluationResultObject.evaluationResultIdentifier.orderingTimestamp = std::stol(evaluationResultIdentifierNode["OrderingTimestamp"].asString()); - auto evaluationResultQualifierNode = evaluationResultIdentifierNode["EvaluationResultQualifier"]; - if(!evaluationResultQualifierNode["ResourceOwnerId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceOwnerId = std::stol(evaluationResultQualifierNode["ResourceOwnerId"].asString()); - if(!evaluationResultQualifierNode["ConfigRuleArn"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleArn = evaluationResultQualifierNode["ConfigRuleArn"].asString(); - if(!evaluationResultQualifierNode["ResourceType"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceType = evaluationResultQualifierNode["ResourceType"].asString(); - if(!evaluationResultQualifierNode["ConfigRuleName"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleName = evaluationResultQualifierNode["ConfigRuleName"].asString(); - if(!evaluationResultQualifierNode["ResourceId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceId = evaluationResultQualifierNode["ResourceId"].asString(); - if(!evaluationResultQualifierNode["ConfigRuleId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleId = evaluationResultQualifierNode["ConfigRuleId"].asString(); - if(!evaluationResultQualifierNode["ResourceName"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceName = evaluationResultQualifierNode["ResourceName"].asString(); - if(!evaluationResultQualifierNode["RegionId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString(); - if(!evaluationResultQualifierNode["CompliancePackId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.compliancePackId = evaluationResultQualifierNode["CompliancePackId"].asString(); - if(!evaluationResultQualifierNode["IgnoreDate"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.ignoreDate = evaluationResultQualifierNode["IgnoreDate"].asString(); - evaluationResults_.evaluationResultList.push_back(evaluationResultObject); - } - -} - -ListAggregateConfigRuleEvaluationResultsResult::EvaluationResults ListAggregateConfigRuleEvaluationResultsResult::getEvaluationResults()const -{ - return evaluationResults_; -} - diff --git a/config/src/model/ListAggregateConfigRulesRequest.cc b/config/src/model/ListAggregateConfigRulesRequest.cc deleted file mode 100644 index dba5c0d1a..000000000 --- a/config/src/model/ListAggregateConfigRulesRequest.cc +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ListAggregateConfigRulesRequest; - -ListAggregateConfigRulesRequest::ListAggregateConfigRulesRequest() - : RpcServiceRequest("config", "2020-09-07", "ListAggregateConfigRules") { - setMethod(HttpRequest::Method::Post); -} - -ListAggregateConfigRulesRequest::~ListAggregateConfigRulesRequest() {} - -bool ListAggregateConfigRulesRequest::getFilterInCompliancePack() const { - return filterInCompliancePack_; -} - -void ListAggregateConfigRulesRequest::setFilterInCompliancePack(bool filterInCompliancePack) { - filterInCompliancePack_ = filterInCompliancePack; - setParameter(std::string("FilterInCompliancePack"), filterInCompliancePack ? "true" : "false"); -} - -std::string ListAggregateConfigRulesRequest::getMessageType() const { - return messageType_; -} - -void ListAggregateConfigRulesRequest::setMessageType(const std::string &messageType) { - messageType_ = messageType; - setParameter(std::string("MessageType"), messageType); -} - -std::string ListAggregateConfigRulesRequest::getConfigRuleState() const { - return configRuleState_; -} - -void ListAggregateConfigRulesRequest::setConfigRuleState(const std::string &configRuleState) { - configRuleState_ = configRuleState; - setParameter(std::string("ConfigRuleState"), configRuleState); -} - -std::string ListAggregateConfigRulesRequest::getAggregatorId() const { - return aggregatorId_; -} - -void ListAggregateConfigRulesRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string ListAggregateConfigRulesRequest::getFilterInCompliancePackExcludeIds() const { - return filterInCompliancePackExcludeIds_; -} - -void ListAggregateConfigRulesRequest::setFilterInCompliancePackExcludeIds(const std::string &filterInCompliancePackExcludeIds) { - filterInCompliancePackExcludeIds_ = filterInCompliancePackExcludeIds; - setParameter(std::string("FilterInCompliancePackExcludeIds"), filterInCompliancePackExcludeIds); -} - -int ListAggregateConfigRulesRequest::getPageNumber() const { - return pageNumber_; -} - -void ListAggregateConfigRulesRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -int ListAggregateConfigRulesRequest::getPageSize() const { - return pageSize_; -} - -void ListAggregateConfigRulesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string ListAggregateConfigRulesRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void ListAggregateConfigRulesRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - -ListAggregateConfigRulesRequest::Tag ListAggregateConfigRulesRequest::getTag() const { - return tag_; -} - -void ListAggregateConfigRulesRequest::setTag(const ListAggregateConfigRulesRequest::Tag &tag) { - tag_ = tag; - setParameter(std::string("Tag") + ".Value", tag.value); - setParameter(std::string("Tag") + ".Key", tag.key); -} - -std::string ListAggregateConfigRulesRequest::getComplianceType() const { - return complianceType_; -} - -void ListAggregateConfigRulesRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); -} - -int ListAggregateConfigRulesRequest::getRiskLevel() const { - return riskLevel_; -} - -void ListAggregateConfigRulesRequest::setRiskLevel(int riskLevel) { - riskLevel_ = riskLevel; - setParameter(std::string("RiskLevel"), std::to_string(riskLevel)); -} - -std::string ListAggregateConfigRulesRequest::getConfigRuleName() const { - return configRuleName_; -} - -void ListAggregateConfigRulesRequest::setConfigRuleName(const std::string &configRuleName) { - configRuleName_ = configRuleName; - setParameter(std::string("ConfigRuleName"), configRuleName); -} - diff --git a/config/src/model/ListAggregateDiscoveredResourcesRequest.cc b/config/src/model/ListAggregateDiscoveredResourcesRequest.cc index 86d5cd9a5..46d185a01 100644 --- a/config/src/model/ListAggregateDiscoveredResourcesRequest.cc +++ b/config/src/model/ListAggregateDiscoveredResourcesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Config::Model::ListAggregateDiscoveredResourcesRequest; ListAggregateDiscoveredResourcesRequest::ListAggregateDiscoveredResourcesRequest() - : RpcServiceRequest("config", "2020-09-07", "ListAggregateDiscoveredResources") { + : RpcServiceRequest("config", "2019-01-08", "ListAggregateDiscoveredResources") { setMethod(HttpRequest::Method::Post); } @@ -61,6 +61,15 @@ void ListAggregateDiscoveredResourcesRequest::setAggregatorId(const std::string setParameter(std::string("AggregatorId"), aggregatorId); } +int ListAggregateDiscoveredResourcesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListAggregateDiscoveredResourcesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + std::string ListAggregateDiscoveredResourcesRequest::getFolderId() const { return folderId_; } @@ -70,13 +79,22 @@ void ListAggregateDiscoveredResourcesRequest::setFolderId(const std::string &fol setParameter(std::string("FolderId"), folderId); } -std::string ListAggregateDiscoveredResourcesRequest::getNextToken() const { - return nextToken_; +int ListAggregateDiscoveredResourcesRequest::getPageSize() const { + return pageSize_; } -void ListAggregateDiscoveredResourcesRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); +void ListAggregateDiscoveredResourcesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListAggregateDiscoveredResourcesRequest::getComplianceType() const { + return complianceType_; +} + +void ListAggregateDiscoveredResourcesRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); } std::string ListAggregateDiscoveredResourcesRequest::getResourceId() const { @@ -97,12 +115,3 @@ void ListAggregateDiscoveredResourcesRequest::setResourceTypes(const std::string 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 index 56047be2a..4975c6773 100644 --- a/config/src/model/ListAggregateDiscoveredResourcesResult.cc +++ b/config/src/model/ListAggregateDiscoveredResourcesResult.cc @@ -40,10 +40,10 @@ void ListAggregateDiscoveredResourcesResult::parse(const std::string &payload) 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["PageNumber"].isNull()) + discoveredResourceProfiles_.pageNumber = std::stoi(discoveredResourceProfilesNode["PageNumber"].asString()); + if(!discoveredResourceProfilesNode["PageSize"].isNull()) + discoveredResourceProfiles_.pageSize = std::stoi(discoveredResourceProfilesNode["PageSize"].asString()); if(!discoveredResourceProfilesNode["TotalCount"].isNull()) discoveredResourceProfiles_.totalCount = std::stoi(discoveredResourceProfilesNode["TotalCount"].asString()); auto allDiscoveredResourceProfileListNode = discoveredResourceProfilesNode["DiscoveredResourceProfileList"]["DiscoveredResourceProfile"]; diff --git a/config/src/model/ListAggregateRemediationsRequest.cc b/config/src/model/ListAggregateRemediationsRequest.cc deleted file mode 100644 index e9d6d202d..000000000 --- a/config/src/model/ListAggregateRemediationsRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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 deleted file mode 100644 index 74f99e003..000000000 --- a/config/src/model/ListAggregateRemediationsResult.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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()); - if(!valueRemediationsRemediation["RemediaitonOriginParams"].isNull()) - remediationsObject.remediaitonOriginParams = valueRemediationsRemediation["RemediaitonOriginParams"].asString(); - remediations_.push_back(remediationsObject); - } - -} - -std::vector ListAggregateRemediationsResult::getRemediations()const -{ - return remediations_; -} - diff --git a/config/src/model/ListAggregateResourceEvaluationResultsRequest.cc b/config/src/model/ListAggregateResourceEvaluationResultsRequest.cc deleted file mode 100644 index c13fe25e2..000000000 --- a/config/src/model/ListAggregateResourceEvaluationResultsRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ListAggregateResourceEvaluationResultsRequest; - -ListAggregateResourceEvaluationResultsRequest::ListAggregateResourceEvaluationResultsRequest() - : RpcServiceRequest("config", "2020-09-07", "ListAggregateResourceEvaluationResults") { - setMethod(HttpRequest::Method::Post); -} - -ListAggregateResourceEvaluationResultsRequest::~ListAggregateResourceEvaluationResultsRequest() {} - -std::string ListAggregateResourceEvaluationResultsRequest::getResourceId() const { - return resourceId_; -} - -void ListAggregateResourceEvaluationResultsRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); -} - -std::string ListAggregateResourceEvaluationResultsRequest::getAggregatorId() const { - return aggregatorId_; -} - -void ListAggregateResourceEvaluationResultsRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string ListAggregateResourceEvaluationResultsRequest::getResourceType() const { - return resourceType_; -} - -void ListAggregateResourceEvaluationResultsRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -std::string ListAggregateResourceEvaluationResultsRequest::getNextToken() const { - return nextToken_; -} - -void ListAggregateResourceEvaluationResultsRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -int ListAggregateResourceEvaluationResultsRequest::getMaxResults() const { - return maxResults_; -} - -void ListAggregateResourceEvaluationResultsRequest::setMaxResults(int maxResults) { - maxResults_ = maxResults; - setParameter(std::string("MaxResults"), std::to_string(maxResults)); -} - -std::string ListAggregateResourceEvaluationResultsRequest::getRegion() const { - return region_; -} - -void ListAggregateResourceEvaluationResultsRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - -std::string ListAggregateResourceEvaluationResultsRequest::getComplianceType() const { - return complianceType_; -} - -void ListAggregateResourceEvaluationResultsRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); -} - diff --git a/config/src/model/ListAggregateResourceEvaluationResultsResult.cc b/config/src/model/ListAggregateResourceEvaluationResultsResult.cc deleted file mode 100644 index 5cfeb495c..000000000 --- a/config/src/model/ListAggregateResourceEvaluationResultsResult.cc +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListAggregateResourceEvaluationResultsResult::ListAggregateResourceEvaluationResultsResult() : - ServiceResult() -{} - -ListAggregateResourceEvaluationResultsResult::ListAggregateResourceEvaluationResultsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAggregateResourceEvaluationResultsResult::~ListAggregateResourceEvaluationResultsResult() -{} - -void ListAggregateResourceEvaluationResultsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto evaluationResultsNode = value["EvaluationResults"]; - if(!evaluationResultsNode["NextToken"].isNull()) - evaluationResults_.nextToken = evaluationResultsNode["NextToken"].asString(); - if(!evaluationResultsNode["MaxResults"].isNull()) - evaluationResults_.maxResults = std::stoi(evaluationResultsNode["MaxResults"].asString()); - auto allEvaluationResultListNode = evaluationResultsNode["EvaluationResultList"]["EvaluationResult"]; - for (auto evaluationResultsNodeEvaluationResultListEvaluationResult : allEvaluationResultListNode) - { - EvaluationResults::EvaluationResult evaluationResultObject; - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].isNull()) - evaluationResultObject.riskLevel = std::stoi(evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].asString()); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].isNull()) - evaluationResultObject.complianceType = evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].asString(); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].isNull()) - evaluationResultObject.resultRecordedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].asString()); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].isNull()) - evaluationResultObject.annotation = evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].asString(); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].isNull()) - evaluationResultObject.configRuleInvokedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].asString()); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].isNull()) - evaluationResultObject.invokingEventMessageType = evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].asString(); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].isNull()) - evaluationResultObject.remediationEnabled = evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].asString() == "true"; - auto evaluationResultIdentifierNode = value["EvaluationResultIdentifier"]; - if(!evaluationResultIdentifierNode["OrderingTimestamp"].isNull()) - evaluationResultObject.evaluationResultIdentifier.orderingTimestamp = std::stol(evaluationResultIdentifierNode["OrderingTimestamp"].asString()); - auto evaluationResultQualifierNode = evaluationResultIdentifierNode["EvaluationResultQualifier"]; - if(!evaluationResultQualifierNode["ConfigRuleArn"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleArn = evaluationResultQualifierNode["ConfigRuleArn"].asString(); - if(!evaluationResultQualifierNode["ResourceType"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceType = evaluationResultQualifierNode["ResourceType"].asString(); - if(!evaluationResultQualifierNode["ConfigRuleName"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleName = evaluationResultQualifierNode["ConfigRuleName"].asString(); - if(!evaluationResultQualifierNode["ResourceId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceId = evaluationResultQualifierNode["ResourceId"].asString(); - if(!evaluationResultQualifierNode["ConfigRuleId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleId = evaluationResultQualifierNode["ConfigRuleId"].asString(); - if(!evaluationResultQualifierNode["ResourceName"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceName = evaluationResultQualifierNode["ResourceName"].asString(); - if(!evaluationResultQualifierNode["RegionId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString(); - if(!evaluationResultQualifierNode["IgnoreDate"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.ignoreDate = evaluationResultQualifierNode["IgnoreDate"].asString(); - evaluationResults_.evaluationResultList.push_back(evaluationResultObject); - } - -} - -ListAggregateResourceEvaluationResultsResult::EvaluationResults ListAggregateResourceEvaluationResultsResult::getEvaluationResults()const -{ - return evaluationResults_; -} - diff --git a/config/src/model/ListAggregatorsRequest.cc b/config/src/model/ListAggregatorsRequest.cc deleted file mode 100644 index e58e555f6..000000000 --- a/config/src/model/ListAggregatorsRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ListAggregatorsRequest; - -ListAggregatorsRequest::ListAggregatorsRequest() - : RpcServiceRequest("config", "2020-09-07", "ListAggregators") { - setMethod(HttpRequest::Method::Post); -} - -ListAggregatorsRequest::~ListAggregatorsRequest() {} - -std::string ListAggregatorsRequest::getNextToken() const { - return nextToken_; -} - -void ListAggregatorsRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -int ListAggregatorsRequest::getMaxResults() const { - return maxResults_; -} - -void ListAggregatorsRequest::setMaxResults(int maxResults) { - maxResults_ = maxResults; - setParameter(std::string("MaxResults"), std::to_string(maxResults)); -} - diff --git a/config/src/model/ListAggregatorsResult.cc b/config/src/model/ListAggregatorsResult.cc deleted file mode 100644 index 3de4440c1..000000000 --- a/config/src/model/ListAggregatorsResult.cc +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListAggregatorsResult::ListAggregatorsResult() : - ServiceResult() -{} - -ListAggregatorsResult::ListAggregatorsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAggregatorsResult::~ListAggregatorsResult() -{} - -void ListAggregatorsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto aggregatorsResultNode = value["AggregatorsResult"]; - if(!aggregatorsResultNode["NextToken"].isNull()) - aggregatorsResult_.nextToken = aggregatorsResultNode["NextToken"].asString(); - if(!aggregatorsResultNode["MaxResults"].isNull()) - aggregatorsResult_.maxResults = std::stoi(aggregatorsResultNode["MaxResults"].asString()); - auto allAggregatorsNode = aggregatorsResultNode["Aggregators"]["AggregatorsItem"]; - for (auto aggregatorsResultNodeAggregatorsAggregatorsItem : allAggregatorsNode) - { - AggregatorsResult::AggregatorsItem aggregatorsItemObject; - if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorCreateTimestamp"].isNull()) - aggregatorsItemObject.aggregatorCreateTimestamp = std::stol(aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorCreateTimestamp"].asString()); - if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorAccountCount"].isNull()) - aggregatorsItemObject.aggregatorAccountCount = std::stol(aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorAccountCount"].asString()); - if(!aggregatorsResultNodeAggregatorsAggregatorsItem["Description"].isNull()) - aggregatorsItemObject.description = aggregatorsResultNodeAggregatorsAggregatorsItem["Description"].asString(); - if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorName"].isNull()) - aggregatorsItemObject.aggregatorName = aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorName"].asString(); - if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorStatus"].isNull()) - aggregatorsItemObject.aggregatorStatus = std::stoi(aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorStatus"].asString()); - if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorType"].isNull()) - aggregatorsItemObject.aggregatorType = aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorType"].asString(); - if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AccountId"].isNull()) - aggregatorsItemObject.accountId = std::stol(aggregatorsResultNodeAggregatorsAggregatorsItem["AccountId"].asString()); - if(!aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorId"].isNull()) - aggregatorsItemObject.aggregatorId = aggregatorsResultNodeAggregatorsAggregatorsItem["AggregatorId"].asString(); - aggregatorsResult_.aggregators.push_back(aggregatorsItemObject); - } - -} - -ListAggregatorsResult::AggregatorsResult ListAggregatorsResult::getAggregatorsResult()const -{ - return aggregatorsResult_; -} - diff --git a/config/src/model/ListCompliancePackTemplatesRequest.cc b/config/src/model/ListCompliancePackTemplatesRequest.cc deleted file mode 100644 index 4f7138c58..000000000 --- a/config/src/model/ListCompliancePackTemplatesRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ListCompliancePackTemplatesRequest; - -ListCompliancePackTemplatesRequest::ListCompliancePackTemplatesRequest() - : RpcServiceRequest("config", "2020-09-07", "ListCompliancePackTemplates") { - setMethod(HttpRequest::Method::Get); -} - -ListCompliancePackTemplatesRequest::~ListCompliancePackTemplatesRequest() {} - -std::string ListCompliancePackTemplatesRequest::getCompliancePackTemplateId() const { - return compliancePackTemplateId_; -} - -void ListCompliancePackTemplatesRequest::setCompliancePackTemplateId(const std::string &compliancePackTemplateId) { - compliancePackTemplateId_ = compliancePackTemplateId; - setParameter(std::string("CompliancePackTemplateId"), compliancePackTemplateId); -} - -int ListCompliancePackTemplatesRequest::getPageNumber() const { - return pageNumber_; -} - -void ListCompliancePackTemplatesRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -int ListCompliancePackTemplatesRequest::getPageSize() const { - return pageSize_; -} - -void ListCompliancePackTemplatesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - diff --git a/config/src/model/ListCompliancePackTemplatesResult.cc b/config/src/model/ListCompliancePackTemplatesResult.cc deleted file mode 100644 index 853fd774f..000000000 --- a/config/src/model/ListCompliancePackTemplatesResult.cc +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListCompliancePackTemplatesResult::ListCompliancePackTemplatesResult() : - ServiceResult() -{} - -ListCompliancePackTemplatesResult::ListCompliancePackTemplatesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListCompliancePackTemplatesResult::~ListCompliancePackTemplatesResult() -{} - -void ListCompliancePackTemplatesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto compliancePackTemplatesResultNode = value["CompliancePackTemplatesResult"]; - if(!compliancePackTemplatesResultNode["PageSize"].isNull()) - compliancePackTemplatesResult_.pageSize = std::stoi(compliancePackTemplatesResultNode["PageSize"].asString()); - if(!compliancePackTemplatesResultNode["PageNumber"].isNull()) - compliancePackTemplatesResult_.pageNumber = std::stoi(compliancePackTemplatesResultNode["PageNumber"].asString()); - if(!compliancePackTemplatesResultNode["TotalCount"].isNull()) - compliancePackTemplatesResult_.totalCount = std::stol(compliancePackTemplatesResultNode["TotalCount"].asString()); - auto allCompliancePackTemplatesNode = compliancePackTemplatesResultNode["CompliancePackTemplates"]["CompliancePackTemplate"]; - for (auto compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate : allCompliancePackTemplatesNode) - { - CompliancePackTemplatesResult::CompliancePackTemplate compliancePackTemplateObject; - if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["RiskLevel"].isNull()) - compliancePackTemplateObject.riskLevel = std::stoi(compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["RiskLevel"].asString()); - if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["Description"].isNull()) - compliancePackTemplateObject.description = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["Description"].asString(); - if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["AutomationHelpUrl"].isNull()) - compliancePackTemplateObject.automationHelpUrl = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["AutomationHelpUrl"].asString(); - if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["CompliancePackTemplateName"].isNull()) - compliancePackTemplateObject.compliancePackTemplateName = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["CompliancePackTemplateName"].asString(); - if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["CompliancePackTemplateId"].isNull()) - compliancePackTemplateObject.compliancePackTemplateId = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["CompliancePackTemplateId"].asString(); - auto allConfigRulesNode = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplate["ConfigRules"]["ConfigRulesItem"]; - for (auto compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem : allConfigRulesNode) - { - CompliancePackTemplatesResult::CompliancePackTemplate::ConfigRulesItem configRulesObject; - if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["Description"].isNull()) - configRulesObject.description = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["Description"].asString(); - if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ManagedRuleIdentifier"].isNull()) - configRulesObject.managedRuleIdentifier = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ManagedRuleIdentifier"].asString(); - if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ManagedRuleName"].isNull()) - configRulesObject.managedRuleName = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ManagedRuleName"].asString(); - if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["RiskLevel"].isNull()) - configRulesObject.riskLevel = std::stoi(compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["RiskLevel"].asString()); - auto allConfigRuleParametersNode = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItem["ConfigRuleParameters"]["ConfigRuleParametersItem"]; - for (auto compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem : allConfigRuleParametersNode) - { - CompliancePackTemplatesResult::CompliancePackTemplate::ConfigRulesItem::ConfigRuleParametersItem configRuleParametersObject; - if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].isNull()) - configRuleParametersObject.required = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["Required"].asString() == "true"; - if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].isNull()) - configRuleParametersObject.parameterName = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterName"].asString(); - if(!compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].isNull()) - configRuleParametersObject.parameterValue = compliancePackTemplatesResultNodeCompliancePackTemplatesCompliancePackTemplateConfigRulesConfigRulesItemConfigRuleParametersConfigRuleParametersItem["ParameterValue"].asString(); - configRulesObject.configRuleParameters.push_back(configRuleParametersObject); - } - compliancePackTemplateObject.configRules.push_back(configRulesObject); - } - compliancePackTemplatesResult_.compliancePackTemplates.push_back(compliancePackTemplateObject); - } - -} - -ListCompliancePackTemplatesResult::CompliancePackTemplatesResult ListCompliancePackTemplatesResult::getCompliancePackTemplatesResult()const -{ - return compliancePackTemplatesResult_; -} - diff --git a/config/src/model/ListCompliancePacksRequest.cc b/config/src/model/ListCompliancePacksRequest.cc deleted file mode 100644 index ce69106bf..000000000 --- a/config/src/model/ListCompliancePacksRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ListCompliancePacksRequest; - -ListCompliancePacksRequest::ListCompliancePacksRequest() - : RpcServiceRequest("config", "2020-09-07", "ListCompliancePacks") { - setMethod(HttpRequest::Method::Post); -} - -ListCompliancePacksRequest::~ListCompliancePacksRequest() {} - -int ListCompliancePacksRequest::getPageNumber() const { - return pageNumber_; -} - -void ListCompliancePacksRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -int ListCompliancePacksRequest::getPageSize() const { - return pageSize_; -} - -void ListCompliancePacksRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string ListCompliancePacksRequest::getStatus() const { - return status_; -} - -void ListCompliancePacksRequest::setStatus(const std::string &status) { - status_ = status; - setParameter(std::string("Status"), status); -} - diff --git a/config/src/model/ListCompliancePacksResult.cc b/config/src/model/ListCompliancePacksResult.cc deleted file mode 100644 index b308a1a58..000000000 --- a/config/src/model/ListCompliancePacksResult.cc +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListCompliancePacksResult::ListCompliancePacksResult() : - ServiceResult() -{} - -ListCompliancePacksResult::ListCompliancePacksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListCompliancePacksResult::~ListCompliancePacksResult() -{} - -void ListCompliancePacksResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto compliancePacksResultNode = value["CompliancePacksResult"]; - if(!compliancePacksResultNode["PageSize"].isNull()) - compliancePacksResult_.pageSize = std::stoi(compliancePacksResultNode["PageSize"].asString()); - if(!compliancePacksResultNode["PageNumber"].isNull()) - compliancePacksResult_.pageNumber = std::stoi(compliancePacksResultNode["PageNumber"].asString()); - if(!compliancePacksResultNode["TotalCount"].isNull()) - compliancePacksResult_.totalCount = std::stol(compliancePacksResultNode["TotalCount"].asString()); - auto allCompliancePacksNode = compliancePacksResultNode["CompliancePacks"]["CompliancePacksItem"]; - for (auto compliancePacksResultNodeCompliancePacksCompliancePacksItem : allCompliancePacksNode) - { - CompliancePacksResult::CompliancePacksItem compliancePacksItemObject; - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["Status"].isNull()) - compliancePacksItemObject.status = compliancePacksResultNodeCompliancePacksCompliancePacksItem["Status"].asString(); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackId"].isNull()) - compliancePacksItemObject.compliancePackId = compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackId"].asString(); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["RiskLevel"].isNull()) - compliancePacksItemObject.riskLevel = std::stoi(compliancePacksResultNodeCompliancePacksCompliancePacksItem["RiskLevel"].asString()); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["Description"].isNull()) - compliancePacksItemObject.description = compliancePacksResultNodeCompliancePacksCompliancePacksItem["Description"].asString(); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackName"].isNull()) - compliancePacksItemObject.compliancePackName = compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackName"].asString(); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["AccountId"].isNull()) - compliancePacksItemObject.accountId = std::stol(compliancePacksResultNodeCompliancePacksCompliancePacksItem["AccountId"].asString()); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackTemplateId"].isNull()) - compliancePacksItemObject.compliancePackTemplateId = compliancePacksResultNodeCompliancePacksCompliancePacksItem["CompliancePackTemplateId"].asString(); - if(!compliancePacksResultNodeCompliancePacksCompliancePacksItem["CreateTimestamp"].isNull()) - compliancePacksItemObject.createTimestamp = std::stol(compliancePacksResultNodeCompliancePacksCompliancePacksItem["CreateTimestamp"].asString()); - compliancePacksResult_.compliancePacks.push_back(compliancePacksItemObject); - } - -} - -ListCompliancePacksResult::CompliancePacksResult ListCompliancePacksResult::getCompliancePacksResult()const -{ - return compliancePacksResult_; -} - diff --git a/config/src/model/ListConfigRuleEvaluationResultsRequest.cc b/config/src/model/ListConfigRuleEvaluationResultsRequest.cc deleted file mode 100644 index 95efd1e1b..000000000 --- a/config/src/model/ListConfigRuleEvaluationResultsRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ListConfigRuleEvaluationResultsRequest; - -ListConfigRuleEvaluationResultsRequest::ListConfigRuleEvaluationResultsRequest() - : RpcServiceRequest("config", "2020-09-07", "ListConfigRuleEvaluationResults") { - setMethod(HttpRequest::Method::Get); -} - -ListConfigRuleEvaluationResultsRequest::~ListConfigRuleEvaluationResultsRequest() {} - -std::string ListConfigRuleEvaluationResultsRequest::getConfigRuleId() const { - return configRuleId_; -} - -void ListConfigRuleEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setParameter(std::string("ConfigRuleId"), configRuleId); -} - -std::string ListConfigRuleEvaluationResultsRequest::getNextToken() const { - return nextToken_; -} - -void ListConfigRuleEvaluationResultsRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -int ListConfigRuleEvaluationResultsRequest::getMaxResults() const { - return maxResults_; -} - -void ListConfigRuleEvaluationResultsRequest::setMaxResults(int maxResults) { - maxResults_ = maxResults; - setParameter(std::string("MaxResults"), std::to_string(maxResults)); -} - -std::string ListConfigRuleEvaluationResultsRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void ListConfigRuleEvaluationResultsRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - -std::string ListConfigRuleEvaluationResultsRequest::getComplianceType() const { - return complianceType_; -} - -void ListConfigRuleEvaluationResultsRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); -} - diff --git a/config/src/model/ListConfigRuleEvaluationResultsResult.cc b/config/src/model/ListConfigRuleEvaluationResultsResult.cc deleted file mode 100644 index 66f880e14..000000000 --- a/config/src/model/ListConfigRuleEvaluationResultsResult.cc +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListConfigRuleEvaluationResultsResult::ListConfigRuleEvaluationResultsResult() : - ServiceResult() -{} - -ListConfigRuleEvaluationResultsResult::ListConfigRuleEvaluationResultsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListConfigRuleEvaluationResultsResult::~ListConfigRuleEvaluationResultsResult() -{} - -void ListConfigRuleEvaluationResultsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto evaluationResultsNode = value["EvaluationResults"]; - if(!evaluationResultsNode["NextToken"].isNull()) - evaluationResults_.nextToken = evaluationResultsNode["NextToken"].asString(); - if(!evaluationResultsNode["MaxResults"].isNull()) - evaluationResults_.maxResults = std::stoi(evaluationResultsNode["MaxResults"].asString()); - auto allEvaluationResultListNode = evaluationResultsNode["EvaluationResultList"]["EvaluationResult"]; - for (auto evaluationResultsNodeEvaluationResultListEvaluationResult : allEvaluationResultListNode) - { - EvaluationResults::EvaluationResult evaluationResultObject; - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].isNull()) - evaluationResultObject.riskLevel = std::stoi(evaluationResultsNodeEvaluationResultListEvaluationResult["RiskLevel"].asString()); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].isNull()) - evaluationResultObject.complianceType = evaluationResultsNodeEvaluationResultListEvaluationResult["ComplianceType"].asString(); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].isNull()) - evaluationResultObject.resultRecordedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ResultRecordedTimestamp"].asString()); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].isNull()) - evaluationResultObject.annotation = evaluationResultsNodeEvaluationResultListEvaluationResult["Annotation"].asString(); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].isNull()) - evaluationResultObject.configRuleInvokedTimestamp = std::stol(evaluationResultsNodeEvaluationResultListEvaluationResult["ConfigRuleInvokedTimestamp"].asString()); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].isNull()) - evaluationResultObject.invokingEventMessageType = evaluationResultsNodeEvaluationResultListEvaluationResult["InvokingEventMessageType"].asString(); - if(!evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].isNull()) - evaluationResultObject.remediationEnabled = evaluationResultsNodeEvaluationResultListEvaluationResult["RemediationEnabled"].asString() == "true"; - auto evaluationResultIdentifierNode = value["EvaluationResultIdentifier"]; - if(!evaluationResultIdentifierNode["OrderingTimestamp"].isNull()) - evaluationResultObject.evaluationResultIdentifier.orderingTimestamp = std::stol(evaluationResultIdentifierNode["OrderingTimestamp"].asString()); - auto evaluationResultQualifierNode = evaluationResultIdentifierNode["EvaluationResultQualifier"]; - if(!evaluationResultQualifierNode["ResourceOwnerId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceOwnerId = std::stol(evaluationResultQualifierNode["ResourceOwnerId"].asString()); - if(!evaluationResultQualifierNode["ConfigRuleArn"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleArn = evaluationResultQualifierNode["ConfigRuleArn"].asString(); - if(!evaluationResultQualifierNode["ResourceType"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceType = evaluationResultQualifierNode["ResourceType"].asString(); - if(!evaluationResultQualifierNode["ConfigRuleName"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleName = evaluationResultQualifierNode["ConfigRuleName"].asString(); - if(!evaluationResultQualifierNode["ResourceId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceId = evaluationResultQualifierNode["ResourceId"].asString(); - if(!evaluationResultQualifierNode["ConfigRuleId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.configRuleId = evaluationResultQualifierNode["ConfigRuleId"].asString(); - if(!evaluationResultQualifierNode["ResourceName"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.resourceName = evaluationResultQualifierNode["ResourceName"].asString(); - if(!evaluationResultQualifierNode["RegionId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.regionId = evaluationResultQualifierNode["RegionId"].asString(); - if(!evaluationResultQualifierNode["CompliancePackId"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.compliancePackId = evaluationResultQualifierNode["CompliancePackId"].asString(); - if(!evaluationResultQualifierNode["IgnoreDate"].isNull()) - evaluationResultObject.evaluationResultIdentifier.evaluationResultQualifier.ignoreDate = evaluationResultQualifierNode["IgnoreDate"].asString(); - evaluationResults_.evaluationResultList.push_back(evaluationResultObject); - } - -} - -ListConfigRuleEvaluationResultsResult::EvaluationResults ListConfigRuleEvaluationResultsResult::getEvaluationResults()const -{ - return evaluationResults_; -} - diff --git a/config/src/model/ListConfigRulesRequest.cc b/config/src/model/ListConfigRulesRequest.cc new file mode 100644 index 000000000..f1ecf05e5 --- /dev/null +++ b/config/src/model/ListConfigRulesRequest.cc @@ -0,0 +1,154 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::ListConfigRulesRequest; + +ListConfigRulesRequest::ListConfigRulesRequest() + : RpcServiceRequest("config", "2019-01-08", "ListConfigRules") { + setMethod(HttpRequest::Method::Post); +} + +ListConfigRulesRequest::~ListConfigRulesRequest() {} + +bool ListConfigRulesRequest::getMultiAccount() const { + return multiAccount_; +} + +void ListConfigRulesRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +} + +bool ListConfigRulesRequest::getFilterInCompliancePack() const { + return filterInCompliancePack_; +} + +void ListConfigRulesRequest::setFilterInCompliancePack(bool filterInCompliancePack) { + filterInCompliancePack_ = filterInCompliancePack; + setParameter(std::string("FilterInCompliancePack"), filterInCompliancePack ? "true" : "false"); +} + +std::string ListConfigRulesRequest::getMessageType() const { + return messageType_; +} + +void ListConfigRulesRequest::setMessageType(const std::string &messageType) { + messageType_ = messageType; + setParameter(std::string("MessageType"), messageType); +} + +std::string ListConfigRulesRequest::getConfigRuleState() const { + return configRuleState_; +} + +void ListConfigRulesRequest::setConfigRuleState(const std::string &configRuleState) { + configRuleState_ = configRuleState; + setParameter(std::string("ConfigRuleState"), configRuleState); +} + +std::string ListConfigRulesRequest::getFilterInCompliancePackExcludeIds() const { + return filterInCompliancePackExcludeIds_; +} + +void ListConfigRulesRequest::setFilterInCompliancePackExcludeIds(const std::string &filterInCompliancePackExcludeIds) { + filterInCompliancePackExcludeIds_ = filterInCompliancePackExcludeIds; + setParameter(std::string("FilterInCompliancePackExcludeIds"), filterInCompliancePackExcludeIds); +} + +int ListConfigRulesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListConfigRulesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int ListConfigRulesRequest::getPageSize() const { + return pageSize_; +} + +void ListConfigRulesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListConfigRulesRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void ListConfigRulesRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + +ListConfigRulesRequest::Tag ListConfigRulesRequest::getTag() const { + return tag_; +} + +void ListConfigRulesRequest::setTag(const ListConfigRulesRequest::Tag &tag) { + tag_ = tag; + setParameter(std::string("Tag") + ".Value", tag.value); + setParameter(std::string("Tag") + ".Key", tag.key); +} + +std::string ListConfigRulesRequest::getComplianceType() const { + return complianceType_; +} + +void ListConfigRulesRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + +std::string ListConfigRulesRequest::getConfigRuleSceneId() const { + return configRuleSceneId_; +} + +void ListConfigRulesRequest::setConfigRuleSceneId(const std::string &configRuleSceneId) { + configRuleSceneId_ = configRuleSceneId; + setParameter(std::string("ConfigRuleSceneId"), configRuleSceneId); +} + +int ListConfigRulesRequest::getRiskLevel() const { + return riskLevel_; +} + +void ListConfigRulesRequest::setRiskLevel(int riskLevel) { + riskLevel_ = riskLevel; + setParameter(std::string("RiskLevel"), std::to_string(riskLevel)); +} + +std::string ListConfigRulesRequest::getConfigRuleName() const { + return configRuleName_; +} + +void ListConfigRulesRequest::setConfigRuleName(const std::string &configRuleName) { + configRuleName_ = configRuleName; + setParameter(std::string("ConfigRuleName"), configRuleName); +} + +long ListConfigRulesRequest::getMemberId() const { + return memberId_; +} + +void ListConfigRulesRequest::setMemberId(long memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), std::to_string(memberId)); +} + diff --git a/config/src/model/ListAggregateConfigRulesResult.cc b/config/src/model/ListConfigRulesResult.cc similarity index 85% rename from config/src/model/ListAggregateConfigRulesResult.cc rename to config/src/model/ListConfigRulesResult.cc index 0bf4a1f45..915e8bed4 100644 --- a/config/src/model/ListAggregateConfigRulesResult.cc +++ b/config/src/model/ListConfigRulesResult.cc @@ -14,42 +14,44 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -ListAggregateConfigRulesResult::ListAggregateConfigRulesResult() : +ListConfigRulesResult::ListConfigRulesResult() : ServiceResult() {} -ListAggregateConfigRulesResult::ListAggregateConfigRulesResult(const std::string &payload) : +ListConfigRulesResult::ListConfigRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListAggregateConfigRulesResult::~ListAggregateConfigRulesResult() +ListConfigRulesResult::~ListConfigRulesResult() {} -void ListAggregateConfigRulesResult::parse(const std::string &payload) +void ListConfigRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto configRulesNode = value["ConfigRules"]; - if(!configRulesNode["PageSize"].isNull()) - configRules_.pageSize = std::stoi(configRulesNode["PageSize"].asString()); if(!configRulesNode["PageNumber"].isNull()) configRules_.pageNumber = std::stoi(configRulesNode["PageNumber"].asString()); + if(!configRulesNode["PageSize"].isNull()) + configRules_.pageSize = std::stoi(configRulesNode["PageSize"].asString()); if(!configRulesNode["TotalCount"].isNull()) configRules_.totalCount = std::stol(configRulesNode["TotalCount"].asString()); auto allConfigRuleListNode = configRulesNode["ConfigRuleList"]["ConfigRule"]; for (auto configRulesNodeConfigRuleListConfigRule : allConfigRuleListNode) { ConfigRules::ConfigRule configRuleObject; + if(!configRulesNodeConfigRuleListConfigRule["CompliancePackId"].isNull()) + configRuleObject.compliancePackId = configRulesNodeConfigRuleListConfigRule["CompliancePackId"].asString(); if(!configRulesNodeConfigRuleListConfigRule["RiskLevel"].isNull()) configRuleObject.riskLevel = std::stoi(configRulesNodeConfigRuleListConfigRule["RiskLevel"].asString()); if(!configRulesNodeConfigRuleListConfigRule["SourceOwner"].isNull()) @@ -88,8 +90,8 @@ void ListAggregateConfigRulesResult::parse(const std::string &payload) auto createByNode = value["CreateBy"]; if(!createByNode["CompliancePackId"].isNull()) configRuleObject.createBy.compliancePackId = createByNode["CompliancePackId"].asString(); - if(!createByNode["AggregatorName"].isNull()) - configRuleObject.createBy.aggregatorName = createByNode["AggregatorName"].asString(); + if(!createByNode["ConfigRuleSceneId"].isNull()) + configRuleObject.createBy.configRuleSceneId = createByNode["ConfigRuleSceneId"].asString(); if(!createByNode["CompliancePackName"].isNull()) configRuleObject.createBy.compliancePackName = createByNode["CompliancePackName"].asString(); if(!createByNode["CreatorName"].isNull()) @@ -98,14 +100,14 @@ void ListAggregateConfigRulesResult::parse(const std::string &payload) configRuleObject.createBy.creatorType = createByNode["CreatorType"].asString(); if(!createByNode["CreatorId"].isNull()) configRuleObject.createBy.creatorId = createByNode["CreatorId"].asString(); - if(!createByNode["AggregatorId"].isNull()) - configRuleObject.createBy.aggregatorId = createByNode["AggregatorId"].asString(); + if(!createByNode["ConfigRuleSceneName"].isNull()) + configRuleObject.createBy.configRuleSceneName = createByNode["ConfigRuleSceneName"].asString(); configRules_.configRuleList.push_back(configRuleObject); } } -ListAggregateConfigRulesResult::ConfigRules ListAggregateConfigRulesResult::getConfigRules()const +ListConfigRulesResult::ConfigRules ListConfigRulesResult::getConfigRules()const { return configRules_; } diff --git a/config/src/model/ListDiscoveredResourcesRequest.cc b/config/src/model/ListDiscoveredResourcesRequest.cc index 996cd948f..45d97228b 100644 --- a/config/src/model/ListDiscoveredResourcesRequest.cc +++ b/config/src/model/ListDiscoveredResourcesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Config::Model::ListDiscoveredResourcesRequest; ListDiscoveredResourcesRequest::ListDiscoveredResourcesRequest() - : RpcServiceRequest("config", "2020-09-07", "ListDiscoveredResources") { + : RpcServiceRequest("config", "2019-01-08", "ListDiscoveredResources") { setMethod(HttpRequest::Method::Post); } @@ -34,13 +34,13 @@ void ListDiscoveredResourcesRequest::setResourceDeleted(int resourceDeleted) { setParameter(std::string("ResourceDeleted"), std::to_string(resourceDeleted)); } -std::string ListDiscoveredResourcesRequest::getResourceId() const { - return resourceId_; +bool ListDiscoveredResourcesRequest::getMultiAccount() const { + return multiAccount_; } -void ListDiscoveredResourcesRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); +void ListDiscoveredResourcesRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); } std::string ListDiscoveredResourcesRequest::getRegions() const { @@ -52,6 +52,42 @@ void ListDiscoveredResourcesRequest::setRegions(const std::string ®ions) { setParameter(std::string("Regions"), regions); } +int ListDiscoveredResourcesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListDiscoveredResourcesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +int ListDiscoveredResourcesRequest::getPageSize() const { + return pageSize_; +} + +void ListDiscoveredResourcesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListDiscoveredResourcesRequest::getComplianceType() const { + return complianceType_; +} + +void ListDiscoveredResourcesRequest::setComplianceType(const std::string &complianceType) { + complianceType_ = complianceType; + setParameter(std::string("ComplianceType"), complianceType); +} + +std::string ListDiscoveredResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListDiscoveredResourcesRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + std::string ListDiscoveredResourcesRequest::getResourceTypes() const { return resourceTypes_; } @@ -61,21 +97,12 @@ void ListDiscoveredResourcesRequest::setResourceTypes(const std::string &resourc setParameter(std::string("ResourceTypes"), resourceTypes); } -std::string ListDiscoveredResourcesRequest::getNextToken() const { - return nextToken_; +long ListDiscoveredResourcesRequest::getMemberId() const { + return memberId_; } -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)); +void ListDiscoveredResourcesRequest::setMemberId(long memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), std::to_string(memberId)); } diff --git a/config/src/model/ListDiscoveredResourcesResult.cc b/config/src/model/ListDiscoveredResourcesResult.cc index c35c42408..4dd28dcc4 100644 --- a/config/src/model/ListDiscoveredResourcesResult.cc +++ b/config/src/model/ListDiscoveredResourcesResult.cc @@ -40,10 +40,10 @@ void ListDiscoveredResourcesResult::parse(const std::string &payload) 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["PageNumber"].isNull()) + discoveredResourceProfiles_.pageNumber = std::stoi(discoveredResourceProfilesNode["PageNumber"].asString()); + if(!discoveredResourceProfilesNode["PageSize"].isNull()) + discoveredResourceProfiles_.pageSize = std::stoi(discoveredResourceProfilesNode["PageSize"].asString()); if(!discoveredResourceProfilesNode["TotalCount"].isNull()) discoveredResourceProfiles_.totalCount = std::stoi(discoveredResourceProfilesNode["TotalCount"].asString()); auto allDiscoveredResourceProfileListNode = discoveredResourceProfilesNode["DiscoveredResourceProfileList"]["DiscoveredResourceProfile"]; diff --git a/config/src/model/ListManagedRulesRequest.cc b/config/src/model/ListManagedRulesRequest.cc deleted file mode 100644 index 91f6e3d25..000000000 --- a/config/src/model/ListManagedRulesRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ListManagedRulesRequest; - -ListManagedRulesRequest::ListManagedRulesRequest() - : RpcServiceRequest("config", "2020-09-07", "ListManagedRules") { - setMethod(HttpRequest::Method::Post); -} - -ListManagedRulesRequest::~ListManagedRulesRequest() {} - -int ListManagedRulesRequest::getRiskLevel() const { - return riskLevel_; -} - -void ListManagedRulesRequest::setRiskLevel(int riskLevel) { - riskLevel_ = riskLevel; - setParameter(std::string("RiskLevel"), std::to_string(riskLevel)); -} - -int ListManagedRulesRequest::getPageNumber() const { - return pageNumber_; -} - -void ListManagedRulesRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -int ListManagedRulesRequest::getPageSize() const { - return pageSize_; -} - -void ListManagedRulesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string ListManagedRulesRequest::getKeyword() const { - return keyword_; -} - -void ListManagedRulesRequest::setKeyword(const std::string &keyword) { - keyword_ = keyword; - setParameter(std::string("Keyword"), keyword); -} - diff --git a/config/src/model/ListManagedRulesResult.cc b/config/src/model/ListManagedRulesResult.cc deleted file mode 100644 index 266e272be..000000000 --- a/config/src/model/ListManagedRulesResult.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListManagedRulesResult::ListManagedRulesResult() : - ServiceResult() -{} - -ListManagedRulesResult::ListManagedRulesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListManagedRulesResult::~ListManagedRulesResult() -{} - -void ListManagedRulesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allManagedRulesNode = value["ManagedRules"]["Data"]; - for (auto valueManagedRulesData : allManagedRulesNode) - { - Data managedRulesObject; - if(!valueManagedRulesData["PageSize"].isNull()) - managedRulesObject.pageSize = std::stoi(valueManagedRulesData["PageSize"].asString()); - if(!valueManagedRulesData["PageNumber"].isNull()) - managedRulesObject.pageNumber = std::stoi(valueManagedRulesData["PageNumber"].asString()); - if(!valueManagedRulesData["TotalCount"].isNull()) - managedRulesObject.totalCount = std::stol(valueManagedRulesData["TotalCount"].asString()); - auto allManagedRuleListNode = valueManagedRulesData["ManagedRuleList"]["ManagedRule"]; - for (auto valueManagedRulesDataManagedRuleListManagedRule : allManagedRuleListNode) - { - Data::ManagedRule managedRuleListObject; - if(!valueManagedRulesDataManagedRuleListManagedRule["RiskLevel"].isNull()) - managedRuleListObject.riskLevel = std::stoi(valueManagedRulesDataManagedRuleListManagedRule["RiskLevel"].asString()); - if(!valueManagedRulesDataManagedRuleListManagedRule["Description"].isNull()) - managedRuleListObject.description = valueManagedRulesDataManagedRuleListManagedRule["Description"].asString(); - if(!valueManagedRulesDataManagedRuleListManagedRule["UseCases"].isNull()) - managedRuleListObject.useCases = valueManagedRulesDataManagedRuleListManagedRule["UseCases"].asString(); - if(!valueManagedRulesDataManagedRuleListManagedRule["Identifier"].isNull()) - managedRuleListObject.identifier = valueManagedRulesDataManagedRuleListManagedRule["Identifier"].asString(); - if(!valueManagedRulesDataManagedRuleListManagedRule["ConfigRuleName"].isNull()) - managedRuleListObject.configRuleName = valueManagedRulesDataManagedRuleListManagedRule["ConfigRuleName"].asString(); - if(!valueManagedRulesDataManagedRuleListManagedRule["ReferenceCount"].isNull()) - managedRuleListObject.referenceCount = std::stoi(valueManagedRulesDataManagedRuleListManagedRule["ReferenceCount"].asString()); - if(!valueManagedRulesDataManagedRuleListManagedRule["HelpUrls"].isNull()) - managedRuleListObject.helpUrls = valueManagedRulesDataManagedRuleListManagedRule["HelpUrls"].asString(); - auto allLabels = value["Labels"]["Labels"]; - for (auto value : allLabels) - managedRuleListObject.labels.push_back(value.asString()); - managedRulesObject.managedRuleList.push_back(managedRuleListObject); - } - managedRules_.push_back(managedRulesObject); - } - -} - -std::vector ListManagedRulesResult::getManagedRules()const -{ - return managedRules_; -} - diff --git a/config/src/model/ListRemediationTemplatesRequest.cc b/config/src/model/ListRemediationTemplatesRequest.cc index 5de46db15..03119c152 100644 --- a/config/src/model/ListRemediationTemplatesRequest.cc +++ b/config/src/model/ListRemediationTemplatesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Config::Model::ListRemediationTemplatesRequest; ListRemediationTemplatesRequest::ListRemediationTemplatesRequest() - : RpcServiceRequest("config", "2020-09-07", "ListRemediationTemplates") { + : RpcServiceRequest("config", "2019-01-08", "ListRemediationTemplates") { setMethod(HttpRequest::Method::Post); } diff --git a/config/src/model/ListRemediationsResult.cc b/config/src/model/ListRemediationsResult.cc deleted file mode 100644 index fa5279eae..000000000 --- a/config/src/model/ListRemediationsResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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/ListResourceEvaluationResultsRequest.cc b/config/src/model/ListResourceEvaluationResultsRequest.cc deleted file mode 100644 index 59d041bb5..000000000 --- a/config/src/model/ListResourceEvaluationResultsRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ListResourceEvaluationResultsRequest; - -ListResourceEvaluationResultsRequest::ListResourceEvaluationResultsRequest() - : RpcServiceRequest("config", "2020-09-07", "ListResourceEvaluationResults") { - setMethod(HttpRequest::Method::Post); -} - -ListResourceEvaluationResultsRequest::~ListResourceEvaluationResultsRequest() {} - -std::string ListResourceEvaluationResultsRequest::getResourceId() const { - return resourceId_; -} - -void ListResourceEvaluationResultsRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); -} - -std::string ListResourceEvaluationResultsRequest::getResourceType() const { - return resourceType_; -} - -void ListResourceEvaluationResultsRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -std::string ListResourceEvaluationResultsRequest::getNextToken() const { - return nextToken_; -} - -void ListResourceEvaluationResultsRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -int ListResourceEvaluationResultsRequest::getMaxResults() const { - return maxResults_; -} - -void ListResourceEvaluationResultsRequest::setMaxResults(int maxResults) { - maxResults_ = maxResults; - setParameter(std::string("MaxResults"), std::to_string(maxResults)); -} - -std::string ListResourceEvaluationResultsRequest::getRegion() const { - return region_; -} - -void ListResourceEvaluationResultsRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - -std::string ListResourceEvaluationResultsRequest::getComplianceType() const { - return complianceType_; -} - -void ListResourceEvaluationResultsRequest::setComplianceType(const std::string &complianceType) { - complianceType_ = complianceType; - setParameter(std::string("ComplianceType"), complianceType); -} - diff --git a/config/src/model/ListTagResourcesRequest.cc b/config/src/model/ListTagResourcesRequest.cc deleted file mode 100644 index e787f6a6a..000000000 --- a/config/src/model/ListTagResourcesRequest.cc +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::ListTagResourcesRequest; - -ListTagResourcesRequest::ListTagResourcesRequest() - : RpcServiceRequest("config", "2020-09-07", "ListTagResources") { - setMethod(HttpRequest::Method::Post); -} - -ListTagResourcesRequest::~ListTagResourcesRequest() {} - -std::vector ListTagResourcesRequest::getResourceId() const { - return resourceId_; -} - -void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { - resourceId_ = resourceId; -} - -std::string ListTagResourcesRequest::getResourceType() const { - return resourceType_; -} - -void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setBodyParameter(std::string("ResourceType"), resourceType); -} - -std::string ListTagResourcesRequest::getRegionId() const { - return regionId_; -} - -void ListTagResourcesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -std::string ListTagResourcesRequest::getNextToken() const { - return nextToken_; -} - -void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setBodyParameter(std::string("NextToken"), nextToken); -} - -std::string ListTagResourcesRequest::getTag() const { - return tag_; -} - -void ListTagResourcesRequest::setTag(const std::string &tag) { - tag_ = tag; - setBodyParameter(std::string("Tag"), tag); -} - diff --git a/config/src/model/ListTagResourcesResult.cc b/config/src/model/ListTagResourcesResult.cc deleted file mode 100644 index 3c3edcf3a..000000000 --- a/config/src/model/ListTagResourcesResult.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -ListTagResourcesResult::ListTagResourcesResult() : - ServiceResult() -{} - -ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTagResourcesResult::~ListTagResourcesResult() -{} - -void ListTagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTagResourcesNode = value["TagResources"]["TagResource"]; - for (auto valueTagResourcesTagResource : allTagResourcesNode) - { - TagResource tagResourcesObject; - if(!valueTagResourcesTagResource["TagKey"].isNull()) - tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); - if(!valueTagResourcesTagResource["TagValue"].isNull()) - tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); - if(!valueTagResourcesTagResource["ResourceId"].isNull()) - tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); - if(!valueTagResourcesTagResource["ResourceType"].isNull()) - tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); - tagResources_.push_back(tagResourcesObject); - } - if(!value["NextToken"].isNull()) - nextToken_ = value["NextToken"].asString(); - -} - -std::string ListTagResourcesResult::getNextToken()const -{ - return nextToken_; -} - -std::vector ListTagResourcesResult::getTagResources()const -{ - return tagResources_; -} - diff --git a/config/src/model/PutConfigRuleRequest.cc b/config/src/model/PutConfigRuleRequest.cc new file mode 100644 index 000000000..9e38df441 --- /dev/null +++ b/config/src/model/PutConfigRuleRequest.cc @@ -0,0 +1,180 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Config::Model::PutConfigRuleRequest; + +PutConfigRuleRequest::PutConfigRuleRequest() + : RpcServiceRequest("config", "2019-01-08", "PutConfigRule") { + setMethod(HttpRequest::Method::Post); +} + +PutConfigRuleRequest::~PutConfigRuleRequest() {} + +std::string PutConfigRuleRequest::getConfigRuleId() const { + return configRuleId_; +} + +void PutConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setBodyParameter(std::string("ConfigRuleId"), configRuleId); +} + +bool PutConfigRuleRequest::getMultiAccount() const { + return multiAccount_; +} + +void PutConfigRuleRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +} + +std::string PutConfigRuleRequest::getClientToken() const { + return clientToken_; +} + +void PutConfigRuleRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string PutConfigRuleRequest::getDescription() const { + return description_; +} + +void PutConfigRuleRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string PutConfigRuleRequest::getSourceIdentifier() const { + return sourceIdentifier_; +} + +void PutConfigRuleRequest::setSourceIdentifier(const std::string &sourceIdentifier) { + sourceIdentifier_ = sourceIdentifier; + setBodyParameter(std::string("SourceIdentifier"), sourceIdentifier); +} + +std::string PutConfigRuleRequest::getSourceMaximumExecutionFrequency() const { + return sourceMaximumExecutionFrequency_; +} + +void PutConfigRuleRequest::setSourceMaximumExecutionFrequency(const std::string &sourceMaximumExecutionFrequency) { + sourceMaximumExecutionFrequency_ = sourceMaximumExecutionFrequency; + setBodyParameter(std::string("SourceMaximumExecutionFrequency"), sourceMaximumExecutionFrequency); +} + +std::string PutConfigRuleRequest::getScopeComplianceResourceTypes() const { + return scopeComplianceResourceTypes_; +} + +void PutConfigRuleRequest::setScopeComplianceResourceTypes(const std::string &scopeComplianceResourceTypes) { + scopeComplianceResourceTypes_ = scopeComplianceResourceTypes; + setBodyParameter(std::string("ScopeComplianceResourceTypes"), scopeComplianceResourceTypes); +} + +std::string PutConfigRuleRequest::getSourceDetailMessageType() const { + return sourceDetailMessageType_; +} + +void PutConfigRuleRequest::setSourceDetailMessageType(const std::string &sourceDetailMessageType) { + sourceDetailMessageType_ = sourceDetailMessageType; + setBodyParameter(std::string("SourceDetailMessageType"), sourceDetailMessageType); +} + +int PutConfigRuleRequest::getRiskLevel() const { + return riskLevel_; +} + +void PutConfigRuleRequest::setRiskLevel(int riskLevel) { + riskLevel_ = riskLevel; + setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); +} + +std::string PutConfigRuleRequest::getSourceOwner() const { + return sourceOwner_; +} + +void PutConfigRuleRequest::setSourceOwner(const std::string &sourceOwner) { + sourceOwner_ = sourceOwner; + setBodyParameter(std::string("SourceOwner"), sourceOwner); +} + +std::string PutConfigRuleRequest::getInputParameters() const { + return inputParameters_; +} + +void PutConfigRuleRequest::setInputParameters(const std::string &inputParameters) { + inputParameters_ = inputParameters; + setBodyParameter(std::string("InputParameters"), inputParameters); +} + +std::string PutConfigRuleRequest::getScopeComplianceExcludeResourceIds() const { + return scopeComplianceExcludeResourceIds_; +} + +void PutConfigRuleRequest::setScopeComplianceExcludeResourceIds(const std::string &scopeComplianceExcludeResourceIds) { + scopeComplianceExcludeResourceIds_ = scopeComplianceExcludeResourceIds; + setBodyParameter(std::string("ScopeComplianceExcludeResourceIds"), scopeComplianceExcludeResourceIds); +} + +std::string PutConfigRuleRequest::getConfigRuleName() const { + return configRuleName_; +} + +void PutConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) { + configRuleName_ = configRuleName; + setBodyParameter(std::string("ConfigRuleName"), configRuleName); +} + +std::string PutConfigRuleRequest::getScopeComplianceResourceId() const { + return scopeComplianceResourceId_; +} + +void PutConfigRuleRequest::setScopeComplianceResourceId(const std::string &scopeComplianceResourceId) { + scopeComplianceResourceId_ = scopeComplianceResourceId; + setBodyParameter(std::string("ScopeComplianceResourceId"), scopeComplianceResourceId); +} + +std::string PutConfigRuleRequest::getScopeComplianceResourceIds() const { + return scopeComplianceResourceIds_; +} + +void PutConfigRuleRequest::setScopeComplianceResourceIds(const std::string &scopeComplianceResourceIds) { + scopeComplianceResourceIds_ = scopeComplianceResourceIds; + setBodyParameter(std::string("ScopeComplianceResourceIds"), scopeComplianceResourceIds); +} + +std::string PutConfigRuleRequest::getScopeComplianceRegionIds() const { + return scopeComplianceRegionIds_; +} + +void PutConfigRuleRequest::setScopeComplianceRegionIds(const std::string &scopeComplianceRegionIds) { + scopeComplianceRegionIds_ = scopeComplianceRegionIds; + setBodyParameter(std::string("ScopeComplianceRegionIds"), scopeComplianceRegionIds); +} + +long PutConfigRuleRequest::getMemberId() const { + return memberId_; +} + +void PutConfigRuleRequest::setMemberId(long memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), std::to_string(memberId)); +} + diff --git a/config/src/model/UpdateConfigRuleResult.cc b/config/src/model/PutConfigRuleResult.cc similarity index 74% rename from config/src/model/UpdateConfigRuleResult.cc rename to config/src/model/PutConfigRuleResult.cc index c0b717f85..bb7182b83 100644 --- a/config/src/model/UpdateConfigRuleResult.cc +++ b/config/src/model/PutConfigRuleResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -UpdateConfigRuleResult::UpdateConfigRuleResult() : +PutConfigRuleResult::PutConfigRuleResult() : ServiceResult() {} -UpdateConfigRuleResult::UpdateConfigRuleResult(const std::string &payload) : +PutConfigRuleResult::PutConfigRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -UpdateConfigRuleResult::~UpdateConfigRuleResult() +PutConfigRuleResult::~PutConfigRuleResult() {} -void UpdateConfigRuleResult::parse(const std::string &payload) +void PutConfigRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -44,7 +44,7 @@ void UpdateConfigRuleResult::parse(const std::string &payload) } -std::string UpdateConfigRuleResult::getConfigRuleId()const +std::string PutConfigRuleResult::getConfigRuleId()const { return configRuleId_; } diff --git a/config/src/model/GetConfigDeliveryChannelRequest.cc b/config/src/model/PutConfigurationRecorderRequest.cc similarity index 50% rename from config/src/model/GetConfigDeliveryChannelRequest.cc rename to config/src/model/PutConfigurationRecorderRequest.cc index ae9d07336..0b0f00398 100644 --- a/config/src/model/GetConfigDeliveryChannelRequest.cc +++ b/config/src/model/PutConfigurationRecorderRequest.cc @@ -14,23 +14,23 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::GetConfigDeliveryChannelRequest; +using AlibabaCloud::Config::Model::PutConfigurationRecorderRequest; -GetConfigDeliveryChannelRequest::GetConfigDeliveryChannelRequest() - : RpcServiceRequest("config", "2020-09-07", "GetConfigDeliveryChannel") { +PutConfigurationRecorderRequest::PutConfigurationRecorderRequest() + : RpcServiceRequest("config", "2019-01-08", "PutConfigurationRecorder") { setMethod(HttpRequest::Method::Post); } -GetConfigDeliveryChannelRequest::~GetConfigDeliveryChannelRequest() {} +PutConfigurationRecorderRequest::~PutConfigurationRecorderRequest() {} -std::string GetConfigDeliveryChannelRequest::getDeliveryChannelId() const { - return deliveryChannelId_; +std::string PutConfigurationRecorderRequest::getResourceTypes() const { + return resourceTypes_; } -void GetConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { - deliveryChannelId_ = deliveryChannelId; - setParameter(std::string("DeliveryChannelId"), deliveryChannelId); +void PutConfigurationRecorderRequest::setResourceTypes(const std::string &resourceTypes) { + resourceTypes_ = resourceTypes; + setBodyParameter(std::string("ResourceTypes"), resourceTypes); } diff --git a/config/src/model/PutConfigurationRecorderResult.cc b/config/src/model/PutConfigurationRecorderResult.cc new file mode 100644 index 000000000..46f85f95f --- /dev/null +++ b/config/src/model/PutConfigurationRecorderResult.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; + +PutConfigurationRecorderResult::PutConfigurationRecorderResult() : + ServiceResult() +{} + +PutConfigurationRecorderResult::PutConfigurationRecorderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutConfigurationRecorderResult::~PutConfigurationRecorderResult() +{} + +void PutConfigurationRecorderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configurationRecorderNode = value["ConfigurationRecorder"]; + if(!configurationRecorderNode["OrganizationEnableStatus"].isNull()) + configurationRecorder_.organizationEnableStatus = configurationRecorderNode["OrganizationEnableStatus"].asString(); + if(!configurationRecorderNode["ConfigurationRecorderStatus"].isNull()) + configurationRecorder_.configurationRecorderStatus = configurationRecorderNode["ConfigurationRecorderStatus"].asString(); + if(!configurationRecorderNode["OrganizationMasterId"].isNull()) + configurationRecorder_.organizationMasterId = std::stol(configurationRecorderNode["OrganizationMasterId"].asString()); + if(!configurationRecorderNode["AccountId"].isNull()) + configurationRecorder_.accountId = std::stol(configurationRecorderNode["AccountId"].asString()); + auto allResourceTypes = configurationRecorderNode["ResourceTypes"]["ResourceType"]; + for (auto value : allResourceTypes) + configurationRecorder_.resourceTypes.push_back(value.asString()); + +} + +PutConfigurationRecorderResult::ConfigurationRecorder PutConfigurationRecorderResult::getConfigurationRecorder()const +{ + return configurationRecorder_; +} + diff --git a/config/src/model/PutDeliveryChannelRequest.cc b/config/src/model/PutDeliveryChannelRequest.cc new file mode 100644 index 000000000..779fb1909 --- /dev/null +++ b/config/src/model/PutDeliveryChannelRequest.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::PutDeliveryChannelRequest; + +PutDeliveryChannelRequest::PutDeliveryChannelRequest() + : RpcServiceRequest("config", "2019-01-08", "PutDeliveryChannel") { + setMethod(HttpRequest::Method::Post); +} + +PutDeliveryChannelRequest::~PutDeliveryChannelRequest() {} + +std::string PutDeliveryChannelRequest::getClientToken() const { + return clientToken_; +} + +void PutDeliveryChannelRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string PutDeliveryChannelRequest::getDescription() const { + return description_; +} + +void PutDeliveryChannelRequest::setDescription(const std::string &description) { + description_ = description; + setBodyParameter(std::string("Description"), description); +} + +std::string PutDeliveryChannelRequest::getDeliveryChannelTargetArn() const { + return deliveryChannelTargetArn_; +} + +void PutDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) { + deliveryChannelTargetArn_ = deliveryChannelTargetArn; + setBodyParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn); +} + +std::string PutDeliveryChannelRequest::getDeliveryChannelCondition() const { + return deliveryChannelCondition_; +} + +void PutDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) { + deliveryChannelCondition_ = deliveryChannelCondition; + setBodyParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition); +} + +std::string PutDeliveryChannelRequest::getDeliveryChannelAssumeRoleArn() const { + return deliveryChannelAssumeRoleArn_; +} + +void PutDeliveryChannelRequest::setDeliveryChannelAssumeRoleArn(const std::string &deliveryChannelAssumeRoleArn) { + deliveryChannelAssumeRoleArn_ = deliveryChannelAssumeRoleArn; + setBodyParameter(std::string("DeliveryChannelAssumeRoleArn"), deliveryChannelAssumeRoleArn); +} + +std::string PutDeliveryChannelRequest::getDeliveryChannelName() const { + return deliveryChannelName_; +} + +void PutDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) { + deliveryChannelName_ = deliveryChannelName; + setBodyParameter(std::string("DeliveryChannelName"), deliveryChannelName); +} + +std::string PutDeliveryChannelRequest::getDeliveryChannelId() const { + return deliveryChannelId_; +} + +void PutDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { + deliveryChannelId_ = deliveryChannelId; + setBodyParameter(std::string("DeliveryChannelId"), deliveryChannelId); +} + +std::string PutDeliveryChannelRequest::getDeliveryChannelType() const { + return deliveryChannelType_; +} + +void PutDeliveryChannelRequest::setDeliveryChannelType(const std::string &deliveryChannelType) { + deliveryChannelType_ = deliveryChannelType; + setBodyParameter(std::string("DeliveryChannelType"), deliveryChannelType); +} + +int PutDeliveryChannelRequest::getStatus() const { + return status_; +} + +void PutDeliveryChannelRequest::setStatus(int status) { + status_ = status; + setBodyParameter(std::string("Status"), std::to_string(status)); +} + diff --git a/config/src/model/CreateConfigDeliveryChannelResult.cc b/config/src/model/PutDeliveryChannelResult.cc similarity index 69% rename from config/src/model/CreateConfigDeliveryChannelResult.cc rename to config/src/model/PutDeliveryChannelResult.cc index d857db8ff..769def101 100644 --- a/config/src/model/CreateConfigDeliveryChannelResult.cc +++ b/config/src/model/PutDeliveryChannelResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -CreateConfigDeliveryChannelResult::CreateConfigDeliveryChannelResult() : +PutDeliveryChannelResult::PutDeliveryChannelResult() : ServiceResult() {} -CreateConfigDeliveryChannelResult::CreateConfigDeliveryChannelResult(const std::string &payload) : +PutDeliveryChannelResult::PutDeliveryChannelResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateConfigDeliveryChannelResult::~CreateConfigDeliveryChannelResult() +PutDeliveryChannelResult::~PutDeliveryChannelResult() {} -void CreateConfigDeliveryChannelResult::parse(const std::string &payload) +void PutDeliveryChannelResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -44,7 +44,7 @@ void CreateConfigDeliveryChannelResult::parse(const std::string &payload) } -std::string CreateConfigDeliveryChannelResult::getDeliveryChannelId()const +std::string PutDeliveryChannelResult::getDeliveryChannelId()const { return deliveryChannelId_; } diff --git a/config/src/model/PutEvaluationsRequest.cc b/config/src/model/PutEvaluationsRequest.cc new file mode 100644 index 000000000..4cf1634cb --- /dev/null +++ b/config/src/model/PutEvaluationsRequest.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::PutEvaluationsRequest; + +PutEvaluationsRequest::PutEvaluationsRequest() + : RpcServiceRequest("config", "2019-01-08", "PutEvaluations") { + setMethod(HttpRequest::Method::Post); +} + +PutEvaluationsRequest::~PutEvaluationsRequest() {} + +std::string PutEvaluationsRequest::getEvaluations() const { + return evaluations_; +} + +void PutEvaluationsRequest::setEvaluations(const std::string &evaluations) { + evaluations_ = evaluations; + setBodyParameter(std::string("Evaluations"), evaluations); +} + +bool PutEvaluationsRequest::getDeleteMode() const { + return deleteMode_; +} + +void PutEvaluationsRequest::setDeleteMode(bool deleteMode) { + deleteMode_ = deleteMode; + setBodyParameter(std::string("DeleteMode"), deleteMode ? "true" : "false"); +} + +std::string PutEvaluationsRequest::getResultToken() const { + return resultToken_; +} + +void PutEvaluationsRequest::setResultToken(const std::string &resultToken) { + resultToken_ = resultToken; + setBodyParameter(std::string("ResultToken"), resultToken); +} + diff --git a/config/src/model/UntagResourcesResult.cc b/config/src/model/PutEvaluationsResult.cc similarity index 68% rename from config/src/model/UntagResourcesResult.cc rename to config/src/model/PutEvaluationsResult.cc index 7aafa93e2..4119a6cee 100644 --- a/config/src/model/UntagResourcesResult.cc +++ b/config/src/model/PutEvaluationsResult.cc @@ -14,31 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -UntagResourcesResult::UntagResourcesResult() : +PutEvaluationsResult::PutEvaluationsResult() : ServiceResult() {} -UntagResourcesResult::UntagResourcesResult(const std::string &payload) : +PutEvaluationsResult::PutEvaluationsResult(const std::string &payload) : ServiceResult() { parse(payload); } -UntagResourcesResult::~UntagResourcesResult() +PutEvaluationsResult::~PutEvaluationsResult() {} -void UntagResourcesResult::parse(const std::string &payload) +void PutEvaluationsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; } +bool PutEvaluationsResult::getResult()const +{ + return result_; +} + diff --git a/config/src/model/RevertAggregateEvaluationResultsRequest.cc b/config/src/model/RevertAggregateEvaluationResultsRequest.cc deleted file mode 100644 index ab8633bd4..000000000 --- a/config/src/model/RevertAggregateEvaluationResultsRequest.cc +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::RevertAggregateEvaluationResultsRequest; - -RevertAggregateEvaluationResultsRequest::RevertAggregateEvaluationResultsRequest() - : RpcServiceRequest("config", "2020-09-07", "RevertAggregateEvaluationResults") { - setMethod(HttpRequest::Method::Post); -} - -RevertAggregateEvaluationResultsRequest::~RevertAggregateEvaluationResultsRequest() {} - -std::string RevertAggregateEvaluationResultsRequest::getConfigRuleId() const { - return configRuleId_; -} - -void RevertAggregateEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setBodyParameter(std::string("ConfigRuleId"), configRuleId); -} - -std::vector RevertAggregateEvaluationResultsRequest::getResources() const { - return resources_; -} - -void RevertAggregateEvaluationResultsRequest::setResources(const std::vector &resources) { - resources_ = resources; - for(int dep1 = 0; dep1 != resources.size(); dep1++) { - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceId", resources[dep1].resourceId); - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceAccountId", std::to_string(resources[dep1].resourceAccountId)); - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".Region", resources[dep1].region); - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceType", resources[dep1].resourceType); - } -} - -std::string RevertAggregateEvaluationResultsRequest::getAggregatorId() const { - return aggregatorId_; -} - -void RevertAggregateEvaluationResultsRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setBodyParameter(std::string("AggregatorId"), aggregatorId); -} - diff --git a/config/src/model/RevertAggregateEvaluationResultsResult.cc b/config/src/model/RevertAggregateEvaluationResultsResult.cc deleted file mode 100644 index cd490f2a8..000000000 --- a/config/src/model/RevertAggregateEvaluationResultsResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -RevertAggregateEvaluationResultsResult::RevertAggregateEvaluationResultsResult() : - ServiceResult() -{} - -RevertAggregateEvaluationResultsResult::RevertAggregateEvaluationResultsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RevertAggregateEvaluationResultsResult::~RevertAggregateEvaluationResultsResult() -{} - -void RevertAggregateEvaluationResultsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/config/src/model/RevertEvaluationResultsRequest.cc b/config/src/model/RevertEvaluationResultsRequest.cc deleted file mode 100644 index c2871a65b..000000000 --- a/config/src/model/RevertEvaluationResultsRequest.cc +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::RevertEvaluationResultsRequest; - -RevertEvaluationResultsRequest::RevertEvaluationResultsRequest() - : RpcServiceRequest("config", "2020-09-07", "RevertEvaluationResults") { - setMethod(HttpRequest::Method::Post); -} - -RevertEvaluationResultsRequest::~RevertEvaluationResultsRequest() {} - -std::string RevertEvaluationResultsRequest::getConfigRuleId() const { - return configRuleId_; -} - -void RevertEvaluationResultsRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setBodyParameter(std::string("ConfigRuleId"), configRuleId); -} - -std::vector RevertEvaluationResultsRequest::getResources() const { - return resources_; -} - -void RevertEvaluationResultsRequest::setResources(const std::vector &resources) { - resources_ = resources; - for(int dep1 = 0; dep1 != resources.size(); dep1++) { - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceId", resources[dep1].resourceId); - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceAccountId", std::to_string(resources[dep1].resourceAccountId)); - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".Region", resources[dep1].region); - setBodyParameter(std::string("Resources") + "." + std::to_string(dep1 + 1) + ".ResourceType", resources[dep1].resourceType); - } -} - diff --git a/config/src/model/RevertEvaluationResultsResult.cc b/config/src/model/RevertEvaluationResultsResult.cc deleted file mode 100644 index 11e863fb0..000000000 --- a/config/src/model/RevertEvaluationResultsResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -RevertEvaluationResultsResult::RevertEvaluationResultsResult() : - ServiceResult() -{} - -RevertEvaluationResultsResult::RevertEvaluationResultsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RevertEvaluationResultsResult::~RevertEvaluationResultsResult() -{} - -void RevertEvaluationResultsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/config/src/model/StartAggregateConfigRuleEvaluationRequest.cc b/config/src/model/StartAggregateConfigRuleEvaluationRequest.cc deleted file mode 100644 index 843a751cd..000000000 --- a/config/src/model/StartAggregateConfigRuleEvaluationRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::StartAggregateConfigRuleEvaluationRequest; - -StartAggregateConfigRuleEvaluationRequest::StartAggregateConfigRuleEvaluationRequest() - : RpcServiceRequest("config", "2020-09-07", "StartAggregateConfigRuleEvaluation") { - setMethod(HttpRequest::Method::Post); -} - -StartAggregateConfigRuleEvaluationRequest::~StartAggregateConfigRuleEvaluationRequest() {} - -std::string StartAggregateConfigRuleEvaluationRequest::getConfigRuleId() const { - return configRuleId_; -} - -void StartAggregateConfigRuleEvaluationRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setParameter(std::string("ConfigRuleId"), configRuleId); -} - -std::string StartAggregateConfigRuleEvaluationRequest::getAggregatorId() const { - return aggregatorId_; -} - -void StartAggregateConfigRuleEvaluationRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string StartAggregateConfigRuleEvaluationRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void StartAggregateConfigRuleEvaluationRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setParameter(std::string("CompliancePackId"), compliancePackId); -} - -bool StartAggregateConfigRuleEvaluationRequest::getRevertEvaluation() const { - return revertEvaluation_; -} - -void StartAggregateConfigRuleEvaluationRequest::setRevertEvaluation(bool revertEvaluation) { - revertEvaluation_ = revertEvaluation; - setParameter(std::string("RevertEvaluation"), revertEvaluation ? "true" : "false"); -} - diff --git a/config/src/model/StartAggregateConfigRuleEvaluationResult.cc b/config/src/model/StartAggregateConfigRuleEvaluationResult.cc deleted file mode 100644 index a1da65321..000000000 --- a/config/src/model/StartAggregateConfigRuleEvaluationResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -StartAggregateConfigRuleEvaluationResult::StartAggregateConfigRuleEvaluationResult() : - ServiceResult() -{} - -StartAggregateConfigRuleEvaluationResult::StartAggregateConfigRuleEvaluationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StartAggregateConfigRuleEvaluationResult::~StartAggregateConfigRuleEvaluationResult() -{} - -void StartAggregateConfigRuleEvaluationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Result"].isNull()) - result_ = value["Result"].asString() == "true"; - -} - -bool StartAggregateConfigRuleEvaluationResult::getResult()const -{ - return result_; -} - diff --git a/config/src/model/StartAggregateRemediationRequest.cc b/config/src/model/StartAggregateRemediationRequest.cc deleted file mode 100644 index 22a36ac44..000000000 --- a/config/src/model/StartAggregateRemediationRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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/StartConfigRuleEvaluationRequest.cc b/config/src/model/StartConfigRuleEvaluationRequest.cc new file mode 100644 index 000000000..3858e126c --- /dev/null +++ b/config/src/model/StartConfigRuleEvaluationRequest.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::StartConfigRuleEvaluationRequest; + +StartConfigRuleEvaluationRequest::StartConfigRuleEvaluationRequest() + : RpcServiceRequest("config", "2019-01-08", "StartConfigRuleEvaluation") { + setMethod(HttpRequest::Method::Post); +} + +StartConfigRuleEvaluationRequest::~StartConfigRuleEvaluationRequest() {} + +std::string StartConfigRuleEvaluationRequest::getConfigRuleId() const { + return configRuleId_; +} + +void StartConfigRuleEvaluationRequest::setConfigRuleId(const std::string &configRuleId) { + configRuleId_ = configRuleId; + setParameter(std::string("ConfigRuleId"), configRuleId); +} + +bool StartConfigRuleEvaluationRequest::getMultiAccount() const { + return multiAccount_; +} + +void StartConfigRuleEvaluationRequest::setMultiAccount(bool multiAccount) { + multiAccount_ = multiAccount; + setParameter(std::string("MultiAccount"), multiAccount ? "true" : "false"); +} + +std::string StartConfigRuleEvaluationRequest::getCompliancePackId() const { + return compliancePackId_; +} + +void StartConfigRuleEvaluationRequest::setCompliancePackId(const std::string &compliancePackId) { + compliancePackId_ = compliancePackId; + setParameter(std::string("CompliancePackId"), compliancePackId); +} + +bool StartConfigRuleEvaluationRequest::getRevertEvaluation() const { + return revertEvaluation_; +} + +void StartConfigRuleEvaluationRequest::setRevertEvaluation(bool revertEvaluation) { + revertEvaluation_ = revertEvaluation; + setParameter(std::string("RevertEvaluation"), revertEvaluation ? "true" : "false"); +} + +long StartConfigRuleEvaluationRequest::getMemberId() const { + return memberId_; +} + +void StartConfigRuleEvaluationRequest::setMemberId(long memberId) { + memberId_ = memberId; + setParameter(std::string("MemberId"), std::to_string(memberId)); +} + diff --git a/config/src/model/StartAggregateRemediationResult.cc b/config/src/model/StartConfigRuleEvaluationResult.cc similarity index 67% rename from config/src/model/StartAggregateRemediationResult.cc rename to config/src/model/StartConfigRuleEvaluationResult.cc index cae7429e7..0a90d063f 100644 --- a/config/src/model/StartAggregateRemediationResult.cc +++ b/config/src/model/StartConfigRuleEvaluationResult.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -StartAggregateRemediationResult::StartAggregateRemediationResult() : +StartConfigRuleEvaluationResult::StartConfigRuleEvaluationResult() : ServiceResult() {} -StartAggregateRemediationResult::StartAggregateRemediationResult(const std::string &payload) : +StartConfigRuleEvaluationResult::StartConfigRuleEvaluationResult(const std::string &payload) : ServiceResult() { parse(payload); } -StartAggregateRemediationResult::~StartAggregateRemediationResult() +StartConfigRuleEvaluationResult::~StartConfigRuleEvaluationResult() {} -void StartAggregateRemediationResult::parse(const std::string &payload) +void StartConfigRuleEvaluationResult::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"; + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; } -bool StartAggregateRemediationResult::getData()const +bool StartConfigRuleEvaluationResult::getResult()const { - return data_; + return result_; } diff --git a/config/src/model/StartConfigurationRecorderRequest.cc b/config/src/model/StartConfigurationRecorderRequest.cc new file mode 100644 index 000000000..a03091418 --- /dev/null +++ b/config/src/model/StartConfigurationRecorderRequest.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::StartConfigurationRecorderRequest; + +StartConfigurationRecorderRequest::StartConfigurationRecorderRequest() + : RpcServiceRequest("config", "2019-01-08", "StartConfigurationRecorder") { + setMethod(HttpRequest::Method::Post); +} + +StartConfigurationRecorderRequest::~StartConfigurationRecorderRequest() {} + +bool StartConfigurationRecorderRequest::getEnterpriseEdition() const { + return enterpriseEdition_; +} + +void StartConfigurationRecorderRequest::setEnterpriseEdition(bool enterpriseEdition) { + enterpriseEdition_ = enterpriseEdition; + setBodyParameter(std::string("EnterpriseEdition"), enterpriseEdition ? "true" : "false"); +} + diff --git a/config/src/model/StartConfigurationRecorderResult.cc b/config/src/model/StartConfigurationRecorderResult.cc new file mode 100644 index 000000000..833ef3ce9 --- /dev/null +++ b/config/src/model/StartConfigurationRecorderResult.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; + +StartConfigurationRecorderResult::StartConfigurationRecorderResult() : + ServiceResult() +{} + +StartConfigurationRecorderResult::StartConfigurationRecorderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartConfigurationRecorderResult::~StartConfigurationRecorderResult() +{} + +void StartConfigurationRecorderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configurationRecorderNode = value["ConfigurationRecorder"]; + if(!configurationRecorderNode["OrganizationEnableStatus"].isNull()) + configurationRecorder_.organizationEnableStatus = configurationRecorderNode["OrganizationEnableStatus"].asString(); + if(!configurationRecorderNode["ConfigurationRecorderStatus"].isNull()) + configurationRecorder_.configurationRecorderStatus = configurationRecorderNode["ConfigurationRecorderStatus"].asString(); + if(!configurationRecorderNode["OrganizationMasterId"].isNull()) + configurationRecorder_.organizationMasterId = std::stol(configurationRecorderNode["OrganizationMasterId"].asString()); + if(!configurationRecorderNode["AccountId"].isNull()) + configurationRecorder_.accountId = std::stol(configurationRecorderNode["AccountId"].asString()); + auto allResourceTypes = configurationRecorderNode["ResourceTypes"]["ResourceType"]; + for (auto value : allResourceTypes) + configurationRecorder_.resourceTypes.push_back(value.asString()); + +} + +StartConfigurationRecorderResult::ConfigurationRecorder StartConfigurationRecorderResult::getConfigurationRecorder()const +{ + return configurationRecorder_; +} + diff --git a/config/src/model/StartRemediationRequest.cc b/config/src/model/StartRemediationRequest.cc deleted file mode 100644 index 75d439dea..000000000 --- a/config/src/model/StartRemediationRequest.cc +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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 deleted file mode 100644 index 9b323ebac..000000000 --- a/config/src/model/StartRemediationResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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/ListRemediationsRequest.cc b/config/src/model/StopConfigRulesRequest.cc similarity index 63% rename from config/src/model/ListRemediationsRequest.cc rename to config/src/model/StopConfigRulesRequest.cc index dac0229c2..e87909e15 100644 --- a/config/src/model/ListRemediationsRequest.cc +++ b/config/src/model/StopConfigRulesRequest.cc @@ -14,22 +14,22 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Config::Model::ListRemediationsRequest; +using AlibabaCloud::Config::Model::StopConfigRulesRequest; -ListRemediationsRequest::ListRemediationsRequest() - : RpcServiceRequest("config", "2020-09-07", "ListRemediations") { +StopConfigRulesRequest::StopConfigRulesRequest() + : RpcServiceRequest("config", "2019-01-08", "StopConfigRules") { setMethod(HttpRequest::Method::Post); } -ListRemediationsRequest::~ListRemediationsRequest() {} +StopConfigRulesRequest::~StopConfigRulesRequest() {} -std::string ListRemediationsRequest::getConfigRuleIds() const { +std::string StopConfigRulesRequest::getConfigRuleIds() const { return configRuleIds_; } -void ListRemediationsRequest::setConfigRuleIds(const std::string &configRuleIds) { +void StopConfigRulesRequest::setConfigRuleIds(const std::string &configRuleIds) { configRuleIds_ = configRuleIds; setParameter(std::string("ConfigRuleIds"), configRuleIds); } diff --git a/config/src/model/ActiveAggregateConfigRulesResult.cc b/config/src/model/StopConfigRulesResult.cc similarity index 79% rename from config/src/model/ActiveAggregateConfigRulesResult.cc rename to config/src/model/StopConfigRulesResult.cc index d76c7aa2d..99198cf4c 100644 --- a/config/src/model/ActiveAggregateConfigRulesResult.cc +++ b/config/src/model/StopConfigRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Config; using namespace AlibabaCloud::Config::Model; -ActiveAggregateConfigRulesResult::ActiveAggregateConfigRulesResult() : +StopConfigRulesResult::StopConfigRulesResult() : ServiceResult() {} -ActiveAggregateConfigRulesResult::ActiveAggregateConfigRulesResult(const std::string &payload) : +StopConfigRulesResult::StopConfigRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -ActiveAggregateConfigRulesResult::~ActiveAggregateConfigRulesResult() +StopConfigRulesResult::~StopConfigRulesResult() {} -void ActiveAggregateConfigRulesResult::parse(const std::string &payload) +void StopConfigRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -55,7 +55,7 @@ void ActiveAggregateConfigRulesResult::parse(const std::string &payload) } -ActiveAggregateConfigRulesResult::OperateRuleResult ActiveAggregateConfigRulesResult::getOperateRuleResult()const +StopConfigRulesResult::OperateRuleResult StopConfigRulesResult::getOperateRuleResult()const { return operateRuleResult_; } diff --git a/config/src/model/TagResourcesRequest.cc b/config/src/model/TagResourcesRequest.cc deleted file mode 100644 index 20c5af75e..000000000 --- a/config/src/model/TagResourcesRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() - : RpcServiceRequest("config", "2020-09-07", "TagResources") { - setMethod(HttpRequest::Method::Post); -} - -TagResourcesRequest::~TagResourcesRequest() {} - -std::vector TagResourcesRequest::getResourceId() const { - return resourceId_; -} - -void TagResourcesRequest::setResourceId(const std::vector &resourceId) { - resourceId_ = resourceId; -} - -std::string TagResourcesRequest::getResourceType() const { - return resourceType_; -} - -void TagResourcesRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setBodyParameter(std::string("ResourceType"), resourceType); -} - -std::string TagResourcesRequest::getRegionId() const { - return regionId_; -} - -void TagResourcesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -std::string TagResourcesRequest::getTag() const { - return tag_; -} - -void TagResourcesRequest::setTag(const std::string &tag) { - tag_ = tag; - setBodyParameter(std::string("Tag"), tag); -} - diff --git a/config/src/model/TagResourcesResult.cc b/config/src/model/TagResourcesResult.cc deleted file mode 100644 index 20787b1a5..000000000 --- a/config/src/model/TagResourcesResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -TagResourcesResult::TagResourcesResult() : - ServiceResult() -{} - -TagResourcesResult::TagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TagResourcesResult::~TagResourcesResult() -{} - -void TagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/config/src/model/UntagResourcesRequest.cc b/config/src/model/UntagResourcesRequest.cc deleted file mode 100644 index 925622b24..000000000 --- a/config/src/model/UntagResourcesRequest.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::UntagResourcesRequest; - -UntagResourcesRequest::UntagResourcesRequest() - : RpcServiceRequest("config", "2020-09-07", "UntagResources") { - setMethod(HttpRequest::Method::Post); -} - -UntagResourcesRequest::~UntagResourcesRequest() {} - -bool UntagResourcesRequest::getAll() const { - return all_; -} - -void UntagResourcesRequest::setAll(bool all) { - all_ = all; - setBodyParameter(std::string("All"), all ? "true" : "false"); -} - -std::vector UntagResourcesRequest::getResourceId() const { - return resourceId_; -} - -void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { - resourceId_ = resourceId; -} - -std::string UntagResourcesRequest::getResourceType() const { - return resourceType_; -} - -void UntagResourcesRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setBodyParameter(std::string("ResourceType"), resourceType); -} - -std::string UntagResourcesRequest::getRegionId() const { - return regionId_; -} - -void UntagResourcesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -std::vector UntagResourcesRequest::getTagKey() const { - return tagKey_; -} - -void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { - tagKey_ = tagKey; -} - diff --git a/config/src/model/UpdateAggregateCompliancePackRequest.cc b/config/src/model/UpdateAggregateCompliancePackRequest.cc deleted file mode 100644 index 3c2e82ce2..000000000 --- a/config/src/model/UpdateAggregateCompliancePackRequest.cc +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::UpdateAggregateCompliancePackRequest; - -UpdateAggregateCompliancePackRequest::UpdateAggregateCompliancePackRequest() - : RpcServiceRequest("config", "2020-09-07", "UpdateAggregateCompliancePack") { - setMethod(HttpRequest::Method::Post); -} - -UpdateAggregateCompliancePackRequest::~UpdateAggregateCompliancePackRequest() {} - -std::string UpdateAggregateCompliancePackRequest::getCompliancePackName() const { - return compliancePackName_; -} - -void UpdateAggregateCompliancePackRequest::setCompliancePackName(const std::string &compliancePackName) { - compliancePackName_ = compliancePackName; - setBodyParameter(std::string("CompliancePackName"), compliancePackName); -} - -std::string UpdateAggregateCompliancePackRequest::getClientToken() const { - return clientToken_; -} - -void UpdateAggregateCompliancePackRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string UpdateAggregateCompliancePackRequest::getDescription() const { - return description_; -} - -void UpdateAggregateCompliancePackRequest::setDescription(const std::string &description) { - description_ = description; - setBodyParameter(std::string("Description"), description); -} - -std::string UpdateAggregateCompliancePackRequest::getAggregatorId() const { - return aggregatorId_; -} - -void UpdateAggregateCompliancePackRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setBodyParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string UpdateAggregateCompliancePackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void UpdateAggregateCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setBodyParameter(std::string("CompliancePackId"), compliancePackId); -} - -std::vector UpdateAggregateCompliancePackRequest::getConfigRules() const { - return configRules_; -} - -void UpdateAggregateCompliancePackRequest::setConfigRules(const std::vector &configRules) { - configRules_ = configRules; - for(int dep1 = 0; dep1 != configRules.size(); dep1++) { - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ManagedRuleIdentifier", configRules[dep1].managedRuleIdentifier); - for(int dep2 = 0; dep2 != configRules[dep1].configRuleParameters.size(); dep2++) { - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterValue", configRules[dep1].configRuleParameters[dep2].parameterValue); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterName", configRules[dep1].configRuleParameters[dep2].parameterName); - } - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleId", configRules[dep1].configRuleId); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleName", configRules[dep1].configRuleName); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".Description", configRules[dep1].description); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".RiskLevel", std::to_string(configRules[dep1].riskLevel)); - } -} - -int UpdateAggregateCompliancePackRequest::getRiskLevel() const { - return riskLevel_; -} - -void UpdateAggregateCompliancePackRequest::setRiskLevel(int riskLevel) { - riskLevel_ = riskLevel; - setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); -} - diff --git a/config/src/model/UpdateAggregateCompliancePackResult.cc b/config/src/model/UpdateAggregateCompliancePackResult.cc deleted file mode 100644 index 97932a476..000000000 --- a/config/src/model/UpdateAggregateCompliancePackResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -UpdateAggregateCompliancePackResult::UpdateAggregateCompliancePackResult() : - ServiceResult() -{} - -UpdateAggregateCompliancePackResult::UpdateAggregateCompliancePackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateAggregateCompliancePackResult::~UpdateAggregateCompliancePackResult() -{} - -void UpdateAggregateCompliancePackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["CompliancePackId"].isNull()) - compliancePackId_ = value["CompliancePackId"].asString(); - -} - -std::string UpdateAggregateCompliancePackResult::getCompliancePackId()const -{ - return compliancePackId_; -} - diff --git a/config/src/model/UpdateAggregateConfigDeliveryChannelRequest.cc b/config/src/model/UpdateAggregateConfigDeliveryChannelRequest.cc deleted file mode 100644 index cea33e8fa..000000000 --- a/config/src/model/UpdateAggregateConfigDeliveryChannelRequest.cc +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::UpdateAggregateConfigDeliveryChannelRequest; - -UpdateAggregateConfigDeliveryChannelRequest::UpdateAggregateConfigDeliveryChannelRequest() - : RpcServiceRequest("config", "2020-09-07", "UpdateAggregateConfigDeliveryChannel") { - setMethod(HttpRequest::Method::Post); -} - -UpdateAggregateConfigDeliveryChannelRequest::~UpdateAggregateConfigDeliveryChannelRequest() {} - -bool UpdateAggregateConfigDeliveryChannelRequest::getNonCompliantNotification() const { - return nonCompliantNotification_; -} - -void UpdateAggregateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) { - nonCompliantNotification_ = nonCompliantNotification; - setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false"); -} - -std::string UpdateAggregateConfigDeliveryChannelRequest::getClientToken() const { - return clientToken_; -} - -void UpdateAggregateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -bool UpdateAggregateConfigDeliveryChannelRequest::getConfigurationSnapshot() const { - return configurationSnapshot_; -} - -void UpdateAggregateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) { - configurationSnapshot_ = configurationSnapshot; - setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false"); -} - -std::string UpdateAggregateConfigDeliveryChannelRequest::getDescription() const { - return description_; -} - -void UpdateAggregateConfigDeliveryChannelRequest::setDescription(const std::string &description) { - description_ = description; - setParameter(std::string("Description"), description); -} - -std::string UpdateAggregateConfigDeliveryChannelRequest::getAggregatorId() const { - return aggregatorId_; -} - -void UpdateAggregateConfigDeliveryChannelRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const { - return deliveryChannelTargetArn_; -} - -void UpdateAggregateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) { - deliveryChannelTargetArn_ = deliveryChannelTargetArn; - setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn); -} - -std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const { - return deliveryChannelCondition_; -} - -void UpdateAggregateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) { - deliveryChannelCondition_ = deliveryChannelCondition; - setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition); -} - -bool UpdateAggregateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const { - return configurationItemChangeNotification_; -} - -void UpdateAggregateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) { - configurationItemChangeNotification_ = configurationItemChangeNotification; - setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false"); -} - -std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliveryChannelName() const { - return deliveryChannelName_; -} - -void UpdateAggregateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) { - deliveryChannelName_ = deliveryChannelName; - setParameter(std::string("DeliveryChannelName"), deliveryChannelName); -} - -std::string UpdateAggregateConfigDeliveryChannelRequest::getDeliveryChannelId() const { - return deliveryChannelId_; -} - -void UpdateAggregateConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { - deliveryChannelId_ = deliveryChannelId; - setParameter(std::string("DeliveryChannelId"), deliveryChannelId); -} - -std::string UpdateAggregateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const { - return oversizedDataOSSTargetArn_; -} - -void UpdateAggregateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) { - oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn; - setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn); -} - -long UpdateAggregateConfigDeliveryChannelRequest::getStatus() const { - return status_; -} - -void UpdateAggregateConfigDeliveryChannelRequest::setStatus(long status) { - status_ = status; - setParameter(std::string("Status"), std::to_string(status)); -} - diff --git a/config/src/model/UpdateAggregateConfigDeliveryChannelResult.cc b/config/src/model/UpdateAggregateConfigDeliveryChannelResult.cc deleted file mode 100644 index 8670d928c..000000000 --- a/config/src/model/UpdateAggregateConfigDeliveryChannelResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -UpdateAggregateConfigDeliveryChannelResult::UpdateAggregateConfigDeliveryChannelResult() : - ServiceResult() -{} - -UpdateAggregateConfigDeliveryChannelResult::UpdateAggregateConfigDeliveryChannelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateAggregateConfigDeliveryChannelResult::~UpdateAggregateConfigDeliveryChannelResult() -{} - -void UpdateAggregateConfigDeliveryChannelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["DeliveryChannelId"].isNull()) - deliveryChannelId_ = value["DeliveryChannelId"].asString(); - -} - -std::string UpdateAggregateConfigDeliveryChannelResult::getDeliveryChannelId()const -{ - return deliveryChannelId_; -} - diff --git a/config/src/model/UpdateAggregateConfigRuleRequest.cc b/config/src/model/UpdateAggregateConfigRuleRequest.cc deleted file mode 100644 index f04a9a27c..000000000 --- a/config/src/model/UpdateAggregateConfigRuleRequest.cc +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::UpdateAggregateConfigRuleRequest; - -UpdateAggregateConfigRuleRequest::UpdateAggregateConfigRuleRequest() - : RpcServiceRequest("config", "2020-09-07", "UpdateAggregateConfigRule") { - setMethod(HttpRequest::Method::Post); -} - -UpdateAggregateConfigRuleRequest::~UpdateAggregateConfigRuleRequest() {} - -std::string UpdateAggregateConfigRuleRequest::getConfigRuleId() const { - return configRuleId_; -} - -void UpdateAggregateConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setBodyParameter(std::string("ConfigRuleId"), configRuleId); -} - -std::string UpdateAggregateConfigRuleRequest::getTagKeyScope() const { - return tagKeyScope_; -} - -void UpdateAggregateConfigRuleRequest::setTagKeyScope(const std::string &tagKeyScope) { - tagKeyScope_ = tagKeyScope; - setBodyParameter(std::string("TagKeyScope"), tagKeyScope); -} - -std::string UpdateAggregateConfigRuleRequest::getClientToken() const { - return clientToken_; -} - -void UpdateAggregateConfigRuleRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::vector UpdateAggregateConfigRuleRequest::getResourceTypesScope() const { - return resourceTypesScope_; -} - -void UpdateAggregateConfigRuleRequest::setResourceTypesScope(const std::vector &resourceTypesScope) { - resourceTypesScope_ = resourceTypesScope; - for(int dep1 = 0; dep1 != resourceTypesScope.size(); dep1++) { - setBodyParameter(std::string("ResourceTypesScope") + "." + std::to_string(dep1 + 1), resourceTypesScope[dep1]); - } -} - -std::string UpdateAggregateConfigRuleRequest::getDescription() const { - return description_; -} - -void UpdateAggregateConfigRuleRequest::setDescription(const std::string &description) { - description_ = description; - setBodyParameter(std::string("Description"), description); -} - -std::string UpdateAggregateConfigRuleRequest::getAggregatorId() const { - return aggregatorId_; -} - -void UpdateAggregateConfigRuleRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setBodyParameter(std::string("AggregatorId"), aggregatorId); -} - -std::string UpdateAggregateConfigRuleRequest::getConfigRuleTriggerTypes() const { - return configRuleTriggerTypes_; -} - -void UpdateAggregateConfigRuleRequest::setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes) { - configRuleTriggerTypes_ = configRuleTriggerTypes; - setBodyParameter(std::string("ConfigRuleTriggerTypes"), configRuleTriggerTypes); -} - -std::string UpdateAggregateConfigRuleRequest::getTagValueScope() const { - return tagValueScope_; -} - -void UpdateAggregateConfigRuleRequest::setTagValueScope(const std::string &tagValueScope) { - tagValueScope_ = tagValueScope; - setBodyParameter(std::string("TagValueScope"), tagValueScope); -} - -std::string UpdateAggregateConfigRuleRequest::getExcludeAccountIdsScope() const { - return excludeAccountIdsScope_; -} - -void UpdateAggregateConfigRuleRequest::setExcludeAccountIdsScope(const std::string &excludeAccountIdsScope) { - excludeAccountIdsScope_ = excludeAccountIdsScope; - setBodyParameter(std::string("ExcludeAccountIdsScope"), excludeAccountIdsScope); -} - -std::string UpdateAggregateConfigRuleRequest::getRegionIdsScope() const { - return regionIdsScope_; -} - -void UpdateAggregateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) { - regionIdsScope_ = regionIdsScope; - setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); -} - -std::string UpdateAggregateConfigRuleRequest::getExcludeFolderIdsScope() const { - return excludeFolderIdsScope_; -} - -void UpdateAggregateConfigRuleRequest::setExcludeFolderIdsScope(const std::string &excludeFolderIdsScope) { - excludeFolderIdsScope_ = excludeFolderIdsScope; - setBodyParameter(std::string("ExcludeFolderIdsScope"), excludeFolderIdsScope); -} - -int UpdateAggregateConfigRuleRequest::getRiskLevel() const { - return riskLevel_; -} - -void UpdateAggregateConfigRuleRequest::setRiskLevel(int riskLevel) { - riskLevel_ = riskLevel; - setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); -} - -std::string UpdateAggregateConfigRuleRequest::getResourceGroupIdsScope() const { - return resourceGroupIdsScope_; -} - -void UpdateAggregateConfigRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) { - resourceGroupIdsScope_ = resourceGroupIdsScope; - setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope); -} - -std::string UpdateAggregateConfigRuleRequest::getInputParameters() const { - return inputParameters_; -} - -void UpdateAggregateConfigRuleRequest::setInputParameters(const std::string &inputParameters) { - inputParameters_ = inputParameters; - setBodyParameter(std::string("InputParameters"), inputParameters); -} - -std::string UpdateAggregateConfigRuleRequest::getConfigRuleName() const { - return configRuleName_; -} - -void UpdateAggregateConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) { - configRuleName_ = configRuleName; - setBodyParameter(std::string("ConfigRuleName"), configRuleName); -} - -std::string UpdateAggregateConfigRuleRequest::getTagKeyLogicScope() const { - return tagKeyLogicScope_; -} - -void UpdateAggregateConfigRuleRequest::setTagKeyLogicScope(const std::string &tagKeyLogicScope) { - tagKeyLogicScope_ = tagKeyLogicScope; - setBodyParameter(std::string("TagKeyLogicScope"), tagKeyLogicScope); -} - -std::string UpdateAggregateConfigRuleRequest::getMaximumExecutionFrequency() const { - return maximumExecutionFrequency_; -} - -void UpdateAggregateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) { - maximumExecutionFrequency_ = maximumExecutionFrequency; - setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency); -} - -std::string UpdateAggregateConfigRuleRequest::getFolderIdsScope() const { - return folderIdsScope_; -} - -void UpdateAggregateConfigRuleRequest::setFolderIdsScope(const std::string &folderIdsScope) { - folderIdsScope_ = folderIdsScope; - setBodyParameter(std::string("FolderIdsScope"), folderIdsScope); -} - -std::string UpdateAggregateConfigRuleRequest::getExcludeResourceIdsScope() const { - return excludeResourceIdsScope_; -} - -void UpdateAggregateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) { - excludeResourceIdsScope_ = excludeResourceIdsScope; - setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope); -} - diff --git a/config/src/model/UpdateAggregateConfigRuleResult.cc b/config/src/model/UpdateAggregateConfigRuleResult.cc deleted file mode 100644 index 2e1a845aa..000000000 --- a/config/src/model/UpdateAggregateConfigRuleResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -UpdateAggregateConfigRuleResult::UpdateAggregateConfigRuleResult() : - ServiceResult() -{} - -UpdateAggregateConfigRuleResult::UpdateAggregateConfigRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateAggregateConfigRuleResult::~UpdateAggregateConfigRuleResult() -{} - -void UpdateAggregateConfigRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ConfigRuleId"].isNull()) - configRuleId_ = value["ConfigRuleId"].asString(); - -} - -std::string UpdateAggregateConfigRuleResult::getConfigRuleId()const -{ - return configRuleId_; -} - diff --git a/config/src/model/UpdateAggregateRemediationRequest.cc b/config/src/model/UpdateAggregateRemediationRequest.cc deleted file mode 100644 index 87684d14d..000000000 --- a/config/src/model/UpdateAggregateRemediationRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -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 deleted file mode 100644 index d45ec5c56..000000000 --- a/config/src/model/UpdateAggregateRemediationResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#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_; -} - diff --git a/config/src/model/UpdateAggregatorRequest.cc b/config/src/model/UpdateAggregatorRequest.cc deleted file mode 100644 index 0b63424bd..000000000 --- a/config/src/model/UpdateAggregatorRequest.cc +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::UpdateAggregatorRequest; - -UpdateAggregatorRequest::UpdateAggregatorRequest() - : RpcServiceRequest("config", "2020-09-07", "UpdateAggregator") { - setMethod(HttpRequest::Method::Post); -} - -UpdateAggregatorRequest::~UpdateAggregatorRequest() {} - -std::string UpdateAggregatorRequest::getClientToken() const { - return clientToken_; -} - -void UpdateAggregatorRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string UpdateAggregatorRequest::getAggregatorName() const { - return aggregatorName_; -} - -void UpdateAggregatorRequest::setAggregatorName(const std::string &aggregatorName) { - aggregatorName_ = aggregatorName; - setBodyParameter(std::string("AggregatorName"), aggregatorName); -} - -std::string UpdateAggregatorRequest::getDescription() const { - return description_; -} - -void UpdateAggregatorRequest::setDescription(const std::string &description) { - description_ = description; - setBodyParameter(std::string("Description"), description); -} - -std::string UpdateAggregatorRequest::getAggregatorId() const { - return aggregatorId_; -} - -void UpdateAggregatorRequest::setAggregatorId(const std::string &aggregatorId) { - aggregatorId_ = aggregatorId; - setBodyParameter(std::string("AggregatorId"), aggregatorId); -} - -std::vector UpdateAggregatorRequest::getAggregatorAccounts() const { - return aggregatorAccounts_; -} - -void UpdateAggregatorRequest::setAggregatorAccounts(const std::vector &aggregatorAccounts) { - aggregatorAccounts_ = aggregatorAccounts; - for(int dep1 = 0; dep1 != aggregatorAccounts.size(); dep1++) { - setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountId", std::to_string(aggregatorAccounts[dep1].accountId)); - setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountName", aggregatorAccounts[dep1].accountName); - setBodyParameter(std::string("AggregatorAccounts") + "." + std::to_string(dep1 + 1) + ".AccountType", aggregatorAccounts[dep1].accountType); - } -} - diff --git a/config/src/model/UpdateAggregatorResult.cc b/config/src/model/UpdateAggregatorResult.cc deleted file mode 100644 index d7a3bdbd8..000000000 --- a/config/src/model/UpdateAggregatorResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -UpdateAggregatorResult::UpdateAggregatorResult() : - ServiceResult() -{} - -UpdateAggregatorResult::UpdateAggregatorResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateAggregatorResult::~UpdateAggregatorResult() -{} - -void UpdateAggregatorResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["AggregatorId"].isNull()) - aggregatorId_ = value["AggregatorId"].asString(); - -} - -std::string UpdateAggregatorResult::getAggregatorId()const -{ - return aggregatorId_; -} - diff --git a/config/src/model/UpdateCompliancePackRequest.cc b/config/src/model/UpdateCompliancePackRequest.cc deleted file mode 100644 index 38a0134cb..000000000 --- a/config/src/model/UpdateCompliancePackRequest.cc +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::UpdateCompliancePackRequest; - -UpdateCompliancePackRequest::UpdateCompliancePackRequest() - : RpcServiceRequest("config", "2020-09-07", "UpdateCompliancePack") { - setMethod(HttpRequest::Method::Post); -} - -UpdateCompliancePackRequest::~UpdateCompliancePackRequest() {} - -std::string UpdateCompliancePackRequest::getCompliancePackName() const { - return compliancePackName_; -} - -void UpdateCompliancePackRequest::setCompliancePackName(const std::string &compliancePackName) { - compliancePackName_ = compliancePackName; - setBodyParameter(std::string("CompliancePackName"), compliancePackName); -} - -std::string UpdateCompliancePackRequest::getClientToken() const { - return clientToken_; -} - -void UpdateCompliancePackRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string UpdateCompliancePackRequest::getDescription() const { - return description_; -} - -void UpdateCompliancePackRequest::setDescription(const std::string &description) { - description_ = description; - setBodyParameter(std::string("Description"), description); -} - -std::string UpdateCompliancePackRequest::getCompliancePackId() const { - return compliancePackId_; -} - -void UpdateCompliancePackRequest::setCompliancePackId(const std::string &compliancePackId) { - compliancePackId_ = compliancePackId; - setBodyParameter(std::string("CompliancePackId"), compliancePackId); -} - -std::vector UpdateCompliancePackRequest::getConfigRules() const { - return configRules_; -} - -void UpdateCompliancePackRequest::setConfigRules(const std::vector &configRules) { - configRules_ = configRules; - for(int dep1 = 0; dep1 != configRules.size(); dep1++) { - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ManagedRuleIdentifier", configRules[dep1].managedRuleIdentifier); - for(int dep2 = 0; dep2 != configRules[dep1].configRuleParameters.size(); dep2++) { - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterValue", configRules[dep1].configRuleParameters[dep2].parameterValue); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleParameters." + std::to_string(dep2 + 1) + ".ParameterName", configRules[dep1].configRuleParameters[dep2].parameterName); - } - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleId", configRules[dep1].configRuleId); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".ConfigRuleName", configRules[dep1].configRuleName); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".Description", configRules[dep1].description); - setBodyParameter(std::string("ConfigRules") + "." + std::to_string(dep1 + 1) + ".RiskLevel", std::to_string(configRules[dep1].riskLevel)); - } -} - -int UpdateCompliancePackRequest::getRiskLevel() const { - return riskLevel_; -} - -void UpdateCompliancePackRequest::setRiskLevel(int riskLevel) { - riskLevel_ = riskLevel; - setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); -} - diff --git a/config/src/model/UpdateCompliancePackResult.cc b/config/src/model/UpdateCompliancePackResult.cc deleted file mode 100644 index 5c58d0735..000000000 --- a/config/src/model/UpdateCompliancePackResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -UpdateCompliancePackResult::UpdateCompliancePackResult() : - ServiceResult() -{} - -UpdateCompliancePackResult::UpdateCompliancePackResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateCompliancePackResult::~UpdateCompliancePackResult() -{} - -void UpdateCompliancePackResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["CompliancePackId"].isNull()) - compliancePackId_ = value["CompliancePackId"].asString(); - -} - -std::string UpdateCompliancePackResult::getCompliancePackId()const -{ - return compliancePackId_; -} - diff --git a/config/src/model/UpdateConfigDeliveryChannelRequest.cc b/config/src/model/UpdateConfigDeliveryChannelRequest.cc deleted file mode 100644 index 4f02f3c09..000000000 --- a/config/src/model/UpdateConfigDeliveryChannelRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::UpdateConfigDeliveryChannelRequest; - -UpdateConfigDeliveryChannelRequest::UpdateConfigDeliveryChannelRequest() - : RpcServiceRequest("config", "2020-09-07", "UpdateConfigDeliveryChannel") { - setMethod(HttpRequest::Method::Post); -} - -UpdateConfigDeliveryChannelRequest::~UpdateConfigDeliveryChannelRequest() {} - -bool UpdateConfigDeliveryChannelRequest::getNonCompliantNotification() const { - return nonCompliantNotification_; -} - -void UpdateConfigDeliveryChannelRequest::setNonCompliantNotification(bool nonCompliantNotification) { - nonCompliantNotification_ = nonCompliantNotification; - setParameter(std::string("NonCompliantNotification"), nonCompliantNotification ? "true" : "false"); -} - -std::string UpdateConfigDeliveryChannelRequest::getClientToken() const { - return clientToken_; -} - -void UpdateConfigDeliveryChannelRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -bool UpdateConfigDeliveryChannelRequest::getConfigurationSnapshot() const { - return configurationSnapshot_; -} - -void UpdateConfigDeliveryChannelRequest::setConfigurationSnapshot(bool configurationSnapshot) { - configurationSnapshot_ = configurationSnapshot; - setParameter(std::string("ConfigurationSnapshot"), configurationSnapshot ? "true" : "false"); -} - -std::string UpdateConfigDeliveryChannelRequest::getDescription() const { - return description_; -} - -void UpdateConfigDeliveryChannelRequest::setDescription(const std::string &description) { - description_ = description; - setParameter(std::string("Description"), description); -} - -std::string UpdateConfigDeliveryChannelRequest::getDeliveryChannelTargetArn() const { - return deliveryChannelTargetArn_; -} - -void UpdateConfigDeliveryChannelRequest::setDeliveryChannelTargetArn(const std::string &deliveryChannelTargetArn) { - deliveryChannelTargetArn_ = deliveryChannelTargetArn; - setParameter(std::string("DeliveryChannelTargetArn"), deliveryChannelTargetArn); -} - -std::string UpdateConfigDeliveryChannelRequest::getDeliveryChannelCondition() const { - return deliveryChannelCondition_; -} - -void UpdateConfigDeliveryChannelRequest::setDeliveryChannelCondition(const std::string &deliveryChannelCondition) { - deliveryChannelCondition_ = deliveryChannelCondition; - setParameter(std::string("DeliveryChannelCondition"), deliveryChannelCondition); -} - -bool UpdateConfigDeliveryChannelRequest::getConfigurationItemChangeNotification() const { - return configurationItemChangeNotification_; -} - -void UpdateConfigDeliveryChannelRequest::setConfigurationItemChangeNotification(bool configurationItemChangeNotification) { - configurationItemChangeNotification_ = configurationItemChangeNotification; - setParameter(std::string("ConfigurationItemChangeNotification"), configurationItemChangeNotification ? "true" : "false"); -} - -std::string UpdateConfigDeliveryChannelRequest::getDeliveryChannelName() const { - return deliveryChannelName_; -} - -void UpdateConfigDeliveryChannelRequest::setDeliveryChannelName(const std::string &deliveryChannelName) { - deliveryChannelName_ = deliveryChannelName; - setParameter(std::string("DeliveryChannelName"), deliveryChannelName); -} - -std::string UpdateConfigDeliveryChannelRequest::getDeliveryChannelId() const { - return deliveryChannelId_; -} - -void UpdateConfigDeliveryChannelRequest::setDeliveryChannelId(const std::string &deliveryChannelId) { - deliveryChannelId_ = deliveryChannelId; - setParameter(std::string("DeliveryChannelId"), deliveryChannelId); -} - -std::string UpdateConfigDeliveryChannelRequest::getOversizedDataOSSTargetArn() const { - return oversizedDataOSSTargetArn_; -} - -void UpdateConfigDeliveryChannelRequest::setOversizedDataOSSTargetArn(const std::string &oversizedDataOSSTargetArn) { - oversizedDataOSSTargetArn_ = oversizedDataOSSTargetArn; - setParameter(std::string("OversizedDataOSSTargetArn"), oversizedDataOSSTargetArn); -} - -long UpdateConfigDeliveryChannelRequest::getStatus() const { - return status_; -} - -void UpdateConfigDeliveryChannelRequest::setStatus(long status) { - status_ = status; - setParameter(std::string("Status"), std::to_string(status)); -} - diff --git a/config/src/model/UpdateConfigDeliveryChannelResult.cc b/config/src/model/UpdateConfigDeliveryChannelResult.cc deleted file mode 100644 index 97da6bca0..000000000 --- a/config/src/model/UpdateConfigDeliveryChannelResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Config; -using namespace AlibabaCloud::Config::Model; - -UpdateConfigDeliveryChannelResult::UpdateConfigDeliveryChannelResult() : - ServiceResult() -{} - -UpdateConfigDeliveryChannelResult::UpdateConfigDeliveryChannelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateConfigDeliveryChannelResult::~UpdateConfigDeliveryChannelResult() -{} - -void UpdateConfigDeliveryChannelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["DeliveryChannelId"].isNull()) - deliveryChannelId_ = value["DeliveryChannelId"].asString(); - -} - -std::string UpdateConfigDeliveryChannelResult::getDeliveryChannelId()const -{ - return deliveryChannelId_; -} - diff --git a/config/src/model/UpdateConfigRuleRequest.cc b/config/src/model/UpdateConfigRuleRequest.cc deleted file mode 100644 index f1ceeb6fe..000000000 --- a/config/src/model/UpdateConfigRuleRequest.cc +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Config::Model::UpdateConfigRuleRequest; - -UpdateConfigRuleRequest::UpdateConfigRuleRequest() - : RpcServiceRequest("config", "2020-09-07", "UpdateConfigRule") { - setMethod(HttpRequest::Method::Post); -} - -UpdateConfigRuleRequest::~UpdateConfigRuleRequest() {} - -std::string UpdateConfigRuleRequest::getConfigRuleId() const { - return configRuleId_; -} - -void UpdateConfigRuleRequest::setConfigRuleId(const std::string &configRuleId) { - configRuleId_ = configRuleId; - setBodyParameter(std::string("ConfigRuleId"), configRuleId); -} - -std::string UpdateConfigRuleRequest::getTagKeyScope() const { - return tagKeyScope_; -} - -void UpdateConfigRuleRequest::setTagKeyScope(const std::string &tagKeyScope) { - tagKeyScope_ = tagKeyScope; - setBodyParameter(std::string("TagKeyScope"), tagKeyScope); -} - -std::string UpdateConfigRuleRequest::getClientToken() const { - return clientToken_; -} - -void UpdateConfigRuleRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::vector UpdateConfigRuleRequest::getResourceTypesScope() const { - return resourceTypesScope_; -} - -void UpdateConfigRuleRequest::setResourceTypesScope(const std::vector &resourceTypesScope) { - resourceTypesScope_ = resourceTypesScope; - for(int dep1 = 0; dep1 != resourceTypesScope.size(); dep1++) { - setBodyParameter(std::string("ResourceTypesScope") + "." + std::to_string(dep1 + 1), resourceTypesScope[dep1]); - } -} - -std::string UpdateConfigRuleRequest::getDescription() const { - return description_; -} - -void UpdateConfigRuleRequest::setDescription(const std::string &description) { - description_ = description; - setBodyParameter(std::string("Description"), description); -} - -std::string UpdateConfigRuleRequest::getConfigRuleTriggerTypes() const { - return configRuleTriggerTypes_; -} - -void UpdateConfigRuleRequest::setConfigRuleTriggerTypes(const std::string &configRuleTriggerTypes) { - configRuleTriggerTypes_ = configRuleTriggerTypes; - setBodyParameter(std::string("ConfigRuleTriggerTypes"), configRuleTriggerTypes); -} - -std::string UpdateConfigRuleRequest::getTagValueScope() const { - return tagValueScope_; -} - -void UpdateConfigRuleRequest::setTagValueScope(const std::string &tagValueScope) { - tagValueScope_ = tagValueScope; - setBodyParameter(std::string("TagValueScope"), tagValueScope); -} - -std::string UpdateConfigRuleRequest::getRegionIdsScope() const { - return regionIdsScope_; -} - -void UpdateConfigRuleRequest::setRegionIdsScope(const std::string ®ionIdsScope) { - regionIdsScope_ = regionIdsScope; - setBodyParameter(std::string("RegionIdsScope"), regionIdsScope); -} - -int UpdateConfigRuleRequest::getRiskLevel() const { - return riskLevel_; -} - -void UpdateConfigRuleRequest::setRiskLevel(int riskLevel) { - riskLevel_ = riskLevel; - setBodyParameter(std::string("RiskLevel"), std::to_string(riskLevel)); -} - -std::string UpdateConfigRuleRequest::getResourceGroupIdsScope() const { - return resourceGroupIdsScope_; -} - -void UpdateConfigRuleRequest::setResourceGroupIdsScope(const std::string &resourceGroupIdsScope) { - resourceGroupIdsScope_ = resourceGroupIdsScope; - setBodyParameter(std::string("ResourceGroupIdsScope"), resourceGroupIdsScope); -} - -std::string UpdateConfigRuleRequest::getInputParameters() const { - return inputParameters_; -} - -void UpdateConfigRuleRequest::setInputParameters(const std::string &inputParameters) { - inputParameters_ = inputParameters; - setBodyParameter(std::string("InputParameters"), inputParameters); -} - -std::string UpdateConfigRuleRequest::getConfigRuleName() const { - return configRuleName_; -} - -void UpdateConfigRuleRequest::setConfigRuleName(const std::string &configRuleName) { - configRuleName_ = configRuleName; - setBodyParameter(std::string("ConfigRuleName"), configRuleName); -} - -std::string UpdateConfigRuleRequest::getTagKeyLogicScope() const { - return tagKeyLogicScope_; -} - -void UpdateConfigRuleRequest::setTagKeyLogicScope(const std::string &tagKeyLogicScope) { - tagKeyLogicScope_ = tagKeyLogicScope; - setBodyParameter(std::string("TagKeyLogicScope"), tagKeyLogicScope); -} - -std::string UpdateConfigRuleRequest::getMaximumExecutionFrequency() const { - return maximumExecutionFrequency_; -} - -void UpdateConfigRuleRequest::setMaximumExecutionFrequency(const std::string &maximumExecutionFrequency) { - maximumExecutionFrequency_ = maximumExecutionFrequency; - setBodyParameter(std::string("MaximumExecutionFrequency"), maximumExecutionFrequency); -} - -std::string UpdateConfigRuleRequest::getExcludeResourceIdsScope() const { - return excludeResourceIdsScope_; -} - -void UpdateConfigRuleRequest::setExcludeResourceIdsScope(const std::string &excludeResourceIdsScope) { - excludeResourceIdsScope_ = excludeResourceIdsScope; - setBodyParameter(std::string("ExcludeResourceIdsScope"), excludeResourceIdsScope); -} -