From 429d57cff4e68fabfb445d5dbe732572dc6e4249 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 30 Sep 2024 07:06:34 +0000 Subject: [PATCH] Generated 2018-08-28 for Tag. --- VERSION | 2 +- tag/CMakeLists.txt | 80 ++ tag/include/alibabacloud/tag/TagClient.h | 160 ++++ .../tag/model/AttachPolicyRequest.h | 60 ++ .../tag/model/AttachPolicyResult.h | 49 ++ .../tag/model/CheckCreatedByEnabledRequest.h | 54 ++ .../tag/model/CheckCreatedByEnabledResult.h | 51 ++ .../tag/model/CloseCreatedByRequest.h | 54 ++ .../tag/model/CloseCreatedByResult.h | 49 ++ .../tag/model/CreatePolicyRequest.h | 66 ++ .../tag/model/CreatePolicyResult.h | 53 ++ .../tag/model/DeletePolicyRequest.h | 54 ++ .../tag/model/DeletePolicyResult.h | 49 ++ .../tag/model/DetachPolicyRequest.h | 60 ++ .../tag/model/DetachPolicyResult.h | 49 ++ .../tag/model/DisablePolicyTypeRequest.h | 60 ++ .../tag/model/DisablePolicyTypeResult.h | 49 ++ .../tag/model/EnablePolicyTypeRequest.h | 60 ++ .../tag/model/EnablePolicyTypeResult.h | 49 ++ .../model/GenerateConfigRuleReportRequest.h | 60 ++ .../model/GenerateConfigRuleReportResult.h | 51 ++ .../tag/model/GetConfigRuleReportRequest.h | 60 ++ .../tag/model/GetConfigRuleReportResult.h | 62 ++ .../tag/model/GetEffectivePolicyRequest.h | 57 ++ .../tag/model/GetEffectivePolicyResult.h | 51 ++ .../tag/model/GetPolicyEnableStatusRequest.h | 60 ++ .../tag/model/GetPolicyEnableStatusResult.h | 56 ++ .../alibabacloud/tag/model/GetPolicyRequest.h | 54 ++ .../alibabacloud/tag/model/GetPolicyResult.h | 58 ++ .../model/ListConfigRulesForTargetRequest.h | 72 ++ .../model/ListConfigRulesForTargetResult.h | 64 ++ .../tag/model/ListPoliciesForTargetRequest.h | 63 ++ .../tag/model/ListPoliciesForTargetResult.h | 61 ++ .../tag/model/ListPoliciesRequest.h | 66 ++ .../tag/model/ListPoliciesResult.h | 61 ++ .../model/ListSupportResourceTypesRequest.h | 69 ++ .../model/ListSupportResourceTypesResult.h | 66 ++ .../tag/model/ListTargetsForPolicyRequest.h | 60 ++ .../tag/model/ListTargetsForPolicyResult.h | 62 ++ .../tag/model/ModifyPolicyRequest.h | 66 ++ .../tag/model/ModifyPolicyResult.h | 49 ++ .../tag/model/OpenCreatedByRequest.h | 54 ++ .../tag/model/OpenCreatedByResult.h | 49 ++ tag/src/TagClient.cc | 720 ++++++++++++++++++ tag/src/model/AttachPolicyRequest.cc | 90 +++ tag/src/model/AttachPolicyResult.cc | 44 ++ tag/src/model/CheckCreatedByEnabledRequest.cc | 72 ++ tag/src/model/CheckCreatedByEnabledResult.cc | 51 ++ tag/src/model/CloseCreatedByRequest.cc | 72 ++ tag/src/model/CloseCreatedByResult.cc | 44 ++ tag/src/model/CreatePolicyRequest.cc | 108 +++ tag/src/model/CreatePolicyResult.cc | 58 ++ tag/src/model/DeletePolicyRequest.cc | 72 ++ tag/src/model/DeletePolicyResult.cc | 44 ++ tag/src/model/DetachPolicyRequest.cc | 90 +++ tag/src/model/DetachPolicyResult.cc | 44 ++ tag/src/model/DisablePolicyTypeRequest.cc | 90 +++ tag/src/model/DisablePolicyTypeResult.cc | 44 ++ tag/src/model/EnablePolicyTypeRequest.cc | 90 +++ tag/src/model/EnablePolicyTypeResult.cc | 44 ++ .../model/GenerateConfigRuleReportRequest.cc | 90 +++ .../model/GenerateConfigRuleReportResult.cc | 51 ++ tag/src/model/GetConfigRuleReportRequest.cc | 90 +++ tag/src/model/GetConfigRuleReportResult.cc | 72 ++ tag/src/model/GetEffectivePolicyRequest.cc | 81 ++ tag/src/model/GetEffectivePolicyResult.cc | 51 ++ tag/src/model/GetPolicyEnableStatusRequest.cc | 90 +++ tag/src/model/GetPolicyEnableStatusResult.cc | 59 ++ tag/src/model/GetPolicyRequest.cc | 72 ++ tag/src/model/GetPolicyResult.cc | 58 ++ .../model/ListConfigRulesForTargetRequest.cc | 126 +++ .../model/ListConfigRulesForTargetResult.cc | 78 ++ tag/src/model/ListPoliciesForTargetRequest.cc | 99 +++ tag/src/model/ListPoliciesForTargetResult.cc | 72 ++ tag/src/model/ListPoliciesRequest.cc | 106 +++ tag/src/model/ListPoliciesResult.cc | 72 ++ tag/src/model/ListResourcesByTagResult.cc | 4 +- .../model/ListSupportResourceTypesRequest.cc | 117 +++ .../model/ListSupportResourceTypesResult.cc | 81 ++ tag/src/model/ListTargetsForPolicyRequest.cc | 90 +++ tag/src/model/ListTargetsForPolicyResult.cc | 80 ++ tag/src/model/ModifyPolicyRequest.cc | 108 +++ tag/src/model/ModifyPolicyResult.cc | 44 ++ tag/src/model/OpenCreatedByRequest.cc | 72 ++ tag/src/model/OpenCreatedByResult.cc | 44 ++ 85 files changed, 6220 insertions(+), 3 deletions(-) create mode 100644 tag/include/alibabacloud/tag/model/AttachPolicyRequest.h create mode 100644 tag/include/alibabacloud/tag/model/AttachPolicyResult.h create mode 100644 tag/include/alibabacloud/tag/model/CheckCreatedByEnabledRequest.h create mode 100644 tag/include/alibabacloud/tag/model/CheckCreatedByEnabledResult.h create mode 100644 tag/include/alibabacloud/tag/model/CloseCreatedByRequest.h create mode 100644 tag/include/alibabacloud/tag/model/CloseCreatedByResult.h create mode 100644 tag/include/alibabacloud/tag/model/CreatePolicyRequest.h create mode 100644 tag/include/alibabacloud/tag/model/CreatePolicyResult.h create mode 100644 tag/include/alibabacloud/tag/model/DeletePolicyRequest.h create mode 100644 tag/include/alibabacloud/tag/model/DeletePolicyResult.h create mode 100644 tag/include/alibabacloud/tag/model/DetachPolicyRequest.h create mode 100644 tag/include/alibabacloud/tag/model/DetachPolicyResult.h create mode 100644 tag/include/alibabacloud/tag/model/DisablePolicyTypeRequest.h create mode 100644 tag/include/alibabacloud/tag/model/DisablePolicyTypeResult.h create mode 100644 tag/include/alibabacloud/tag/model/EnablePolicyTypeRequest.h create mode 100644 tag/include/alibabacloud/tag/model/EnablePolicyTypeResult.h create mode 100644 tag/include/alibabacloud/tag/model/GenerateConfigRuleReportRequest.h create mode 100644 tag/include/alibabacloud/tag/model/GenerateConfigRuleReportResult.h create mode 100644 tag/include/alibabacloud/tag/model/GetConfigRuleReportRequest.h create mode 100644 tag/include/alibabacloud/tag/model/GetConfigRuleReportResult.h create mode 100644 tag/include/alibabacloud/tag/model/GetEffectivePolicyRequest.h create mode 100644 tag/include/alibabacloud/tag/model/GetEffectivePolicyResult.h create mode 100644 tag/include/alibabacloud/tag/model/GetPolicyEnableStatusRequest.h create mode 100644 tag/include/alibabacloud/tag/model/GetPolicyEnableStatusResult.h create mode 100644 tag/include/alibabacloud/tag/model/GetPolicyRequest.h create mode 100644 tag/include/alibabacloud/tag/model/GetPolicyResult.h create mode 100644 tag/include/alibabacloud/tag/model/ListConfigRulesForTargetRequest.h create mode 100644 tag/include/alibabacloud/tag/model/ListConfigRulesForTargetResult.h create mode 100644 tag/include/alibabacloud/tag/model/ListPoliciesForTargetRequest.h create mode 100644 tag/include/alibabacloud/tag/model/ListPoliciesForTargetResult.h create mode 100644 tag/include/alibabacloud/tag/model/ListPoliciesRequest.h create mode 100644 tag/include/alibabacloud/tag/model/ListPoliciesResult.h create mode 100644 tag/include/alibabacloud/tag/model/ListSupportResourceTypesRequest.h create mode 100644 tag/include/alibabacloud/tag/model/ListSupportResourceTypesResult.h create mode 100644 tag/include/alibabacloud/tag/model/ListTargetsForPolicyRequest.h create mode 100644 tag/include/alibabacloud/tag/model/ListTargetsForPolicyResult.h create mode 100644 tag/include/alibabacloud/tag/model/ModifyPolicyRequest.h create mode 100644 tag/include/alibabacloud/tag/model/ModifyPolicyResult.h create mode 100644 tag/include/alibabacloud/tag/model/OpenCreatedByRequest.h create mode 100644 tag/include/alibabacloud/tag/model/OpenCreatedByResult.h create mode 100644 tag/src/model/AttachPolicyRequest.cc create mode 100644 tag/src/model/AttachPolicyResult.cc create mode 100644 tag/src/model/CheckCreatedByEnabledRequest.cc create mode 100644 tag/src/model/CheckCreatedByEnabledResult.cc create mode 100644 tag/src/model/CloseCreatedByRequest.cc create mode 100644 tag/src/model/CloseCreatedByResult.cc create mode 100644 tag/src/model/CreatePolicyRequest.cc create mode 100644 tag/src/model/CreatePolicyResult.cc create mode 100644 tag/src/model/DeletePolicyRequest.cc create mode 100644 tag/src/model/DeletePolicyResult.cc create mode 100644 tag/src/model/DetachPolicyRequest.cc create mode 100644 tag/src/model/DetachPolicyResult.cc create mode 100644 tag/src/model/DisablePolicyTypeRequest.cc create mode 100644 tag/src/model/DisablePolicyTypeResult.cc create mode 100644 tag/src/model/EnablePolicyTypeRequest.cc create mode 100644 tag/src/model/EnablePolicyTypeResult.cc create mode 100644 tag/src/model/GenerateConfigRuleReportRequest.cc create mode 100644 tag/src/model/GenerateConfigRuleReportResult.cc create mode 100644 tag/src/model/GetConfigRuleReportRequest.cc create mode 100644 tag/src/model/GetConfigRuleReportResult.cc create mode 100644 tag/src/model/GetEffectivePolicyRequest.cc create mode 100644 tag/src/model/GetEffectivePolicyResult.cc create mode 100644 tag/src/model/GetPolicyEnableStatusRequest.cc create mode 100644 tag/src/model/GetPolicyEnableStatusResult.cc create mode 100644 tag/src/model/GetPolicyRequest.cc create mode 100644 tag/src/model/GetPolicyResult.cc create mode 100644 tag/src/model/ListConfigRulesForTargetRequest.cc create mode 100644 tag/src/model/ListConfigRulesForTargetResult.cc create mode 100644 tag/src/model/ListPoliciesForTargetRequest.cc create mode 100644 tag/src/model/ListPoliciesForTargetResult.cc create mode 100644 tag/src/model/ListPoliciesRequest.cc create mode 100644 tag/src/model/ListPoliciesResult.cc create mode 100644 tag/src/model/ListSupportResourceTypesRequest.cc create mode 100644 tag/src/model/ListSupportResourceTypesResult.cc create mode 100644 tag/src/model/ListTargetsForPolicyRequest.cc create mode 100644 tag/src/model/ListTargetsForPolicyResult.cc create mode 100644 tag/src/model/ModifyPolicyRequest.cc create mode 100644 tag/src/model/ModifyPolicyResult.cc create mode 100644 tag/src/model/OpenCreatedByRequest.cc create mode 100644 tag/src/model/OpenCreatedByResult.cc diff --git a/VERSION b/VERSION index 36cab5f1f..987d80f09 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1993 \ No newline at end of file +1.36.1994 \ No newline at end of file diff --git a/tag/CMakeLists.txt b/tag/CMakeLists.txt index 0d3f42ff8..cb013d014 100644 --- a/tag/CMakeLists.txt +++ b/tag/CMakeLists.txt @@ -21,20 +21,60 @@ set(tag_public_header include/alibabacloud/tag/TagExport.h ) set(tag_public_header_model + include/alibabacloud/tag/model/AttachPolicyRequest.h + include/alibabacloud/tag/model/AttachPolicyResult.h + include/alibabacloud/tag/model/CheckCreatedByEnabledRequest.h + include/alibabacloud/tag/model/CheckCreatedByEnabledResult.h + include/alibabacloud/tag/model/CloseCreatedByRequest.h + include/alibabacloud/tag/model/CloseCreatedByResult.h + include/alibabacloud/tag/model/CreatePolicyRequest.h + include/alibabacloud/tag/model/CreatePolicyResult.h include/alibabacloud/tag/model/CreateTagsRequest.h include/alibabacloud/tag/model/CreateTagsResult.h + include/alibabacloud/tag/model/DeletePolicyRequest.h + include/alibabacloud/tag/model/DeletePolicyResult.h include/alibabacloud/tag/model/DeleteTagRequest.h include/alibabacloud/tag/model/DeleteTagResult.h include/alibabacloud/tag/model/DescribeRegionsRequest.h include/alibabacloud/tag/model/DescribeRegionsResult.h + include/alibabacloud/tag/model/DetachPolicyRequest.h + include/alibabacloud/tag/model/DetachPolicyResult.h + include/alibabacloud/tag/model/DisablePolicyTypeRequest.h + include/alibabacloud/tag/model/DisablePolicyTypeResult.h + include/alibabacloud/tag/model/EnablePolicyTypeRequest.h + include/alibabacloud/tag/model/EnablePolicyTypeResult.h + include/alibabacloud/tag/model/GenerateConfigRuleReportRequest.h + include/alibabacloud/tag/model/GenerateConfigRuleReportResult.h + include/alibabacloud/tag/model/GetConfigRuleReportRequest.h + include/alibabacloud/tag/model/GetConfigRuleReportResult.h + include/alibabacloud/tag/model/GetEffectivePolicyRequest.h + include/alibabacloud/tag/model/GetEffectivePolicyResult.h + include/alibabacloud/tag/model/GetPolicyRequest.h + include/alibabacloud/tag/model/GetPolicyResult.h + include/alibabacloud/tag/model/GetPolicyEnableStatusRequest.h + include/alibabacloud/tag/model/GetPolicyEnableStatusResult.h + include/alibabacloud/tag/model/ListConfigRulesForTargetRequest.h + include/alibabacloud/tag/model/ListConfigRulesForTargetResult.h + include/alibabacloud/tag/model/ListPoliciesRequest.h + include/alibabacloud/tag/model/ListPoliciesResult.h + include/alibabacloud/tag/model/ListPoliciesForTargetRequest.h + include/alibabacloud/tag/model/ListPoliciesForTargetResult.h include/alibabacloud/tag/model/ListResourcesByTagRequest.h include/alibabacloud/tag/model/ListResourcesByTagResult.h + include/alibabacloud/tag/model/ListSupportResourceTypesRequest.h + include/alibabacloud/tag/model/ListSupportResourceTypesResult.h include/alibabacloud/tag/model/ListTagKeysRequest.h include/alibabacloud/tag/model/ListTagKeysResult.h include/alibabacloud/tag/model/ListTagResourcesRequest.h include/alibabacloud/tag/model/ListTagResourcesResult.h include/alibabacloud/tag/model/ListTagValuesRequest.h include/alibabacloud/tag/model/ListTagValuesResult.h + include/alibabacloud/tag/model/ListTargetsForPolicyRequest.h + include/alibabacloud/tag/model/ListTargetsForPolicyResult.h + include/alibabacloud/tag/model/ModifyPolicyRequest.h + include/alibabacloud/tag/model/ModifyPolicyResult.h + include/alibabacloud/tag/model/OpenCreatedByRequest.h + include/alibabacloud/tag/model/OpenCreatedByResult.h include/alibabacloud/tag/model/TagResourcesRequest.h include/alibabacloud/tag/model/TagResourcesResult.h include/alibabacloud/tag/model/UntagResourcesRequest.h @@ -42,20 +82,60 @@ set(tag_public_header_model set(tag_src src/TagClient.cc + src/model/AttachPolicyRequest.cc + src/model/AttachPolicyResult.cc + src/model/CheckCreatedByEnabledRequest.cc + src/model/CheckCreatedByEnabledResult.cc + src/model/CloseCreatedByRequest.cc + src/model/CloseCreatedByResult.cc + src/model/CreatePolicyRequest.cc + src/model/CreatePolicyResult.cc src/model/CreateTagsRequest.cc src/model/CreateTagsResult.cc + src/model/DeletePolicyRequest.cc + src/model/DeletePolicyResult.cc src/model/DeleteTagRequest.cc src/model/DeleteTagResult.cc src/model/DescribeRegionsRequest.cc src/model/DescribeRegionsResult.cc + src/model/DetachPolicyRequest.cc + src/model/DetachPolicyResult.cc + src/model/DisablePolicyTypeRequest.cc + src/model/DisablePolicyTypeResult.cc + src/model/EnablePolicyTypeRequest.cc + src/model/EnablePolicyTypeResult.cc + src/model/GenerateConfigRuleReportRequest.cc + src/model/GenerateConfigRuleReportResult.cc + src/model/GetConfigRuleReportRequest.cc + src/model/GetConfigRuleReportResult.cc + src/model/GetEffectivePolicyRequest.cc + src/model/GetEffectivePolicyResult.cc + src/model/GetPolicyRequest.cc + src/model/GetPolicyResult.cc + src/model/GetPolicyEnableStatusRequest.cc + src/model/GetPolicyEnableStatusResult.cc + src/model/ListConfigRulesForTargetRequest.cc + src/model/ListConfigRulesForTargetResult.cc + src/model/ListPoliciesRequest.cc + src/model/ListPoliciesResult.cc + src/model/ListPoliciesForTargetRequest.cc + src/model/ListPoliciesForTargetResult.cc src/model/ListResourcesByTagRequest.cc src/model/ListResourcesByTagResult.cc + src/model/ListSupportResourceTypesRequest.cc + src/model/ListSupportResourceTypesResult.cc src/model/ListTagKeysRequest.cc src/model/ListTagKeysResult.cc src/model/ListTagResourcesRequest.cc src/model/ListTagResourcesResult.cc src/model/ListTagValuesRequest.cc src/model/ListTagValuesResult.cc + src/model/ListTargetsForPolicyRequest.cc + src/model/ListTargetsForPolicyResult.cc + src/model/ModifyPolicyRequest.cc + src/model/ModifyPolicyResult.cc + src/model/OpenCreatedByRequest.cc + src/model/OpenCreatedByResult.cc src/model/TagResourcesRequest.cc src/model/TagResourcesResult.cc src/model/UntagResourcesRequest.cc diff --git a/tag/include/alibabacloud/tag/TagClient.h b/tag/include/alibabacloud/tag/TagClient.h index 385fbfcf5..77feb8a80 100644 --- a/tag/include/alibabacloud/tag/TagClient.h +++ b/tag/include/alibabacloud/tag/TagClient.h @@ -22,20 +22,60 @@ #include #include #include "TagExport.h" +#include "model/AttachPolicyRequest.h" +#include "model/AttachPolicyResult.h" +#include "model/CheckCreatedByEnabledRequest.h" +#include "model/CheckCreatedByEnabledResult.h" +#include "model/CloseCreatedByRequest.h" +#include "model/CloseCreatedByResult.h" +#include "model/CreatePolicyRequest.h" +#include "model/CreatePolicyResult.h" #include "model/CreateTagsRequest.h" #include "model/CreateTagsResult.h" +#include "model/DeletePolicyRequest.h" +#include "model/DeletePolicyResult.h" #include "model/DeleteTagRequest.h" #include "model/DeleteTagResult.h" #include "model/DescribeRegionsRequest.h" #include "model/DescribeRegionsResult.h" +#include "model/DetachPolicyRequest.h" +#include "model/DetachPolicyResult.h" +#include "model/DisablePolicyTypeRequest.h" +#include "model/DisablePolicyTypeResult.h" +#include "model/EnablePolicyTypeRequest.h" +#include "model/EnablePolicyTypeResult.h" +#include "model/GenerateConfigRuleReportRequest.h" +#include "model/GenerateConfigRuleReportResult.h" +#include "model/GetConfigRuleReportRequest.h" +#include "model/GetConfigRuleReportResult.h" +#include "model/GetEffectivePolicyRequest.h" +#include "model/GetEffectivePolicyResult.h" +#include "model/GetPolicyRequest.h" +#include "model/GetPolicyResult.h" +#include "model/GetPolicyEnableStatusRequest.h" +#include "model/GetPolicyEnableStatusResult.h" +#include "model/ListConfigRulesForTargetRequest.h" +#include "model/ListConfigRulesForTargetResult.h" +#include "model/ListPoliciesRequest.h" +#include "model/ListPoliciesResult.h" +#include "model/ListPoliciesForTargetRequest.h" +#include "model/ListPoliciesForTargetResult.h" #include "model/ListResourcesByTagRequest.h" #include "model/ListResourcesByTagResult.h" +#include "model/ListSupportResourceTypesRequest.h" +#include "model/ListSupportResourceTypesResult.h" #include "model/ListTagKeysRequest.h" #include "model/ListTagKeysResult.h" #include "model/ListTagResourcesRequest.h" #include "model/ListTagResourcesResult.h" #include "model/ListTagValuesRequest.h" #include "model/ListTagValuesResult.h" +#include "model/ListTargetsForPolicyRequest.h" +#include "model/ListTargetsForPolicyResult.h" +#include "model/ModifyPolicyRequest.h" +#include "model/ModifyPolicyResult.h" +#include "model/OpenCreatedByRequest.h" +#include "model/OpenCreatedByResult.h" #include "model/TagResourcesRequest.h" #include "model/TagResourcesResult.h" #include "model/UntagResourcesRequest.h" @@ -49,18 +89,69 @@ namespace AlibabaCloud class ALIBABACLOUD_TAG_EXPORT TagClient : public RpcServiceClient { public: + typedef Outcome AttachPolicyOutcome; + typedef std::future AttachPolicyOutcomeCallable; + typedef std::function&)> AttachPolicyAsyncHandler; + typedef Outcome CheckCreatedByEnabledOutcome; + typedef std::future CheckCreatedByEnabledOutcomeCallable; + typedef std::function&)> CheckCreatedByEnabledAsyncHandler; + typedef Outcome CloseCreatedByOutcome; + typedef std::future CloseCreatedByOutcomeCallable; + typedef std::function&)> CloseCreatedByAsyncHandler; + typedef Outcome CreatePolicyOutcome; + typedef std::future CreatePolicyOutcomeCallable; + typedef std::function&)> CreatePolicyAsyncHandler; typedef Outcome CreateTagsOutcome; typedef std::future CreateTagsOutcomeCallable; typedef std::function&)> CreateTagsAsyncHandler; + typedef Outcome DeletePolicyOutcome; + typedef std::future DeletePolicyOutcomeCallable; + typedef std::function&)> DeletePolicyAsyncHandler; typedef Outcome DeleteTagOutcome; typedef std::future DeleteTagOutcomeCallable; typedef std::function&)> DeleteTagAsyncHandler; typedef Outcome DescribeRegionsOutcome; typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DetachPolicyOutcome; + typedef std::future DetachPolicyOutcomeCallable; + typedef std::function&)> DetachPolicyAsyncHandler; + typedef Outcome DisablePolicyTypeOutcome; + typedef std::future DisablePolicyTypeOutcomeCallable; + typedef std::function&)> DisablePolicyTypeAsyncHandler; + typedef Outcome EnablePolicyTypeOutcome; + typedef std::future EnablePolicyTypeOutcomeCallable; + typedef std::function&)> EnablePolicyTypeAsyncHandler; + typedef Outcome GenerateConfigRuleReportOutcome; + typedef std::future GenerateConfigRuleReportOutcomeCallable; + typedef std::function&)> GenerateConfigRuleReportAsyncHandler; + typedef Outcome GetConfigRuleReportOutcome; + typedef std::future GetConfigRuleReportOutcomeCallable; + typedef std::function&)> GetConfigRuleReportAsyncHandler; + typedef Outcome GetEffectivePolicyOutcome; + typedef std::future GetEffectivePolicyOutcomeCallable; + typedef std::function&)> GetEffectivePolicyAsyncHandler; + typedef Outcome GetPolicyOutcome; + typedef std::future GetPolicyOutcomeCallable; + typedef std::function&)> GetPolicyAsyncHandler; + typedef Outcome GetPolicyEnableStatusOutcome; + typedef std::future GetPolicyEnableStatusOutcomeCallable; + typedef std::function&)> GetPolicyEnableStatusAsyncHandler; + typedef Outcome ListConfigRulesForTargetOutcome; + typedef std::future ListConfigRulesForTargetOutcomeCallable; + typedef std::function&)> ListConfigRulesForTargetAsyncHandler; + typedef Outcome ListPoliciesOutcome; + typedef std::future ListPoliciesOutcomeCallable; + typedef std::function&)> ListPoliciesAsyncHandler; + typedef Outcome ListPoliciesForTargetOutcome; + typedef std::future ListPoliciesForTargetOutcomeCallable; + typedef std::function&)> ListPoliciesForTargetAsyncHandler; typedef Outcome ListResourcesByTagOutcome; typedef std::future ListResourcesByTagOutcomeCallable; typedef std::function&)> ListResourcesByTagAsyncHandler; + typedef Outcome ListSupportResourceTypesOutcome; + typedef std::future ListSupportResourceTypesOutcomeCallable; + typedef std::function&)> ListSupportResourceTypesAsyncHandler; typedef Outcome ListTagKeysOutcome; typedef std::future ListTagKeysOutcomeCallable; typedef std::function&)> ListTagKeysAsyncHandler; @@ -70,6 +161,15 @@ namespace AlibabaCloud typedef Outcome ListTagValuesOutcome; typedef std::future ListTagValuesOutcomeCallable; typedef std::function&)> ListTagValuesAsyncHandler; + typedef Outcome ListTargetsForPolicyOutcome; + typedef std::future ListTargetsForPolicyOutcomeCallable; + typedef std::function&)> ListTargetsForPolicyAsyncHandler; + typedef Outcome ModifyPolicyOutcome; + typedef std::future ModifyPolicyOutcomeCallable; + typedef std::function&)> ModifyPolicyAsyncHandler; + typedef Outcome OpenCreatedByOutcome; + typedef std::future OpenCreatedByOutcomeCallable; + typedef std::function&)> OpenCreatedByAsyncHandler; typedef Outcome TagResourcesOutcome; typedef std::future TagResourcesOutcomeCallable; typedef std::function&)> TagResourcesAsyncHandler; @@ -81,18 +181,69 @@ namespace AlibabaCloud TagClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); TagClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~TagClient(); + AttachPolicyOutcome attachPolicy(const Model::AttachPolicyRequest &request)const; + void attachPolicyAsync(const Model::AttachPolicyRequest& request, const AttachPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachPolicyOutcomeCallable attachPolicyCallable(const Model::AttachPolicyRequest& request) const; + CheckCreatedByEnabledOutcome checkCreatedByEnabled(const Model::CheckCreatedByEnabledRequest &request)const; + void checkCreatedByEnabledAsync(const Model::CheckCreatedByEnabledRequest& request, const CheckCreatedByEnabledAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckCreatedByEnabledOutcomeCallable checkCreatedByEnabledCallable(const Model::CheckCreatedByEnabledRequest& request) const; + CloseCreatedByOutcome closeCreatedBy(const Model::CloseCreatedByRequest &request)const; + void closeCreatedByAsync(const Model::CloseCreatedByRequest& request, const CloseCreatedByAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CloseCreatedByOutcomeCallable closeCreatedByCallable(const Model::CloseCreatedByRequest& request) const; + CreatePolicyOutcome createPolicy(const Model::CreatePolicyRequest &request)const; + void createPolicyAsync(const Model::CreatePolicyRequest& request, const CreatePolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePolicyOutcomeCallable createPolicyCallable(const Model::CreatePolicyRequest& request) const; CreateTagsOutcome createTags(const Model::CreateTagsRequest &request)const; void createTagsAsync(const Model::CreateTagsRequest& request, const CreateTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTagsOutcomeCallable createTagsCallable(const Model::CreateTagsRequest& request) const; + DeletePolicyOutcome deletePolicy(const Model::DeletePolicyRequest &request)const; + void deletePolicyAsync(const Model::DeletePolicyRequest& request, const DeletePolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePolicyOutcomeCallable deletePolicyCallable(const Model::DeletePolicyRequest& request) const; DeleteTagOutcome deleteTag(const Model::DeleteTagRequest &request)const; void deleteTagAsync(const Model::DeleteTagRequest& request, const DeleteTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTagOutcomeCallable deleteTagCallable(const Model::DeleteTagRequest& request) const; DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DetachPolicyOutcome detachPolicy(const Model::DetachPolicyRequest &request)const; + void detachPolicyAsync(const Model::DetachPolicyRequest& request, const DetachPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetachPolicyOutcomeCallable detachPolicyCallable(const Model::DetachPolicyRequest& request) const; + DisablePolicyTypeOutcome disablePolicyType(const Model::DisablePolicyTypeRequest &request)const; + void disablePolicyTypeAsync(const Model::DisablePolicyTypeRequest& request, const DisablePolicyTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisablePolicyTypeOutcomeCallable disablePolicyTypeCallable(const Model::DisablePolicyTypeRequest& request) const; + EnablePolicyTypeOutcome enablePolicyType(const Model::EnablePolicyTypeRequest &request)const; + void enablePolicyTypeAsync(const Model::EnablePolicyTypeRequest& request, const EnablePolicyTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnablePolicyTypeOutcomeCallable enablePolicyTypeCallable(const Model::EnablePolicyTypeRequest& request) const; + GenerateConfigRuleReportOutcome generateConfigRuleReport(const Model::GenerateConfigRuleReportRequest &request)const; + void generateConfigRuleReportAsync(const Model::GenerateConfigRuleReportRequest& request, const GenerateConfigRuleReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateConfigRuleReportOutcomeCallable generateConfigRuleReportCallable(const Model::GenerateConfigRuleReportRequest& request) const; + GetConfigRuleReportOutcome getConfigRuleReport(const Model::GetConfigRuleReportRequest &request)const; + void getConfigRuleReportAsync(const Model::GetConfigRuleReportRequest& request, const GetConfigRuleReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetConfigRuleReportOutcomeCallable getConfigRuleReportCallable(const Model::GetConfigRuleReportRequest& request) const; + GetEffectivePolicyOutcome getEffectivePolicy(const Model::GetEffectivePolicyRequest &request)const; + void getEffectivePolicyAsync(const Model::GetEffectivePolicyRequest& request, const GetEffectivePolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEffectivePolicyOutcomeCallable getEffectivePolicyCallable(const Model::GetEffectivePolicyRequest& request) const; + GetPolicyOutcome getPolicy(const Model::GetPolicyRequest &request)const; + void getPolicyAsync(const Model::GetPolicyRequest& request, const GetPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPolicyOutcomeCallable getPolicyCallable(const Model::GetPolicyRequest& request) const; + GetPolicyEnableStatusOutcome getPolicyEnableStatus(const Model::GetPolicyEnableStatusRequest &request)const; + void getPolicyEnableStatusAsync(const Model::GetPolicyEnableStatusRequest& request, const GetPolicyEnableStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPolicyEnableStatusOutcomeCallable getPolicyEnableStatusCallable(const Model::GetPolicyEnableStatusRequest& request) const; + ListConfigRulesForTargetOutcome listConfigRulesForTarget(const Model::ListConfigRulesForTargetRequest &request)const; + void listConfigRulesForTargetAsync(const Model::ListConfigRulesForTargetRequest& request, const ListConfigRulesForTargetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListConfigRulesForTargetOutcomeCallable listConfigRulesForTargetCallable(const Model::ListConfigRulesForTargetRequest& request) const; + ListPoliciesOutcome listPolicies(const Model::ListPoliciesRequest &request)const; + void listPoliciesAsync(const Model::ListPoliciesRequest& request, const ListPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPoliciesOutcomeCallable listPoliciesCallable(const Model::ListPoliciesRequest& request) const; + ListPoliciesForTargetOutcome listPoliciesForTarget(const Model::ListPoliciesForTargetRequest &request)const; + void listPoliciesForTargetAsync(const Model::ListPoliciesForTargetRequest& request, const ListPoliciesForTargetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPoliciesForTargetOutcomeCallable listPoliciesForTargetCallable(const Model::ListPoliciesForTargetRequest& request) const; ListResourcesByTagOutcome listResourcesByTag(const Model::ListResourcesByTagRequest &request)const; void listResourcesByTagAsync(const Model::ListResourcesByTagRequest& request, const ListResourcesByTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListResourcesByTagOutcomeCallable listResourcesByTagCallable(const Model::ListResourcesByTagRequest& request) const; + ListSupportResourceTypesOutcome listSupportResourceTypes(const Model::ListSupportResourceTypesRequest &request)const; + void listSupportResourceTypesAsync(const Model::ListSupportResourceTypesRequest& request, const ListSupportResourceTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSupportResourceTypesOutcomeCallable listSupportResourceTypesCallable(const Model::ListSupportResourceTypesRequest& request) const; ListTagKeysOutcome listTagKeys(const Model::ListTagKeysRequest &request)const; void listTagKeysAsync(const Model::ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagKeysOutcomeCallable listTagKeysCallable(const Model::ListTagKeysRequest& request) const; @@ -102,6 +253,15 @@ namespace AlibabaCloud ListTagValuesOutcome listTagValues(const Model::ListTagValuesRequest &request)const; void listTagValuesAsync(const Model::ListTagValuesRequest& request, const ListTagValuesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagValuesOutcomeCallable listTagValuesCallable(const Model::ListTagValuesRequest& request) const; + ListTargetsForPolicyOutcome listTargetsForPolicy(const Model::ListTargetsForPolicyRequest &request)const; + void listTargetsForPolicyAsync(const Model::ListTargetsForPolicyRequest& request, const ListTargetsForPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTargetsForPolicyOutcomeCallable listTargetsForPolicyCallable(const Model::ListTargetsForPolicyRequest& request) const; + ModifyPolicyOutcome modifyPolicy(const Model::ModifyPolicyRequest &request)const; + void modifyPolicyAsync(const Model::ModifyPolicyRequest& request, const ModifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyPolicyOutcomeCallable modifyPolicyCallable(const Model::ModifyPolicyRequest& request) const; + OpenCreatedByOutcome openCreatedBy(const Model::OpenCreatedByRequest &request)const; + void openCreatedByAsync(const Model::OpenCreatedByRequest& request, const OpenCreatedByAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OpenCreatedByOutcomeCallable openCreatedByCallable(const Model::OpenCreatedByRequest& 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; diff --git a/tag/include/alibabacloud/tag/model/AttachPolicyRequest.h b/tag/include/alibabacloud/tag/model/AttachPolicyRequest.h new file mode 100644 index 000000000..18b31902a --- /dev/null +++ b/tag/include/alibabacloud/tag/model/AttachPolicyRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_ATTACHPOLICYREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_ATTACHPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT AttachPolicyRequest : public RpcServiceRequest { +public: + AttachPolicyRequest(); + ~AttachPolicyRequest(); + std::string getTargetId() const; + void setTargetId(const std::string &targetId); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string targetId_; + std::string targetType_; + std::string policyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_ATTACHPOLICYREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/AttachPolicyResult.h b/tag/include/alibabacloud/tag/model/AttachPolicyResult.h new file mode 100644 index 000000000..3de723148 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/AttachPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_TAG_MODEL_ATTACHPOLICYRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_ATTACHPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT AttachPolicyResult : public ServiceResult + { + public: + + + AttachPolicyResult(); + explicit AttachPolicyResult(const std::string &payload); + ~AttachPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_ATTACHPOLICYRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/CheckCreatedByEnabledRequest.h b/tag/include/alibabacloud/tag/model/CheckCreatedByEnabledRequest.h new file mode 100644 index 000000000..a22e94823 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/CheckCreatedByEnabledRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_CHECKCREATEDBYENABLEDREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_CHECKCREATEDBYENABLEDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT CheckCreatedByEnabledRequest : public RpcServiceRequest { +public: + CheckCreatedByEnabledRequest(); + ~CheckCreatedByEnabledRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_CHECKCREATEDBYENABLEDREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/CheckCreatedByEnabledResult.h b/tag/include/alibabacloud/tag/model/CheckCreatedByEnabledResult.h new file mode 100644 index 000000000..9f654bfe6 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/CheckCreatedByEnabledResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_CHECKCREATEDBYENABLEDRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_CHECKCREATEDBYENABLEDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT CheckCreatedByEnabledResult : public ServiceResult + { + public: + + + CheckCreatedByEnabledResult(); + explicit CheckCreatedByEnabledResult(const std::string &payload); + ~CheckCreatedByEnabledResult(); + bool getOpenStatus()const; + + protected: + void parse(const std::string &payload); + private: + bool openStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_CHECKCREATEDBYENABLEDRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/CloseCreatedByRequest.h b/tag/include/alibabacloud/tag/model/CloseCreatedByRequest.h new file mode 100644 index 000000000..a110a48e8 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/CloseCreatedByRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_CLOSECREATEDBYREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_CLOSECREATEDBYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT CloseCreatedByRequest : public RpcServiceRequest { +public: + CloseCreatedByRequest(); + ~CloseCreatedByRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_CLOSECREATEDBYREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/CloseCreatedByResult.h b/tag/include/alibabacloud/tag/model/CloseCreatedByResult.h new file mode 100644 index 000000000..4138feffc --- /dev/null +++ b/tag/include/alibabacloud/tag/model/CloseCreatedByResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_TAG_MODEL_CLOSECREATEDBYRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_CLOSECREATEDBYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT CloseCreatedByResult : public ServiceResult + { + public: + + + CloseCreatedByResult(); + explicit CloseCreatedByResult(const std::string &payload); + ~CloseCreatedByResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_CLOSECREATEDBYRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/CreatePolicyRequest.h b/tag/include/alibabacloud/tag/model/CreatePolicyRequest.h new file mode 100644 index 000000000..d568014c5 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/CreatePolicyRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_CREATEPOLICYREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_CREATEPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT CreatePolicyRequest : public RpcServiceRequest { +public: + CreatePolicyRequest(); + ~CreatePolicyRequest(); + std::string getPolicyDesc() const; + void setPolicyDesc(const std::string &policyDesc); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPolicyContent() const; + void setPolicyContent(const std::string &policyContent); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getUserType() const; + void setUserType(const std::string &userType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + std::string policyDesc_; + std::string regionId_; + std::string policyContent_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string userType_; + long ownerId_; + std::string policyName_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_CREATEPOLICYREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/CreatePolicyResult.h b/tag/include/alibabacloud/tag/model/CreatePolicyResult.h new file mode 100644 index 000000000..5224ae791 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/CreatePolicyResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_TAG_MODEL_CREATEPOLICYRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_CREATEPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT CreatePolicyResult : public ServiceResult + { + public: + + + CreatePolicyResult(); + explicit CreatePolicyResult(const std::string &payload); + ~CreatePolicyResult(); + std::string getPolicyName()const; + std::string getPolicyId()const; + + protected: + void parse(const std::string &payload); + private: + std::string policyName_; + std::string policyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_CREATEPOLICYRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/DeletePolicyRequest.h b/tag/include/alibabacloud/tag/model/DeletePolicyRequest.h new file mode 100644 index 000000000..951d7be93 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/DeletePolicyRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_DELETEPOLICYREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_DELETEPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT DeletePolicyRequest : public RpcServiceRequest { +public: + DeletePolicyRequest(); + ~DeletePolicyRequest(); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string policyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_DELETEPOLICYREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/DeletePolicyResult.h b/tag/include/alibabacloud/tag/model/DeletePolicyResult.h new file mode 100644 index 000000000..36a15f451 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/DeletePolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_TAG_MODEL_DELETEPOLICYRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_DELETEPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT DeletePolicyResult : public ServiceResult + { + public: + + + DeletePolicyResult(); + explicit DeletePolicyResult(const std::string &payload); + ~DeletePolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_DELETEPOLICYRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/DetachPolicyRequest.h b/tag/include/alibabacloud/tag/model/DetachPolicyRequest.h new file mode 100644 index 000000000..fa865ee83 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/DetachPolicyRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_DETACHPOLICYREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_DETACHPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT DetachPolicyRequest : public RpcServiceRequest { +public: + DetachPolicyRequest(); + ~DetachPolicyRequest(); + std::string getTargetId() const; + void setTargetId(const std::string &targetId); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string targetId_; + std::string targetType_; + std::string policyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_DETACHPOLICYREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/DetachPolicyResult.h b/tag/include/alibabacloud/tag/model/DetachPolicyResult.h new file mode 100644 index 000000000..6ffcbaf14 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/DetachPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_TAG_MODEL_DETACHPOLICYRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_DETACHPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT DetachPolicyResult : public ServiceResult + { + public: + + + DetachPolicyResult(); + explicit DetachPolicyResult(const std::string &payload); + ~DetachPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_DETACHPOLICYRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/DisablePolicyTypeRequest.h b/tag/include/alibabacloud/tag/model/DisablePolicyTypeRequest.h new file mode 100644 index 000000000..f4b397f2b --- /dev/null +++ b/tag/include/alibabacloud/tag/model/DisablePolicyTypeRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_DISABLEPOLICYTYPEREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_DISABLEPOLICYTYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT DisablePolicyTypeRequest : public RpcServiceRequest { +public: + DisablePolicyTypeRequest(); + ~DisablePolicyTypeRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getUserType() const; + void setUserType(const std::string &userType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getOpenType() const; + void setOpenType(const std::string &openType); + +private: + std::string resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string userType_; + long ownerId_; + std::string openType_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_DISABLEPOLICYTYPEREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/DisablePolicyTypeResult.h b/tag/include/alibabacloud/tag/model/DisablePolicyTypeResult.h new file mode 100644 index 000000000..07da27c7c --- /dev/null +++ b/tag/include/alibabacloud/tag/model/DisablePolicyTypeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_TAG_MODEL_DISABLEPOLICYTYPERESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_DISABLEPOLICYTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT DisablePolicyTypeResult : public ServiceResult + { + public: + + + DisablePolicyTypeResult(); + explicit DisablePolicyTypeResult(const std::string &payload); + ~DisablePolicyTypeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_DISABLEPOLICYTYPERESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/EnablePolicyTypeRequest.h b/tag/include/alibabacloud/tag/model/EnablePolicyTypeRequest.h new file mode 100644 index 000000000..3946d3842 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/EnablePolicyTypeRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_ENABLEPOLICYTYPEREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_ENABLEPOLICYTYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT EnablePolicyTypeRequest : public RpcServiceRequest { +public: + EnablePolicyTypeRequest(); + ~EnablePolicyTypeRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getUserType() const; + void setUserType(const std::string &userType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getOpenType() const; + void setOpenType(const std::string &openType); + +private: + std::string resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string userType_; + long ownerId_; + std::string openType_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_ENABLEPOLICYTYPEREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/EnablePolicyTypeResult.h b/tag/include/alibabacloud/tag/model/EnablePolicyTypeResult.h new file mode 100644 index 000000000..035d573e1 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/EnablePolicyTypeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_TAG_MODEL_ENABLEPOLICYTYPERESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_ENABLEPOLICYTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT EnablePolicyTypeResult : public ServiceResult + { + public: + + + EnablePolicyTypeResult(); + explicit EnablePolicyTypeResult(const std::string &payload); + ~EnablePolicyTypeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_ENABLEPOLICYTYPERESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/GenerateConfigRuleReportRequest.h b/tag/include/alibabacloud/tag/model/GenerateConfigRuleReportRequest.h new file mode 100644 index 000000000..281346f4a --- /dev/null +++ b/tag/include/alibabacloud/tag/model/GenerateConfigRuleReportRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_GENERATECONFIGRULEREPORTREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_GENERATECONFIGRULEREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT GenerateConfigRuleReportRequest : public RpcServiceRequest { +public: + GenerateConfigRuleReportRequest(); + ~GenerateConfigRuleReportRequest(); + std::string getTargetId() const; + void setTargetId(const std::string &targetId); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getUserType() const; + void setUserType(const std::string &userType); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string targetId_; + std::string targetType_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string userType_; + long ownerId_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_GENERATECONFIGRULEREPORTREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/GenerateConfigRuleReportResult.h b/tag/include/alibabacloud/tag/model/GenerateConfigRuleReportResult.h new file mode 100644 index 000000000..1353dbc6c --- /dev/null +++ b/tag/include/alibabacloud/tag/model/GenerateConfigRuleReportResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_GENERATECONFIGRULEREPORTRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_GENERATECONFIGRULEREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT GenerateConfigRuleReportResult : public ServiceResult + { + public: + + + GenerateConfigRuleReportResult(); + explicit GenerateConfigRuleReportResult(const std::string &payload); + ~GenerateConfigRuleReportResult(); + std::string getReportId()const; + + protected: + void parse(const std::string &payload); + private: + std::string reportId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_GENERATECONFIGRULEREPORTRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/GetConfigRuleReportRequest.h b/tag/include/alibabacloud/tag/model/GetConfigRuleReportRequest.h new file mode 100644 index 000000000..d9fb3d815 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/GetConfigRuleReportRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_GETCONFIGRULEREPORTREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_GETCONFIGRULEREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT GetConfigRuleReportRequest : public RpcServiceRequest { +public: + GetConfigRuleReportRequest(); + ~GetConfigRuleReportRequest(); + std::string getTargetId() const; + void setTargetId(const std::string &targetId); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getUserType() const; + void setUserType(const std::string &userType); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string targetId_; + std::string targetType_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string userType_; + long ownerId_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_GETCONFIGRULEREPORTREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/GetConfigRuleReportResult.h b/tag/include/alibabacloud/tag/model/GetConfigRuleReportResult.h new file mode 100644 index 000000000..f2fb85431 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/GetConfigRuleReportResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_GETCONFIGRULEREPORTRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_GETCONFIGRULEREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT GetConfigRuleReportResult : public ServiceResult + { + public: + struct Data + { + long createdTime; + std::string targetType; + std::string reportId; + std::string targetId; + }; + + + GetConfigRuleReportResult(); + explicit GetConfigRuleReportResult(const std::string &payload); + ~GetConfigRuleReportResult(); + int getHttpStatusCode()const; + Data getData()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + Data data_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_GETCONFIGRULEREPORTRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/GetEffectivePolicyRequest.h b/tag/include/alibabacloud/tag/model/GetEffectivePolicyRequest.h new file mode 100644 index 000000000..3b93d122c --- /dev/null +++ b/tag/include/alibabacloud/tag/model/GetEffectivePolicyRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_GETEFFECTIVEPOLICYREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_GETEFFECTIVEPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT GetEffectivePolicyRequest : public RpcServiceRequest { +public: + GetEffectivePolicyRequest(); + ~GetEffectivePolicyRequest(); + std::string getTargetId() const; + void setTargetId(const std::string &targetId); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string targetId_; + std::string targetType_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_GETEFFECTIVEPOLICYREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/GetEffectivePolicyResult.h b/tag/include/alibabacloud/tag/model/GetEffectivePolicyResult.h new file mode 100644 index 000000000..2b5b8831a --- /dev/null +++ b/tag/include/alibabacloud/tag/model/GetEffectivePolicyResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_GETEFFECTIVEPOLICYRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_GETEFFECTIVEPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT GetEffectivePolicyResult : public ServiceResult + { + public: + + + GetEffectivePolicyResult(); + explicit GetEffectivePolicyResult(const std::string &payload); + ~GetEffectivePolicyResult(); + std::string getEffectivePolicy()const; + + protected: + void parse(const std::string &payload); + private: + std::string effectivePolicy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_GETEFFECTIVEPOLICYRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/GetPolicyEnableStatusRequest.h b/tag/include/alibabacloud/tag/model/GetPolicyEnableStatusRequest.h new file mode 100644 index 000000000..7e5f2c1bb --- /dev/null +++ b/tag/include/alibabacloud/tag/model/GetPolicyEnableStatusRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_GETPOLICYENABLESTATUSREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_GETPOLICYENABLESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT GetPolicyEnableStatusRequest : public RpcServiceRequest { +public: + GetPolicyEnableStatusRequest(); + ~GetPolicyEnableStatusRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getUserType() const; + void setUserType(const std::string &userType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getOpenType() const; + void setOpenType(const std::string &openType); + +private: + std::string resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string userType_; + long ownerId_; + std::string openType_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_GETPOLICYENABLESTATUSREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/GetPolicyEnableStatusResult.h b/tag/include/alibabacloud/tag/model/GetPolicyEnableStatusResult.h new file mode 100644 index 000000000..171dc535b --- /dev/null +++ b/tag/include/alibabacloud/tag/model/GetPolicyEnableStatusResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_GETPOLICYENABLESTATUSRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_GETPOLICYENABLESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT GetPolicyEnableStatusResult : public ServiceResult + { + public: + struct StatusModelsItem + { + std::string status; + std::string userType; + }; + + + GetPolicyEnableStatusResult(); + explicit GetPolicyEnableStatusResult(const std::string &payload); + ~GetPolicyEnableStatusResult(); + std::vector getStatusModels()const; + + protected: + void parse(const std::string &payload); + private: + std::vector statusModels_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_GETPOLICYENABLESTATUSRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/GetPolicyRequest.h b/tag/include/alibabacloud/tag/model/GetPolicyRequest.h new file mode 100644 index 000000000..e565d975c --- /dev/null +++ b/tag/include/alibabacloud/tag/model/GetPolicyRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_GETPOLICYREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_GETPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT GetPolicyRequest : public RpcServiceRequest { +public: + GetPolicyRequest(); + ~GetPolicyRequest(); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string policyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_GETPOLICYREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/GetPolicyResult.h b/tag/include/alibabacloud/tag/model/GetPolicyResult.h new file mode 100644 index 000000000..953689ac2 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/GetPolicyResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_GETPOLICYRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_GETPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT GetPolicyResult : public ServiceResult + { + public: + struct Policy + { + std::string policyDesc; + std::string policyName; + std::string userType; + std::string policyContent; + }; + + + GetPolicyResult(); + explicit GetPolicyResult(const std::string &payload); + ~GetPolicyResult(); + Policy getPolicy()const; + + protected: + void parse(const std::string &payload); + private: + Policy policy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_GETPOLICYRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/ListConfigRulesForTargetRequest.h b/tag/include/alibabacloud/tag/model/ListConfigRulesForTargetRequest.h new file mode 100644 index 000000000..2ed144d2f --- /dev/null +++ b/tag/include/alibabacloud/tag/model/ListConfigRulesForTargetRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_LISTCONFIGRULESFORTARGETREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_LISTCONFIGRULESFORTARGETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT ListConfigRulesForTargetRequest : public RpcServiceRequest { +public: + ListConfigRulesForTargetRequest(); + ~ListConfigRulesForTargetRequest(); + std::string getTargetId() const; + void setTargetId(const std::string &targetId); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPolicyType() const; + void setPolicyType(const std::string &policyType); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getUserType() const; + void setUserType(const std::string &userType); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResult() const; + void setMaxResult(int maxResult); + std::string getTagKey() const; + void setTagKey(const std::string &tagKey); + +private: + std::string targetId_; + std::string targetType_; + std::string regionId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string policyType_; + std::string ownerAccount_; + std::string userType_; + long ownerId_; + int maxResult_; + std::string tagKey_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_LISTCONFIGRULESFORTARGETREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/ListConfigRulesForTargetResult.h b/tag/include/alibabacloud/tag/model/ListConfigRulesForTargetResult.h new file mode 100644 index 000000000..579b5a0ac --- /dev/null +++ b/tag/include/alibabacloud/tag/model/ListConfigRulesForTargetResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_TAG_MODEL_LISTCONFIGRULESFORTARGETRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_LISTCONFIGRULESFORTARGETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT ListConfigRulesForTargetResult : public ServiceResult + { + public: + struct DataItem + { + std::string configRuleId; + std::string policyType; + std::string tagKey; + std::string targetType; + bool remediation; + std::string tagValue; + std::string aggregatorId; + std::string targetId; + }; + + + ListConfigRulesForTargetResult(); + explicit ListConfigRulesForTargetResult(const std::string &payload); + ~ListConfigRulesForTargetResult(); + std::string getNextToken()const; + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_LISTCONFIGRULESFORTARGETRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/ListPoliciesForTargetRequest.h b/tag/include/alibabacloud/tag/model/ListPoliciesForTargetRequest.h new file mode 100644 index 000000000..e64747895 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/ListPoliciesForTargetRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_LISTPOLICIESFORTARGETREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_LISTPOLICIESFORTARGETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT ListPoliciesForTargetRequest : public RpcServiceRequest { +public: + ListPoliciesForTargetRequest(); + ~ListPoliciesForTargetRequest(); + std::string getTargetId() const; + void setTargetId(const std::string &targetId); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResult() const; + void setMaxResult(int maxResult); + +private: + std::string targetId_; + std::string targetType_; + std::string regionId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int maxResult_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_LISTPOLICIESFORTARGETREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/ListPoliciesForTargetResult.h b/tag/include/alibabacloud/tag/model/ListPoliciesForTargetResult.h new file mode 100644 index 000000000..f40f2a254 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/ListPoliciesForTargetResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_LISTPOLICIESFORTARGETRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_LISTPOLICIESFORTARGETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT ListPoliciesForTargetResult : public ServiceResult + { + public: + struct DataItem + { + std::string policyDesc; + std::string policyName; + std::string userType; + std::string policyId; + std::string policyContent; + }; + + + ListPoliciesForTargetResult(); + explicit ListPoliciesForTargetResult(const std::string &payload); + ~ListPoliciesForTargetResult(); + std::string getNextToken()const; + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_LISTPOLICIESFORTARGETRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/ListPoliciesRequest.h b/tag/include/alibabacloud/tag/model/ListPoliciesRequest.h new file mode 100644 index 000000000..fcf1855c0 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/ListPoliciesRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_LISTPOLICIESREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_LISTPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT ListPoliciesRequest : public RpcServiceRequest { +public: + ListPoliciesRequest(); + ~ListPoliciesRequest(); + std::vector getPolicyNames() const; + void setPolicyNames(const std::vector &policyNames); + std::vector getPolicyIds() const; + void setPolicyIds(const std::vector &policyIds); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getUserType() const; + void setUserType(const std::string &userType); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResult() const; + void setMaxResult(int maxResult); + +private: + std::vector policyNames_; + std::vector policyIds_; + std::string regionId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string userType_; + long ownerId_; + int maxResult_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_LISTPOLICIESREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/ListPoliciesResult.h b/tag/include/alibabacloud/tag/model/ListPoliciesResult.h new file mode 100644 index 000000000..1d3590c81 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/ListPoliciesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_LISTPOLICIESRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_LISTPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT ListPoliciesResult : public ServiceResult + { + public: + struct Policy + { + std::string policyDesc; + std::string policyName; + std::string userType; + std::string policyId; + std::string policyContent; + }; + + + ListPoliciesResult(); + explicit ListPoliciesResult(const std::string &payload); + ~ListPoliciesResult(); + std::string getNextToken()const; + std::vector getPolicyList()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector policyList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_LISTPOLICIESRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/ListSupportResourceTypesRequest.h b/tag/include/alibabacloud/tag/model/ListSupportResourceTypesRequest.h new file mode 100644 index 000000000..bbf1544b5 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/ListSupportResourceTypesRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_LISTSUPPORTRESOURCETYPESREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_LISTSUPPORTRESOURCETYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT ListSupportResourceTypesRequest : public RpcServiceRequest { +public: + ListSupportResourceTypesRequest(); + ~ListSupportResourceTypesRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getSupportCode() const; + void setSupportCode(const std::string &supportCode); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getResourceTye() const; + void setResourceTye(const std::string &resourceTye); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResult() const; + void setMaxResult(int maxResult); + bool getShowItems() const; + void setShowItems(bool showItems); + +private: + std::string productCode_; + std::string supportCode_; + std::string regionId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string resourceTye_; + long ownerId_; + int maxResult_; + bool showItems_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_LISTSUPPORTRESOURCETYPESREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/ListSupportResourceTypesResult.h b/tag/include/alibabacloud/tag/model/ListSupportResourceTypesResult.h new file mode 100644 index 000000000..140f19540 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/ListSupportResourceTypesResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_LISTSUPPORTRESOURCETYPESRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_LISTSUPPORTRESOURCETYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT ListSupportResourceTypesResult : public ServiceResult + { + public: + struct SupportResourceType + { + struct SupportItemsItem + { + bool support; + std::string supportCode; + std::vector supportDetails; + }; + std::string arnTemplate; + std::string productCode; + std::vector supportItems; + std::string resourceType; + }; + + + ListSupportResourceTypesResult(); + explicit ListSupportResourceTypesResult(const std::string &payload); + ~ListSupportResourceTypesResult(); + std::string getNextToken()const; + std::vector getSupportResourceTypes()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector supportResourceTypes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_LISTSUPPORTRESOURCETYPESRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/ListTargetsForPolicyRequest.h b/tag/include/alibabacloud/tag/model/ListTargetsForPolicyRequest.h new file mode 100644 index 000000000..663b4a3ff --- /dev/null +++ b/tag/include/alibabacloud/tag/model/ListTargetsForPolicyRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_LISTTARGETSFORPOLICYREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_LISTTARGETSFORPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT ListTargetsForPolicyRequest : public RpcServiceRequest { +public: + ListTargetsForPolicyRequest(); + ~ListTargetsForPolicyRequest(); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResult() const; + void setMaxResult(int maxResult); + +private: + std::string policyId_; + std::string regionId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int maxResult_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_LISTTARGETSFORPOLICYREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/ListTargetsForPolicyResult.h b/tag/include/alibabacloud/tag/model/ListTargetsForPolicyResult.h new file mode 100644 index 000000000..247f20031 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/ListTargetsForPolicyResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_LISTTARGETSFORPOLICYRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_LISTTARGETSFORPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT ListTargetsForPolicyResult : public ServiceResult + { + public: + struct Target + { + int targetType; + std::string targetId; + }; + + + ListTargetsForPolicyResult(); + explicit ListTargetsForPolicyResult(const std::string &payload); + ~ListTargetsForPolicyResult(); + std::string getNextToken()const; + std::vector getTargets()const; + std::string getRdId()const; + bool getIsRd()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector targets_; + std::string rdId_; + bool isRd_; + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_LISTTARGETSFORPOLICYRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/ModifyPolicyRequest.h b/tag/include/alibabacloud/tag/model/ModifyPolicyRequest.h new file mode 100644 index 000000000..28f450b80 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/ModifyPolicyRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_MODIFYPOLICYREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_MODIFYPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT ModifyPolicyRequest : public RpcServiceRequest { +public: + ModifyPolicyRequest(); + ~ModifyPolicyRequest(); + std::string getPolicyDesc() const; + void setPolicyDesc(const std::string &policyDesc); + std::string getPolicyId() const; + void setPolicyId(const std::string &policyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPolicyContent() const; + void setPolicyContent(const std::string &policyContent); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPolicyName() const; + void setPolicyName(const std::string &policyName); + +private: + std::string policyDesc_; + std::string policyId_; + std::string regionId_; + std::string policyContent_; + bool dryRun_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string policyName_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_MODIFYPOLICYREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/ModifyPolicyResult.h b/tag/include/alibabacloud/tag/model/ModifyPolicyResult.h new file mode 100644 index 000000000..b8ecd5cf6 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/ModifyPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_TAG_MODEL_MODIFYPOLICYRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_MODIFYPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT ModifyPolicyResult : public ServiceResult + { + public: + + + ModifyPolicyResult(); + explicit ModifyPolicyResult(const std::string &payload); + ~ModifyPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_MODIFYPOLICYRESULT_H_ \ No newline at end of file diff --git a/tag/include/alibabacloud/tag/model/OpenCreatedByRequest.h b/tag/include/alibabacloud/tag/model/OpenCreatedByRequest.h new file mode 100644 index 000000000..5d5967a87 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/OpenCreatedByRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_TAG_MODEL_OPENCREATEDBYREQUEST_H_ +#define ALIBABACLOUD_TAG_MODEL_OPENCREATEDBYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Tag { +namespace Model { +class ALIBABACLOUD_TAG_EXPORT OpenCreatedByRequest : public RpcServiceRequest { +public: + OpenCreatedByRequest(); + ~OpenCreatedByRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Tag +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_TAG_MODEL_OPENCREATEDBYREQUEST_H_ diff --git a/tag/include/alibabacloud/tag/model/OpenCreatedByResult.h b/tag/include/alibabacloud/tag/model/OpenCreatedByResult.h new file mode 100644 index 000000000..7f5e1a8e3 --- /dev/null +++ b/tag/include/alibabacloud/tag/model/OpenCreatedByResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_TAG_MODEL_OPENCREATEDBYRESULT_H_ +#define ALIBABACLOUD_TAG_MODEL_OPENCREATEDBYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Tag + { + namespace Model + { + class ALIBABACLOUD_TAG_EXPORT OpenCreatedByResult : public ServiceResult + { + public: + + + OpenCreatedByResult(); + explicit OpenCreatedByResult(const std::string &payload); + ~OpenCreatedByResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_TAG_MODEL_OPENCREATEDBYRESULT_H_ \ No newline at end of file diff --git a/tag/src/TagClient.cc b/tag/src/TagClient.cc index 897cbe976..cbf0331a1 100644 --- a/tag/src/TagClient.cc +++ b/tag/src/TagClient.cc @@ -51,6 +51,150 @@ TagClient::TagClient(const std::string & accessKeyId, const std::string & access TagClient::~TagClient() {} +TagClient::AttachPolicyOutcome TagClient::attachPolicy(const AttachPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachPolicyOutcome(AttachPolicyResult(outcome.result())); + else + return AttachPolicyOutcome(outcome.error()); +} + +void TagClient::attachPolicyAsync(const AttachPolicyRequest& request, const AttachPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::AttachPolicyOutcomeCallable TagClient::attachPolicyCallable(const AttachPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::CheckCreatedByEnabledOutcome TagClient::checkCreatedByEnabled(const CheckCreatedByEnabledRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckCreatedByEnabledOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckCreatedByEnabledOutcome(CheckCreatedByEnabledResult(outcome.result())); + else + return CheckCreatedByEnabledOutcome(outcome.error()); +} + +void TagClient::checkCreatedByEnabledAsync(const CheckCreatedByEnabledRequest& request, const CheckCreatedByEnabledAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkCreatedByEnabled(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::CheckCreatedByEnabledOutcomeCallable TagClient::checkCreatedByEnabledCallable(const CheckCreatedByEnabledRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkCreatedByEnabled(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::CloseCreatedByOutcome TagClient::closeCreatedBy(const CloseCreatedByRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CloseCreatedByOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CloseCreatedByOutcome(CloseCreatedByResult(outcome.result())); + else + return CloseCreatedByOutcome(outcome.error()); +} + +void TagClient::closeCreatedByAsync(const CloseCreatedByRequest& request, const CloseCreatedByAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, closeCreatedBy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::CloseCreatedByOutcomeCallable TagClient::closeCreatedByCallable(const CloseCreatedByRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->closeCreatedBy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::CreatePolicyOutcome TagClient::createPolicy(const CreatePolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePolicyOutcome(CreatePolicyResult(outcome.result())); + else + return CreatePolicyOutcome(outcome.error()); +} + +void TagClient::createPolicyAsync(const CreatePolicyRequest& request, const CreatePolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::CreatePolicyOutcomeCallable TagClient::createPolicyCallable(const CreatePolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + TagClient::CreateTagsOutcome TagClient::createTags(const CreateTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -87,6 +231,42 @@ TagClient::CreateTagsOutcomeCallable TagClient::createTagsCallable(const CreateT return task->get_future(); } +TagClient::DeletePolicyOutcome TagClient::deletePolicy(const DeletePolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePolicyOutcome(DeletePolicyResult(outcome.result())); + else + return DeletePolicyOutcome(outcome.error()); +} + +void TagClient::deletePolicyAsync(const DeletePolicyRequest& request, const DeletePolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::DeletePolicyOutcomeCallable TagClient::deletePolicyCallable(const DeletePolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + TagClient::DeleteTagOutcome TagClient::deleteTag(const DeleteTagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +339,402 @@ TagClient::DescribeRegionsOutcomeCallable TagClient::describeRegionsCallable(con return task->get_future(); } +TagClient::DetachPolicyOutcome TagClient::detachPolicy(const DetachPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetachPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetachPolicyOutcome(DetachPolicyResult(outcome.result())); + else + return DetachPolicyOutcome(outcome.error()); +} + +void TagClient::detachPolicyAsync(const DetachPolicyRequest& request, const DetachPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detachPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::DetachPolicyOutcomeCallable TagClient::detachPolicyCallable(const DetachPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detachPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::DisablePolicyTypeOutcome TagClient::disablePolicyType(const DisablePolicyTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisablePolicyTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisablePolicyTypeOutcome(DisablePolicyTypeResult(outcome.result())); + else + return DisablePolicyTypeOutcome(outcome.error()); +} + +void TagClient::disablePolicyTypeAsync(const DisablePolicyTypeRequest& request, const DisablePolicyTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disablePolicyType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::DisablePolicyTypeOutcomeCallable TagClient::disablePolicyTypeCallable(const DisablePolicyTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disablePolicyType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::EnablePolicyTypeOutcome TagClient::enablePolicyType(const EnablePolicyTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnablePolicyTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnablePolicyTypeOutcome(EnablePolicyTypeResult(outcome.result())); + else + return EnablePolicyTypeOutcome(outcome.error()); +} + +void TagClient::enablePolicyTypeAsync(const EnablePolicyTypeRequest& request, const EnablePolicyTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enablePolicyType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::EnablePolicyTypeOutcomeCallable TagClient::enablePolicyTypeCallable(const EnablePolicyTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enablePolicyType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::GenerateConfigRuleReportOutcome TagClient::generateConfigRuleReport(const GenerateConfigRuleReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateConfigRuleReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateConfigRuleReportOutcome(GenerateConfigRuleReportResult(outcome.result())); + else + return GenerateConfigRuleReportOutcome(outcome.error()); +} + +void TagClient::generateConfigRuleReportAsync(const GenerateConfigRuleReportRequest& request, const GenerateConfigRuleReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateConfigRuleReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::GenerateConfigRuleReportOutcomeCallable TagClient::generateConfigRuleReportCallable(const GenerateConfigRuleReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateConfigRuleReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::GetConfigRuleReportOutcome TagClient::getConfigRuleReport(const GetConfigRuleReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetConfigRuleReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetConfigRuleReportOutcome(GetConfigRuleReportResult(outcome.result())); + else + return GetConfigRuleReportOutcome(outcome.error()); +} + +void TagClient::getConfigRuleReportAsync(const GetConfigRuleReportRequest& request, const GetConfigRuleReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getConfigRuleReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::GetConfigRuleReportOutcomeCallable TagClient::getConfigRuleReportCallable(const GetConfigRuleReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getConfigRuleReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::GetEffectivePolicyOutcome TagClient::getEffectivePolicy(const GetEffectivePolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEffectivePolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEffectivePolicyOutcome(GetEffectivePolicyResult(outcome.result())); + else + return GetEffectivePolicyOutcome(outcome.error()); +} + +void TagClient::getEffectivePolicyAsync(const GetEffectivePolicyRequest& request, const GetEffectivePolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEffectivePolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::GetEffectivePolicyOutcomeCallable TagClient::getEffectivePolicyCallable(const GetEffectivePolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEffectivePolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::GetPolicyOutcome TagClient::getPolicy(const GetPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPolicyOutcome(GetPolicyResult(outcome.result())); + else + return GetPolicyOutcome(outcome.error()); +} + +void TagClient::getPolicyAsync(const GetPolicyRequest& request, const GetPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::GetPolicyOutcomeCallable TagClient::getPolicyCallable(const GetPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::GetPolicyEnableStatusOutcome TagClient::getPolicyEnableStatus(const GetPolicyEnableStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPolicyEnableStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPolicyEnableStatusOutcome(GetPolicyEnableStatusResult(outcome.result())); + else + return GetPolicyEnableStatusOutcome(outcome.error()); +} + +void TagClient::getPolicyEnableStatusAsync(const GetPolicyEnableStatusRequest& request, const GetPolicyEnableStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPolicyEnableStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::GetPolicyEnableStatusOutcomeCallable TagClient::getPolicyEnableStatusCallable(const GetPolicyEnableStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPolicyEnableStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::ListConfigRulesForTargetOutcome TagClient::listConfigRulesForTarget(const ListConfigRulesForTargetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListConfigRulesForTargetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListConfigRulesForTargetOutcome(ListConfigRulesForTargetResult(outcome.result())); + else + return ListConfigRulesForTargetOutcome(outcome.error()); +} + +void TagClient::listConfigRulesForTargetAsync(const ListConfigRulesForTargetRequest& request, const ListConfigRulesForTargetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listConfigRulesForTarget(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::ListConfigRulesForTargetOutcomeCallable TagClient::listConfigRulesForTargetCallable(const ListConfigRulesForTargetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listConfigRulesForTarget(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::ListPoliciesOutcome TagClient::listPolicies(const ListPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPoliciesOutcome(ListPoliciesResult(outcome.result())); + else + return ListPoliciesOutcome(outcome.error()); +} + +void TagClient::listPoliciesAsync(const ListPoliciesRequest& request, const ListPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::ListPoliciesOutcomeCallable TagClient::listPoliciesCallable(const ListPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::ListPoliciesForTargetOutcome TagClient::listPoliciesForTarget(const ListPoliciesForTargetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPoliciesForTargetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPoliciesForTargetOutcome(ListPoliciesForTargetResult(outcome.result())); + else + return ListPoliciesForTargetOutcome(outcome.error()); +} + +void TagClient::listPoliciesForTargetAsync(const ListPoliciesForTargetRequest& request, const ListPoliciesForTargetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPoliciesForTarget(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::ListPoliciesForTargetOutcomeCallable TagClient::listPoliciesForTargetCallable(const ListPoliciesForTargetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPoliciesForTarget(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + TagClient::ListResourcesByTagOutcome TagClient::listResourcesByTag(const ListResourcesByTagRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,6 +771,42 @@ TagClient::ListResourcesByTagOutcomeCallable TagClient::listResourcesByTagCallab return task->get_future(); } +TagClient::ListSupportResourceTypesOutcome TagClient::listSupportResourceTypes(const ListSupportResourceTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSupportResourceTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSupportResourceTypesOutcome(ListSupportResourceTypesResult(outcome.result())); + else + return ListSupportResourceTypesOutcome(outcome.error()); +} + +void TagClient::listSupportResourceTypesAsync(const ListSupportResourceTypesRequest& request, const ListSupportResourceTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSupportResourceTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::ListSupportResourceTypesOutcomeCallable TagClient::listSupportResourceTypesCallable(const ListSupportResourceTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSupportResourceTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + TagClient::ListTagKeysOutcome TagClient::listTagKeys(const ListTagKeysRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +915,114 @@ TagClient::ListTagValuesOutcomeCallable TagClient::listTagValuesCallable(const L return task->get_future(); } +TagClient::ListTargetsForPolicyOutcome TagClient::listTargetsForPolicy(const ListTargetsForPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTargetsForPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTargetsForPolicyOutcome(ListTargetsForPolicyResult(outcome.result())); + else + return ListTargetsForPolicyOutcome(outcome.error()); +} + +void TagClient::listTargetsForPolicyAsync(const ListTargetsForPolicyRequest& request, const ListTargetsForPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTargetsForPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::ListTargetsForPolicyOutcomeCallable TagClient::listTargetsForPolicyCallable(const ListTargetsForPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTargetsForPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::ModifyPolicyOutcome TagClient::modifyPolicy(const ModifyPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyPolicyOutcome(ModifyPolicyResult(outcome.result())); + else + return ModifyPolicyOutcome(outcome.error()); +} + +void TagClient::modifyPolicyAsync(const ModifyPolicyRequest& request, const ModifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::ModifyPolicyOutcomeCallable TagClient::modifyPolicyCallable(const ModifyPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +TagClient::OpenCreatedByOutcome TagClient::openCreatedBy(const OpenCreatedByRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OpenCreatedByOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OpenCreatedByOutcome(OpenCreatedByResult(outcome.result())); + else + return OpenCreatedByOutcome(outcome.error()); +} + +void TagClient::openCreatedByAsync(const OpenCreatedByRequest& request, const OpenCreatedByAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, openCreatedBy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +TagClient::OpenCreatedByOutcomeCallable TagClient::openCreatedByCallable(const OpenCreatedByRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->openCreatedBy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + TagClient::TagResourcesOutcome TagClient::tagResources(const TagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/tag/src/model/AttachPolicyRequest.cc b/tag/src/model/AttachPolicyRequest.cc new file mode 100644 index 000000000..c96e97e7e --- /dev/null +++ b/tag/src/model/AttachPolicyRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Tag::Model::AttachPolicyRequest; + +AttachPolicyRequest::AttachPolicyRequest() + : RpcServiceRequest("tag", "2018-08-28", "AttachPolicy") { + setMethod(HttpRequest::Method::Post); +} + +AttachPolicyRequest::~AttachPolicyRequest() {} + +std::string AttachPolicyRequest::getTargetId() const { + return targetId_; +} + +void AttachPolicyRequest::setTargetId(const std::string &targetId) { + targetId_ = targetId; + setParameter(std::string("TargetId"), targetId); +} + +std::string AttachPolicyRequest::getTargetType() const { + return targetType_; +} + +void AttachPolicyRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::string AttachPolicyRequest::getPolicyId() const { + return policyId_; +} + +void AttachPolicyRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setParameter(std::string("PolicyId"), policyId); +} + +std::string AttachPolicyRequest::getRegionId() const { + return regionId_; +} + +void AttachPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string AttachPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AttachPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AttachPolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AttachPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AttachPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void AttachPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/tag/src/model/AttachPolicyResult.cc b/tag/src/model/AttachPolicyResult.cc new file mode 100644 index 000000000..6d3bd7f5c --- /dev/null +++ b/tag/src/model/AttachPolicyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +AttachPolicyResult::AttachPolicyResult() : + ServiceResult() +{} + +AttachPolicyResult::AttachPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachPolicyResult::~AttachPolicyResult() +{} + +void AttachPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/tag/src/model/CheckCreatedByEnabledRequest.cc b/tag/src/model/CheckCreatedByEnabledRequest.cc new file mode 100644 index 000000000..0f712e7c0 --- /dev/null +++ b/tag/src/model/CheckCreatedByEnabledRequest.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::Tag::Model::CheckCreatedByEnabledRequest; + +CheckCreatedByEnabledRequest::CheckCreatedByEnabledRequest() + : RpcServiceRequest("tag", "2018-08-28", "CheckCreatedByEnabled") { + setMethod(HttpRequest::Method::Post); +} + +CheckCreatedByEnabledRequest::~CheckCreatedByEnabledRequest() {} + +std::string CheckCreatedByEnabledRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CheckCreatedByEnabledRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); +} + +std::string CheckCreatedByEnabledRequest::getRegionId() const { + return regionId_; +} + +void CheckCreatedByEnabledRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CheckCreatedByEnabledRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CheckCreatedByEnabledRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CheckCreatedByEnabledRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CheckCreatedByEnabledRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CheckCreatedByEnabledRequest::getOwnerId() const { + return ownerId_; +} + +void CheckCreatedByEnabledRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/tag/src/model/CheckCreatedByEnabledResult.cc b/tag/src/model/CheckCreatedByEnabledResult.cc new file mode 100644 index 000000000..044d27739 --- /dev/null +++ b/tag/src/model/CheckCreatedByEnabledResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +CheckCreatedByEnabledResult::CheckCreatedByEnabledResult() : + ServiceResult() +{} + +CheckCreatedByEnabledResult::CheckCreatedByEnabledResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckCreatedByEnabledResult::~CheckCreatedByEnabledResult() +{} + +void CheckCreatedByEnabledResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OpenStatus"].isNull()) + openStatus_ = value["OpenStatus"].asString() == "true"; + +} + +bool CheckCreatedByEnabledResult::getOpenStatus()const +{ + return openStatus_; +} + diff --git a/tag/src/model/CloseCreatedByRequest.cc b/tag/src/model/CloseCreatedByRequest.cc new file mode 100644 index 000000000..6bcd0bf35 --- /dev/null +++ b/tag/src/model/CloseCreatedByRequest.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::Tag::Model::CloseCreatedByRequest; + +CloseCreatedByRequest::CloseCreatedByRequest() + : RpcServiceRequest("tag", "2018-08-28", "CloseCreatedBy") { + setMethod(HttpRequest::Method::Post); +} + +CloseCreatedByRequest::~CloseCreatedByRequest() {} + +std::string CloseCreatedByRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CloseCreatedByRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); +} + +std::string CloseCreatedByRequest::getRegionId() const { + return regionId_; +} + +void CloseCreatedByRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CloseCreatedByRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CloseCreatedByRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CloseCreatedByRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CloseCreatedByRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CloseCreatedByRequest::getOwnerId() const { + return ownerId_; +} + +void CloseCreatedByRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/tag/src/model/CloseCreatedByResult.cc b/tag/src/model/CloseCreatedByResult.cc new file mode 100644 index 000000000..3c6b33107 --- /dev/null +++ b/tag/src/model/CloseCreatedByResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +CloseCreatedByResult::CloseCreatedByResult() : + ServiceResult() +{} + +CloseCreatedByResult::CloseCreatedByResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CloseCreatedByResult::~CloseCreatedByResult() +{} + +void CloseCreatedByResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/tag/src/model/CreatePolicyRequest.cc b/tag/src/model/CreatePolicyRequest.cc new file mode 100644 index 000000000..298888779 --- /dev/null +++ b/tag/src/model/CreatePolicyRequest.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::Tag::Model::CreatePolicyRequest; + +CreatePolicyRequest::CreatePolicyRequest() + : RpcServiceRequest("tag", "2018-08-28", "CreatePolicy") { + setMethod(HttpRequest::Method::Post); +} + +CreatePolicyRequest::~CreatePolicyRequest() {} + +std::string CreatePolicyRequest::getPolicyDesc() const { + return policyDesc_; +} + +void CreatePolicyRequest::setPolicyDesc(const std::string &policyDesc) { + policyDesc_ = policyDesc; + setParameter(std::string("PolicyDesc"), policyDesc); +} + +std::string CreatePolicyRequest::getRegionId() const { + return regionId_; +} + +void CreatePolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreatePolicyRequest::getPolicyContent() const { + return policyContent_; +} + +void CreatePolicyRequest::setPolicyContent(const std::string &policyContent) { + policyContent_ = policyContent; + setParameter(std::string("PolicyContent"), policyContent); +} + +bool CreatePolicyRequest::getDryRun() const { + return dryRun_; +} + +void CreatePolicyRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreatePolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreatePolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreatePolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreatePolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string CreatePolicyRequest::getUserType() const { + return userType_; +} + +void CreatePolicyRequest::setUserType(const std::string &userType) { + userType_ = userType; + setParameter(std::string("UserType"), userType); +} + +long CreatePolicyRequest::getOwnerId() const { + return ownerId_; +} + +void CreatePolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreatePolicyRequest::getPolicyName() const { + return policyName_; +} + +void CreatePolicyRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); +} + diff --git a/tag/src/model/CreatePolicyResult.cc b/tag/src/model/CreatePolicyResult.cc new file mode 100644 index 000000000..397ec1ed3 --- /dev/null +++ b/tag/src/model/CreatePolicyResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +CreatePolicyResult::CreatePolicyResult() : + ServiceResult() +{} + +CreatePolicyResult::CreatePolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreatePolicyResult::~CreatePolicyResult() +{} + +void CreatePolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["PolicyId"].isNull()) + policyId_ = value["PolicyId"].asString(); + if(!value["PolicyName"].isNull()) + policyName_ = value["PolicyName"].asString(); + +} + +std::string CreatePolicyResult::getPolicyName()const +{ + return policyName_; +} + +std::string CreatePolicyResult::getPolicyId()const +{ + return policyId_; +} + diff --git a/tag/src/model/DeletePolicyRequest.cc b/tag/src/model/DeletePolicyRequest.cc new file mode 100644 index 000000000..d17448a86 --- /dev/null +++ b/tag/src/model/DeletePolicyRequest.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::Tag::Model::DeletePolicyRequest; + +DeletePolicyRequest::DeletePolicyRequest() + : RpcServiceRequest("tag", "2018-08-28", "DeletePolicy") { + setMethod(HttpRequest::Method::Post); +} + +DeletePolicyRequest::~DeletePolicyRequest() {} + +std::string DeletePolicyRequest::getPolicyId() const { + return policyId_; +} + +void DeletePolicyRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setParameter(std::string("PolicyId"), policyId); +} + +std::string DeletePolicyRequest::getRegionId() const { + return regionId_; +} + +void DeletePolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeletePolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeletePolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeletePolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeletePolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeletePolicyRequest::getOwnerId() const { + return ownerId_; +} + +void DeletePolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/tag/src/model/DeletePolicyResult.cc b/tag/src/model/DeletePolicyResult.cc new file mode 100644 index 000000000..2e93a414f --- /dev/null +++ b/tag/src/model/DeletePolicyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +DeletePolicyResult::DeletePolicyResult() : + ServiceResult() +{} + +DeletePolicyResult::DeletePolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeletePolicyResult::~DeletePolicyResult() +{} + +void DeletePolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/tag/src/model/DetachPolicyRequest.cc b/tag/src/model/DetachPolicyRequest.cc new file mode 100644 index 000000000..a5d1d32c1 --- /dev/null +++ b/tag/src/model/DetachPolicyRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Tag::Model::DetachPolicyRequest; + +DetachPolicyRequest::DetachPolicyRequest() + : RpcServiceRequest("tag", "2018-08-28", "DetachPolicy") { + setMethod(HttpRequest::Method::Post); +} + +DetachPolicyRequest::~DetachPolicyRequest() {} + +std::string DetachPolicyRequest::getTargetId() const { + return targetId_; +} + +void DetachPolicyRequest::setTargetId(const std::string &targetId) { + targetId_ = targetId; + setParameter(std::string("TargetId"), targetId); +} + +std::string DetachPolicyRequest::getTargetType() const { + return targetType_; +} + +void DetachPolicyRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::string DetachPolicyRequest::getPolicyId() const { + return policyId_; +} + +void DetachPolicyRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setParameter(std::string("PolicyId"), policyId); +} + +std::string DetachPolicyRequest::getRegionId() const { + return regionId_; +} + +void DetachPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DetachPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DetachPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DetachPolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DetachPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DetachPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void DetachPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/tag/src/model/DetachPolicyResult.cc b/tag/src/model/DetachPolicyResult.cc new file mode 100644 index 000000000..227330cea --- /dev/null +++ b/tag/src/model/DetachPolicyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +DetachPolicyResult::DetachPolicyResult() : + ServiceResult() +{} + +DetachPolicyResult::DetachPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachPolicyResult::~DetachPolicyResult() +{} + +void DetachPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/tag/src/model/DisablePolicyTypeRequest.cc b/tag/src/model/DisablePolicyTypeRequest.cc new file mode 100644 index 000000000..20aff4352 --- /dev/null +++ b/tag/src/model/DisablePolicyTypeRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Tag::Model::DisablePolicyTypeRequest; + +DisablePolicyTypeRequest::DisablePolicyTypeRequest() + : RpcServiceRequest("tag", "2018-08-28", "DisablePolicyType") { + setMethod(HttpRequest::Method::Post); +} + +DisablePolicyTypeRequest::~DisablePolicyTypeRequest() {} + +std::string DisablePolicyTypeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DisablePolicyTypeRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); +} + +std::string DisablePolicyTypeRequest::getRegionId() const { + return regionId_; +} + +void DisablePolicyTypeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DisablePolicyTypeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DisablePolicyTypeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DisablePolicyTypeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DisablePolicyTypeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DisablePolicyTypeRequest::getUserType() const { + return userType_; +} + +void DisablePolicyTypeRequest::setUserType(const std::string &userType) { + userType_ = userType; + setParameter(std::string("UserType"), userType); +} + +long DisablePolicyTypeRequest::getOwnerId() const { + return ownerId_; +} + +void DisablePolicyTypeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DisablePolicyTypeRequest::getOpenType() const { + return openType_; +} + +void DisablePolicyTypeRequest::setOpenType(const std::string &openType) { + openType_ = openType; + setParameter(std::string("OpenType"), openType); +} + diff --git a/tag/src/model/DisablePolicyTypeResult.cc b/tag/src/model/DisablePolicyTypeResult.cc new file mode 100644 index 000000000..a736d8240 --- /dev/null +++ b/tag/src/model/DisablePolicyTypeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +DisablePolicyTypeResult::DisablePolicyTypeResult() : + ServiceResult() +{} + +DisablePolicyTypeResult::DisablePolicyTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisablePolicyTypeResult::~DisablePolicyTypeResult() +{} + +void DisablePolicyTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/tag/src/model/EnablePolicyTypeRequest.cc b/tag/src/model/EnablePolicyTypeRequest.cc new file mode 100644 index 000000000..695723f1a --- /dev/null +++ b/tag/src/model/EnablePolicyTypeRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Tag::Model::EnablePolicyTypeRequest; + +EnablePolicyTypeRequest::EnablePolicyTypeRequest() + : RpcServiceRequest("tag", "2018-08-28", "EnablePolicyType") { + setMethod(HttpRequest::Method::Post); +} + +EnablePolicyTypeRequest::~EnablePolicyTypeRequest() {} + +std::string EnablePolicyTypeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void EnablePolicyTypeRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); +} + +std::string EnablePolicyTypeRequest::getRegionId() const { + return regionId_; +} + +void EnablePolicyTypeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string EnablePolicyTypeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void EnablePolicyTypeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string EnablePolicyTypeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void EnablePolicyTypeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string EnablePolicyTypeRequest::getUserType() const { + return userType_; +} + +void EnablePolicyTypeRequest::setUserType(const std::string &userType) { + userType_ = userType; + setParameter(std::string("UserType"), userType); +} + +long EnablePolicyTypeRequest::getOwnerId() const { + return ownerId_; +} + +void EnablePolicyTypeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string EnablePolicyTypeRequest::getOpenType() const { + return openType_; +} + +void EnablePolicyTypeRequest::setOpenType(const std::string &openType) { + openType_ = openType; + setParameter(std::string("OpenType"), openType); +} + diff --git a/tag/src/model/EnablePolicyTypeResult.cc b/tag/src/model/EnablePolicyTypeResult.cc new file mode 100644 index 000000000..72267fc6d --- /dev/null +++ b/tag/src/model/EnablePolicyTypeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +EnablePolicyTypeResult::EnablePolicyTypeResult() : + ServiceResult() +{} + +EnablePolicyTypeResult::EnablePolicyTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnablePolicyTypeResult::~EnablePolicyTypeResult() +{} + +void EnablePolicyTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/tag/src/model/GenerateConfigRuleReportRequest.cc b/tag/src/model/GenerateConfigRuleReportRequest.cc new file mode 100644 index 000000000..fc5144345 --- /dev/null +++ b/tag/src/model/GenerateConfigRuleReportRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Tag::Model::GenerateConfigRuleReportRequest; + +GenerateConfigRuleReportRequest::GenerateConfigRuleReportRequest() + : RpcServiceRequest("tag", "2018-08-28", "GenerateConfigRuleReport") { + setMethod(HttpRequest::Method::Post); +} + +GenerateConfigRuleReportRequest::~GenerateConfigRuleReportRequest() {} + +std::string GenerateConfigRuleReportRequest::getTargetId() const { + return targetId_; +} + +void GenerateConfigRuleReportRequest::setTargetId(const std::string &targetId) { + targetId_ = targetId; + setParameter(std::string("TargetId"), targetId); +} + +std::string GenerateConfigRuleReportRequest::getTargetType() const { + return targetType_; +} + +void GenerateConfigRuleReportRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::string GenerateConfigRuleReportRequest::getRegionId() const { + return regionId_; +} + +void GenerateConfigRuleReportRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GenerateConfigRuleReportRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GenerateConfigRuleReportRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GenerateConfigRuleReportRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GenerateConfigRuleReportRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string GenerateConfigRuleReportRequest::getUserType() const { + return userType_; +} + +void GenerateConfigRuleReportRequest::setUserType(const std::string &userType) { + userType_ = userType; + setParameter(std::string("UserType"), userType); +} + +long GenerateConfigRuleReportRequest::getOwnerId() const { + return ownerId_; +} + +void GenerateConfigRuleReportRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/tag/src/model/GenerateConfigRuleReportResult.cc b/tag/src/model/GenerateConfigRuleReportResult.cc new file mode 100644 index 000000000..90a9b6d0c --- /dev/null +++ b/tag/src/model/GenerateConfigRuleReportResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +GenerateConfigRuleReportResult::GenerateConfigRuleReportResult() : + ServiceResult() +{} + +GenerateConfigRuleReportResult::GenerateConfigRuleReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateConfigRuleReportResult::~GenerateConfigRuleReportResult() +{} + +void GenerateConfigRuleReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ReportId"].isNull()) + reportId_ = value["ReportId"].asString(); + +} + +std::string GenerateConfigRuleReportResult::getReportId()const +{ + return reportId_; +} + diff --git a/tag/src/model/GetConfigRuleReportRequest.cc b/tag/src/model/GetConfigRuleReportRequest.cc new file mode 100644 index 000000000..27ddd052c --- /dev/null +++ b/tag/src/model/GetConfigRuleReportRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Tag::Model::GetConfigRuleReportRequest; + +GetConfigRuleReportRequest::GetConfigRuleReportRequest() + : RpcServiceRequest("tag", "2018-08-28", "GetConfigRuleReport") { + setMethod(HttpRequest::Method::Post); +} + +GetConfigRuleReportRequest::~GetConfigRuleReportRequest() {} + +std::string GetConfigRuleReportRequest::getTargetId() const { + return targetId_; +} + +void GetConfigRuleReportRequest::setTargetId(const std::string &targetId) { + targetId_ = targetId; + setParameter(std::string("TargetId"), targetId); +} + +std::string GetConfigRuleReportRequest::getTargetType() const { + return targetType_; +} + +void GetConfigRuleReportRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::string GetConfigRuleReportRequest::getRegionId() const { + return regionId_; +} + +void GetConfigRuleReportRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetConfigRuleReportRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetConfigRuleReportRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetConfigRuleReportRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetConfigRuleReportRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string GetConfigRuleReportRequest::getUserType() const { + return userType_; +} + +void GetConfigRuleReportRequest::setUserType(const std::string &userType) { + userType_ = userType; + setParameter(std::string("UserType"), userType); +} + +long GetConfigRuleReportRequest::getOwnerId() const { + return ownerId_; +} + +void GetConfigRuleReportRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/tag/src/model/GetConfigRuleReportResult.cc b/tag/src/model/GetConfigRuleReportResult.cc new file mode 100644 index 000000000..65f4b4d43 --- /dev/null +++ b/tag/src/model/GetConfigRuleReportResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +GetConfigRuleReportResult::GetConfigRuleReportResult() : + ServiceResult() +{} + +GetConfigRuleReportResult::GetConfigRuleReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetConfigRuleReportResult::~GetConfigRuleReportResult() +{} + +void GetConfigRuleReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["CreatedTime"].isNull()) + data_.createdTime = std::stol(dataNode["CreatedTime"].asString()); + if(!dataNode["ReportId"].isNull()) + data_.reportId = dataNode["ReportId"].asString(); + if(!dataNode["TargetId"].isNull()) + data_.targetId = dataNode["TargetId"].asString(); + if(!dataNode["TargetType"].isNull()) + data_.targetType = dataNode["TargetType"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +int GetConfigRuleReportResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetConfigRuleReportResult::Data GetConfigRuleReportResult::getData()const +{ + return data_; +} + +bool GetConfigRuleReportResult::getSuccess()const +{ + return success_; +} + diff --git a/tag/src/model/GetEffectivePolicyRequest.cc b/tag/src/model/GetEffectivePolicyRequest.cc new file mode 100644 index 000000000..750aa35e6 --- /dev/null +++ b/tag/src/model/GetEffectivePolicyRequest.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::Tag::Model::GetEffectivePolicyRequest; + +GetEffectivePolicyRequest::GetEffectivePolicyRequest() + : RpcServiceRequest("tag", "2018-08-28", "GetEffectivePolicy") { + setMethod(HttpRequest::Method::Post); +} + +GetEffectivePolicyRequest::~GetEffectivePolicyRequest() {} + +std::string GetEffectivePolicyRequest::getTargetId() const { + return targetId_; +} + +void GetEffectivePolicyRequest::setTargetId(const std::string &targetId) { + targetId_ = targetId; + setParameter(std::string("TargetId"), targetId); +} + +std::string GetEffectivePolicyRequest::getTargetType() const { + return targetType_; +} + +void GetEffectivePolicyRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::string GetEffectivePolicyRequest::getRegionId() const { + return regionId_; +} + +void GetEffectivePolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetEffectivePolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetEffectivePolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetEffectivePolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetEffectivePolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetEffectivePolicyRequest::getOwnerId() const { + return ownerId_; +} + +void GetEffectivePolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/tag/src/model/GetEffectivePolicyResult.cc b/tag/src/model/GetEffectivePolicyResult.cc new file mode 100644 index 000000000..031f323a3 --- /dev/null +++ b/tag/src/model/GetEffectivePolicyResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +GetEffectivePolicyResult::GetEffectivePolicyResult() : + ServiceResult() +{} + +GetEffectivePolicyResult::GetEffectivePolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEffectivePolicyResult::~GetEffectivePolicyResult() +{} + +void GetEffectivePolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EffectivePolicy"].isNull()) + effectivePolicy_ = value["EffectivePolicy"].asString(); + +} + +std::string GetEffectivePolicyResult::getEffectivePolicy()const +{ + return effectivePolicy_; +} + diff --git a/tag/src/model/GetPolicyEnableStatusRequest.cc b/tag/src/model/GetPolicyEnableStatusRequest.cc new file mode 100644 index 000000000..7bb052f3f --- /dev/null +++ b/tag/src/model/GetPolicyEnableStatusRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Tag::Model::GetPolicyEnableStatusRequest; + +GetPolicyEnableStatusRequest::GetPolicyEnableStatusRequest() + : RpcServiceRequest("tag", "2018-08-28", "GetPolicyEnableStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetPolicyEnableStatusRequest::~GetPolicyEnableStatusRequest() {} + +std::string GetPolicyEnableStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GetPolicyEnableStatusRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); +} + +std::string GetPolicyEnableStatusRequest::getRegionId() const { + return regionId_; +} + +void GetPolicyEnableStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetPolicyEnableStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetPolicyEnableStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetPolicyEnableStatusRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetPolicyEnableStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string GetPolicyEnableStatusRequest::getUserType() const { + return userType_; +} + +void GetPolicyEnableStatusRequest::setUserType(const std::string &userType) { + userType_ = userType; + setParameter(std::string("UserType"), userType); +} + +long GetPolicyEnableStatusRequest::getOwnerId() const { + return ownerId_; +} + +void GetPolicyEnableStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string GetPolicyEnableStatusRequest::getOpenType() const { + return openType_; +} + +void GetPolicyEnableStatusRequest::setOpenType(const std::string &openType) { + openType_ = openType; + setParameter(std::string("OpenType"), openType); +} + diff --git a/tag/src/model/GetPolicyEnableStatusResult.cc b/tag/src/model/GetPolicyEnableStatusResult.cc new file mode 100644 index 000000000..da019a336 --- /dev/null +++ b/tag/src/model/GetPolicyEnableStatusResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +GetPolicyEnableStatusResult::GetPolicyEnableStatusResult() : + ServiceResult() +{} + +GetPolicyEnableStatusResult::GetPolicyEnableStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPolicyEnableStatusResult::~GetPolicyEnableStatusResult() +{} + +void GetPolicyEnableStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStatusModelsNode = value["StatusModels"]["StatusModelsItem"]; + for (auto valueStatusModelsStatusModelsItem : allStatusModelsNode) + { + StatusModelsItem statusModelsObject; + if(!valueStatusModelsStatusModelsItem["Status"].isNull()) + statusModelsObject.status = valueStatusModelsStatusModelsItem["Status"].asString(); + if(!valueStatusModelsStatusModelsItem["UserType"].isNull()) + statusModelsObject.userType = valueStatusModelsStatusModelsItem["UserType"].asString(); + statusModels_.push_back(statusModelsObject); + } + +} + +std::vector GetPolicyEnableStatusResult::getStatusModels()const +{ + return statusModels_; +} + diff --git a/tag/src/model/GetPolicyRequest.cc b/tag/src/model/GetPolicyRequest.cc new file mode 100644 index 000000000..6721ea040 --- /dev/null +++ b/tag/src/model/GetPolicyRequest.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::Tag::Model::GetPolicyRequest; + +GetPolicyRequest::GetPolicyRequest() + : RpcServiceRequest("tag", "2018-08-28", "GetPolicy") { + setMethod(HttpRequest::Method::Post); +} + +GetPolicyRequest::~GetPolicyRequest() {} + +std::string GetPolicyRequest::getPolicyId() const { + return policyId_; +} + +void GetPolicyRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setParameter(std::string("PolicyId"), policyId); +} + +std::string GetPolicyRequest::getRegionId() const { + return regionId_; +} + +void GetPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GetPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GetPolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GetPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GetPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void GetPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/tag/src/model/GetPolicyResult.cc b/tag/src/model/GetPolicyResult.cc new file mode 100644 index 000000000..eeebbb207 --- /dev/null +++ b/tag/src/model/GetPolicyResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +GetPolicyResult::GetPolicyResult() : + ServiceResult() +{} + +GetPolicyResult::GetPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPolicyResult::~GetPolicyResult() +{} + +void GetPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto policyNode = value["Policy"]; + if(!policyNode["PolicyName"].isNull()) + policy_.policyName = policyNode["PolicyName"].asString(); + if(!policyNode["PolicyDesc"].isNull()) + policy_.policyDesc = policyNode["PolicyDesc"].asString(); + if(!policyNode["PolicyContent"].isNull()) + policy_.policyContent = policyNode["PolicyContent"].asString(); + if(!policyNode["UserType"].isNull()) + policy_.userType = policyNode["UserType"].asString(); + +} + +GetPolicyResult::Policy GetPolicyResult::getPolicy()const +{ + return policy_; +} + diff --git a/tag/src/model/ListConfigRulesForTargetRequest.cc b/tag/src/model/ListConfigRulesForTargetRequest.cc new file mode 100644 index 000000000..5fa7701ec --- /dev/null +++ b/tag/src/model/ListConfigRulesForTargetRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Tag::Model::ListConfigRulesForTargetRequest; + +ListConfigRulesForTargetRequest::ListConfigRulesForTargetRequest() + : RpcServiceRequest("tag", "2018-08-28", "ListConfigRulesForTarget") { + setMethod(HttpRequest::Method::Post); +} + +ListConfigRulesForTargetRequest::~ListConfigRulesForTargetRequest() {} + +std::string ListConfigRulesForTargetRequest::getTargetId() const { + return targetId_; +} + +void ListConfigRulesForTargetRequest::setTargetId(const std::string &targetId) { + targetId_ = targetId; + setParameter(std::string("TargetId"), targetId); +} + +std::string ListConfigRulesForTargetRequest::getTargetType() const { + return targetType_; +} + +void ListConfigRulesForTargetRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::string ListConfigRulesForTargetRequest::getRegionId() const { + return regionId_; +} + +void ListConfigRulesForTargetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListConfigRulesForTargetRequest::getNextToken() const { + return nextToken_; +} + +void ListConfigRulesForTargetRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListConfigRulesForTargetRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListConfigRulesForTargetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListConfigRulesForTargetRequest::getPolicyType() const { + return policyType_; +} + +void ListConfigRulesForTargetRequest::setPolicyType(const std::string &policyType) { + policyType_ = policyType; + setParameter(std::string("PolicyType"), policyType); +} + +std::string ListConfigRulesForTargetRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListConfigRulesForTargetRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ListConfigRulesForTargetRequest::getUserType() const { + return userType_; +} + +void ListConfigRulesForTargetRequest::setUserType(const std::string &userType) { + userType_ = userType; + setParameter(std::string("UserType"), userType); +} + +long ListConfigRulesForTargetRequest::getOwnerId() const { + return ownerId_; +} + +void ListConfigRulesForTargetRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int ListConfigRulesForTargetRequest::getMaxResult() const { + return maxResult_; +} + +void ListConfigRulesForTargetRequest::setMaxResult(int maxResult) { + maxResult_ = maxResult; + setParameter(std::string("MaxResult"), std::to_string(maxResult)); +} + +std::string ListConfigRulesForTargetRequest::getTagKey() const { + return tagKey_; +} + +void ListConfigRulesForTargetRequest::setTagKey(const std::string &tagKey) { + tagKey_ = tagKey; + setParameter(std::string("TagKey"), tagKey); +} + diff --git a/tag/src/model/ListConfigRulesForTargetResult.cc b/tag/src/model/ListConfigRulesForTargetResult.cc new file mode 100644 index 000000000..d2d7490b9 --- /dev/null +++ b/tag/src/model/ListConfigRulesForTargetResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +ListConfigRulesForTargetResult::ListConfigRulesForTargetResult() : + ServiceResult() +{} + +ListConfigRulesForTargetResult::ListConfigRulesForTargetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListConfigRulesForTargetResult::~ListConfigRulesForTargetResult() +{} + +void ListConfigRulesForTargetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["AggregatorId"].isNull()) + dataObject.aggregatorId = valueDataDataItem["AggregatorId"].asString(); + if(!valueDataDataItem["ConfigRuleId"].isNull()) + dataObject.configRuleId = valueDataDataItem["ConfigRuleId"].asString(); + if(!valueDataDataItem["PolicyType"].isNull()) + dataObject.policyType = valueDataDataItem["PolicyType"].asString(); + if(!valueDataDataItem["Remediation"].isNull()) + dataObject.remediation = valueDataDataItem["Remediation"].asString() == "true"; + if(!valueDataDataItem["TagKey"].isNull()) + dataObject.tagKey = valueDataDataItem["TagKey"].asString(); + if(!valueDataDataItem["TagValue"].isNull()) + dataObject.tagValue = valueDataDataItem["TagValue"].asString(); + if(!valueDataDataItem["TargetId"].isNull()) + dataObject.targetId = valueDataDataItem["TargetId"].asString(); + if(!valueDataDataItem["TargetType"].isNull()) + dataObject.targetType = valueDataDataItem["TargetType"].asString(); + data_.push_back(dataObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListConfigRulesForTargetResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListConfigRulesForTargetResult::getData()const +{ + return data_; +} + diff --git a/tag/src/model/ListPoliciesForTargetRequest.cc b/tag/src/model/ListPoliciesForTargetRequest.cc new file mode 100644 index 000000000..5c2d1f3c9 --- /dev/null +++ b/tag/src/model/ListPoliciesForTargetRequest.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::Tag::Model::ListPoliciesForTargetRequest; + +ListPoliciesForTargetRequest::ListPoliciesForTargetRequest() + : RpcServiceRequest("tag", "2018-08-28", "ListPoliciesForTarget") { + setMethod(HttpRequest::Method::Post); +} + +ListPoliciesForTargetRequest::~ListPoliciesForTargetRequest() {} + +std::string ListPoliciesForTargetRequest::getTargetId() const { + return targetId_; +} + +void ListPoliciesForTargetRequest::setTargetId(const std::string &targetId) { + targetId_ = targetId; + setParameter(std::string("TargetId"), targetId); +} + +std::string ListPoliciesForTargetRequest::getTargetType() const { + return targetType_; +} + +void ListPoliciesForTargetRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); +} + +std::string ListPoliciesForTargetRequest::getRegionId() const { + return regionId_; +} + +void ListPoliciesForTargetRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListPoliciesForTargetRequest::getNextToken() const { + return nextToken_; +} + +void ListPoliciesForTargetRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListPoliciesForTargetRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListPoliciesForTargetRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListPoliciesForTargetRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListPoliciesForTargetRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListPoliciesForTargetRequest::getOwnerId() const { + return ownerId_; +} + +void ListPoliciesForTargetRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int ListPoliciesForTargetRequest::getMaxResult() const { + return maxResult_; +} + +void ListPoliciesForTargetRequest::setMaxResult(int maxResult) { + maxResult_ = maxResult; + setParameter(std::string("MaxResult"), std::to_string(maxResult)); +} + diff --git a/tag/src/model/ListPoliciesForTargetResult.cc b/tag/src/model/ListPoliciesForTargetResult.cc new file mode 100644 index 000000000..3230eae4b --- /dev/null +++ b/tag/src/model/ListPoliciesForTargetResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +ListPoliciesForTargetResult::ListPoliciesForTargetResult() : + ServiceResult() +{} + +ListPoliciesForTargetResult::ListPoliciesForTargetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPoliciesForTargetResult::~ListPoliciesForTargetResult() +{} + +void ListPoliciesForTargetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["PolicyContent"].isNull()) + dataObject.policyContent = valueDataDataItem["PolicyContent"].asString(); + if(!valueDataDataItem["PolicyDesc"].isNull()) + dataObject.policyDesc = valueDataDataItem["PolicyDesc"].asString(); + if(!valueDataDataItem["PolicyId"].isNull()) + dataObject.policyId = valueDataDataItem["PolicyId"].asString(); + if(!valueDataDataItem["PolicyName"].isNull()) + dataObject.policyName = valueDataDataItem["PolicyName"].asString(); + if(!valueDataDataItem["UserType"].isNull()) + dataObject.userType = valueDataDataItem["UserType"].asString(); + data_.push_back(dataObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListPoliciesForTargetResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListPoliciesForTargetResult::getData()const +{ + return data_; +} + diff --git a/tag/src/model/ListPoliciesRequest.cc b/tag/src/model/ListPoliciesRequest.cc new file mode 100644 index 000000000..265801843 --- /dev/null +++ b/tag/src/model/ListPoliciesRequest.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Tag::Model::ListPoliciesRequest; + +ListPoliciesRequest::ListPoliciesRequest() + : RpcServiceRequest("tag", "2018-08-28", "ListPolicies") { + setMethod(HttpRequest::Method::Post); +} + +ListPoliciesRequest::~ListPoliciesRequest() {} + +std::vector ListPoliciesRequest::getPolicyNames() const { + return policyNames_; +} + +void ListPoliciesRequest::setPolicyNames(const std::vector &policyNames) { + policyNames_ = policyNames; +} + +std::vector ListPoliciesRequest::getPolicyIds() const { + return policyIds_; +} + +void ListPoliciesRequest::setPolicyIds(const std::vector &policyIds) { + policyIds_ = policyIds; +} + +std::string ListPoliciesRequest::getRegionId() const { + return regionId_; +} + +void ListPoliciesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListPoliciesRequest::getNextToken() const { + return nextToken_; +} + +void ListPoliciesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListPoliciesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListPoliciesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListPoliciesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListPoliciesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ListPoliciesRequest::getUserType() const { + return userType_; +} + +void ListPoliciesRequest::setUserType(const std::string &userType) { + userType_ = userType; + setParameter(std::string("UserType"), userType); +} + +long ListPoliciesRequest::getOwnerId() const { + return ownerId_; +} + +void ListPoliciesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int ListPoliciesRequest::getMaxResult() const { + return maxResult_; +} + +void ListPoliciesRequest::setMaxResult(int maxResult) { + maxResult_ = maxResult; + setParameter(std::string("MaxResult"), std::to_string(maxResult)); +} + diff --git a/tag/src/model/ListPoliciesResult.cc b/tag/src/model/ListPoliciesResult.cc new file mode 100644 index 000000000..2c27b1f51 --- /dev/null +++ b/tag/src/model/ListPoliciesResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +ListPoliciesResult::ListPoliciesResult() : + ServiceResult() +{} + +ListPoliciesResult::ListPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPoliciesResult::~ListPoliciesResult() +{} + +void ListPoliciesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPolicyListNode = value["PolicyList"]["Policy"]; + for (auto valuePolicyListPolicy : allPolicyListNode) + { + Policy policyListObject; + if(!valuePolicyListPolicy["PolicyContent"].isNull()) + policyListObject.policyContent = valuePolicyListPolicy["PolicyContent"].asString(); + if(!valuePolicyListPolicy["PolicyDesc"].isNull()) + policyListObject.policyDesc = valuePolicyListPolicy["PolicyDesc"].asString(); + if(!valuePolicyListPolicy["PolicyId"].isNull()) + policyListObject.policyId = valuePolicyListPolicy["PolicyId"].asString(); + if(!valuePolicyListPolicy["PolicyName"].isNull()) + policyListObject.policyName = valuePolicyListPolicy["PolicyName"].asString(); + if(!valuePolicyListPolicy["UserType"].isNull()) + policyListObject.userType = valuePolicyListPolicy["UserType"].asString(); + policyList_.push_back(policyListObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListPoliciesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListPoliciesResult::getPolicyList()const +{ + return policyList_; +} + diff --git a/tag/src/model/ListResourcesByTagResult.cc b/tag/src/model/ListResourcesByTagResult.cc index cffacb36c..58a7c187d 100644 --- a/tag/src/model/ListResourcesByTagResult.cc +++ b/tag/src/model/ListResourcesByTagResult.cc @@ -49,12 +49,12 @@ void ListResourcesByTagResult::parse(const std::string &payload) for (auto valueResourcesTagResourceTagsTag : allTagsNode) { TagResource::Tag tagsObject; + if(!valueResourcesTagResourceTagsTag["Category"].isNull()) + tagsObject.category = valueResourcesTagResourceTagsTag["Category"].asString(); if(!valueResourcesTagResourceTagsTag["Key"].isNull()) tagsObject.key = valueResourcesTagResourceTagsTag["Key"].asString(); if(!valueResourcesTagResourceTagsTag["Value"].isNull()) tagsObject.value = valueResourcesTagResourceTagsTag["Value"].asString(); - if(!valueResourcesTagResourceTagsTag["Category"].isNull()) - tagsObject.category = valueResourcesTagResourceTagsTag["Category"].asString(); resourcesObject.tags.push_back(tagsObject); } resources_.push_back(resourcesObject); diff --git a/tag/src/model/ListSupportResourceTypesRequest.cc b/tag/src/model/ListSupportResourceTypesRequest.cc new file mode 100644 index 000000000..4a96b19f1 --- /dev/null +++ b/tag/src/model/ListSupportResourceTypesRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Tag::Model::ListSupportResourceTypesRequest; + +ListSupportResourceTypesRequest::ListSupportResourceTypesRequest() + : RpcServiceRequest("tag", "2018-08-28", "ListSupportResourceTypes") { + setMethod(HttpRequest::Method::Post); +} + +ListSupportResourceTypesRequest::~ListSupportResourceTypesRequest() {} + +std::string ListSupportResourceTypesRequest::getProductCode() const { + return productCode_; +} + +void ListSupportResourceTypesRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); +} + +std::string ListSupportResourceTypesRequest::getSupportCode() const { + return supportCode_; +} + +void ListSupportResourceTypesRequest::setSupportCode(const std::string &supportCode) { + supportCode_ = supportCode; + setParameter(std::string("SupportCode"), supportCode); +} + +std::string ListSupportResourceTypesRequest::getRegionId() const { + return regionId_; +} + +void ListSupportResourceTypesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListSupportResourceTypesRequest::getNextToken() const { + return nextToken_; +} + +void ListSupportResourceTypesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListSupportResourceTypesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListSupportResourceTypesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListSupportResourceTypesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListSupportResourceTypesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ListSupportResourceTypesRequest::getResourceTye() const { + return resourceTye_; +} + +void ListSupportResourceTypesRequest::setResourceTye(const std::string &resourceTye) { + resourceTye_ = resourceTye; + setParameter(std::string("ResourceTye"), resourceTye); +} + +long ListSupportResourceTypesRequest::getOwnerId() const { + return ownerId_; +} + +void ListSupportResourceTypesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int ListSupportResourceTypesRequest::getMaxResult() const { + return maxResult_; +} + +void ListSupportResourceTypesRequest::setMaxResult(int maxResult) { + maxResult_ = maxResult; + setParameter(std::string("MaxResult"), std::to_string(maxResult)); +} + +bool ListSupportResourceTypesRequest::getShowItems() const { + return showItems_; +} + +void ListSupportResourceTypesRequest::setShowItems(bool showItems) { + showItems_ = showItems; + setParameter(std::string("ShowItems"), showItems ? "true" : "false"); +} + diff --git a/tag/src/model/ListSupportResourceTypesResult.cc b/tag/src/model/ListSupportResourceTypesResult.cc new file mode 100644 index 000000000..6391fa786 --- /dev/null +++ b/tag/src/model/ListSupportResourceTypesResult.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 +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +ListSupportResourceTypesResult::ListSupportResourceTypesResult() : + ServiceResult() +{} + +ListSupportResourceTypesResult::ListSupportResourceTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSupportResourceTypesResult::~ListSupportResourceTypesResult() +{} + +void ListSupportResourceTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSupportResourceTypesNode = value["SupportResourceTypes"]["SupportResourceType"]; + for (auto valueSupportResourceTypesSupportResourceType : allSupportResourceTypesNode) + { + SupportResourceType supportResourceTypesObject; + if(!valueSupportResourceTypesSupportResourceType["ArnTemplate"].isNull()) + supportResourceTypesObject.arnTemplate = valueSupportResourceTypesSupportResourceType["ArnTemplate"].asString(); + if(!valueSupportResourceTypesSupportResourceType["ProductCode"].isNull()) + supportResourceTypesObject.productCode = valueSupportResourceTypesSupportResourceType["ProductCode"].asString(); + if(!valueSupportResourceTypesSupportResourceType["ResourceType"].isNull()) + supportResourceTypesObject.resourceType = valueSupportResourceTypesSupportResourceType["ResourceType"].asString(); + auto allSupportItemsNode = valueSupportResourceTypesSupportResourceType["SupportItems"]["SupportItemsItem"]; + for (auto valueSupportResourceTypesSupportResourceTypeSupportItemsSupportItemsItem : allSupportItemsNode) + { + SupportResourceType::SupportItemsItem supportItemsObject; + if(!valueSupportResourceTypesSupportResourceTypeSupportItemsSupportItemsItem["Support"].isNull()) + supportItemsObject.support = valueSupportResourceTypesSupportResourceTypeSupportItemsSupportItemsItem["Support"].asString() == "true"; + if(!valueSupportResourceTypesSupportResourceTypeSupportItemsSupportItemsItem["SupportCode"].isNull()) + supportItemsObject.supportCode = valueSupportResourceTypesSupportResourceTypeSupportItemsSupportItemsItem["SupportCode"].asString(); + auto allSupportDetails = value["SupportDetails"]["SupportDetails"]; + for (auto value : allSupportDetails) + supportItemsObject.supportDetails.push_back(value.asString()); + supportResourceTypesObject.supportItems.push_back(supportItemsObject); + } + supportResourceTypes_.push_back(supportResourceTypesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListSupportResourceTypesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListSupportResourceTypesResult::getSupportResourceTypes()const +{ + return supportResourceTypes_; +} + diff --git a/tag/src/model/ListTargetsForPolicyRequest.cc b/tag/src/model/ListTargetsForPolicyRequest.cc new file mode 100644 index 000000000..15f6ad712 --- /dev/null +++ b/tag/src/model/ListTargetsForPolicyRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Tag::Model::ListTargetsForPolicyRequest; + +ListTargetsForPolicyRequest::ListTargetsForPolicyRequest() + : RpcServiceRequest("tag", "2018-08-28", "ListTargetsForPolicy") { + setMethod(HttpRequest::Method::Post); +} + +ListTargetsForPolicyRequest::~ListTargetsForPolicyRequest() {} + +std::string ListTargetsForPolicyRequest::getPolicyId() const { + return policyId_; +} + +void ListTargetsForPolicyRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setParameter(std::string("PolicyId"), policyId); +} + +std::string ListTargetsForPolicyRequest::getRegionId() const { + return regionId_; +} + +void ListTargetsForPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListTargetsForPolicyRequest::getNextToken() const { + return nextToken_; +} + +void ListTargetsForPolicyRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListTargetsForPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListTargetsForPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListTargetsForPolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListTargetsForPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListTargetsForPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void ListTargetsForPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int ListTargetsForPolicyRequest::getMaxResult() const { + return maxResult_; +} + +void ListTargetsForPolicyRequest::setMaxResult(int maxResult) { + maxResult_ = maxResult; + setParameter(std::string("MaxResult"), std::to_string(maxResult)); +} + diff --git a/tag/src/model/ListTargetsForPolicyResult.cc b/tag/src/model/ListTargetsForPolicyResult.cc new file mode 100644 index 000000000..5e68d9058 --- /dev/null +++ b/tag/src/model/ListTargetsForPolicyResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +ListTargetsForPolicyResult::ListTargetsForPolicyResult() : + ServiceResult() +{} + +ListTargetsForPolicyResult::ListTargetsForPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTargetsForPolicyResult::~ListTargetsForPolicyResult() +{} + +void ListTargetsForPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTargetsNode = value["Targets"]["Target"]; + for (auto valueTargetsTarget : allTargetsNode) + { + Target targetsObject; + if(!valueTargetsTarget["TargetId"].isNull()) + targetsObject.targetId = valueTargetsTarget["TargetId"].asString(); + if(!valueTargetsTarget["TargetType"].isNull()) + targetsObject.targetType = std::stoi(valueTargetsTarget["TargetType"].asString()); + targets_.push_back(targetsObject); + } + if(!value["IsRd"].isNull()) + isRd_ = value["IsRd"].asString() == "true"; + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["RdId"].isNull()) + rdId_ = value["RdId"].asString(); + +} + +std::string ListTargetsForPolicyResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTargetsForPolicyResult::getTargets()const +{ + return targets_; +} + +std::string ListTargetsForPolicyResult::getRdId()const +{ + return rdId_; +} + +bool ListTargetsForPolicyResult::getIsRd()const +{ + return isRd_; +} + diff --git a/tag/src/model/ModifyPolicyRequest.cc b/tag/src/model/ModifyPolicyRequest.cc new file mode 100644 index 000000000..4d0795ab3 --- /dev/null +++ b/tag/src/model/ModifyPolicyRequest.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::Tag::Model::ModifyPolicyRequest; + +ModifyPolicyRequest::ModifyPolicyRequest() + : RpcServiceRequest("tag", "2018-08-28", "ModifyPolicy") { + setMethod(HttpRequest::Method::Post); +} + +ModifyPolicyRequest::~ModifyPolicyRequest() {} + +std::string ModifyPolicyRequest::getPolicyDesc() const { + return policyDesc_; +} + +void ModifyPolicyRequest::setPolicyDesc(const std::string &policyDesc) { + policyDesc_ = policyDesc; + setParameter(std::string("PolicyDesc"), policyDesc); +} + +std::string ModifyPolicyRequest::getPolicyId() const { + return policyId_; +} + +void ModifyPolicyRequest::setPolicyId(const std::string &policyId) { + policyId_ = policyId; + setParameter(std::string("PolicyId"), policyId); +} + +std::string ModifyPolicyRequest::getRegionId() const { + return regionId_; +} + +void ModifyPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyPolicyRequest::getPolicyContent() const { + return policyContent_; +} + +void ModifyPolicyRequest::setPolicyContent(const std::string &policyContent) { + policyContent_ = policyContent; + setParameter(std::string("PolicyContent"), policyContent); +} + +bool ModifyPolicyRequest::getDryRun() const { + return dryRun_; +} + +void ModifyPolicyRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string ModifyPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyPolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyPolicyRequest::getPolicyName() const { + return policyName_; +} + +void ModifyPolicyRequest::setPolicyName(const std::string &policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), policyName); +} + diff --git a/tag/src/model/ModifyPolicyResult.cc b/tag/src/model/ModifyPolicyResult.cc new file mode 100644 index 000000000..b5a9519b5 --- /dev/null +++ b/tag/src/model/ModifyPolicyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +ModifyPolicyResult::ModifyPolicyResult() : + ServiceResult() +{} + +ModifyPolicyResult::ModifyPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyPolicyResult::~ModifyPolicyResult() +{} + +void ModifyPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/tag/src/model/OpenCreatedByRequest.cc b/tag/src/model/OpenCreatedByRequest.cc new file mode 100644 index 000000000..1c2ad7428 --- /dev/null +++ b/tag/src/model/OpenCreatedByRequest.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::Tag::Model::OpenCreatedByRequest; + +OpenCreatedByRequest::OpenCreatedByRequest() + : RpcServiceRequest("tag", "2018-08-28", "OpenCreatedBy") { + setMethod(HttpRequest::Method::Post); +} + +OpenCreatedByRequest::~OpenCreatedByRequest() {} + +std::string OpenCreatedByRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void OpenCreatedByRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); +} + +std::string OpenCreatedByRequest::getRegionId() const { + return regionId_; +} + +void OpenCreatedByRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string OpenCreatedByRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void OpenCreatedByRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string OpenCreatedByRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void OpenCreatedByRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long OpenCreatedByRequest::getOwnerId() const { + return ownerId_; +} + +void OpenCreatedByRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/tag/src/model/OpenCreatedByResult.cc b/tag/src/model/OpenCreatedByResult.cc new file mode 100644 index 000000000..8a5b6d7e8 --- /dev/null +++ b/tag/src/model/OpenCreatedByResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Tag; +using namespace AlibabaCloud::Tag::Model; + +OpenCreatedByResult::OpenCreatedByResult() : + ServiceResult() +{} + +OpenCreatedByResult::OpenCreatedByResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OpenCreatedByResult::~OpenCreatedByResult() +{} + +void OpenCreatedByResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +