diff --git a/VERSION b/VERSION index eb42437fd..9137519e2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2079 \ No newline at end of file +1.36.2080 \ No newline at end of file diff --git a/eds-user/CMakeLists.txt b/eds-user/CMakeLists.txt index 599fcef1c..2d95e0e8c 100644 --- a/eds-user/CMakeLists.txt +++ b/eds-user/CMakeLists.txt @@ -29,6 +29,8 @@ set(eds-user_public_header_model include/alibabacloud/eds-user/model/CheckUsedPropertyResult.h include/alibabacloud/eds-user/model/CheckUsedPropertyValueRequest.h include/alibabacloud/eds-user/model/CheckUsedPropertyValueResult.h + include/alibabacloud/eds-user/model/CreateGroupRequest.h + include/alibabacloud/eds-user/model/CreateGroupResult.h include/alibabacloud/eds-user/model/CreateOrgRequest.h include/alibabacloud/eds-user/model/CreateOrgResult.h include/alibabacloud/eds-user/model/CreatePropertyRequest.h @@ -41,6 +43,10 @@ set(eds-user_public_header_model include/alibabacloud/eds-user/model/DeleteResourceGroupResult.h include/alibabacloud/eds-user/model/DeleteUserPropertyValueRequest.h include/alibabacloud/eds-user/model/DeleteUserPropertyValueResult.h + include/alibabacloud/eds-user/model/DescribeGroupUserRequest.h + include/alibabacloud/eds-user/model/DescribeGroupUserResult.h + include/alibabacloud/eds-user/model/DescribeGroupsRequest.h + include/alibabacloud/eds-user/model/DescribeGroupsResult.h include/alibabacloud/eds-user/model/DescribeMfaDevicesRequest.h include/alibabacloud/eds-user/model/DescribeMfaDevicesResult.h include/alibabacloud/eds-user/model/DescribeOrgByLayerRequest.h @@ -65,14 +71,20 @@ set(eds-user_public_header_model include/alibabacloud/eds-user/model/LockMfaDeviceResult.h include/alibabacloud/eds-user/model/LockUsersRequest.h include/alibabacloud/eds-user/model/LockUsersResult.h + include/alibabacloud/eds-user/model/ModifyGroupRequest.h + include/alibabacloud/eds-user/model/ModifyGroupResult.h include/alibabacloud/eds-user/model/ModifyOrgRequest.h include/alibabacloud/eds-user/model/ModifyOrgResult.h include/alibabacloud/eds-user/model/ModifyUserRequest.h include/alibabacloud/eds-user/model/ModifyUserResult.h include/alibabacloud/eds-user/model/MoveOrgRequest.h include/alibabacloud/eds-user/model/MoveOrgResult.h + include/alibabacloud/eds-user/model/MoveUserOrgRequest.h + include/alibabacloud/eds-user/model/MoveUserOrgResult.h include/alibabacloud/eds-user/model/QuerySyncStatusByAliUidRequest.h include/alibabacloud/eds-user/model/QuerySyncStatusByAliUidResult.h + include/alibabacloud/eds-user/model/RemoveGroupRequest.h + include/alibabacloud/eds-user/model/RemoveGroupResult.h include/alibabacloud/eds-user/model/RemoveMfaDeviceRequest.h include/alibabacloud/eds-user/model/RemoveMfaDeviceResult.h include/alibabacloud/eds-user/model/RemoveOrgRequest.h @@ -92,7 +104,11 @@ set(eds-user_public_header_model include/alibabacloud/eds-user/model/UnlockUsersRequest.h include/alibabacloud/eds-user/model/UnlockUsersResult.h include/alibabacloud/eds-user/model/UpdatePropertyRequest.h - include/alibabacloud/eds-user/model/UpdatePropertyResult.h ) + include/alibabacloud/eds-user/model/UpdatePropertyResult.h + include/alibabacloud/eds-user/model/UserBatchJoinGroupRequest.h + include/alibabacloud/eds-user/model/UserBatchJoinGroupResult.h + include/alibabacloud/eds-user/model/UserBatchQuitGroupRequest.h + include/alibabacloud/eds-user/model/UserBatchQuitGroupResult.h ) set(eds-user_src src/Eds-userClient.cc @@ -104,6 +120,8 @@ set(eds-user_src src/model/CheckUsedPropertyResult.cc src/model/CheckUsedPropertyValueRequest.cc src/model/CheckUsedPropertyValueResult.cc + src/model/CreateGroupRequest.cc + src/model/CreateGroupResult.cc src/model/CreateOrgRequest.cc src/model/CreateOrgResult.cc src/model/CreatePropertyRequest.cc @@ -116,6 +134,10 @@ set(eds-user_src src/model/DeleteResourceGroupResult.cc src/model/DeleteUserPropertyValueRequest.cc src/model/DeleteUserPropertyValueResult.cc + src/model/DescribeGroupUserRequest.cc + src/model/DescribeGroupUserResult.cc + src/model/DescribeGroupsRequest.cc + src/model/DescribeGroupsResult.cc src/model/DescribeMfaDevicesRequest.cc src/model/DescribeMfaDevicesResult.cc src/model/DescribeOrgByLayerRequest.cc @@ -140,14 +162,20 @@ set(eds-user_src src/model/LockMfaDeviceResult.cc src/model/LockUsersRequest.cc src/model/LockUsersResult.cc + src/model/ModifyGroupRequest.cc + src/model/ModifyGroupResult.cc src/model/ModifyOrgRequest.cc src/model/ModifyOrgResult.cc src/model/ModifyUserRequest.cc src/model/ModifyUserResult.cc src/model/MoveOrgRequest.cc src/model/MoveOrgResult.cc + src/model/MoveUserOrgRequest.cc + src/model/MoveUserOrgResult.cc src/model/QuerySyncStatusByAliUidRequest.cc src/model/QuerySyncStatusByAliUidResult.cc + src/model/RemoveGroupRequest.cc + src/model/RemoveGroupResult.cc src/model/RemoveMfaDeviceRequest.cc src/model/RemoveMfaDeviceResult.cc src/model/RemoveOrgRequest.cc @@ -167,7 +195,11 @@ set(eds-user_src src/model/UnlockUsersRequest.cc src/model/UnlockUsersResult.cc src/model/UpdatePropertyRequest.cc - src/model/UpdatePropertyResult.cc ) + src/model/UpdatePropertyResult.cc + src/model/UserBatchJoinGroupRequest.cc + src/model/UserBatchJoinGroupResult.cc + src/model/UserBatchQuitGroupRequest.cc + src/model/UserBatchQuitGroupResult.cc ) add_library(eds-user ${LIB_TYPE} ${eds-user_public_header} diff --git a/eds-user/include/alibabacloud/eds-user/Eds_userClient.h b/eds-user/include/alibabacloud/eds-user/Eds_userClient.h index 02f69fc51..7dea5d47b 100644 --- a/eds-user/include/alibabacloud/eds-user/Eds_userClient.h +++ b/eds-user/include/alibabacloud/eds-user/Eds_userClient.h @@ -30,6 +30,8 @@ #include "model/CheckUsedPropertyResult.h" #include "model/CheckUsedPropertyValueRequest.h" #include "model/CheckUsedPropertyValueResult.h" +#include "model/CreateGroupRequest.h" +#include "model/CreateGroupResult.h" #include "model/CreateOrgRequest.h" #include "model/CreateOrgResult.h" #include "model/CreatePropertyRequest.h" @@ -42,6 +44,10 @@ #include "model/DeleteResourceGroupResult.h" #include "model/DeleteUserPropertyValueRequest.h" #include "model/DeleteUserPropertyValueResult.h" +#include "model/DescribeGroupUserRequest.h" +#include "model/DescribeGroupUserResult.h" +#include "model/DescribeGroupsRequest.h" +#include "model/DescribeGroupsResult.h" #include "model/DescribeMfaDevicesRequest.h" #include "model/DescribeMfaDevicesResult.h" #include "model/DescribeOrgByLayerRequest.h" @@ -66,14 +72,20 @@ #include "model/LockMfaDeviceResult.h" #include "model/LockUsersRequest.h" #include "model/LockUsersResult.h" +#include "model/ModifyGroupRequest.h" +#include "model/ModifyGroupResult.h" #include "model/ModifyOrgRequest.h" #include "model/ModifyOrgResult.h" #include "model/ModifyUserRequest.h" #include "model/ModifyUserResult.h" #include "model/MoveOrgRequest.h" #include "model/MoveOrgResult.h" +#include "model/MoveUserOrgRequest.h" +#include "model/MoveUserOrgResult.h" #include "model/QuerySyncStatusByAliUidRequest.h" #include "model/QuerySyncStatusByAliUidResult.h" +#include "model/RemoveGroupRequest.h" +#include "model/RemoveGroupResult.h" #include "model/RemoveMfaDeviceRequest.h" #include "model/RemoveMfaDeviceResult.h" #include "model/RemoveOrgRequest.h" @@ -94,6 +106,10 @@ #include "model/UnlockUsersResult.h" #include "model/UpdatePropertyRequest.h" #include "model/UpdatePropertyResult.h" +#include "model/UserBatchJoinGroupRequest.h" +#include "model/UserBatchJoinGroupResult.h" +#include "model/UserBatchQuitGroupRequest.h" +#include "model/UserBatchQuitGroupResult.h" namespace AlibabaCloud @@ -115,6 +131,9 @@ namespace AlibabaCloud typedef Outcome CheckUsedPropertyValueOutcome; typedef std::future CheckUsedPropertyValueOutcomeCallable; typedef std::function&)> CheckUsedPropertyValueAsyncHandler; + typedef Outcome CreateGroupOutcome; + typedef std::future CreateGroupOutcomeCallable; + typedef std::function&)> CreateGroupAsyncHandler; typedef Outcome CreateOrgOutcome; typedef std::future CreateOrgOutcomeCallable; typedef std::function&)> CreateOrgAsyncHandler; @@ -133,6 +152,12 @@ namespace AlibabaCloud typedef Outcome DeleteUserPropertyValueOutcome; typedef std::future DeleteUserPropertyValueOutcomeCallable; typedef std::function&)> DeleteUserPropertyValueAsyncHandler; + typedef Outcome DescribeGroupUserOutcome; + typedef std::future DescribeGroupUserOutcomeCallable; + typedef std::function&)> DescribeGroupUserAsyncHandler; + typedef Outcome DescribeGroupsOutcome; + typedef std::future DescribeGroupsOutcomeCallable; + typedef std::function&)> DescribeGroupsAsyncHandler; typedef Outcome DescribeMfaDevicesOutcome; typedef std::future DescribeMfaDevicesOutcomeCallable; typedef std::function&)> DescribeMfaDevicesAsyncHandler; @@ -169,6 +194,9 @@ namespace AlibabaCloud typedef Outcome LockUsersOutcome; typedef std::future LockUsersOutcomeCallable; typedef std::function&)> LockUsersAsyncHandler; + typedef Outcome ModifyGroupOutcome; + typedef std::future ModifyGroupOutcomeCallable; + typedef std::function&)> ModifyGroupAsyncHandler; typedef Outcome ModifyOrgOutcome; typedef std::future ModifyOrgOutcomeCallable; typedef std::function&)> ModifyOrgAsyncHandler; @@ -178,9 +206,15 @@ namespace AlibabaCloud typedef Outcome MoveOrgOutcome; typedef std::future MoveOrgOutcomeCallable; typedef std::function&)> MoveOrgAsyncHandler; + typedef Outcome MoveUserOrgOutcome; + typedef std::future MoveUserOrgOutcomeCallable; + typedef std::function&)> MoveUserOrgAsyncHandler; typedef Outcome QuerySyncStatusByAliUidOutcome; typedef std::future QuerySyncStatusByAliUidOutcomeCallable; typedef std::function&)> QuerySyncStatusByAliUidAsyncHandler; + typedef Outcome RemoveGroupOutcome; + typedef std::future RemoveGroupOutcomeCallable; + typedef std::function&)> RemoveGroupAsyncHandler; typedef Outcome RemoveMfaDeviceOutcome; typedef std::future RemoveMfaDeviceOutcomeCallable; typedef std::function&)> RemoveMfaDeviceAsyncHandler; @@ -211,6 +245,12 @@ namespace AlibabaCloud typedef Outcome UpdatePropertyOutcome; typedef std::future UpdatePropertyOutcomeCallable; typedef std::function&)> UpdatePropertyAsyncHandler; + typedef Outcome UserBatchJoinGroupOutcome; + typedef std::future UserBatchJoinGroupOutcomeCallable; + typedef std::function&)> UserBatchJoinGroupAsyncHandler; + typedef Outcome UserBatchQuitGroupOutcome; + typedef std::future UserBatchQuitGroupOutcomeCallable; + typedef std::function&)> UserBatchQuitGroupAsyncHandler; Eds_userClient(const Credentials &credentials, const ClientConfiguration &configuration); Eds_userClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -228,6 +268,9 @@ namespace AlibabaCloud CheckUsedPropertyValueOutcome checkUsedPropertyValue(const Model::CheckUsedPropertyValueRequest &request)const; void checkUsedPropertyValueAsync(const Model::CheckUsedPropertyValueRequest& request, const CheckUsedPropertyValueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckUsedPropertyValueOutcomeCallable checkUsedPropertyValueCallable(const Model::CheckUsedPropertyValueRequest& request) const; + CreateGroupOutcome createGroup(const Model::CreateGroupRequest &request)const; + void createGroupAsync(const Model::CreateGroupRequest& request, const CreateGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGroupOutcomeCallable createGroupCallable(const Model::CreateGroupRequest& request) const; CreateOrgOutcome createOrg(const Model::CreateOrgRequest &request)const; void createOrgAsync(const Model::CreateOrgRequest& request, const CreateOrgAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOrgOutcomeCallable createOrgCallable(const Model::CreateOrgRequest& request) const; @@ -246,6 +289,12 @@ namespace AlibabaCloud DeleteUserPropertyValueOutcome deleteUserPropertyValue(const Model::DeleteUserPropertyValueRequest &request)const; void deleteUserPropertyValueAsync(const Model::DeleteUserPropertyValueRequest& request, const DeleteUserPropertyValueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteUserPropertyValueOutcomeCallable deleteUserPropertyValueCallable(const Model::DeleteUserPropertyValueRequest& request) const; + DescribeGroupUserOutcome describeGroupUser(const Model::DescribeGroupUserRequest &request)const; + void describeGroupUserAsync(const Model::DescribeGroupUserRequest& request, const DescribeGroupUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGroupUserOutcomeCallable describeGroupUserCallable(const Model::DescribeGroupUserRequest& request) const; + DescribeGroupsOutcome describeGroups(const Model::DescribeGroupsRequest &request)const; + void describeGroupsAsync(const Model::DescribeGroupsRequest& request, const DescribeGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGroupsOutcomeCallable describeGroupsCallable(const Model::DescribeGroupsRequest& request) const; DescribeMfaDevicesOutcome describeMfaDevices(const Model::DescribeMfaDevicesRequest &request)const; void describeMfaDevicesAsync(const Model::DescribeMfaDevicesRequest& request, const DescribeMfaDevicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMfaDevicesOutcomeCallable describeMfaDevicesCallable(const Model::DescribeMfaDevicesRequest& request) const; @@ -282,6 +331,9 @@ namespace AlibabaCloud LockUsersOutcome lockUsers(const Model::LockUsersRequest &request)const; void lockUsersAsync(const Model::LockUsersRequest& request, const LockUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; LockUsersOutcomeCallable lockUsersCallable(const Model::LockUsersRequest& request) const; + ModifyGroupOutcome modifyGroup(const Model::ModifyGroupRequest &request)const; + void modifyGroupAsync(const Model::ModifyGroupRequest& request, const ModifyGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGroupOutcomeCallable modifyGroupCallable(const Model::ModifyGroupRequest& request) const; ModifyOrgOutcome modifyOrg(const Model::ModifyOrgRequest &request)const; void modifyOrgAsync(const Model::ModifyOrgRequest& request, const ModifyOrgAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyOrgOutcomeCallable modifyOrgCallable(const Model::ModifyOrgRequest& request) const; @@ -291,9 +343,15 @@ namespace AlibabaCloud MoveOrgOutcome moveOrg(const Model::MoveOrgRequest &request)const; void moveOrgAsync(const Model::MoveOrgRequest& request, const MoveOrgAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MoveOrgOutcomeCallable moveOrgCallable(const Model::MoveOrgRequest& request) const; + MoveUserOrgOutcome moveUserOrg(const Model::MoveUserOrgRequest &request)const; + void moveUserOrgAsync(const Model::MoveUserOrgRequest& request, const MoveUserOrgAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MoveUserOrgOutcomeCallable moveUserOrgCallable(const Model::MoveUserOrgRequest& request) const; QuerySyncStatusByAliUidOutcome querySyncStatusByAliUid(const Model::QuerySyncStatusByAliUidRequest &request)const; void querySyncStatusByAliUidAsync(const Model::QuerySyncStatusByAliUidRequest& request, const QuerySyncStatusByAliUidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySyncStatusByAliUidOutcomeCallable querySyncStatusByAliUidCallable(const Model::QuerySyncStatusByAliUidRequest& request) const; + RemoveGroupOutcome removeGroup(const Model::RemoveGroupRequest &request)const; + void removeGroupAsync(const Model::RemoveGroupRequest& request, const RemoveGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveGroupOutcomeCallable removeGroupCallable(const Model::RemoveGroupRequest& request) const; RemoveMfaDeviceOutcome removeMfaDevice(const Model::RemoveMfaDeviceRequest &request)const; void removeMfaDeviceAsync(const Model::RemoveMfaDeviceRequest& request, const RemoveMfaDeviceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveMfaDeviceOutcomeCallable removeMfaDeviceCallable(const Model::RemoveMfaDeviceRequest& request) const; @@ -324,6 +382,12 @@ namespace AlibabaCloud UpdatePropertyOutcome updateProperty(const Model::UpdatePropertyRequest &request)const; void updatePropertyAsync(const Model::UpdatePropertyRequest& request, const UpdatePropertyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdatePropertyOutcomeCallable updatePropertyCallable(const Model::UpdatePropertyRequest& request) const; + UserBatchJoinGroupOutcome userBatchJoinGroup(const Model::UserBatchJoinGroupRequest &request)const; + void userBatchJoinGroupAsync(const Model::UserBatchJoinGroupRequest& request, const UserBatchJoinGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UserBatchJoinGroupOutcomeCallable userBatchJoinGroupCallable(const Model::UserBatchJoinGroupRequest& request) const; + UserBatchQuitGroupOutcome userBatchQuitGroup(const Model::UserBatchQuitGroupRequest &request)const; + void userBatchQuitGroupAsync(const Model::UserBatchQuitGroupRequest& request, const UserBatchQuitGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UserBatchQuitGroupOutcomeCallable userBatchQuitGroupCallable(const Model::UserBatchQuitGroupRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/eds-user/include/alibabacloud/eds-user/model/CreateGroupRequest.h b/eds-user/include/alibabacloud/eds-user/model/CreateGroupRequest.h new file mode 100644 index 000000000..d679d3c4d --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/CreateGroupRequest.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_EDS_USER_MODEL_CREATEGROUPREQUEST_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_CREATEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eds_user { +namespace Model { +class ALIBABACLOUD_EDS_USER_EXPORT CreateGroupRequest : public RpcServiceRequest { +public: + CreateGroupRequest(); + ~CreateGroupRequest(); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getBizType() const; + void setBizType(const std::string &bizType); + std::string getParentGroupId() const; + void setParentGroupId(const std::string &parentGroupId); + std::string getSolutionId() const; + void setSolutionId(const std::string &solutionId); + +private: + std::string groupName_; + std::string bizType_; + std::string parentGroupId_; + std::string solutionId_; +}; +} // namespace Model +} // namespace Eds_user +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EDS_USER_MODEL_CREATEGROUPREQUEST_H_ diff --git a/eds-user/include/alibabacloud/eds-user/model/CreateGroupResult.h b/eds-user/include/alibabacloud/eds-user/model/CreateGroupResult.h new file mode 100644 index 000000000..4a2a17b2c --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/CreateGroupResult.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_EDS_USER_MODEL_CREATEGROUPRESULT_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_CREATEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eds_user + { + namespace Model + { + class ALIBABACLOUD_EDS_USER_EXPORT CreateGroupResult : public ServiceResult + { + public: + + + CreateGroupResult(); + explicit CreateGroupResult(const std::string &payload); + ~CreateGroupResult(); + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EDS_USER_MODEL_CREATEGROUPRESULT_H_ \ No newline at end of file diff --git a/eds-user/include/alibabacloud/eds-user/model/DescribeGroupUserRequest.h b/eds-user/include/alibabacloud/eds-user/model/DescribeGroupUserRequest.h new file mode 100644 index 000000000..d1661308c --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/DescribeGroupUserRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EDS_USER_MODEL_DESCRIBEGROUPUSERREQUEST_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_DESCRIBEGROUPUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eds_user { +namespace Model { +class ALIBABACLOUD_EDS_USER_EXPORT DescribeGroupUserRequest : public RpcServiceRequest { +public: + DescribeGroupUserRequest(); + ~DescribeGroupUserRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getBizType() const; + void setBizType(const std::string &bizType); + std::string getSolutionId() const; + void setSolutionId(const std::string &solutionId); + +private: + std::string groupId_; + std::string bizType_; + std::string solutionId_; +}; +} // namespace Model +} // namespace Eds_user +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EDS_USER_MODEL_DESCRIBEGROUPUSERREQUEST_H_ diff --git a/eds-user/include/alibabacloud/eds-user/model/DescribeGroupUserResult.h b/eds-user/include/alibabacloud/eds-user/model/DescribeGroupUserResult.h new file mode 100644 index 000000000..0884d9e0f --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/DescribeGroupUserResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EDS_USER_MODEL_DESCRIBEGROUPUSERRESULT_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_DESCRIBEGROUPUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eds_user + { + namespace Model + { + class ALIBABACLOUD_EDS_USER_EXPORT DescribeGroupUserResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string userCount; + std::string groupId; + }; + struct User + { + std::string endUserId; + std::string email; + std::string address; + std::string phone; + std::string gmtCreated; + std::string nickName; + std::string jobNumber; + std::string avatar; + std::string gmtJoinGroup; + }; + + + DescribeGroupUserResult(); + explicit DescribeGroupUserResult(const std::string &payload); + ~DescribeGroupUserResult(); + std::vector getGroups()const; + std::vector getUsers()const; + + protected: + void parse(const std::string &payload); + private: + std::vector groups_; + std::vector users_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EDS_USER_MODEL_DESCRIBEGROUPUSERRESULT_H_ \ No newline at end of file diff --git a/eds-user/include/alibabacloud/eds-user/model/DescribeGroupsRequest.h b/eds-user/include/alibabacloud/eds-user/model/DescribeGroupsRequest.h new file mode 100644 index 000000000..88fc2e1ec --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/DescribeGroupsRequest.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_EDS_USER_MODEL_DESCRIBEGROUPSREQUEST_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_DESCRIBEGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eds_user { +namespace Model { +class ALIBABACLOUD_EDS_USER_EXPORT DescribeGroupsRequest : public RpcServiceRequest { +public: + DescribeGroupsRequest(); + ~DescribeGroupsRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getBizType() const; + void setBizType(const std::string &bizType); + std::string getSolutionId() const; + void setSolutionId(const std::string &solutionId); + +private: + std::string groupId_; + std::string groupName_; + std::string bizType_; + std::string solutionId_; +}; +} // namespace Model +} // namespace Eds_user +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EDS_USER_MODEL_DESCRIBEGROUPSREQUEST_H_ diff --git a/eds-user/include/alibabacloud/eds-user/model/DescribeGroupsResult.h b/eds-user/include/alibabacloud/eds-user/model/DescribeGroupsResult.h new file mode 100644 index 000000000..c7c9580f7 --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/DescribeGroupsResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EDS_USER_MODEL_DESCRIBEGROUPSRESULT_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_DESCRIBEGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eds_user + { + namespace Model + { + class ALIBABACLOUD_EDS_USER_EXPORT DescribeGroupsResult : public ServiceResult + { + public: + struct Group + { + std::string groupName; + std::string groupId; + }; + + + DescribeGroupsResult(); + explicit DescribeGroupsResult(const std::string &payload); + ~DescribeGroupsResult(); + std::vector getGroups()const; + + protected: + void parse(const std::string &payload); + private: + std::vector groups_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EDS_USER_MODEL_DESCRIBEGROUPSRESULT_H_ \ No newline at end of file diff --git a/eds-user/include/alibabacloud/eds-user/model/DescribeResourceGroupsResult.h b/eds-user/include/alibabacloud/eds-user/model/DescribeResourceGroupsResult.h index e4e419a07..81aa1e07e 100644 --- a/eds-user/include/alibabacloud/eds-user/model/DescribeResourceGroupsResult.h +++ b/eds-user/include/alibabacloud/eds-user/model/DescribeResourceGroupsResult.h @@ -42,6 +42,14 @@ namespace AlibabaCloud }; struct Timer { + std::string timerStatus; + std::string id; + std::string bindStatus; + std::string name; + }; + struct AppRule + { + int type; std::string id; std::string name; }; @@ -49,6 +57,7 @@ namespace AlibabaCloud std::string resourceGroupId; std::string resourceCount; std::string createTime; + std::vector appRules; std::vector timers; std::string resourceGroupName; std::string authCount; diff --git a/eds-user/include/alibabacloud/eds-user/model/DescribeUsersRequest.h b/eds-user/include/alibabacloud/eds-user/model/DescribeUsersRequest.h index 4fc0fea21..5226f48aa 100644 --- a/eds-user/include/alibabacloud/eds-user/model/DescribeUsersRequest.h +++ b/eds-user/include/alibabacloud/eds-user/model/DescribeUsersRequest.h @@ -56,6 +56,8 @@ public: void setMaxResults(long maxResults); std::map getShowExtras() const; void setShowExtras(const std::map &showExtras); + int getStatus() const; + void setStatus(int status); private: bool isQueryAllSubOrgs_; @@ -71,6 +73,7 @@ private: std::string bizType_; long maxResults_; std::map showExtras_; + int status_; }; } // namespace Model } // namespace Eds_user diff --git a/eds-user/include/alibabacloud/eds-user/model/DescribeUsersResult.h b/eds-user/include/alibabacloud/eds-user/model/DescribeUsersResult.h index ab64dd02a..a537a982c 100644 --- a/eds-user/include/alibabacloud/eds-user/model/DescribeUsersResult.h +++ b/eds-user/include/alibabacloud/eds-user/model/DescribeUsersResult.h @@ -46,6 +46,7 @@ namespace AlibabaCloud struct Org { std::string orgId; + std::string orgNamePath; std::string orgName; }; struct Property diff --git a/eds-user/include/alibabacloud/eds-user/model/FilterUsersResult.h b/eds-user/include/alibabacloud/eds-user/model/FilterUsersResult.h index 06c726d28..fab705021 100644 --- a/eds-user/include/alibabacloud/eds-user/model/FilterUsersResult.h +++ b/eds-user/include/alibabacloud/eds-user/model/FilterUsersResult.h @@ -56,6 +56,7 @@ namespace AlibabaCloud struct OrgListItem { std::string orgId; + std::string orgNamePath; std::string orgName; }; struct IdpInfo diff --git a/eds-user/include/alibabacloud/eds-user/model/ModifyGroupRequest.h b/eds-user/include/alibabacloud/eds-user/model/ModifyGroupRequest.h new file mode 100644 index 000000000..90cd88084 --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/ModifyGroupRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EDS_USER_MODEL_MODIFYGROUPREQUEST_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_MODIFYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eds_user { +namespace Model { +class ALIBABACLOUD_EDS_USER_EXPORT ModifyGroupRequest : public RpcServiceRequest { +public: + ModifyGroupRequest(); + ~ModifyGroupRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getNewGroupName() const; + void setNewGroupName(const std::string &newGroupName); + +private: + std::string groupId_; + std::string newGroupName_; +}; +} // namespace Model +} // namespace Eds_user +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EDS_USER_MODEL_MODIFYGROUPREQUEST_H_ diff --git a/eds-user/include/alibabacloud/eds-user/model/ModifyGroupResult.h b/eds-user/include/alibabacloud/eds-user/model/ModifyGroupResult.h new file mode 100644 index 000000000..ec6751337 --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/ModifyGroupResult.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_EDS_USER_MODEL_MODIFYGROUPRESULT_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_MODIFYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eds_user + { + namespace Model + { + class ALIBABACLOUD_EDS_USER_EXPORT ModifyGroupResult : public ServiceResult + { + public: + + + ModifyGroupResult(); + explicit ModifyGroupResult(const std::string &payload); + ~ModifyGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EDS_USER_MODEL_MODIFYGROUPRESULT_H_ \ No newline at end of file diff --git a/eds-user/include/alibabacloud/eds-user/model/MoveUserOrgRequest.h b/eds-user/include/alibabacloud/eds-user/model/MoveUserOrgRequest.h new file mode 100644 index 000000000..8913aede3 --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/MoveUserOrgRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EDS_USER_MODEL_MOVEUSERORGREQUEST_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_MOVEUSERORGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eds_user { +namespace Model { +class ALIBABACLOUD_EDS_USER_EXPORT MoveUserOrgRequest : public RpcServiceRequest { +public: + MoveUserOrgRequest(); + ~MoveUserOrgRequest(); + std::vector getEndUserIds() const; + void setEndUserIds(const std::vector &endUserIds); + std::string getOrgId() const; + void setOrgId(const std::string &orgId); + +private: + std::vector endUserIds_; + std::string orgId_; +}; +} // namespace Model +} // namespace Eds_user +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EDS_USER_MODEL_MOVEUSERORGREQUEST_H_ diff --git a/eds-user/include/alibabacloud/eds-user/model/MoveUserOrgResult.h b/eds-user/include/alibabacloud/eds-user/model/MoveUserOrgResult.h new file mode 100644 index 000000000..247059b34 --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/MoveUserOrgResult.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_EDS_USER_MODEL_MOVEUSERORGRESULT_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_MOVEUSERORGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eds_user + { + namespace Model + { + class ALIBABACLOUD_EDS_USER_EXPORT MoveUserOrgResult : public ServiceResult + { + public: + + + MoveUserOrgResult(); + explicit MoveUserOrgResult(const std::string &payload); + ~MoveUserOrgResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EDS_USER_MODEL_MOVEUSERORGRESULT_H_ \ No newline at end of file diff --git a/eds-user/include/alibabacloud/eds-user/model/RemoveGroupRequest.h b/eds-user/include/alibabacloud/eds-user/model/RemoveGroupRequest.h new file mode 100644 index 000000000..a06c93e90 --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/RemoveGroupRequest.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_EDS_USER_MODEL_REMOVEGROUPREQUEST_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_REMOVEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eds_user { +namespace Model { +class ALIBABACLOUD_EDS_USER_EXPORT RemoveGroupRequest : public RpcServiceRequest { +public: + RemoveGroupRequest(); + ~RemoveGroupRequest(); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + +private: + std::string groupId_; +}; +} // namespace Model +} // namespace Eds_user +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EDS_USER_MODEL_REMOVEGROUPREQUEST_H_ diff --git a/eds-user/include/alibabacloud/eds-user/model/RemoveGroupResult.h b/eds-user/include/alibabacloud/eds-user/model/RemoveGroupResult.h new file mode 100644 index 000000000..74d91b047 --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/RemoveGroupResult.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_EDS_USER_MODEL_REMOVEGROUPRESULT_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_REMOVEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eds_user + { + namespace Model + { + class ALIBABACLOUD_EDS_USER_EXPORT RemoveGroupResult : public ServiceResult + { + public: + + + RemoveGroupResult(); + explicit RemoveGroupResult(const std::string &payload); + ~RemoveGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EDS_USER_MODEL_REMOVEGROUPRESULT_H_ \ No newline at end of file diff --git a/eds-user/include/alibabacloud/eds-user/model/UserBatchJoinGroupRequest.h b/eds-user/include/alibabacloud/eds-user/model/UserBatchJoinGroupRequest.h new file mode 100644 index 000000000..6afb01e11 --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/UserBatchJoinGroupRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EDS_USER_MODEL_USERBATCHJOINGROUPREQUEST_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_USERBATCHJOINGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eds_user { +namespace Model { +class ALIBABACLOUD_EDS_USER_EXPORT UserBatchJoinGroupRequest : public RpcServiceRequest { +public: + UserBatchJoinGroupRequest(); + ~UserBatchJoinGroupRequest(); + std::vector getEndUserIds() const; + void setEndUserIds(const std::vector &endUserIds); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + +private: + std::vector endUserIds_; + std::string groupId_; +}; +} // namespace Model +} // namespace Eds_user +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EDS_USER_MODEL_USERBATCHJOINGROUPREQUEST_H_ diff --git a/eds-user/include/alibabacloud/eds-user/model/UserBatchJoinGroupResult.h b/eds-user/include/alibabacloud/eds-user/model/UserBatchJoinGroupResult.h new file mode 100644 index 000000000..e05578402 --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/UserBatchJoinGroupResult.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_EDS_USER_MODEL_USERBATCHJOINGROUPRESULT_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_USERBATCHJOINGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eds_user + { + namespace Model + { + class ALIBABACLOUD_EDS_USER_EXPORT UserBatchJoinGroupResult : public ServiceResult + { + public: + + + UserBatchJoinGroupResult(); + explicit UserBatchJoinGroupResult(const std::string &payload); + ~UserBatchJoinGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EDS_USER_MODEL_USERBATCHJOINGROUPRESULT_H_ \ No newline at end of file diff --git a/eds-user/include/alibabacloud/eds-user/model/UserBatchQuitGroupRequest.h b/eds-user/include/alibabacloud/eds-user/model/UserBatchQuitGroupRequest.h new file mode 100644 index 000000000..698a38a7d --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/UserBatchQuitGroupRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EDS_USER_MODEL_USERBATCHQUITGROUPREQUEST_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_USERBATCHQUITGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eds_user { +namespace Model { +class ALIBABACLOUD_EDS_USER_EXPORT UserBatchQuitGroupRequest : public RpcServiceRequest { +public: + UserBatchQuitGroupRequest(); + ~UserBatchQuitGroupRequest(); + std::vector getEndUserIds() const; + void setEndUserIds(const std::vector &endUserIds); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + +private: + std::vector endUserIds_; + std::string groupId_; +}; +} // namespace Model +} // namespace Eds_user +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EDS_USER_MODEL_USERBATCHQUITGROUPREQUEST_H_ diff --git a/eds-user/include/alibabacloud/eds-user/model/UserBatchQuitGroupResult.h b/eds-user/include/alibabacloud/eds-user/model/UserBatchQuitGroupResult.h new file mode 100644 index 000000000..175148605 --- /dev/null +++ b/eds-user/include/alibabacloud/eds-user/model/UserBatchQuitGroupResult.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_EDS_USER_MODEL_USERBATCHQUITGROUPRESULT_H_ +#define ALIBABACLOUD_EDS_USER_MODEL_USERBATCHQUITGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eds_user + { + namespace Model + { + class ALIBABACLOUD_EDS_USER_EXPORT UserBatchQuitGroupResult : public ServiceResult + { + public: + + + UserBatchQuitGroupResult(); + explicit UserBatchQuitGroupResult(const std::string &payload); + ~UserBatchQuitGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EDS_USER_MODEL_USERBATCHQUITGROUPRESULT_H_ \ No newline at end of file diff --git a/eds-user/src/Eds-userClient.cc b/eds-user/src/Eds-userClient.cc index b1448c47f..ebfc5035d 100644 --- a/eds-user/src/Eds-userClient.cc +++ b/eds-user/src/Eds-userClient.cc @@ -195,6 +195,42 @@ Eds_userClient::CheckUsedPropertyValueOutcomeCallable Eds_userClient::checkUsedP return task->get_future(); } +Eds_userClient::CreateGroupOutcome Eds_userClient::createGroup(const CreateGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGroupOutcome(CreateGroupResult(outcome.result())); + else + return CreateGroupOutcome(outcome.error()); +} + +void Eds_userClient::createGroupAsync(const CreateGroupRequest& request, const CreateGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Eds_userClient::CreateGroupOutcomeCallable Eds_userClient::createGroupCallable(const CreateGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Eds_userClient::CreateOrgOutcome Eds_userClient::createOrg(const CreateOrgRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +447,78 @@ Eds_userClient::DeleteUserPropertyValueOutcomeCallable Eds_userClient::deleteUse return task->get_future(); } +Eds_userClient::DescribeGroupUserOutcome Eds_userClient::describeGroupUser(const DescribeGroupUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGroupUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGroupUserOutcome(DescribeGroupUserResult(outcome.result())); + else + return DescribeGroupUserOutcome(outcome.error()); +} + +void Eds_userClient::describeGroupUserAsync(const DescribeGroupUserRequest& request, const DescribeGroupUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGroupUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Eds_userClient::DescribeGroupUserOutcomeCallable Eds_userClient::describeGroupUserCallable(const DescribeGroupUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGroupUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Eds_userClient::DescribeGroupsOutcome Eds_userClient::describeGroups(const DescribeGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGroupsOutcome(DescribeGroupsResult(outcome.result())); + else + return DescribeGroupsOutcome(outcome.error()); +} + +void Eds_userClient::describeGroupsAsync(const DescribeGroupsRequest& request, const DescribeGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Eds_userClient::DescribeGroupsOutcomeCallable Eds_userClient::describeGroupsCallable(const DescribeGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Eds_userClient::DescribeMfaDevicesOutcome Eds_userClient::describeMfaDevices(const DescribeMfaDevicesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +951,42 @@ Eds_userClient::LockUsersOutcomeCallable Eds_userClient::lockUsersCallable(const return task->get_future(); } +Eds_userClient::ModifyGroupOutcome Eds_userClient::modifyGroup(const ModifyGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyGroupOutcome(ModifyGroupResult(outcome.result())); + else + return ModifyGroupOutcome(outcome.error()); +} + +void Eds_userClient::modifyGroupAsync(const ModifyGroupRequest& request, const ModifyGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Eds_userClient::ModifyGroupOutcomeCallable Eds_userClient::modifyGroupCallable(const ModifyGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Eds_userClient::ModifyOrgOutcome Eds_userClient::modifyOrg(const ModifyOrgRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,6 +1095,42 @@ Eds_userClient::MoveOrgOutcomeCallable Eds_userClient::moveOrgCallable(const Mov return task->get_future(); } +Eds_userClient::MoveUserOrgOutcome Eds_userClient::moveUserOrg(const MoveUserOrgRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MoveUserOrgOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MoveUserOrgOutcome(MoveUserOrgResult(outcome.result())); + else + return MoveUserOrgOutcome(outcome.error()); +} + +void Eds_userClient::moveUserOrgAsync(const MoveUserOrgRequest& request, const MoveUserOrgAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, moveUserOrg(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Eds_userClient::MoveUserOrgOutcomeCallable Eds_userClient::moveUserOrgCallable(const MoveUserOrgRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->moveUserOrg(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Eds_userClient::QuerySyncStatusByAliUidOutcome Eds_userClient::querySyncStatusByAliUid(const QuerySyncStatusByAliUidRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,6 +1167,42 @@ Eds_userClient::QuerySyncStatusByAliUidOutcomeCallable Eds_userClient::querySync return task->get_future(); } +Eds_userClient::RemoveGroupOutcome Eds_userClient::removeGroup(const RemoveGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveGroupOutcome(RemoveGroupResult(outcome.result())); + else + return RemoveGroupOutcome(outcome.error()); +} + +void Eds_userClient::removeGroupAsync(const RemoveGroupRequest& request, const RemoveGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Eds_userClient::RemoveGroupOutcomeCallable Eds_userClient::removeGroupCallable(const RemoveGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Eds_userClient::RemoveMfaDeviceOutcome Eds_userClient::removeMfaDevice(const RemoveMfaDeviceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,3 +1563,75 @@ Eds_userClient::UpdatePropertyOutcomeCallable Eds_userClient::updatePropertyCall return task->get_future(); } +Eds_userClient::UserBatchJoinGroupOutcome Eds_userClient::userBatchJoinGroup(const UserBatchJoinGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UserBatchJoinGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UserBatchJoinGroupOutcome(UserBatchJoinGroupResult(outcome.result())); + else + return UserBatchJoinGroupOutcome(outcome.error()); +} + +void Eds_userClient::userBatchJoinGroupAsync(const UserBatchJoinGroupRequest& request, const UserBatchJoinGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, userBatchJoinGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Eds_userClient::UserBatchJoinGroupOutcomeCallable Eds_userClient::userBatchJoinGroupCallable(const UserBatchJoinGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->userBatchJoinGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Eds_userClient::UserBatchQuitGroupOutcome Eds_userClient::userBatchQuitGroup(const UserBatchQuitGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UserBatchQuitGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UserBatchQuitGroupOutcome(UserBatchQuitGroupResult(outcome.result())); + else + return UserBatchQuitGroupOutcome(outcome.error()); +} + +void Eds_userClient::userBatchQuitGroupAsync(const UserBatchQuitGroupRequest& request, const UserBatchQuitGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, userBatchQuitGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Eds_userClient::UserBatchQuitGroupOutcomeCallable Eds_userClient::userBatchQuitGroupCallable(const UserBatchQuitGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->userBatchQuitGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/eds-user/src/model/CreateGroupRequest.cc b/eds-user/src/model/CreateGroupRequest.cc new file mode 100644 index 000000000..a73d51181 --- /dev/null +++ b/eds-user/src/model/CreateGroupRequest.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::Eds_user::Model::CreateGroupRequest; + +CreateGroupRequest::CreateGroupRequest() + : RpcServiceRequest("eds-user", "2021-03-08", "CreateGroup") { + setMethod(HttpRequest::Method::Post); +} + +CreateGroupRequest::~CreateGroupRequest() {} + +std::string CreateGroupRequest::getGroupName() const { + return groupName_; +} + +void CreateGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string CreateGroupRequest::getBizType() const { + return bizType_; +} + +void CreateGroupRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setParameter(std::string("BizType"), bizType); +} + +std::string CreateGroupRequest::getParentGroupId() const { + return parentGroupId_; +} + +void CreateGroupRequest::setParentGroupId(const std::string &parentGroupId) { + parentGroupId_ = parentGroupId; + setParameter(std::string("ParentGroupId"), parentGroupId); +} + +std::string CreateGroupRequest::getSolutionId() const { + return solutionId_; +} + +void CreateGroupRequest::setSolutionId(const std::string &solutionId) { + solutionId_ = solutionId; + setParameter(std::string("SolutionId"), solutionId); +} + diff --git a/eds-user/src/model/CreateGroupResult.cc b/eds-user/src/model/CreateGroupResult.cc new file mode 100644 index 000000000..276c08277 --- /dev/null +++ b/eds-user/src/model/CreateGroupResult.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::Eds_user; +using namespace AlibabaCloud::Eds_user::Model; + +CreateGroupResult::CreateGroupResult() : + ServiceResult() +{} + +CreateGroupResult::CreateGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGroupResult::~CreateGroupResult() +{} + +void CreateGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + +} + +std::string CreateGroupResult::getGroupId()const +{ + return groupId_; +} + diff --git a/eds-user/src/model/DescribeGroupUserRequest.cc b/eds-user/src/model/DescribeGroupUserRequest.cc new file mode 100644 index 000000000..b55974f31 --- /dev/null +++ b/eds-user/src/model/DescribeGroupUserRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Eds_user::Model::DescribeGroupUserRequest; + +DescribeGroupUserRequest::DescribeGroupUserRequest() + : RpcServiceRequest("eds-user", "2021-03-08", "DescribeGroupUser") { + setMethod(HttpRequest::Method::Post); +} + +DescribeGroupUserRequest::~DescribeGroupUserRequest() {} + +std::string DescribeGroupUserRequest::getGroupId() const { + return groupId_; +} + +void DescribeGroupUserRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string DescribeGroupUserRequest::getBizType() const { + return bizType_; +} + +void DescribeGroupUserRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setParameter(std::string("BizType"), bizType); +} + +std::string DescribeGroupUserRequest::getSolutionId() const { + return solutionId_; +} + +void DescribeGroupUserRequest::setSolutionId(const std::string &solutionId) { + solutionId_ = solutionId; + setParameter(std::string("SolutionId"), solutionId); +} + diff --git a/eds-user/src/model/DescribeGroupUserResult.cc b/eds-user/src/model/DescribeGroupUserResult.cc new file mode 100644 index 000000000..94e64ab7f --- /dev/null +++ b/eds-user/src/model/DescribeGroupUserResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Eds_user; +using namespace AlibabaCloud::Eds_user::Model; + +DescribeGroupUserResult::DescribeGroupUserResult() : + ServiceResult() +{} + +DescribeGroupUserResult::DescribeGroupUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGroupUserResult::~DescribeGroupUserResult() +{} + +void DescribeGroupUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGroupsNode = value["Groups"]["group"]; + for (auto valueGroupsgroup : allGroupsNode) + { + Group groupsObject; + if(!valueGroupsgroup["GroupName"].isNull()) + groupsObject.groupName = valueGroupsgroup["GroupName"].asString(); + if(!valueGroupsgroup["GroupId"].isNull()) + groupsObject.groupId = valueGroupsgroup["GroupId"].asString(); + if(!valueGroupsgroup["UserCount"].isNull()) + groupsObject.userCount = valueGroupsgroup["UserCount"].asString(); + groups_.push_back(groupsObject); + } + auto allUsersNode = value["Users"]["user"]; + for (auto valueUsersuser : allUsersNode) + { + User usersObject; + if(!valueUsersuser["EndUserId"].isNull()) + usersObject.endUserId = valueUsersuser["EndUserId"].asString(); + if(!valueUsersuser["Avatar"].isNull()) + usersObject.avatar = valueUsersuser["Avatar"].asString(); + if(!valueUsersuser["Address"].isNull()) + usersObject.address = valueUsersuser["Address"].asString(); + if(!valueUsersuser["Phone"].isNull()) + usersObject.phone = valueUsersuser["Phone"].asString(); + if(!valueUsersuser["Email"].isNull()) + usersObject.email = valueUsersuser["Email"].asString(); + if(!valueUsersuser["NickName"].isNull()) + usersObject.nickName = valueUsersuser["NickName"].asString(); + if(!valueUsersuser["JobNumber"].isNull()) + usersObject.jobNumber = valueUsersuser["JobNumber"].asString(); + if(!valueUsersuser["GmtJoinGroup"].isNull()) + usersObject.gmtJoinGroup = valueUsersuser["GmtJoinGroup"].asString(); + if(!valueUsersuser["GmtCreated"].isNull()) + usersObject.gmtCreated = valueUsersuser["GmtCreated"].asString(); + users_.push_back(usersObject); + } + +} + +std::vector DescribeGroupUserResult::getGroups()const +{ + return groups_; +} + +std::vector DescribeGroupUserResult::getUsers()const +{ + return users_; +} + diff --git a/eds-user/src/model/DescribeGroupsRequest.cc b/eds-user/src/model/DescribeGroupsRequest.cc new file mode 100644 index 000000000..56f7b9a56 --- /dev/null +++ b/eds-user/src/model/DescribeGroupsRequest.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::Eds_user::Model::DescribeGroupsRequest; + +DescribeGroupsRequest::DescribeGroupsRequest() + : RpcServiceRequest("eds-user", "2021-03-08", "DescribeGroups") { + setMethod(HttpRequest::Method::Post); +} + +DescribeGroupsRequest::~DescribeGroupsRequest() {} + +std::string DescribeGroupsRequest::getGroupId() const { + return groupId_; +} + +void DescribeGroupsRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string DescribeGroupsRequest::getGroupName() const { + return groupName_; +} + +void DescribeGroupsRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string DescribeGroupsRequest::getBizType() const { + return bizType_; +} + +void DescribeGroupsRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setParameter(std::string("BizType"), bizType); +} + +std::string DescribeGroupsRequest::getSolutionId() const { + return solutionId_; +} + +void DescribeGroupsRequest::setSolutionId(const std::string &solutionId) { + solutionId_ = solutionId; + setParameter(std::string("SolutionId"), solutionId); +} + diff --git a/eds-user/src/model/DescribeGroupsResult.cc b/eds-user/src/model/DescribeGroupsResult.cc new file mode 100644 index 000000000..cfe190b35 --- /dev/null +++ b/eds-user/src/model/DescribeGroupsResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Eds_user; +using namespace AlibabaCloud::Eds_user::Model; + +DescribeGroupsResult::DescribeGroupsResult() : + ServiceResult() +{} + +DescribeGroupsResult::DescribeGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGroupsResult::~DescribeGroupsResult() +{} + +void DescribeGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGroupsNode = value["Groups"]["group"]; + for (auto valueGroupsgroup : allGroupsNode) + { + Group groupsObject; + if(!valueGroupsgroup["GroupName"].isNull()) + groupsObject.groupName = valueGroupsgroup["GroupName"].asString(); + if(!valueGroupsgroup["GroupId"].isNull()) + groupsObject.groupId = valueGroupsgroup["GroupId"].asString(); + groups_.push_back(groupsObject); + } + +} + +std::vector DescribeGroupsResult::getGroups()const +{ + return groups_; +} + diff --git a/eds-user/src/model/DescribeResourceGroupsResult.cc b/eds-user/src/model/DescribeResourceGroupsResult.cc index 27753bade..35298164d 100644 --- a/eds-user/src/model/DescribeResourceGroupsResult.cc +++ b/eds-user/src/model/DescribeResourceGroupsResult.cc @@ -73,8 +73,24 @@ void DescribeResourceGroupsResult::parse(const std::string &payload) timersObject.id = valueResourceGroupResourceGroupItemTimersTimer["Id"].asString(); if(!valueResourceGroupResourceGroupItemTimersTimer["Name"].isNull()) timersObject.name = valueResourceGroupResourceGroupItemTimersTimer["Name"].asString(); + if(!valueResourceGroupResourceGroupItemTimersTimer["TimerStatus"].isNull()) + timersObject.timerStatus = valueResourceGroupResourceGroupItemTimersTimer["TimerStatus"].asString(); + if(!valueResourceGroupResourceGroupItemTimersTimer["BindStatus"].isNull()) + timersObject.bindStatus = valueResourceGroupResourceGroupItemTimersTimer["BindStatus"].asString(); resourceGroupObject.timers.push_back(timersObject); } + auto allAppRulesNode = valueResourceGroupResourceGroupItem["AppRules"]["AppRule"]; + for (auto valueResourceGroupResourceGroupItemAppRulesAppRule : allAppRulesNode) + { + ResourceGroupItem::AppRule appRulesObject; + if(!valueResourceGroupResourceGroupItemAppRulesAppRule["Id"].isNull()) + appRulesObject.id = valueResourceGroupResourceGroupItemAppRulesAppRule["Id"].asString(); + if(!valueResourceGroupResourceGroupItemAppRulesAppRule["Name"].isNull()) + appRulesObject.name = valueResourceGroupResourceGroupItemAppRulesAppRule["Name"].asString(); + if(!valueResourceGroupResourceGroupItemAppRulesAppRule["Type"].isNull()) + appRulesObject.type = std::stoi(valueResourceGroupResourceGroupItemAppRulesAppRule["Type"].asString()); + resourceGroupObject.appRules.push_back(appRulesObject); + } resourceGroup_.push_back(resourceGroupObject); } if(!value["TotalCount"].isNull()) diff --git a/eds-user/src/model/DescribeUsersRequest.cc b/eds-user/src/model/DescribeUsersRequest.cc index 783b62a07..443b097af 100644 --- a/eds-user/src/model/DescribeUsersRequest.cc +++ b/eds-user/src/model/DescribeUsersRequest.cc @@ -146,3 +146,12 @@ void DescribeUsersRequest::setShowExtras(const std::map + +using AlibabaCloud::Eds_user::Model::ModifyGroupRequest; + +ModifyGroupRequest::ModifyGroupRequest() + : RpcServiceRequest("eds-user", "2021-03-08", "ModifyGroup") { + setMethod(HttpRequest::Method::Post); +} + +ModifyGroupRequest::~ModifyGroupRequest() {} + +std::string ModifyGroupRequest::getGroupId() const { + return groupId_; +} + +void ModifyGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string ModifyGroupRequest::getNewGroupName() const { + return newGroupName_; +} + +void ModifyGroupRequest::setNewGroupName(const std::string &newGroupName) { + newGroupName_ = newGroupName; + setParameter(std::string("NewGroupName"), newGroupName); +} + diff --git a/eds-user/src/model/ModifyGroupResult.cc b/eds-user/src/model/ModifyGroupResult.cc new file mode 100644 index 000000000..8c93172d5 --- /dev/null +++ b/eds-user/src/model/ModifyGroupResult.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::Eds_user; +using namespace AlibabaCloud::Eds_user::Model; + +ModifyGroupResult::ModifyGroupResult() : + ServiceResult() +{} + +ModifyGroupResult::ModifyGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyGroupResult::~ModifyGroupResult() +{} + +void ModifyGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eds-user/src/model/MoveUserOrgRequest.cc b/eds-user/src/model/MoveUserOrgRequest.cc new file mode 100644 index 000000000..0d72a0e47 --- /dev/null +++ b/eds-user/src/model/MoveUserOrgRequest.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 + +using AlibabaCloud::Eds_user::Model::MoveUserOrgRequest; + +MoveUserOrgRequest::MoveUserOrgRequest() + : RpcServiceRequest("eds-user", "2021-03-08", "MoveUserOrg") { + setMethod(HttpRequest::Method::Post); +} + +MoveUserOrgRequest::~MoveUserOrgRequest() {} + +std::vector MoveUserOrgRequest::getEndUserIds() const { + return endUserIds_; +} + +void MoveUserOrgRequest::setEndUserIds(const std::vector &endUserIds) { + endUserIds_ = endUserIds; +} + +std::string MoveUserOrgRequest::getOrgId() const { + return orgId_; +} + +void MoveUserOrgRequest::setOrgId(const std::string &orgId) { + orgId_ = orgId; + setBodyParameter(std::string("OrgId"), orgId); +} + diff --git a/eds-user/src/model/MoveUserOrgResult.cc b/eds-user/src/model/MoveUserOrgResult.cc new file mode 100644 index 000000000..f4a865a04 --- /dev/null +++ b/eds-user/src/model/MoveUserOrgResult.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::Eds_user; +using namespace AlibabaCloud::Eds_user::Model; + +MoveUserOrgResult::MoveUserOrgResult() : + ServiceResult() +{} + +MoveUserOrgResult::MoveUserOrgResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MoveUserOrgResult::~MoveUserOrgResult() +{} + +void MoveUserOrgResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eds-user/src/model/RemoveGroupRequest.cc b/eds-user/src/model/RemoveGroupRequest.cc new file mode 100644 index 000000000..b3b57ba68 --- /dev/null +++ b/eds-user/src/model/RemoveGroupRequest.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::Eds_user::Model::RemoveGroupRequest; + +RemoveGroupRequest::RemoveGroupRequest() + : RpcServiceRequest("eds-user", "2021-03-08", "RemoveGroup") { + setMethod(HttpRequest::Method::Post); +} + +RemoveGroupRequest::~RemoveGroupRequest() {} + +std::string RemoveGroupRequest::getGroupId() const { + return groupId_; +} + +void RemoveGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + diff --git a/eds-user/src/model/RemoveGroupResult.cc b/eds-user/src/model/RemoveGroupResult.cc new file mode 100644 index 000000000..d09e64216 --- /dev/null +++ b/eds-user/src/model/RemoveGroupResult.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::Eds_user; +using namespace AlibabaCloud::Eds_user::Model; + +RemoveGroupResult::RemoveGroupResult() : + ServiceResult() +{} + +RemoveGroupResult::RemoveGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveGroupResult::~RemoveGroupResult() +{} + +void RemoveGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eds-user/src/model/UserBatchJoinGroupRequest.cc b/eds-user/src/model/UserBatchJoinGroupRequest.cc new file mode 100644 index 000000000..3f0311962 --- /dev/null +++ b/eds-user/src/model/UserBatchJoinGroupRequest.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 + +using AlibabaCloud::Eds_user::Model::UserBatchJoinGroupRequest; + +UserBatchJoinGroupRequest::UserBatchJoinGroupRequest() + : RpcServiceRequest("eds-user", "2021-03-08", "UserBatchJoinGroup") { + setMethod(HttpRequest::Method::Post); +} + +UserBatchJoinGroupRequest::~UserBatchJoinGroupRequest() {} + +std::vector UserBatchJoinGroupRequest::getEndUserIds() const { + return endUserIds_; +} + +void UserBatchJoinGroupRequest::setEndUserIds(const std::vector &endUserIds) { + endUserIds_ = endUserIds; +} + +std::string UserBatchJoinGroupRequest::getGroupId() const { + return groupId_; +} + +void UserBatchJoinGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setBodyParameter(std::string("GroupId"), groupId); +} + diff --git a/eds-user/src/model/UserBatchJoinGroupResult.cc b/eds-user/src/model/UserBatchJoinGroupResult.cc new file mode 100644 index 000000000..4ce25d70b --- /dev/null +++ b/eds-user/src/model/UserBatchJoinGroupResult.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::Eds_user; +using namespace AlibabaCloud::Eds_user::Model; + +UserBatchJoinGroupResult::UserBatchJoinGroupResult() : + ServiceResult() +{} + +UserBatchJoinGroupResult::UserBatchJoinGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UserBatchJoinGroupResult::~UserBatchJoinGroupResult() +{} + +void UserBatchJoinGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eds-user/src/model/UserBatchQuitGroupRequest.cc b/eds-user/src/model/UserBatchQuitGroupRequest.cc new file mode 100644 index 000000000..f3121e797 --- /dev/null +++ b/eds-user/src/model/UserBatchQuitGroupRequest.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 + +using AlibabaCloud::Eds_user::Model::UserBatchQuitGroupRequest; + +UserBatchQuitGroupRequest::UserBatchQuitGroupRequest() + : RpcServiceRequest("eds-user", "2021-03-08", "UserBatchQuitGroup") { + setMethod(HttpRequest::Method::Post); +} + +UserBatchQuitGroupRequest::~UserBatchQuitGroupRequest() {} + +std::vector UserBatchQuitGroupRequest::getEndUserIds() const { + return endUserIds_; +} + +void UserBatchQuitGroupRequest::setEndUserIds(const std::vector &endUserIds) { + endUserIds_ = endUserIds; +} + +std::string UserBatchQuitGroupRequest::getGroupId() const { + return groupId_; +} + +void UserBatchQuitGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setBodyParameter(std::string("GroupId"), groupId); +} + diff --git a/eds-user/src/model/UserBatchQuitGroupResult.cc b/eds-user/src/model/UserBatchQuitGroupResult.cc new file mode 100644 index 000000000..da9057fc5 --- /dev/null +++ b/eds-user/src/model/UserBatchQuitGroupResult.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::Eds_user; +using namespace AlibabaCloud::Eds_user::Model; + +UserBatchQuitGroupResult::UserBatchQuitGroupResult() : + ServiceResult() +{} + +UserBatchQuitGroupResult::UserBatchQuitGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UserBatchQuitGroupResult::~UserBatchQuitGroupResult() +{} + +void UserBatchQuitGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +