Supported more query conditions when searching resource group.

This commit is contained in:
sdk-team
2022-08-03 06:59:11 +00:00
parent 5e824d55da
commit fefb29dee6
59 changed files with 2136 additions and 5 deletions

View File

@@ -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<Error, Model::GetResourceGroupResult> GetResourceGroupOutcome;
typedef std::future<GetResourceGroupOutcome> GetResourceGroupOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::GetResourceGroupRequest&, const GetResourceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceGroupAsyncHandler;
typedef Outcome<Error, Model::GetResourceGroupListAclModeResult> GetResourceGroupListAclModeOutcome;
typedef std::future<GetResourceGroupListAclModeOutcome> GetResourceGroupListAclModeOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::GetResourceGroupListAclModeRequest&, const GetResourceGroupListAclModeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceGroupListAclModeAsyncHandler;
typedef Outcome<Error, Model::GetRoleResult> GetRoleOutcome;
typedef std::future<GetRoleOutcome> GetRoleOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::GetRoleRequest&, const GetRoleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRoleAsyncHandler;
@@ -370,6 +387,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListRolesResult> ListRolesOutcome;
typedef std::future<ListRolesOutcome> ListRolesOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::ListRolesRequest&, const ListRolesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRolesAsyncHandler;
typedef Outcome<Error, Model::ListTagKeysResult> ListTagKeysOutcome;
typedef std::future<ListTagKeysOutcome> ListTagKeysOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::ListTagKeysRequest&, const ListTagKeysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagKeysAsyncHandler;
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
typedef Outcome<Error, Model::ListTagValuesResult> ListTagValuesOutcome;
typedef std::future<ListTagValuesOutcome> ListTagValuesOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::ListTagValuesRequest&, const ListTagValuesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagValuesAsyncHandler;
typedef Outcome<Error, Model::ListTargetAttachmentsForControlPolicyResult> ListTargetAttachmentsForControlPolicyOutcome;
typedef std::future<ListTargetAttachmentsForControlPolicyOutcome> ListTargetAttachmentsForControlPolicyOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::ListTargetAttachmentsForControlPolicyRequest&, const ListTargetAttachmentsForControlPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTargetAttachmentsForControlPolicyAsyncHandler;
@@ -406,6 +432,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SetDefaultPolicyVersionResult> SetDefaultPolicyVersionOutcome;
typedef std::future<SetDefaultPolicyVersionOutcome> SetDefaultPolicyVersionOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::SetDefaultPolicyVersionRequest&, const SetDefaultPolicyVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetDefaultPolicyVersionAsyncHandler;
typedef Outcome<Error, Model::SetMemberDeletionPermissionResult> SetMemberDeletionPermissionOutcome;
typedef std::future<SetMemberDeletionPermissionOutcome> SetMemberDeletionPermissionOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::SetMemberDeletionPermissionRequest&, const SetMemberDeletionPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetMemberDeletionPermissionAsyncHandler;
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
typedef Outcome<Error, Model::UpdateAccountResult> UpdateAccountOutcome;
typedef std::future<UpdateAccountOutcome> UpdateAccountOutcomeCallable;
typedef std::function<void(const ResourceManagerClient*, const Model::UpdateAccountRequest&, const UpdateAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
UpdateAccountOutcomeCallable updateAccountCallable(const Model::UpdateAccountRequest& request) const;

View File

@@ -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<Tag> getTag() const;
void setTag(const std::vector<Tag> &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> tag_;
std::string payerAccountId_;
};
} // namespace Model

View File

@@ -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

View File

@@ -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<Tag> tags;
std::string accountName;
std::string resourceDirectoryPath;
std::string location;
};

View File

@@ -34,6 +34,7 @@ namespace AlibabaCloud
public:
struct ResourceDirectory
{
std::string identityInformation;
std::string resourceDirectoryId;
std::string scpStatus;
std::string memberDeletionStatus;

View File

@@ -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 <alibabacloud/resourcemanager/ResourceManagerExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcemanager/ResourceManagerExport.h>
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_

View File

@@ -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

View File

@@ -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<RegionStatus> regionStatuses;
std::string accountId;
std::string displayName;
std::string id;
std::string createDate;
std::vector<Tag> tags;
std::string name;
};

View File

@@ -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 &note);
std::string getTargetType() const;
void setTargetType(const std::string &targetType);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::string getTargetEntity() const;
void setTargetEntity(const std::string &targetEntity);
private:
std::string note_;
std::string targetType_;
std::vector<Tag> tag_;
std::string targetEntity_;
};
} // namespace Model

View File

@@ -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<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
private:
std::string queryKeyword_;
int pageNumber_;
std::string parentFolderId_;
bool includeTags_;
int pageSize_;
std::vector<Tag> tag_;
};
} // namespace Model
} // namespace ResourceManager

View File

@@ -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<Account::Tag> tags;
};

View File

@@ -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<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
private:
int pageNumber_;
bool includeTags_;
int pageSize_;
std::vector<Tag> tag_;
};
} // namespace Model
} // namespace ResourceManager

View File

@@ -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<Account::Tag> tags;
std::string resourceDirectoryPath;
};

View File

@@ -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<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
std::vector<std::string> getResourceGroupIds() const;
void setResourceGroupIds(const std::vector<std::string> &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> tag_;
std::vector<std::string> resourceGroupIds_;
bool includeTags_;
std::string displayName_;
std::string name_;
std::string status_;

View File

@@ -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<ResourceGroup::Tag> tags;
std::string name;
};
@@ -50,6 +56,7 @@ namespace AlibabaCloud
int getPageSize()const;
int getPageNumber()const;
std::vector<ResourceGroup> 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<ResourceGroup> resourceGroups_;
std::string resourceGroupListAclMode_;
};
}

View File

@@ -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 <alibabacloud/resourcemanager/ResourceManagerExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcemanager/ResourceManagerExport.h>
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<Tag> getTags()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::vector<Tag> tags_;
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGKEYSRESULT_H_

View File

@@ -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 <alibabacloud/resourcemanager/ResourceManagerExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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<std::string> getResourceId() const;
void setResourceId(const std::vector<std::string> &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<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
private:
std::vector<std::string> resourceId_;
std::string resourceType_;
std::string nextToken_;
int maxResults_;
std::vector<Tag> tag_;
};
} // namespace Model
} // namespace ResourceManager
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGRESOURCESREQUEST_H_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcemanager/ResourceManagerExport.h>
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<TagResource> getTagResources()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::vector<TagResource> tagResources_;
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGRESOURCESRESULT_H_

View File

@@ -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 <alibabacloud/resourcemanager/ResourceManagerExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcemanager/ResourceManagerExport.h>
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<Tag> getTags()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::vector<Tag> tags_;
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_LISTTAGVALUESRESULT_H_

View File

@@ -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 <alibabacloud/resourcemanager/ResourceManagerExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcemanager/ResourceManagerExport.h>
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_

View File

@@ -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 <alibabacloud/resourcemanager/ResourceManagerExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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<std::string> getResourceId() const;
void setResourceId(const std::vector<std::string> &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::vector<Tag> getTag() const;
void setTag(const std::vector<Tag> &tag);
private:
std::vector<std::string> resourceId_;
std::string resourceType_;
std::vector<Tag> tag_;
};
} // namespace Model
} // namespace ResourceManager
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_TAGRESOURCESREQUEST_H_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcemanager/ResourceManagerExport.h>
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_

View File

@@ -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 <alibabacloud/resourcemanager/ResourceManagerExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
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<std::string> getResourceId() const;
void setResourceId(const std::vector<std::string> &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::vector<std::string> getTagKey() const;
void setTagKey(const std::vector<std::string> &tagKey);
private:
bool all_;
std::vector<std::string> resourceId_;
std::string resourceType_;
std::vector<std::string> tagKey_;
};
} // namespace Model
} // namespace ResourceManager
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCEMANAGER_MODEL_UNTAGRESOURCESREQUEST_H_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcemanager/ResourceManagerExport.h>
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_