From fefb29dee6fe2cbaab4faddcb16aba408c998a47 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 3 Aug 2022 06:59:11 +0000 Subject: [PATCH] Supported more query conditions when searching resource group. --- CHANGELOG | 3 + VERSION | 2 +- resourcemanager/CMakeLists.txt | 28 ++ .../resourcemanager/ResourceManagerClient.h | 56 ++++ .../model/CreateResourceAccountRequest.h | 7 + .../resourcemanager/model/GetAccountRequest.h | 3 + .../resourcemanager/model/GetAccountResult.h | 15 +- .../model/GetResourceDirectoryResult.h | 1 + .../GetResourceGroupListAclModeRequest.h | 39 +++ .../model/GetResourceGroupListAclModeResult.h | 51 ++++ .../model/GetResourceGroupRequest.h | 3 + .../model/GetResourceGroupResult.h | 6 + .../InviteAccountToResourceDirectoryRequest.h | 7 + .../model/ListAccountsForParentRequest.h | 10 + .../model/ListAccountsForParentResult.h | 6 + .../model/ListAccountsRequest.h | 10 + .../model/ListAccountsResult.h | 6 + .../model/ListResourceGroupsRequest.h | 13 + .../model/ListResourceGroupsResult.h | 8 + .../model/ListTagKeysRequest.h | 51 ++++ .../resourcemanager/model/ListTagKeysResult.h | 57 ++++ .../model/ListTagResourcesRequest.h | 58 ++++ .../model/ListTagResourcesResult.h | 60 +++++ .../model/ListTagValuesRequest.h | 54 ++++ .../model/ListTagValuesResult.h | 57 ++++ .../SetMemberDeletionPermissionRequest.h | 42 +++ .../model/SetMemberDeletionPermissionResult.h | 55 ++++ .../model/TagResourcesRequest.h | 52 ++++ .../model/TagResourcesResult.h | 49 ++++ .../model/UntagResourcesRequest.h | 51 ++++ .../model/UntagResourcesResult.h | 49 ++++ resourcemanager/src/ResourceManagerClient.cc | 252 ++++++++++++++++++ .../src/model/CreateResourceAccountRequest.cc | 12 + .../src/model/GetAccountRequest.cc | 9 + resourcemanager/src/model/GetAccountResult.cc | 12 + .../src/model/GetResourceDirectoryResult.cc | 2 + .../GetResourceGroupListAclModeRequest.cc | 27 ++ .../GetResourceGroupListAclModeResult.cc | 51 ++++ .../src/model/GetResourceGroupRequest.cc | 9 + .../src/model/GetResourceGroupResult.cc | 10 + ...InviteAccountToResourceDirectoryRequest.cc | 12 + .../src/model/ListAccountsForParentRequest.cc | 21 ++ .../src/model/ListAccountsForParentResult.cc | 10 + .../src/model/ListAccountsRequest.cc | 21 ++ .../src/model/ListAccountsResult.cc | 10 + .../src/model/ListResourceGroupsRequest.cc | 32 +++ .../src/model/ListResourceGroupsResult.cc | 17 ++ .../src/model/ListTagKeysRequest.cc | 63 +++++ .../src/model/ListTagKeysResult.cc | 64 +++++ .../src/model/ListTagResourcesRequest.cc | 77 ++++++ .../src/model/ListTagResourcesResult.cc | 70 +++++ .../src/model/ListTagValuesRequest.cc | 72 +++++ .../src/model/ListTagValuesResult.cc | 64 +++++ .../SetMemberDeletionPermissionRequest.cc | 36 +++ .../SetMemberDeletionPermissionResult.cc | 65 +++++ .../src/model/TagResourcesRequest.cc | 59 ++++ .../src/model/TagResourcesResult.cc | 44 +++ .../src/model/UntagResourcesRequest.cc | 67 +++++ .../src/model/UntagResourcesResult.cc | 44 +++ 59 files changed, 2136 insertions(+), 5 deletions(-) create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupListAclModeRequest.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupListAclModeResult.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/ListTagKeysRequest.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/ListTagKeysResult.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/ListTagResourcesRequest.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/ListTagResourcesResult.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/ListTagValuesRequest.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/ListTagValuesResult.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/SetMemberDeletionPermissionRequest.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/SetMemberDeletionPermissionResult.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/TagResourcesRequest.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/TagResourcesResult.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/UntagResourcesRequest.h create mode 100644 resourcemanager/include/alibabacloud/resourcemanager/model/UntagResourcesResult.h create mode 100644 resourcemanager/src/model/GetResourceGroupListAclModeRequest.cc create mode 100644 resourcemanager/src/model/GetResourceGroupListAclModeResult.cc create mode 100644 resourcemanager/src/model/ListTagKeysRequest.cc create mode 100644 resourcemanager/src/model/ListTagKeysResult.cc create mode 100644 resourcemanager/src/model/ListTagResourcesRequest.cc create mode 100644 resourcemanager/src/model/ListTagResourcesResult.cc create mode 100644 resourcemanager/src/model/ListTagValuesRequest.cc create mode 100644 resourcemanager/src/model/ListTagValuesResult.cc create mode 100644 resourcemanager/src/model/SetMemberDeletionPermissionRequest.cc create mode 100644 resourcemanager/src/model/SetMemberDeletionPermissionResult.cc create mode 100644 resourcemanager/src/model/TagResourcesRequest.cc create mode 100644 resourcemanager/src/model/TagResourcesResult.cc create mode 100644 resourcemanager/src/model/UntagResourcesRequest.cc create mode 100644 resourcemanager/src/model/UntagResourcesResult.cc diff --git a/CHANGELOG b/CHANGELOG index c89056055..db9928dfe 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-08-03 Version: 1.36.1217 +- Supported more query conditions when searching resource group. + 2022-08-02 Version: 1.36.1216 - Support ecs instance diagnostic features. diff --git a/VERSION b/VERSION index d22f0efe7..49ef7febf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1216 \ No newline at end of file +1.36.1217 \ No newline at end of file diff --git a/resourcemanager/CMakeLists.txt b/resourcemanager/CMakeLists.txt index b5ad90bae..968b180cf 100644 --- a/resourcemanager/CMakeLists.txt +++ b/resourcemanager/CMakeLists.txt @@ -103,6 +103,8 @@ set(resourcemanager_public_header_model include/alibabacloud/resourcemanager/model/GetResourceDirectoryResult.h include/alibabacloud/resourcemanager/model/GetResourceGroupRequest.h include/alibabacloud/resourcemanager/model/GetResourceGroupResult.h + include/alibabacloud/resourcemanager/model/GetResourceGroupListAclModeRequest.h + include/alibabacloud/resourcemanager/model/GetResourceGroupListAclModeResult.h include/alibabacloud/resourcemanager/model/GetRoleRequest.h include/alibabacloud/resourcemanager/model/GetRoleResult.h include/alibabacloud/resourcemanager/model/GetServiceLinkedRoleDeletionStatusRequest.h @@ -143,6 +145,12 @@ set(resourcemanager_public_header_model include/alibabacloud/resourcemanager/model/ListResourcesResult.h include/alibabacloud/resourcemanager/model/ListRolesRequest.h include/alibabacloud/resourcemanager/model/ListRolesResult.h + include/alibabacloud/resourcemanager/model/ListTagKeysRequest.h + include/alibabacloud/resourcemanager/model/ListTagKeysResult.h + include/alibabacloud/resourcemanager/model/ListTagResourcesRequest.h + include/alibabacloud/resourcemanager/model/ListTagResourcesResult.h + include/alibabacloud/resourcemanager/model/ListTagValuesRequest.h + include/alibabacloud/resourcemanager/model/ListTagValuesResult.h include/alibabacloud/resourcemanager/model/ListTargetAttachmentsForControlPolicyRequest.h include/alibabacloud/resourcemanager/model/ListTargetAttachmentsForControlPolicyResult.h include/alibabacloud/resourcemanager/model/ListTrustedServiceStatusRequest.h @@ -167,6 +175,12 @@ set(resourcemanager_public_header_model include/alibabacloud/resourcemanager/model/SendVerificationCodeForEnableRDResult.h include/alibabacloud/resourcemanager/model/SetDefaultPolicyVersionRequest.h include/alibabacloud/resourcemanager/model/SetDefaultPolicyVersionResult.h + include/alibabacloud/resourcemanager/model/SetMemberDeletionPermissionRequest.h + include/alibabacloud/resourcemanager/model/SetMemberDeletionPermissionResult.h + include/alibabacloud/resourcemanager/model/TagResourcesRequest.h + include/alibabacloud/resourcemanager/model/TagResourcesResult.h + include/alibabacloud/resourcemanager/model/UntagResourcesRequest.h + include/alibabacloud/resourcemanager/model/UntagResourcesResult.h include/alibabacloud/resourcemanager/model/UpdateAccountRequest.h include/alibabacloud/resourcemanager/model/UpdateAccountResult.h include/alibabacloud/resourcemanager/model/UpdateControlPolicyRequest.h @@ -262,6 +276,8 @@ set(resourcemanager_src src/model/GetResourceDirectoryResult.cc src/model/GetResourceGroupRequest.cc src/model/GetResourceGroupResult.cc + src/model/GetResourceGroupListAclModeRequest.cc + src/model/GetResourceGroupListAclModeResult.cc src/model/GetRoleRequest.cc src/model/GetRoleResult.cc src/model/GetServiceLinkedRoleDeletionStatusRequest.cc @@ -302,6 +318,12 @@ set(resourcemanager_src src/model/ListResourcesResult.cc src/model/ListRolesRequest.cc src/model/ListRolesResult.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/ListTargetAttachmentsForControlPolicyRequest.cc src/model/ListTargetAttachmentsForControlPolicyResult.cc src/model/ListTrustedServiceStatusRequest.cc @@ -326,6 +348,12 @@ set(resourcemanager_src src/model/SendVerificationCodeForEnableRDResult.cc src/model/SetDefaultPolicyVersionRequest.cc src/model/SetDefaultPolicyVersionResult.cc + src/model/SetMemberDeletionPermissionRequest.cc + src/model/SetMemberDeletionPermissionResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc src/model/UpdateAccountRequest.cc src/model/UpdateAccountResult.cc src/model/UpdateControlPolicyRequest.cc diff --git a/resourcemanager/include/alibabacloud/resourcemanager/ResourceManagerClient.h b/resourcemanager/include/alibabacloud/resourcemanager/ResourceManagerClient.h index 8b07576e1..0e1ff0ab8 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/ResourceManagerClient.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/ResourceManagerClient.h @@ -104,6 +104,8 @@ #include "model/GetResourceDirectoryResult.h" #include "model/GetResourceGroupRequest.h" #include "model/GetResourceGroupResult.h" +#include "model/GetResourceGroupListAclModeRequest.h" +#include "model/GetResourceGroupListAclModeResult.h" #include "model/GetRoleRequest.h" #include "model/GetRoleResult.h" #include "model/GetServiceLinkedRoleDeletionStatusRequest.h" @@ -144,6 +146,12 @@ #include "model/ListResourcesResult.h" #include "model/ListRolesRequest.h" #include "model/ListRolesResult.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/ListTargetAttachmentsForControlPolicyRequest.h" #include "model/ListTargetAttachmentsForControlPolicyResult.h" #include "model/ListTrustedServiceStatusRequest.h" @@ -168,6 +176,12 @@ #include "model/SendVerificationCodeForEnableRDResult.h" #include "model/SetDefaultPolicyVersionRequest.h" #include "model/SetDefaultPolicyVersionResult.h" +#include "model/SetMemberDeletionPermissionRequest.h" +#include "model/SetMemberDeletionPermissionResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" #include "model/UpdateAccountRequest.h" #include "model/UpdateAccountResult.h" #include "model/UpdateControlPolicyRequest.h" @@ -310,6 +324,9 @@ namespace AlibabaCloud typedef Outcome GetResourceGroupOutcome; typedef std::future GetResourceGroupOutcomeCallable; typedef std::function&)> GetResourceGroupAsyncHandler; + typedef Outcome GetResourceGroupListAclModeOutcome; + typedef std::future GetResourceGroupListAclModeOutcomeCallable; + typedef std::function&)> GetResourceGroupListAclModeAsyncHandler; typedef Outcome GetRoleOutcome; typedef std::future GetRoleOutcomeCallable; typedef std::function&)> GetRoleAsyncHandler; @@ -370,6 +387,15 @@ namespace AlibabaCloud typedef Outcome ListRolesOutcome; typedef std::future ListRolesOutcomeCallable; typedef std::function&)> ListRolesAsyncHandler; + typedef Outcome ListTagKeysOutcome; + typedef std::future ListTagKeysOutcomeCallable; + typedef std::function&)> ListTagKeysAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome ListTagValuesOutcome; + typedef std::future ListTagValuesOutcomeCallable; + typedef std::function&)> ListTagValuesAsyncHandler; typedef Outcome ListTargetAttachmentsForControlPolicyOutcome; typedef std::future ListTargetAttachmentsForControlPolicyOutcomeCallable; typedef std::function&)> ListTargetAttachmentsForControlPolicyAsyncHandler; @@ -406,6 +432,15 @@ namespace AlibabaCloud typedef Outcome SetDefaultPolicyVersionOutcome; typedef std::future SetDefaultPolicyVersionOutcomeCallable; typedef std::function&)> SetDefaultPolicyVersionAsyncHandler; + typedef Outcome SetMemberDeletionPermissionOutcome; + typedef std::future SetMemberDeletionPermissionOutcomeCallable; + typedef std::function&)> SetMemberDeletionPermissionAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; typedef Outcome UpdateAccountOutcome; typedef std::future UpdateAccountOutcomeCallable; typedef std::function&)> UpdateAccountAsyncHandler; @@ -549,6 +584,9 @@ namespace AlibabaCloud GetResourceGroupOutcome getResourceGroup(const Model::GetResourceGroupRequest &request)const; void getResourceGroupAsync(const Model::GetResourceGroupRequest& request, const GetResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetResourceGroupOutcomeCallable getResourceGroupCallable(const Model::GetResourceGroupRequest& request) const; + GetResourceGroupListAclModeOutcome getResourceGroupListAclMode(const Model::GetResourceGroupListAclModeRequest &request)const; + void getResourceGroupListAclModeAsync(const Model::GetResourceGroupListAclModeRequest& request, const GetResourceGroupListAclModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceGroupListAclModeOutcomeCallable getResourceGroupListAclModeCallable(const Model::GetResourceGroupListAclModeRequest& request) const; GetRoleOutcome getRole(const Model::GetRoleRequest &request)const; void getRoleAsync(const Model::GetRoleRequest& request, const GetRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetRoleOutcomeCallable getRoleCallable(const Model::GetRoleRequest& request) const; @@ -609,6 +647,15 @@ namespace AlibabaCloud ListRolesOutcome listRoles(const Model::ListRolesRequest &request)const; void listRolesAsync(const Model::ListRolesRequest& request, const ListRolesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRolesOutcomeCallable listRolesCallable(const Model::ListRolesRequest& 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; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + 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; ListTargetAttachmentsForControlPolicyOutcome listTargetAttachmentsForControlPolicy(const Model::ListTargetAttachmentsForControlPolicyRequest &request)const; void listTargetAttachmentsForControlPolicyAsync(const Model::ListTargetAttachmentsForControlPolicyRequest& request, const ListTargetAttachmentsForControlPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTargetAttachmentsForControlPolicyOutcomeCallable listTargetAttachmentsForControlPolicyCallable(const Model::ListTargetAttachmentsForControlPolicyRequest& request) const; @@ -645,6 +692,15 @@ namespace AlibabaCloud SetDefaultPolicyVersionOutcome setDefaultPolicyVersion(const Model::SetDefaultPolicyVersionRequest &request)const; void setDefaultPolicyVersionAsync(const Model::SetDefaultPolicyVersionRequest& request, const SetDefaultPolicyVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDefaultPolicyVersionOutcomeCallable setDefaultPolicyVersionCallable(const Model::SetDefaultPolicyVersionRequest& request) const; + SetMemberDeletionPermissionOutcome setMemberDeletionPermission(const Model::SetMemberDeletionPermissionRequest &request)const; + void setMemberDeletionPermissionAsync(const Model::SetMemberDeletionPermissionRequest& request, const SetMemberDeletionPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetMemberDeletionPermissionOutcomeCallable setMemberDeletionPermissionCallable(const Model::SetMemberDeletionPermissionRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; UpdateAccountOutcome updateAccount(const Model::UpdateAccountRequest &request)const; void updateAccountAsync(const Model::UpdateAccountRequest& request, const UpdateAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAccountOutcomeCallable updateAccountCallable(const Model::UpdateAccountRequest& request) const; diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/CreateResourceAccountRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/CreateResourceAccountRequest.h index 56c79bf93..fd3455340 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/CreateResourceAccountRequest.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/CreateResourceAccountRequest.h @@ -28,6 +28,10 @@ namespace ResourceManager { namespace Model { class ALIBABACLOUD_RESOURCEMANAGER_EXPORT CreateResourceAccountRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; CreateResourceAccountRequest(); ~CreateResourceAccountRequest(); std::string getAccountNamePrefix() const; @@ -36,6 +40,8 @@ public: void setParentFolderId(const std::string &parentFolderId); std::string getDisplayName() const; void setDisplayName(const std::string &displayName); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getPayerAccountId() const; void setPayerAccountId(const std::string &payerAccountId); @@ -43,6 +49,7 @@ private: std::string accountNamePrefix_; std::string parentFolderId_; std::string displayName_; + std::vector tag_; std::string payerAccountId_; }; } // namespace Model diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/GetAccountRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/GetAccountRequest.h index daab2e6b5..1160d2e63 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/GetAccountRequest.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/GetAccountRequest.h @@ -32,9 +32,12 @@ public: ~GetAccountRequest(); std::string getAccountId() const; void setAccountId(const std::string &accountId); + bool getIncludeTags() const; + void setIncludeTags(bool includeTags); private: std::string accountId_; + bool includeTags_; }; } // namespace Model } // namespace ResourceManager diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/GetAccountResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/GetAccountResult.h index 568b899f2..49a24410c 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/GetAccountResult.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/GetAccountResult.h @@ -34,18 +34,25 @@ namespace AlibabaCloud public: struct Account { + struct Tag + { + std::string value; + std::string key; + }; std::string status; - std::string identityInformation; - std::string joinMethod; std::string modifyTime; - std::string type; std::string resourceDirectoryId; std::string accountId; + std::string folderId; + std::string identityInformation; + std::string joinMethod; + std::string type; std::string displayName; std::string joinTime; - std::string folderId; + std::vector tags; std::string accountName; std::string resourceDirectoryPath; + std::string location; }; diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceDirectoryResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceDirectoryResult.h index 2bab62845..be93c42eb 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceDirectoryResult.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceDirectoryResult.h @@ -34,6 +34,7 @@ namespace AlibabaCloud public: struct ResourceDirectory { + std::string identityInformation; std::string resourceDirectoryId; std::string scpStatus; std::string memberDeletionStatus; diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupListAclModeRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupListAclModeRequest.h new file mode 100644 index 000000000..e87c0ff2b --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupListAclModeRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RESOURCEMANAGER_MODEL_GETRESOURCEGROUPLISTACLMODEREQUEST_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_GETRESOURCEGROUPLISTACLMODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceManager { +namespace Model { +class ALIBABACLOUD_RESOURCEMANAGER_EXPORT GetResourceGroupListAclModeRequest : public RpcServiceRequest { +public: + GetResourceGroupListAclModeRequest(); + ~GetResourceGroupListAclModeRequest(); + +private: +}; +} // namespace Model +} // namespace ResourceManager +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_GETRESOURCEGROUPLISTACLMODEREQUEST_H_ diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupListAclModeResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupListAclModeResult.h new file mode 100644 index 000000000..7d88287bd --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupListAclModeResult.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_RESOURCEMANAGER_MODEL_GETRESOURCEGROUPLISTACLMODERESULT_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_GETRESOURCEGROUPLISTACLMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceManager + { + namespace Model + { + class ALIBABACLOUD_RESOURCEMANAGER_EXPORT GetResourceGroupListAclModeResult : public ServiceResult + { + public: + + + GetResourceGroupListAclModeResult(); + explicit GetResourceGroupListAclModeResult(const std::string &payload); + ~GetResourceGroupListAclModeResult(); + std::string getMode()const; + + protected: + void parse(const std::string &payload); + private: + std::string mode_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_GETRESOURCEGROUPLISTACLMODERESULT_H_ \ No newline at end of file diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupRequest.h index dab403927..0e34b9d98 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupRequest.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupRequest.h @@ -32,9 +32,12 @@ public: ~GetResourceGroupRequest(); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); + bool getIncludeTags() const; + void setIncludeTags(bool includeTags); private: std::string resourceGroupId_; + bool includeTags_; }; } // namespace Model } // namespace ResourceManager diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupResult.h index 1491d0cc5..001d97996 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupResult.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/GetResourceGroupResult.h @@ -39,12 +39,18 @@ namespace AlibabaCloud std::string status; std::string regionId; }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; std::string status; std::vector regionStatuses; std::string accountId; std::string displayName; std::string id; std::string createDate; + std::vector tags; std::string name; }; diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/InviteAccountToResourceDirectoryRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/InviteAccountToResourceDirectoryRequest.h index 0d704eac4..4c0ae522c 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/InviteAccountToResourceDirectoryRequest.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/InviteAccountToResourceDirectoryRequest.h @@ -28,18 +28,25 @@ namespace ResourceManager { namespace Model { class ALIBABACLOUD_RESOURCEMANAGER_EXPORT InviteAccountToResourceDirectoryRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; InviteAccountToResourceDirectoryRequest(); ~InviteAccountToResourceDirectoryRequest(); std::string getNote() const; void setNote(const std::string ¬e); std::string getTargetType() const; void setTargetType(const std::string &targetType); + std::vector getTag() const; + void setTag(const std::vector &tag); std::string getTargetEntity() const; void setTargetEntity(const std::string &targetEntity); private: std::string note_; std::string targetType_; + std::vector tag_; std::string targetEntity_; }; } // namespace Model diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsForParentRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsForParentRequest.h index c649abd0b..c6f2d1c09 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsForParentRequest.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsForParentRequest.h @@ -28,6 +28,10 @@ namespace ResourceManager { namespace Model { class ALIBABACLOUD_RESOURCEMANAGER_EXPORT ListAccountsForParentRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; ListAccountsForParentRequest(); ~ListAccountsForParentRequest(); std::string getQueryKeyword() const; @@ -36,14 +40,20 @@ public: void setPageNumber(int pageNumber); std::string getParentFolderId() const; void setParentFolderId(const std::string &parentFolderId); + bool getIncludeTags() const; + void setIncludeTags(bool includeTags); int getPageSize() const; void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); private: std::string queryKeyword_; int pageNumber_; std::string parentFolderId_; + bool includeTags_; int pageSize_; + std::vector tag_; }; } // namespace Model } // namespace ResourceManager diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsForParentResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsForParentResult.h index 3a1645057..61128352f 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsForParentResult.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsForParentResult.h @@ -34,6 +34,11 @@ namespace AlibabaCloud public: struct Account { + struct Tag + { + std::string value; + std::string key; + }; std::string status; std::string joinMethod; std::string modifyTime; @@ -43,6 +48,7 @@ namespace AlibabaCloud std::string displayName; std::string joinTime; std::string folderId; + std::vector tags; }; diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsRequest.h index 1d8faab82..f05a76385 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsRequest.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsRequest.h @@ -28,16 +28,26 @@ namespace ResourceManager { namespace Model { class ALIBABACLOUD_RESOURCEMANAGER_EXPORT ListAccountsRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; ListAccountsRequest(); ~ListAccountsRequest(); int getPageNumber() const; void setPageNumber(int pageNumber); + bool getIncludeTags() const; + void setIncludeTags(bool includeTags); int getPageSize() const; void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); private: int pageNumber_; + bool includeTags_; int pageSize_; + std::vector tag_; }; } // namespace Model } // namespace ResourceManager diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsResult.h index 94192cdd2..c1901726b 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsResult.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ListAccountsResult.h @@ -34,6 +34,11 @@ namespace AlibabaCloud public: struct Account { + struct Tag + { + std::string value; + std::string key; + }; std::string status; std::string joinMethod; std::string modifyTime; @@ -43,6 +48,7 @@ namespace AlibabaCloud std::string displayName; std::string joinTime; std::string folderId; + std::vector tags; std::string resourceDirectoryPath; }; diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ListResourceGroupsRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ListResourceGroupsRequest.h index 46c5d4400..10dfd42d0 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/ListResourceGroupsRequest.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ListResourceGroupsRequest.h @@ -28,6 +28,10 @@ namespace ResourceManager { namespace Model { class ALIBABACLOUD_RESOURCEMANAGER_EXPORT ListResourceGroupsRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; ListResourceGroupsRequest(); ~ListResourceGroupsRequest(); int getPageNumber() const; @@ -36,6 +40,12 @@ public: void setResourceGroupId(const std::string &resourceGroupId); int getPageSize() const; void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceGroupIds() const; + void setResourceGroupIds(const std::vector &resourceGroupIds); + bool getIncludeTags() const; + void setIncludeTags(bool includeTags); std::string getDisplayName() const; void setDisplayName(const std::string &displayName); std::string getName() const; @@ -47,6 +57,9 @@ private: int pageNumber_; std::string resourceGroupId_; int pageSize_; + std::vector tag_; + std::vector resourceGroupIds_; + bool includeTags_; std::string displayName_; std::string name_; std::string status_; diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ListResourceGroupsResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ListResourceGroupsResult.h index 306e2d88e..cb4cb80d9 100644 --- a/resourcemanager/include/alibabacloud/resourcemanager/model/ListResourceGroupsResult.h +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ListResourceGroupsResult.h @@ -34,11 +34,17 @@ namespace AlibabaCloud public: struct ResourceGroup { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; std::string status; std::string accountId; std::string displayName; std::string id; std::string createDate; + std::vector tags; std::string name; }; @@ -50,6 +56,7 @@ namespace AlibabaCloud int getPageSize()const; int getPageNumber()const; std::vector getResourceGroups()const; + std::string getResourceGroupListAclMode()const; protected: void parse(const std::string &payload); @@ -58,6 +65,7 @@ namespace AlibabaCloud int pageSize_; int pageNumber_; std::vector resourceGroups_; + std::string resourceGroupListAclMode_; }; } diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagKeysRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagKeysRequest.h new file mode 100644 index 000000000..f5db31f2b --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagKeysRequest.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_RESOURCEMANAGER_MODEL_LISTTAGKEYSREQUEST_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGKEYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceManager { +namespace Model { +class ALIBABACLOUD_RESOURCEMANAGER_EXPORT ListTagKeysRequest : public RpcServiceRequest { +public: + ListTagKeysRequest(); + ~ListTagKeysRequest(); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getKeyFilter() const; + void setKeyFilter(const std::string &keyFilter); + +private: + std::string resourceType_; + std::string nextToken_; + int maxResults_; + std::string keyFilter_; +}; +} // namespace Model +} // namespace ResourceManager +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGKEYSREQUEST_H_ diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagKeysResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagKeysResult.h new file mode 100644 index 000000000..018287af7 --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagKeysResult.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_RESOURCEMANAGER_MODEL_LISTTAGKEYSRESULT_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGKEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceManager + { + namespace Model + { + class ALIBABACLOUD_RESOURCEMANAGER_EXPORT ListTagKeysResult : public ServiceResult + { + public: + struct Tag + { + std::string key; + }; + + + ListTagKeysResult(); + explicit ListTagKeysResult(const std::string &payload); + ~ListTagKeysResult(); + std::string getNextToken()const; + std::vector getTags()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGKEYSRESULT_H_ \ No newline at end of file diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagResourcesRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..aef21af1f --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagResourcesRequest.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_RESOURCEMANAGER_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceManager { +namespace Model { +class ALIBABACLOUD_RESOURCEMANAGER_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::vector resourceId_; + std::string resourceType_; + std::string nextToken_; + int maxResults_; + std::vector tag_; +}; +} // namespace Model +} // namespace ResourceManager +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagResourcesResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagResourcesResult.h new file mode 100644 index 000000000..da197ff7a --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagResourcesResult.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_RESOURCEMANAGER_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceManager + { + namespace Model + { + class ALIBABACLOUD_RESOURCEMANAGER_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagValuesRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagValuesRequest.h new file mode 100644 index 000000000..debec55d5 --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagValuesRequest.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_RESOURCEMANAGER_MODEL_LISTTAGVALUESREQUEST_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGVALUESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceManager { +namespace Model { +class ALIBABACLOUD_RESOURCEMANAGER_EXPORT ListTagValuesRequest : public RpcServiceRequest { +public: + ListTagValuesRequest(); + ~ListTagValuesRequest(); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getValueFilter() const; + void setValueFilter(const std::string &valueFilter); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getTagKey() const; + void setTagKey(const std::string &tagKey); + +private: + std::string resourceType_; + std::string valueFilter_; + std::string nextToken_; + int maxResults_; + std::string tagKey_; +}; +} // namespace Model +} // namespace ResourceManager +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGVALUESREQUEST_H_ diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagValuesResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagValuesResult.h new file mode 100644 index 000000000..53d704cb9 --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/ListTagValuesResult.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_RESOURCEMANAGER_MODEL_LISTTAGVALUESRESULT_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGVALUESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceManager + { + namespace Model + { + class ALIBABACLOUD_RESOURCEMANAGER_EXPORT ListTagValuesResult : public ServiceResult + { + public: + struct Tag + { + std::string value; + }; + + + ListTagValuesResult(); + explicit ListTagValuesResult(const std::string &payload); + ~ListTagValuesResult(); + std::string getNextToken()const; + std::vector getTags()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGVALUESRESULT_H_ \ No newline at end of file diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/SetMemberDeletionPermissionRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/SetMemberDeletionPermissionRequest.h new file mode 100644 index 000000000..4f65e67e5 --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/SetMemberDeletionPermissionRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RESOURCEMANAGER_MODEL_SETMEMBERDELETIONPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_SETMEMBERDELETIONPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceManager { +namespace Model { +class ALIBABACLOUD_RESOURCEMANAGER_EXPORT SetMemberDeletionPermissionRequest : public RpcServiceRequest { +public: + SetMemberDeletionPermissionRequest(); + ~SetMemberDeletionPermissionRequest(); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string status_; +}; +} // namespace Model +} // namespace ResourceManager +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_SETMEMBERDELETIONPERMISSIONREQUEST_H_ diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/SetMemberDeletionPermissionResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/SetMemberDeletionPermissionResult.h new file mode 100644 index 000000000..b3b98ed37 --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/SetMemberDeletionPermissionResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_RESOURCEMANAGER_MODEL_SETMEMBERDELETIONPERMISSIONRESULT_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_SETMEMBERDELETIONPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceManager + { + namespace Model + { + class ALIBABACLOUD_RESOURCEMANAGER_EXPORT SetMemberDeletionPermissionResult : public ServiceResult + { + public: + + + SetMemberDeletionPermissionResult(); + explicit SetMemberDeletionPermissionResult(const std::string &payload); + ~SetMemberDeletionPermissionResult(); + std::string getResourceDirectoryId()const; + std::string getMemberDeletionStatus()const; + std::string getManagementAccountId()const; + + protected: + void parse(const std::string &payload); + private: + std::string resourceDirectoryId_; + std::string memberDeletionStatus_; + std::string managementAccountId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_SETMEMBERDELETIONPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/TagResourcesRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/TagResourcesRequest.h new file mode 100644 index 000000000..cb615bae2 --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/TagResourcesRequest.h @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_RESOURCEMANAGER_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceManager { +namespace Model { +class ALIBABACLOUD_RESOURCEMANAGER_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::vector resourceId_; + std::string resourceType_; + std::vector tag_; +}; +} // namespace Model +} // namespace ResourceManager +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/TagResourcesResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/TagResourcesResult.h new file mode 100644 index 000000000..330377758 --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/TagResourcesResult.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_RESOURCEMANAGER_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceManager + { + namespace Model + { + class ALIBABACLOUD_RESOURCEMANAGER_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/UntagResourcesRequest.h b/resourcemanager/include/alibabacloud/resourcemanager/model/UntagResourcesRequest.h new file mode 100644 index 000000000..64232f761 --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/UntagResourcesRequest.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_RESOURCEMANAGER_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceManager { +namespace Model { +class ALIBABACLOUD_RESOURCEMANAGER_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + bool getAll() const; + void setAll(bool all); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + bool all_; + std::vector resourceId_; + std::string resourceType_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace ResourceManager +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/resourcemanager/include/alibabacloud/resourcemanager/model/UntagResourcesResult.h b/resourcemanager/include/alibabacloud/resourcemanager/model/UntagResourcesResult.h new file mode 100644 index 000000000..f48b59d92 --- /dev/null +++ b/resourcemanager/include/alibabacloud/resourcemanager/model/UntagResourcesResult.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_RESOURCEMANAGER_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_RESOURCEMANAGER_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceManager + { + namespace Model + { + class ALIBABACLOUD_RESOURCEMANAGER_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/resourcemanager/src/ResourceManagerClient.cc b/resourcemanager/src/ResourceManagerClient.cc index 97a2cae61..7ef61e135 100644 --- a/resourcemanager/src/ResourceManagerClient.cc +++ b/resourcemanager/src/ResourceManagerClient.cc @@ -1527,6 +1527,42 @@ ResourceManagerClient::GetResourceGroupOutcomeCallable ResourceManagerClient::ge return task->get_future(); } +ResourceManagerClient::GetResourceGroupListAclModeOutcome ResourceManagerClient::getResourceGroupListAclMode(const GetResourceGroupListAclModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourceGroupListAclModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourceGroupListAclModeOutcome(GetResourceGroupListAclModeResult(outcome.result())); + else + return GetResourceGroupListAclModeOutcome(outcome.error()); +} + +void ResourceManagerClient::getResourceGroupListAclModeAsync(const GetResourceGroupListAclModeRequest& request, const GetResourceGroupListAclModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourceGroupListAclMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceManagerClient::GetResourceGroupListAclModeOutcomeCallable ResourceManagerClient::getResourceGroupListAclModeCallable(const GetResourceGroupListAclModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourceGroupListAclMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ResourceManagerClient::GetRoleOutcome ResourceManagerClient::getRole(const GetRoleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,6 +2283,114 @@ ResourceManagerClient::ListRolesOutcomeCallable ResourceManagerClient::listRoles return task->get_future(); } +ResourceManagerClient::ListTagKeysOutcome ResourceManagerClient::listTagKeys(const ListTagKeysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagKeysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagKeysOutcome(ListTagKeysResult(outcome.result())); + else + return ListTagKeysOutcome(outcome.error()); +} + +void ResourceManagerClient::listTagKeysAsync(const ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagKeys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceManagerClient::ListTagKeysOutcomeCallable ResourceManagerClient::listTagKeysCallable(const ListTagKeysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagKeys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceManagerClient::ListTagResourcesOutcome ResourceManagerClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void ResourceManagerClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceManagerClient::ListTagResourcesOutcomeCallable ResourceManagerClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceManagerClient::ListTagValuesOutcome ResourceManagerClient::listTagValues(const ListTagValuesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagValuesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagValuesOutcome(ListTagValuesResult(outcome.result())); + else + return ListTagValuesOutcome(outcome.error()); +} + +void ResourceManagerClient::listTagValuesAsync(const ListTagValuesRequest& request, const ListTagValuesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagValues(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceManagerClient::ListTagValuesOutcomeCallable ResourceManagerClient::listTagValuesCallable(const ListTagValuesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagValues(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ResourceManagerClient::ListTargetAttachmentsForControlPolicyOutcome ResourceManagerClient::listTargetAttachmentsForControlPolicy(const ListTargetAttachmentsForControlPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2679,6 +2823,114 @@ ResourceManagerClient::SetDefaultPolicyVersionOutcomeCallable ResourceManagerCli return task->get_future(); } +ResourceManagerClient::SetMemberDeletionPermissionOutcome ResourceManagerClient::setMemberDeletionPermission(const SetMemberDeletionPermissionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetMemberDeletionPermissionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetMemberDeletionPermissionOutcome(SetMemberDeletionPermissionResult(outcome.result())); + else + return SetMemberDeletionPermissionOutcome(outcome.error()); +} + +void ResourceManagerClient::setMemberDeletionPermissionAsync(const SetMemberDeletionPermissionRequest& request, const SetMemberDeletionPermissionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setMemberDeletionPermission(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceManagerClient::SetMemberDeletionPermissionOutcomeCallable ResourceManagerClient::setMemberDeletionPermissionCallable(const SetMemberDeletionPermissionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setMemberDeletionPermission(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceManagerClient::TagResourcesOutcome ResourceManagerClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void ResourceManagerClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceManagerClient::TagResourcesOutcomeCallable ResourceManagerClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceManagerClient::UntagResourcesOutcome ResourceManagerClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void ResourceManagerClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceManagerClient::UntagResourcesOutcomeCallable ResourceManagerClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ResourceManagerClient::UpdateAccountOutcome ResourceManagerClient::updateAccount(const UpdateAccountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/resourcemanager/src/model/CreateResourceAccountRequest.cc b/resourcemanager/src/model/CreateResourceAccountRequest.cc index 55ad09ba7..2b4ebe9e6 100644 --- a/resourcemanager/src/model/CreateResourceAccountRequest.cc +++ b/resourcemanager/src/model/CreateResourceAccountRequest.cc @@ -52,6 +52,18 @@ void CreateResourceAccountRequest::setDisplayName(const std::string &displayName setParameter(std::string("DisplayName"), displayName); } +std::vector CreateResourceAccountRequest::getTag() const { + return tag_; +} + +void CreateResourceAccountRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + std::string CreateResourceAccountRequest::getPayerAccountId() const { return payerAccountId_; } diff --git a/resourcemanager/src/model/GetAccountRequest.cc b/resourcemanager/src/model/GetAccountRequest.cc index 360a0932c..69763521f 100644 --- a/resourcemanager/src/model/GetAccountRequest.cc +++ b/resourcemanager/src/model/GetAccountRequest.cc @@ -34,3 +34,12 @@ void GetAccountRequest::setAccountId(const std::string &accountId) { setParameter(std::string("AccountId"), accountId); } +bool GetAccountRequest::getIncludeTags() const { + return includeTags_; +} + +void GetAccountRequest::setIncludeTags(bool includeTags) { + includeTags_ = includeTags; + setParameter(std::string("IncludeTags"), includeTags ? "true" : "false"); +} + diff --git a/resourcemanager/src/model/GetAccountResult.cc b/resourcemanager/src/model/GetAccountResult.cc index 7bbc9eecd..6ff48cf50 100644 --- a/resourcemanager/src/model/GetAccountResult.cc +++ b/resourcemanager/src/model/GetAccountResult.cc @@ -64,6 +64,18 @@ void GetAccountResult::parse(const std::string &payload) account_.accountName = accountNode["AccountName"].asString(); if(!accountNode["ResourceDirectoryPath"].isNull()) account_.resourceDirectoryPath = accountNode["ResourceDirectoryPath"].asString(); + if(!accountNode["Location"].isNull()) + account_.location = accountNode["Location"].asString(); + auto allTagsNode = accountNode["Tags"]["Tag"]; + for (auto accountNodeTagsTag : allTagsNode) + { + Account::Tag tagObject; + if(!accountNodeTagsTag["Key"].isNull()) + tagObject.key = accountNodeTagsTag["Key"].asString(); + if(!accountNodeTagsTag["Value"].isNull()) + tagObject.value = accountNodeTagsTag["Value"].asString(); + account_.tags.push_back(tagObject); + } } diff --git a/resourcemanager/src/model/GetResourceDirectoryResult.cc b/resourcemanager/src/model/GetResourceDirectoryResult.cc index b8e4fc79e..dfce3aa48 100644 --- a/resourcemanager/src/model/GetResourceDirectoryResult.cc +++ b/resourcemanager/src/model/GetResourceDirectoryResult.cc @@ -56,6 +56,8 @@ void GetResourceDirectoryResult::parse(const std::string &payload) resourceDirectory_.controlPolicyStatus = resourceDirectoryNode["ControlPolicyStatus"].asString(); if(!resourceDirectoryNode["MemberDeletionStatus"].isNull()) resourceDirectory_.memberDeletionStatus = resourceDirectoryNode["MemberDeletionStatus"].asString(); + if(!resourceDirectoryNode["IdentityInformation"].isNull()) + resourceDirectory_.identityInformation = resourceDirectoryNode["IdentityInformation"].asString(); } diff --git a/resourcemanager/src/model/GetResourceGroupListAclModeRequest.cc b/resourcemanager/src/model/GetResourceGroupListAclModeRequest.cc new file mode 100644 index 000000000..4d78caefe --- /dev/null +++ b/resourcemanager/src/model/GetResourceGroupListAclModeRequest.cc @@ -0,0 +1,27 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ResourceManager::Model::GetResourceGroupListAclModeRequest; + +GetResourceGroupListAclModeRequest::GetResourceGroupListAclModeRequest() + : RpcServiceRequest("resourcemanager", "2020-03-31", "GetResourceGroupListAclMode") { + setMethod(HttpRequest::Method::Get); +} + +GetResourceGroupListAclModeRequest::~GetResourceGroupListAclModeRequest() {} + diff --git a/resourcemanager/src/model/GetResourceGroupListAclModeResult.cc b/resourcemanager/src/model/GetResourceGroupListAclModeResult.cc new file mode 100644 index 000000000..b560bf811 --- /dev/null +++ b/resourcemanager/src/model/GetResourceGroupListAclModeResult.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::ResourceManager; +using namespace AlibabaCloud::ResourceManager::Model; + +GetResourceGroupListAclModeResult::GetResourceGroupListAclModeResult() : + ServiceResult() +{} + +GetResourceGroupListAclModeResult::GetResourceGroupListAclModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourceGroupListAclModeResult::~GetResourceGroupListAclModeResult() +{} + +void GetResourceGroupListAclModeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Mode"].isNull()) + mode_ = value["Mode"].asString(); + +} + +std::string GetResourceGroupListAclModeResult::getMode()const +{ + return mode_; +} + diff --git a/resourcemanager/src/model/GetResourceGroupRequest.cc b/resourcemanager/src/model/GetResourceGroupRequest.cc index 1da1a5d65..afa5aed95 100644 --- a/resourcemanager/src/model/GetResourceGroupRequest.cc +++ b/resourcemanager/src/model/GetResourceGroupRequest.cc @@ -34,3 +34,12 @@ void GetResourceGroupRequest::setResourceGroupId(const std::string &resourceGrou setParameter(std::string("ResourceGroupId"), resourceGroupId); } +bool GetResourceGroupRequest::getIncludeTags() const { + return includeTags_; +} + +void GetResourceGroupRequest::setIncludeTags(bool includeTags) { + includeTags_ = includeTags; + setParameter(std::string("IncludeTags"), includeTags ? "true" : "false"); +} + diff --git a/resourcemanager/src/model/GetResourceGroupResult.cc b/resourcemanager/src/model/GetResourceGroupResult.cc index 9e5fcef8f..5dedc57df 100644 --- a/resourcemanager/src/model/GetResourceGroupResult.cc +++ b/resourcemanager/src/model/GetResourceGroupResult.cc @@ -62,6 +62,16 @@ void GetResourceGroupResult::parse(const std::string &payload) regionStatusObject.regionId = resourceGroupNodeRegionStatusesRegionStatus["RegionId"].asString(); resourceGroup_.regionStatuses.push_back(regionStatusObject); } + auto allTagsNode = resourceGroupNode["Tags"]["Tag"]; + for (auto resourceGroupNodeTagsTag : allTagsNode) + { + ResourceGroup::Tag tagObject; + if(!resourceGroupNodeTagsTag["TagKey"].isNull()) + tagObject.tagKey = resourceGroupNodeTagsTag["TagKey"].asString(); + if(!resourceGroupNodeTagsTag["TagValue"].isNull()) + tagObject.tagValue = resourceGroupNodeTagsTag["TagValue"].asString(); + resourceGroup_.tags.push_back(tagObject); + } } diff --git a/resourcemanager/src/model/InviteAccountToResourceDirectoryRequest.cc b/resourcemanager/src/model/InviteAccountToResourceDirectoryRequest.cc index 7de6b4c85..3cac0fd20 100644 --- a/resourcemanager/src/model/InviteAccountToResourceDirectoryRequest.cc +++ b/resourcemanager/src/model/InviteAccountToResourceDirectoryRequest.cc @@ -43,6 +43,18 @@ void InviteAccountToResourceDirectoryRequest::setTargetType(const std::string &t setParameter(std::string("TargetType"), targetType); } +std::vector InviteAccountToResourceDirectoryRequest::getTag() const { + return tag_; +} + +void InviteAccountToResourceDirectoryRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + std::string InviteAccountToResourceDirectoryRequest::getTargetEntity() const { return targetEntity_; } diff --git a/resourcemanager/src/model/ListAccountsForParentRequest.cc b/resourcemanager/src/model/ListAccountsForParentRequest.cc index 96b4045f7..5bfbed0b5 100644 --- a/resourcemanager/src/model/ListAccountsForParentRequest.cc +++ b/resourcemanager/src/model/ListAccountsForParentRequest.cc @@ -52,6 +52,15 @@ void ListAccountsForParentRequest::setParentFolderId(const std::string &parentFo setParameter(std::string("ParentFolderId"), parentFolderId); } +bool ListAccountsForParentRequest::getIncludeTags() const { + return includeTags_; +} + +void ListAccountsForParentRequest::setIncludeTags(bool includeTags) { + includeTags_ = includeTags; + setParameter(std::string("IncludeTags"), includeTags ? "true" : "false"); +} + int ListAccountsForParentRequest::getPageSize() const { return pageSize_; } @@ -61,3 +70,15 @@ void ListAccountsForParentRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::vector ListAccountsForParentRequest::getTag() const { + return tag_; +} + +void ListAccountsForParentRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + diff --git a/resourcemanager/src/model/ListAccountsForParentResult.cc b/resourcemanager/src/model/ListAccountsForParentResult.cc index e12d49ee3..bd0246dc1 100644 --- a/resourcemanager/src/model/ListAccountsForParentResult.cc +++ b/resourcemanager/src/model/ListAccountsForParentResult.cc @@ -61,6 +61,16 @@ void ListAccountsForParentResult::parse(const std::string &payload) accountsObject.joinMethod = valueAccountsAccount["JoinMethod"].asString(); if(!valueAccountsAccount["ModifyTime"].isNull()) accountsObject.modifyTime = valueAccountsAccount["ModifyTime"].asString(); + auto allTagsNode = valueAccountsAccount["Tags"]["Tag"]; + for (auto valueAccountsAccountTagsTag : allTagsNode) + { + Account::Tag tagsObject; + if(!valueAccountsAccountTagsTag["Key"].isNull()) + tagsObject.key = valueAccountsAccountTagsTag["Key"].asString(); + if(!valueAccountsAccountTagsTag["Value"].isNull()) + tagsObject.value = valueAccountsAccountTagsTag["Value"].asString(); + accountsObject.tags.push_back(tagsObject); + } accounts_.push_back(accountsObject); } if(!value["TotalCount"].isNull()) diff --git a/resourcemanager/src/model/ListAccountsRequest.cc b/resourcemanager/src/model/ListAccountsRequest.cc index 1e9b9b8bc..978ab7942 100644 --- a/resourcemanager/src/model/ListAccountsRequest.cc +++ b/resourcemanager/src/model/ListAccountsRequest.cc @@ -34,6 +34,15 @@ void ListAccountsRequest::setPageNumber(int pageNumber) { setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } +bool ListAccountsRequest::getIncludeTags() const { + return includeTags_; +} + +void ListAccountsRequest::setIncludeTags(bool includeTags) { + includeTags_ = includeTags; + setParameter(std::string("IncludeTags"), includeTags ? "true" : "false"); +} + int ListAccountsRequest::getPageSize() const { return pageSize_; } @@ -43,3 +52,15 @@ void ListAccountsRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::vector ListAccountsRequest::getTag() const { + return tag_; +} + +void ListAccountsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + diff --git a/resourcemanager/src/model/ListAccountsResult.cc b/resourcemanager/src/model/ListAccountsResult.cc index a4df7329d..d73a755ea 100644 --- a/resourcemanager/src/model/ListAccountsResult.cc +++ b/resourcemanager/src/model/ListAccountsResult.cc @@ -63,6 +63,16 @@ void ListAccountsResult::parse(const std::string &payload) accountsObject.modifyTime = valueAccountsAccount["ModifyTime"].asString(); if(!valueAccountsAccount["ResourceDirectoryPath"].isNull()) accountsObject.resourceDirectoryPath = valueAccountsAccount["ResourceDirectoryPath"].asString(); + auto allTagsNode = valueAccountsAccount["Tags"]["Tag"]; + for (auto valueAccountsAccountTagsTag : allTagsNode) + { + Account::Tag tagsObject; + if(!valueAccountsAccountTagsTag["Key"].isNull()) + tagsObject.key = valueAccountsAccountTagsTag["Key"].asString(); + if(!valueAccountsAccountTagsTag["Value"].isNull()) + tagsObject.value = valueAccountsAccountTagsTag["Value"].asString(); + accountsObject.tags.push_back(tagsObject); + } accounts_.push_back(accountsObject); } if(!value["TotalCount"].isNull()) diff --git a/resourcemanager/src/model/ListResourceGroupsRequest.cc b/resourcemanager/src/model/ListResourceGroupsRequest.cc index 23be8f88e..5b9ab5872 100644 --- a/resourcemanager/src/model/ListResourceGroupsRequest.cc +++ b/resourcemanager/src/model/ListResourceGroupsRequest.cc @@ -52,6 +52,38 @@ void ListResourceGroupsRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::vector ListResourceGroupsRequest::getTag() const { + return tag_; +} + +void ListResourceGroupsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + +std::vector ListResourceGroupsRequest::getResourceGroupIds() const { + return resourceGroupIds_; +} + +void ListResourceGroupsRequest::setResourceGroupIds(const std::vector &resourceGroupIds) { + resourceGroupIds_ = resourceGroupIds; + for(int dep1 = 0; dep1 != resourceGroupIds.size(); dep1++) { + setParameter(std::string("ResourceGroupIds") + "." + std::to_string(dep1 + 1), resourceGroupIds[dep1]); + } +} + +bool ListResourceGroupsRequest::getIncludeTags() const { + return includeTags_; +} + +void ListResourceGroupsRequest::setIncludeTags(bool includeTags) { + includeTags_ = includeTags; + setParameter(std::string("IncludeTags"), includeTags ? "true" : "false"); +} + std::string ListResourceGroupsRequest::getDisplayName() const { return displayName_; } diff --git a/resourcemanager/src/model/ListResourceGroupsResult.cc b/resourcemanager/src/model/ListResourceGroupsResult.cc index 9bf5bd61b..87b9e5dac 100644 --- a/resourcemanager/src/model/ListResourceGroupsResult.cc +++ b/resourcemanager/src/model/ListResourceGroupsResult.cc @@ -55,6 +55,16 @@ void ListResourceGroupsResult::parse(const std::string &payload) resourceGroupsObject.createDate = valueResourceGroupsResourceGroup["CreateDate"].asString(); if(!valueResourceGroupsResourceGroup["Id"].isNull()) resourceGroupsObject.id = valueResourceGroupsResourceGroup["Id"].asString(); + auto allTagsNode = valueResourceGroupsResourceGroup["Tags"]["Tag"]; + for (auto valueResourceGroupsResourceGroupTagsTag : allTagsNode) + { + ResourceGroup::Tag tagsObject; + if(!valueResourceGroupsResourceGroupTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueResourceGroupsResourceGroupTagsTag["TagKey"].asString(); + if(!valueResourceGroupsResourceGroupTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueResourceGroupsResourceGroupTagsTag["TagValue"].asString(); + resourceGroupsObject.tags.push_back(tagsObject); + } resourceGroups_.push_back(resourceGroupsObject); } if(!value["TotalCount"].isNull()) @@ -63,6 +73,8 @@ void ListResourceGroupsResult::parse(const std::string &payload) pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["ResourceGroupListAclMode"].isNull()) + resourceGroupListAclMode_ = value["ResourceGroupListAclMode"].asString(); } @@ -86,3 +98,8 @@ std::vector ListResourceGroupsResult::g return resourceGroups_; } +std::string ListResourceGroupsResult::getResourceGroupListAclMode()const +{ + return resourceGroupListAclMode_; +} + diff --git a/resourcemanager/src/model/ListTagKeysRequest.cc b/resourcemanager/src/model/ListTagKeysRequest.cc new file mode 100644 index 000000000..0e63aeb44 --- /dev/null +++ b/resourcemanager/src/model/ListTagKeysRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::ResourceManager::Model::ListTagKeysRequest; + +ListTagKeysRequest::ListTagKeysRequest() + : RpcServiceRequest("resourcemanager", "2020-03-31", "ListTagKeys") { + setMethod(HttpRequest::Method::Post); +} + +ListTagKeysRequest::~ListTagKeysRequest() {} + +std::string ListTagKeysRequest::getResourceType() const { + return resourceType_; +} + +void ListTagKeysRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ListTagKeysRequest::getNextToken() const { + return nextToken_; +} + +void ListTagKeysRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListTagKeysRequest::getMaxResults() const { + return maxResults_; +} + +void ListTagKeysRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListTagKeysRequest::getKeyFilter() const { + return keyFilter_; +} + +void ListTagKeysRequest::setKeyFilter(const std::string &keyFilter) { + keyFilter_ = keyFilter; + setParameter(std::string("KeyFilter"), keyFilter); +} + diff --git a/resourcemanager/src/model/ListTagKeysResult.cc b/resourcemanager/src/model/ListTagKeysResult.cc new file mode 100644 index 000000000..4897aef25 --- /dev/null +++ b/resourcemanager/src/model/ListTagKeysResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ResourceManager; +using namespace AlibabaCloud::ResourceManager::Model; + +ListTagKeysResult::ListTagKeysResult() : + ServiceResult() +{} + +ListTagKeysResult::ListTagKeysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagKeysResult::~ListTagKeysResult() +{} + +void ListTagKeysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["Tag"]; + for (auto valueTagsTag : allTagsNode) + { + Tag tagsObject; + if(!valueTagsTag["Key"].isNull()) + tagsObject.key = valueTagsTag["Key"].asString(); + tags_.push_back(tagsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagKeysResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagKeysResult::getTags()const +{ + return tags_; +} + diff --git a/resourcemanager/src/model/ListTagResourcesRequest.cc b/resourcemanager/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..3eef235a0 --- /dev/null +++ b/resourcemanager/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ResourceManager::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("resourcemanager", "2020-03-31", "ListTagResources") { + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; + for(int dep1 = 0; dep1 != resourceId.size(); dep1++) { + setParameter(std::string("ResourceId") + "." + std::to_string(dep1 + 1), resourceId[dep1]); + } +} + +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListTagResourcesRequest::getMaxResults() const { + return maxResults_; +} + +void ListTagResourcesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::vector ListTagResourcesRequest::getTag() const { + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + diff --git a/resourcemanager/src/model/ListTagResourcesResult.cc b/resourcemanager/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..adb276288 --- /dev/null +++ b/resourcemanager/src/model/ListTagResourcesResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ResourceManager; +using namespace AlibabaCloud::ResourceManager::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/resourcemanager/src/model/ListTagValuesRequest.cc b/resourcemanager/src/model/ListTagValuesRequest.cc new file mode 100644 index 000000000..b33c358ca --- /dev/null +++ b/resourcemanager/src/model/ListTagValuesRequest.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::ResourceManager::Model::ListTagValuesRequest; + +ListTagValuesRequest::ListTagValuesRequest() + : RpcServiceRequest("resourcemanager", "2020-03-31", "ListTagValues") { + setMethod(HttpRequest::Method::Post); +} + +ListTagValuesRequest::~ListTagValuesRequest() {} + +std::string ListTagValuesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagValuesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ListTagValuesRequest::getValueFilter() const { + return valueFilter_; +} + +void ListTagValuesRequest::setValueFilter(const std::string &valueFilter) { + valueFilter_ = valueFilter; + setParameter(std::string("ValueFilter"), valueFilter); +} + +std::string ListTagValuesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagValuesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListTagValuesRequest::getMaxResults() const { + return maxResults_; +} + +void ListTagValuesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListTagValuesRequest::getTagKey() const { + return tagKey_; +} + +void ListTagValuesRequest::setTagKey(const std::string &tagKey) { + tagKey_ = tagKey; + setParameter(std::string("TagKey"), tagKey); +} + diff --git a/resourcemanager/src/model/ListTagValuesResult.cc b/resourcemanager/src/model/ListTagValuesResult.cc new file mode 100644 index 000000000..4f9e1ac5e --- /dev/null +++ b/resourcemanager/src/model/ListTagValuesResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ResourceManager; +using namespace AlibabaCloud::ResourceManager::Model; + +ListTagValuesResult::ListTagValuesResult() : + ServiceResult() +{} + +ListTagValuesResult::ListTagValuesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagValuesResult::~ListTagValuesResult() +{} + +void ListTagValuesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["Tag"]; + for (auto valueTagsTag : allTagsNode) + { + Tag tagsObject; + if(!valueTagsTag["Value"].isNull()) + tagsObject.value = valueTagsTag["Value"].asString(); + tags_.push_back(tagsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagValuesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagValuesResult::getTags()const +{ + return tags_; +} + diff --git a/resourcemanager/src/model/SetMemberDeletionPermissionRequest.cc b/resourcemanager/src/model/SetMemberDeletionPermissionRequest.cc new file mode 100644 index 000000000..16133e05f --- /dev/null +++ b/resourcemanager/src/model/SetMemberDeletionPermissionRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ResourceManager::Model::SetMemberDeletionPermissionRequest; + +SetMemberDeletionPermissionRequest::SetMemberDeletionPermissionRequest() + : RpcServiceRequest("resourcemanager", "2020-03-31", "SetMemberDeletionPermission") { + setMethod(HttpRequest::Method::Post); +} + +SetMemberDeletionPermissionRequest::~SetMemberDeletionPermissionRequest() {} + +std::string SetMemberDeletionPermissionRequest::getStatus() const { + return status_; +} + +void SetMemberDeletionPermissionRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/resourcemanager/src/model/SetMemberDeletionPermissionResult.cc b/resourcemanager/src/model/SetMemberDeletionPermissionResult.cc new file mode 100644 index 000000000..cb4671457 --- /dev/null +++ b/resourcemanager/src/model/SetMemberDeletionPermissionResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::ResourceManager; +using namespace AlibabaCloud::ResourceManager::Model; + +SetMemberDeletionPermissionResult::SetMemberDeletionPermissionResult() : + ServiceResult() +{} + +SetMemberDeletionPermissionResult::SetMemberDeletionPermissionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetMemberDeletionPermissionResult::~SetMemberDeletionPermissionResult() +{} + +void SetMemberDeletionPermissionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["MemberDeletionStatus"].isNull()) + memberDeletionStatus_ = value["MemberDeletionStatus"].asString(); + if(!value["ManagementAccountId"].isNull()) + managementAccountId_ = value["ManagementAccountId"].asString(); + if(!value["ResourceDirectoryId"].isNull()) + resourceDirectoryId_ = value["ResourceDirectoryId"].asString(); + +} + +std::string SetMemberDeletionPermissionResult::getResourceDirectoryId()const +{ + return resourceDirectoryId_; +} + +std::string SetMemberDeletionPermissionResult::getMemberDeletionStatus()const +{ + return memberDeletionStatus_; +} + +std::string SetMemberDeletionPermissionResult::getManagementAccountId()const +{ + return managementAccountId_; +} + diff --git a/resourcemanager/src/model/TagResourcesRequest.cc b/resourcemanager/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..652ce052f --- /dev/null +++ b/resourcemanager/src/model/TagResourcesRequest.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 + +using AlibabaCloud::ResourceManager::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("resourcemanager", "2020-03-31", "TagResources") { + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; + for(int dep1 = 0; dep1 != resourceId.size(); dep1++) { + setParameter(std::string("ResourceId") + "." + std::to_string(dep1 + 1), resourceId[dep1]); + } +} + +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::vector TagResourcesRequest::getTag() const { + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Value", tag[dep1].value); + setParameter(std::string("Tag") + "." + std::to_string(dep1 + 1) + ".Key", tag[dep1].key); + } +} + diff --git a/resourcemanager/src/model/TagResourcesResult.cc b/resourcemanager/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..6be14b5ff --- /dev/null +++ b/resourcemanager/src/model/TagResourcesResult.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::ResourceManager; +using namespace AlibabaCloud::ResourceManager::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/resourcemanager/src/model/UntagResourcesRequest.cc b/resourcemanager/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..8542cdf32 --- /dev/null +++ b/resourcemanager/src/model/UntagResourcesRequest.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::ResourceManager::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("resourcemanager", "2020-03-31", "UntagResources") { + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesRequest::~UntagResourcesRequest() {} + +bool UntagResourcesRequest::getAll() const { + return all_; +} + +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); +} + +std::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; + for(int dep1 = 0; dep1 != resourceId.size(); dep1++) { + setParameter(std::string("ResourceId") + "." + std::to_string(dep1 + 1), resourceId[dep1]); + } +} + +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; + for(int dep1 = 0; dep1 != tagKey.size(); dep1++) { + setParameter(std::string("TagKey") + "." + std::to_string(dep1 + 1), tagKey[dep1]); + } +} + diff --git a/resourcemanager/src/model/UntagResourcesResult.cc b/resourcemanager/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..4c674a8f1 --- /dev/null +++ b/resourcemanager/src/model/UntagResourcesResult.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::ResourceManager; +using namespace AlibabaCloud::ResourceManager::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +