From 5048e01469165010463fc8fef820ec10052b8480 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 11 Nov 2025 14:03:33 +0000 Subject: [PATCH] Supported bind idp user api. --- VERSION | 2 +- eiam/CMakeLists.txt | 12 ++ eiam/include/alibabacloud/eiam/EiamClient.h | 24 ++++ .../model/BindUserAuthnSourceMappingRequest.h | 51 +++++++++ .../model/BindUserAuthnSourceMappingResult.h | 49 ++++++++ .../ListUserAuthnSourceMappingsRequest.h | 60 ++++++++++ .../model/ListUserAuthnSourceMappingsResult.h | 69 +++++++++++ .../UnbindUserAuthnSourceMappingRequest.h | 51 +++++++++ .../UnbindUserAuthnSourceMappingResult.h | 49 ++++++++ eiam/src/EiamClient.cc | 108 ++++++++++++++++++ .../BindUserAuthnSourceMappingRequest.cc | 63 ++++++++++ .../model/BindUserAuthnSourceMappingResult.cc | 44 +++++++ .../ListUserAuthnSourceMappingsRequest.cc | 90 +++++++++++++++ .../ListUserAuthnSourceMappingsResult.cc | 97 ++++++++++++++++ .../UnbindUserAuthnSourceMappingRequest.cc | 63 ++++++++++ .../UnbindUserAuthnSourceMappingResult.cc | 44 +++++++ 16 files changed, 875 insertions(+), 1 deletion(-) create mode 100644 eiam/include/alibabacloud/eiam/model/BindUserAuthnSourceMappingRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/BindUserAuthnSourceMappingResult.h create mode 100644 eiam/include/alibabacloud/eiam/model/ListUserAuthnSourceMappingsRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/ListUserAuthnSourceMappingsResult.h create mode 100644 eiam/include/alibabacloud/eiam/model/UnbindUserAuthnSourceMappingRequest.h create mode 100644 eiam/include/alibabacloud/eiam/model/UnbindUserAuthnSourceMappingResult.h create mode 100644 eiam/src/model/BindUserAuthnSourceMappingRequest.cc create mode 100644 eiam/src/model/BindUserAuthnSourceMappingResult.cc create mode 100644 eiam/src/model/ListUserAuthnSourceMappingsRequest.cc create mode 100644 eiam/src/model/ListUserAuthnSourceMappingsResult.cc create mode 100644 eiam/src/model/UnbindUserAuthnSourceMappingRequest.cc create mode 100644 eiam/src/model/UnbindUserAuthnSourceMappingResult.cc diff --git a/VERSION b/VERSION index c4e0c89ad..65c7f5719 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2115 \ No newline at end of file +1.36.2116 \ No newline at end of file diff --git a/eiam/CMakeLists.txt b/eiam/CMakeLists.txt index 31c6d19a1..1a5a7748a 100644 --- a/eiam/CMakeLists.txt +++ b/eiam/CMakeLists.txt @@ -35,6 +35,8 @@ set(eiam_public_header_model include/alibabacloud/eiam/model/AuthorizeApplicationToOrganizationalUnitsResult.h include/alibabacloud/eiam/model/AuthorizeApplicationToUsersRequest.h include/alibabacloud/eiam/model/AuthorizeApplicationToUsersResult.h + include/alibabacloud/eiam/model/BindUserAuthnSourceMappingRequest.h + include/alibabacloud/eiam/model/BindUserAuthnSourceMappingResult.h include/alibabacloud/eiam/model/CreateApplicationRequest.h include/alibabacloud/eiam/model/CreateApplicationResult.h include/alibabacloud/eiam/model/CreateApplicationClientSecretRequest.h @@ -311,6 +313,8 @@ set(eiam_public_header_model include/alibabacloud/eiam/model/ListRegionsResult.h include/alibabacloud/eiam/model/ListSynchronizationJobsRequest.h include/alibabacloud/eiam/model/ListSynchronizationJobsResult.h + include/alibabacloud/eiam/model/ListUserAuthnSourceMappingsRequest.h + include/alibabacloud/eiam/model/ListUserAuthnSourceMappingsResult.h include/alibabacloud/eiam/model/ListUsersRequest.h include/alibabacloud/eiam/model/ListUsersResult.h include/alibabacloud/eiam/model/ListUsersForApplicationRequest.h @@ -365,6 +369,8 @@ set(eiam_public_header_model include/alibabacloud/eiam/model/SetPasswordInitializationConfigurationResult.h include/alibabacloud/eiam/model/SetUserPrimaryOrganizationalUnitRequest.h include/alibabacloud/eiam/model/SetUserPrimaryOrganizationalUnitResult.h + include/alibabacloud/eiam/model/UnbindUserAuthnSourceMappingRequest.h + include/alibabacloud/eiam/model/UnbindUserAuthnSourceMappingResult.h include/alibabacloud/eiam/model/UnlockUserRequest.h include/alibabacloud/eiam/model/UnlockUserResult.h include/alibabacloud/eiam/model/UpdateApplicationAuthorizationTypeRequest.h @@ -440,6 +446,8 @@ set(eiam_src src/model/AuthorizeApplicationToOrganizationalUnitsResult.cc src/model/AuthorizeApplicationToUsersRequest.cc src/model/AuthorizeApplicationToUsersResult.cc + src/model/BindUserAuthnSourceMappingRequest.cc + src/model/BindUserAuthnSourceMappingResult.cc src/model/CreateApplicationRequest.cc src/model/CreateApplicationResult.cc src/model/CreateApplicationClientSecretRequest.cc @@ -716,6 +724,8 @@ set(eiam_src src/model/ListRegionsResult.cc src/model/ListSynchronizationJobsRequest.cc src/model/ListSynchronizationJobsResult.cc + src/model/ListUserAuthnSourceMappingsRequest.cc + src/model/ListUserAuthnSourceMappingsResult.cc src/model/ListUsersRequest.cc src/model/ListUsersResult.cc src/model/ListUsersForApplicationRequest.cc @@ -770,6 +780,8 @@ set(eiam_src src/model/SetPasswordInitializationConfigurationResult.cc src/model/SetUserPrimaryOrganizationalUnitRequest.cc src/model/SetUserPrimaryOrganizationalUnitResult.cc + src/model/UnbindUserAuthnSourceMappingRequest.cc + src/model/UnbindUserAuthnSourceMappingResult.cc src/model/UnlockUserRequest.cc src/model/UnlockUserResult.cc src/model/UpdateApplicationAuthorizationTypeRequest.cc diff --git a/eiam/include/alibabacloud/eiam/EiamClient.h b/eiam/include/alibabacloud/eiam/EiamClient.h index dec787ba6..7506326f9 100644 --- a/eiam/include/alibabacloud/eiam/EiamClient.h +++ b/eiam/include/alibabacloud/eiam/EiamClient.h @@ -36,6 +36,8 @@ #include "model/AuthorizeApplicationToOrganizationalUnitsResult.h" #include "model/AuthorizeApplicationToUsersRequest.h" #include "model/AuthorizeApplicationToUsersResult.h" +#include "model/BindUserAuthnSourceMappingRequest.h" +#include "model/BindUserAuthnSourceMappingResult.h" #include "model/CreateApplicationRequest.h" #include "model/CreateApplicationResult.h" #include "model/CreateApplicationClientSecretRequest.h" @@ -312,6 +314,8 @@ #include "model/ListRegionsResult.h" #include "model/ListSynchronizationJobsRequest.h" #include "model/ListSynchronizationJobsResult.h" +#include "model/ListUserAuthnSourceMappingsRequest.h" +#include "model/ListUserAuthnSourceMappingsResult.h" #include "model/ListUsersRequest.h" #include "model/ListUsersResult.h" #include "model/ListUsersForApplicationRequest.h" @@ -366,6 +370,8 @@ #include "model/SetPasswordInitializationConfigurationResult.h" #include "model/SetUserPrimaryOrganizationalUnitRequest.h" #include "model/SetUserPrimaryOrganizationalUnitResult.h" +#include "model/UnbindUserAuthnSourceMappingRequest.h" +#include "model/UnbindUserAuthnSourceMappingResult.h" #include "model/UnlockUserRequest.h" #include "model/UnlockUserResult.h" #include "model/UpdateApplicationAuthorizationTypeRequest.h" @@ -454,6 +460,9 @@ namespace AlibabaCloud typedef Outcome AuthorizeApplicationToUsersOutcome; typedef std::future AuthorizeApplicationToUsersOutcomeCallable; typedef std::function&)> AuthorizeApplicationToUsersAsyncHandler; + typedef Outcome BindUserAuthnSourceMappingOutcome; + typedef std::future BindUserAuthnSourceMappingOutcomeCallable; + typedef std::function&)> BindUserAuthnSourceMappingAsyncHandler; typedef Outcome CreateApplicationOutcome; typedef std::future CreateApplicationOutcomeCallable; typedef std::function&)> CreateApplicationAsyncHandler; @@ -868,6 +877,9 @@ namespace AlibabaCloud typedef Outcome ListSynchronizationJobsOutcome; typedef std::future ListSynchronizationJobsOutcomeCallable; typedef std::function&)> ListSynchronizationJobsAsyncHandler; + typedef Outcome ListUserAuthnSourceMappingsOutcome; + typedef std::future ListUserAuthnSourceMappingsOutcomeCallable; + typedef std::function&)> ListUserAuthnSourceMappingsAsyncHandler; typedef Outcome ListUsersOutcome; typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; @@ -949,6 +961,9 @@ namespace AlibabaCloud typedef Outcome SetUserPrimaryOrganizationalUnitOutcome; typedef std::future SetUserPrimaryOrganizationalUnitOutcomeCallable; typedef std::function&)> SetUserPrimaryOrganizationalUnitAsyncHandler; + typedef Outcome UnbindUserAuthnSourceMappingOutcome; + typedef std::future UnbindUserAuthnSourceMappingOutcomeCallable; + typedef std::function&)> UnbindUserAuthnSourceMappingAsyncHandler; typedef Outcome UnlockUserOutcome; typedef std::future UnlockUserOutcomeCallable; typedef std::function&)> UnlockUserAsyncHandler; @@ -1062,6 +1077,9 @@ namespace AlibabaCloud AuthorizeApplicationToUsersOutcome authorizeApplicationToUsers(const Model::AuthorizeApplicationToUsersRequest &request)const; void authorizeApplicationToUsersAsync(const Model::AuthorizeApplicationToUsersRequest& request, const AuthorizeApplicationToUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AuthorizeApplicationToUsersOutcomeCallable authorizeApplicationToUsersCallable(const Model::AuthorizeApplicationToUsersRequest& request) const; + BindUserAuthnSourceMappingOutcome bindUserAuthnSourceMapping(const Model::BindUserAuthnSourceMappingRequest &request)const; + void bindUserAuthnSourceMappingAsync(const Model::BindUserAuthnSourceMappingRequest& request, const BindUserAuthnSourceMappingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BindUserAuthnSourceMappingOutcomeCallable bindUserAuthnSourceMappingCallable(const Model::BindUserAuthnSourceMappingRequest& request) const; CreateApplicationOutcome createApplication(const Model::CreateApplicationRequest &request)const; void createApplicationAsync(const Model::CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateApplicationOutcomeCallable createApplicationCallable(const Model::CreateApplicationRequest& request) const; @@ -1476,6 +1494,9 @@ namespace AlibabaCloud ListSynchronizationJobsOutcome listSynchronizationJobs(const Model::ListSynchronizationJobsRequest &request)const; void listSynchronizationJobsAsync(const Model::ListSynchronizationJobsRequest& request, const ListSynchronizationJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSynchronizationJobsOutcomeCallable listSynchronizationJobsCallable(const Model::ListSynchronizationJobsRequest& request) const; + ListUserAuthnSourceMappingsOutcome listUserAuthnSourceMappings(const Model::ListUserAuthnSourceMappingsRequest &request)const; + void listUserAuthnSourceMappingsAsync(const Model::ListUserAuthnSourceMappingsRequest& request, const ListUserAuthnSourceMappingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUserAuthnSourceMappingsOutcomeCallable listUserAuthnSourceMappingsCallable(const Model::ListUserAuthnSourceMappingsRequest& request) const; ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; @@ -1557,6 +1578,9 @@ namespace AlibabaCloud SetUserPrimaryOrganizationalUnitOutcome setUserPrimaryOrganizationalUnit(const Model::SetUserPrimaryOrganizationalUnitRequest &request)const; void setUserPrimaryOrganizationalUnitAsync(const Model::SetUserPrimaryOrganizationalUnitRequest& request, const SetUserPrimaryOrganizationalUnitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetUserPrimaryOrganizationalUnitOutcomeCallable setUserPrimaryOrganizationalUnitCallable(const Model::SetUserPrimaryOrganizationalUnitRequest& request) const; + UnbindUserAuthnSourceMappingOutcome unbindUserAuthnSourceMapping(const Model::UnbindUserAuthnSourceMappingRequest &request)const; + void unbindUserAuthnSourceMappingAsync(const Model::UnbindUserAuthnSourceMappingRequest& request, const UnbindUserAuthnSourceMappingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnbindUserAuthnSourceMappingOutcomeCallable unbindUserAuthnSourceMappingCallable(const Model::UnbindUserAuthnSourceMappingRequest& request) const; UnlockUserOutcome unlockUser(const Model::UnlockUserRequest &request)const; void unlockUserAsync(const Model::UnlockUserRequest& request, const UnlockUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnlockUserOutcomeCallable unlockUserCallable(const Model::UnlockUserRequest& request) const; diff --git a/eiam/include/alibabacloud/eiam/model/BindUserAuthnSourceMappingRequest.h b/eiam/include/alibabacloud/eiam/model/BindUserAuthnSourceMappingRequest.h new file mode 100644 index 000000000..bd7d0729e --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/BindUserAuthnSourceMappingRequest.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_EIAM_MODEL_BINDUSERAUTHNSOURCEMAPPINGREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_BINDUSERAUTHNSOURCEMAPPINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT BindUserAuthnSourceMappingRequest : public RpcServiceRequest { +public: + BindUserAuthnSourceMappingRequest(); + ~BindUserAuthnSourceMappingRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getIdentityProviderId() const; + void setIdentityProviderId(const std::string &identityProviderId); + std::string getUserExternalId() const; + void setUserExternalId(const std::string &userExternalId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string userId_; + std::string identityProviderId_; + std::string userExternalId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_BINDUSERAUTHNSOURCEMAPPINGREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/BindUserAuthnSourceMappingResult.h b/eiam/include/alibabacloud/eiam/model/BindUserAuthnSourceMappingResult.h new file mode 100644 index 000000000..619b7a949 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/BindUserAuthnSourceMappingResult.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_EIAM_MODEL_BINDUSERAUTHNSOURCEMAPPINGRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_BINDUSERAUTHNSOURCEMAPPINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT BindUserAuthnSourceMappingResult : public ServiceResult + { + public: + + + BindUserAuthnSourceMappingResult(); + explicit BindUserAuthnSourceMappingResult(const std::string &payload); + ~BindUserAuthnSourceMappingResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_BINDUSERAUTHNSOURCEMAPPINGRESULT_H_ \ No newline at end of file diff --git a/eiam/include/alibabacloud/eiam/model/ListUserAuthnSourceMappingsRequest.h b/eiam/include/alibabacloud/eiam/model/ListUserAuthnSourceMappingsRequest.h new file mode 100644 index 000000000..d169e0a40 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/ListUserAuthnSourceMappingsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EIAM_MODEL_LISTUSERAUTHNSOURCEMAPPINGSREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_LISTUSERAUTHNSOURCEMAPPINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT ListUserAuthnSourceMappingsRequest : public RpcServiceRequest { +public: + ListUserAuthnSourceMappingsRequest(); + ~ListUserAuthnSourceMappingsRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getIdentityProviderId() const; + void setIdentityProviderId(const std::string &identityProviderId); + std::string getPreviousToken() const; + void setPreviousToken(const std::string &previousToken); + std::string getUserExternalId() const; + void setUserExternalId(const std::string &userExternalId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string userId_; + std::string nextToken_; + std::string identityProviderId_; + std::string previousToken_; + std::string userExternalId_; + std::string instanceId_; + int maxResults_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_LISTUSERAUTHNSOURCEMAPPINGSREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/ListUserAuthnSourceMappingsResult.h b/eiam/include/alibabacloud/eiam/model/ListUserAuthnSourceMappingsResult.h new file mode 100644 index 000000000..46d66fc30 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/ListUserAuthnSourceMappingsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EIAM_MODEL_LISTUSERAUTHNSOURCEMAPPINGSRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_LISTUSERAUTHNSOURCEMAPPINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT ListUserAuthnSourceMappingsResult : public ServiceResult + { + public: + struct UserAuthnSourceMapping + { + std::string identityProviderId; + std::string instanceId; + std::string userId; + long createTime; + long updateTime; + std::string userExternalId; + std::string authnSourceType; + }; + + + ListUserAuthnSourceMappingsResult(); + explicit ListUserAuthnSourceMappingsResult(const std::string &payload); + ~ListUserAuthnSourceMappingsResult(); + int getTotalCount()const; + std::string getPreviousToken()const; + std::string getNextToken()const; + std::vector getUserAuthnSourceMappings()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string previousToken_; + std::string nextToken_; + std::vector userAuthnSourceMappings_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_LISTUSERAUTHNSOURCEMAPPINGSRESULT_H_ \ No newline at end of file diff --git a/eiam/include/alibabacloud/eiam/model/UnbindUserAuthnSourceMappingRequest.h b/eiam/include/alibabacloud/eiam/model/UnbindUserAuthnSourceMappingRequest.h new file mode 100644 index 000000000..a4cee9ebb --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/UnbindUserAuthnSourceMappingRequest.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_EIAM_MODEL_UNBINDUSERAUTHNSOURCEMAPPINGREQUEST_H_ +#define ALIBABACLOUD_EIAM_MODEL_UNBINDUSERAUTHNSOURCEMAPPINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eiam { +namespace Model { +class ALIBABACLOUD_EIAM_EXPORT UnbindUserAuthnSourceMappingRequest : public RpcServiceRequest { +public: + UnbindUserAuthnSourceMappingRequest(); + ~UnbindUserAuthnSourceMappingRequest(); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getIdentityProviderId() const; + void setIdentityProviderId(const std::string &identityProviderId); + std::string getUserExternalId() const; + void setUserExternalId(const std::string &userExternalId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string userId_; + std::string identityProviderId_; + std::string userExternalId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace Eiam +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EIAM_MODEL_UNBINDUSERAUTHNSOURCEMAPPINGREQUEST_H_ diff --git a/eiam/include/alibabacloud/eiam/model/UnbindUserAuthnSourceMappingResult.h b/eiam/include/alibabacloud/eiam/model/UnbindUserAuthnSourceMappingResult.h new file mode 100644 index 000000000..45f285370 --- /dev/null +++ b/eiam/include/alibabacloud/eiam/model/UnbindUserAuthnSourceMappingResult.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_EIAM_MODEL_UNBINDUSERAUTHNSOURCEMAPPINGRESULT_H_ +#define ALIBABACLOUD_EIAM_MODEL_UNBINDUSERAUTHNSOURCEMAPPINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eiam + { + namespace Model + { + class ALIBABACLOUD_EIAM_EXPORT UnbindUserAuthnSourceMappingResult : public ServiceResult + { + public: + + + UnbindUserAuthnSourceMappingResult(); + explicit UnbindUserAuthnSourceMappingResult(const std::string &payload); + ~UnbindUserAuthnSourceMappingResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EIAM_MODEL_UNBINDUSERAUTHNSOURCEMAPPINGRESULT_H_ \ No newline at end of file diff --git a/eiam/src/EiamClient.cc b/eiam/src/EiamClient.cc index 5aef16e39..16228d5c6 100644 --- a/eiam/src/EiamClient.cc +++ b/eiam/src/EiamClient.cc @@ -303,6 +303,42 @@ EiamClient::AuthorizeApplicationToUsersOutcomeCallable EiamClient::authorizeAppl return task->get_future(); } +EiamClient::BindUserAuthnSourceMappingOutcome EiamClient::bindUserAuthnSourceMapping(const BindUserAuthnSourceMappingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BindUserAuthnSourceMappingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BindUserAuthnSourceMappingOutcome(BindUserAuthnSourceMappingResult(outcome.result())); + else + return BindUserAuthnSourceMappingOutcome(outcome.error()); +} + +void EiamClient::bindUserAuthnSourceMappingAsync(const BindUserAuthnSourceMappingRequest& request, const BindUserAuthnSourceMappingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, bindUserAuthnSourceMapping(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::BindUserAuthnSourceMappingOutcomeCallable EiamClient::bindUserAuthnSourceMappingCallable(const BindUserAuthnSourceMappingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->bindUserAuthnSourceMapping(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EiamClient::CreateApplicationOutcome EiamClient::createApplication(const CreateApplicationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5271,6 +5307,42 @@ EiamClient::ListSynchronizationJobsOutcomeCallable EiamClient::listSynchronizati return task->get_future(); } +EiamClient::ListUserAuthnSourceMappingsOutcome EiamClient::listUserAuthnSourceMappings(const ListUserAuthnSourceMappingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUserAuthnSourceMappingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUserAuthnSourceMappingsOutcome(ListUserAuthnSourceMappingsResult(outcome.result())); + else + return ListUserAuthnSourceMappingsOutcome(outcome.error()); +} + +void EiamClient::listUserAuthnSourceMappingsAsync(const ListUserAuthnSourceMappingsRequest& request, const ListUserAuthnSourceMappingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUserAuthnSourceMappings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::ListUserAuthnSourceMappingsOutcomeCallable EiamClient::listUserAuthnSourceMappingsCallable(const ListUserAuthnSourceMappingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUserAuthnSourceMappings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EiamClient::ListUsersOutcome EiamClient::listUsers(const ListUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -6243,6 +6315,42 @@ EiamClient::SetUserPrimaryOrganizationalUnitOutcomeCallable EiamClient::setUserP return task->get_future(); } +EiamClient::UnbindUserAuthnSourceMappingOutcome EiamClient::unbindUserAuthnSourceMapping(const UnbindUserAuthnSourceMappingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnbindUserAuthnSourceMappingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnbindUserAuthnSourceMappingOutcome(UnbindUserAuthnSourceMappingResult(outcome.result())); + else + return UnbindUserAuthnSourceMappingOutcome(outcome.error()); +} + +void EiamClient::unbindUserAuthnSourceMappingAsync(const UnbindUserAuthnSourceMappingRequest& request, const UnbindUserAuthnSourceMappingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unbindUserAuthnSourceMapping(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EiamClient::UnbindUserAuthnSourceMappingOutcomeCallable EiamClient::unbindUserAuthnSourceMappingCallable(const UnbindUserAuthnSourceMappingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unbindUserAuthnSourceMapping(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EiamClient::UnlockUserOutcome EiamClient::unlockUser(const UnlockUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/eiam/src/model/BindUserAuthnSourceMappingRequest.cc b/eiam/src/model/BindUserAuthnSourceMappingRequest.cc new file mode 100644 index 000000000..c598b06cd --- /dev/null +++ b/eiam/src/model/BindUserAuthnSourceMappingRequest.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::Eiam::Model::BindUserAuthnSourceMappingRequest; + +BindUserAuthnSourceMappingRequest::BindUserAuthnSourceMappingRequest() + : RpcServiceRequest("eiam", "2021-12-01", "BindUserAuthnSourceMapping") { + setMethod(HttpRequest::Method::Post); +} + +BindUserAuthnSourceMappingRequest::~BindUserAuthnSourceMappingRequest() {} + +std::string BindUserAuthnSourceMappingRequest::getUserId() const { + return userId_; +} + +void BindUserAuthnSourceMappingRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string BindUserAuthnSourceMappingRequest::getIdentityProviderId() const { + return identityProviderId_; +} + +void BindUserAuthnSourceMappingRequest::setIdentityProviderId(const std::string &identityProviderId) { + identityProviderId_ = identityProviderId; + setParameter(std::string("IdentityProviderId"), identityProviderId); +} + +std::string BindUserAuthnSourceMappingRequest::getUserExternalId() const { + return userExternalId_; +} + +void BindUserAuthnSourceMappingRequest::setUserExternalId(const std::string &userExternalId) { + userExternalId_ = userExternalId; + setParameter(std::string("UserExternalId"), userExternalId); +} + +std::string BindUserAuthnSourceMappingRequest::getInstanceId() const { + return instanceId_; +} + +void BindUserAuthnSourceMappingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/eiam/src/model/BindUserAuthnSourceMappingResult.cc b/eiam/src/model/BindUserAuthnSourceMappingResult.cc new file mode 100644 index 000000000..27d9256ca --- /dev/null +++ b/eiam/src/model/BindUserAuthnSourceMappingResult.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::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +BindUserAuthnSourceMappingResult::BindUserAuthnSourceMappingResult() : + ServiceResult() +{} + +BindUserAuthnSourceMappingResult::BindUserAuthnSourceMappingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BindUserAuthnSourceMappingResult::~BindUserAuthnSourceMappingResult() +{} + +void BindUserAuthnSourceMappingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/eiam/src/model/ListUserAuthnSourceMappingsRequest.cc b/eiam/src/model/ListUserAuthnSourceMappingsRequest.cc new file mode 100644 index 000000000..4e8830f5f --- /dev/null +++ b/eiam/src/model/ListUserAuthnSourceMappingsRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Eiam::Model::ListUserAuthnSourceMappingsRequest; + +ListUserAuthnSourceMappingsRequest::ListUserAuthnSourceMappingsRequest() + : RpcServiceRequest("eiam", "2021-12-01", "ListUserAuthnSourceMappings") { + setMethod(HttpRequest::Method::Post); +} + +ListUserAuthnSourceMappingsRequest::~ListUserAuthnSourceMappingsRequest() {} + +std::string ListUserAuthnSourceMappingsRequest::getUserId() const { + return userId_; +} + +void ListUserAuthnSourceMappingsRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string ListUserAuthnSourceMappingsRequest::getNextToken() const { + return nextToken_; +} + +void ListUserAuthnSourceMappingsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListUserAuthnSourceMappingsRequest::getIdentityProviderId() const { + return identityProviderId_; +} + +void ListUserAuthnSourceMappingsRequest::setIdentityProviderId(const std::string &identityProviderId) { + identityProviderId_ = identityProviderId; + setParameter(std::string("IdentityProviderId"), identityProviderId); +} + +std::string ListUserAuthnSourceMappingsRequest::getPreviousToken() const { + return previousToken_; +} + +void ListUserAuthnSourceMappingsRequest::setPreviousToken(const std::string &previousToken) { + previousToken_ = previousToken; + setParameter(std::string("PreviousToken"), previousToken); +} + +std::string ListUserAuthnSourceMappingsRequest::getUserExternalId() const { + return userExternalId_; +} + +void ListUserAuthnSourceMappingsRequest::setUserExternalId(const std::string &userExternalId) { + userExternalId_ = userExternalId; + setParameter(std::string("UserExternalId"), userExternalId); +} + +std::string ListUserAuthnSourceMappingsRequest::getInstanceId() const { + return instanceId_; +} + +void ListUserAuthnSourceMappingsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int ListUserAuthnSourceMappingsRequest::getMaxResults() const { + return maxResults_; +} + +void ListUserAuthnSourceMappingsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/eiam/src/model/ListUserAuthnSourceMappingsResult.cc b/eiam/src/model/ListUserAuthnSourceMappingsResult.cc new file mode 100644 index 000000000..51115c28c --- /dev/null +++ b/eiam/src/model/ListUserAuthnSourceMappingsResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +ListUserAuthnSourceMappingsResult::ListUserAuthnSourceMappingsResult() : + ServiceResult() +{} + +ListUserAuthnSourceMappingsResult::ListUserAuthnSourceMappingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUserAuthnSourceMappingsResult::~ListUserAuthnSourceMappingsResult() +{} + +void ListUserAuthnSourceMappingsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUserAuthnSourceMappingsNode = value["UserAuthnSourceMappings"]["UserAuthnSourceMapping"]; + for (auto valueUserAuthnSourceMappingsUserAuthnSourceMapping : allUserAuthnSourceMappingsNode) + { + UserAuthnSourceMapping userAuthnSourceMappingsObject; + if(!valueUserAuthnSourceMappingsUserAuthnSourceMapping["InstanceId"].isNull()) + userAuthnSourceMappingsObject.instanceId = valueUserAuthnSourceMappingsUserAuthnSourceMapping["InstanceId"].asString(); + if(!valueUserAuthnSourceMappingsUserAuthnSourceMapping["UserId"].isNull()) + userAuthnSourceMappingsObject.userId = valueUserAuthnSourceMappingsUserAuthnSourceMapping["UserId"].asString(); + if(!valueUserAuthnSourceMappingsUserAuthnSourceMapping["UserExternalId"].isNull()) + userAuthnSourceMappingsObject.userExternalId = valueUserAuthnSourceMappingsUserAuthnSourceMapping["UserExternalId"].asString(); + if(!valueUserAuthnSourceMappingsUserAuthnSourceMapping["AuthnSourceType"].isNull()) + userAuthnSourceMappingsObject.authnSourceType = valueUserAuthnSourceMappingsUserAuthnSourceMapping["AuthnSourceType"].asString(); + if(!valueUserAuthnSourceMappingsUserAuthnSourceMapping["IdentityProviderId"].isNull()) + userAuthnSourceMappingsObject.identityProviderId = valueUserAuthnSourceMappingsUserAuthnSourceMapping["IdentityProviderId"].asString(); + if(!valueUserAuthnSourceMappingsUserAuthnSourceMapping["CreateTime"].isNull()) + userAuthnSourceMappingsObject.createTime = std::stol(valueUserAuthnSourceMappingsUserAuthnSourceMapping["CreateTime"].asString()); + if(!valueUserAuthnSourceMappingsUserAuthnSourceMapping["UpdateTime"].isNull()) + userAuthnSourceMappingsObject.updateTime = std::stol(valueUserAuthnSourceMappingsUserAuthnSourceMapping["UpdateTime"].asString()); + userAuthnSourceMappings_.push_back(userAuthnSourceMappingsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["PreviousToken"].isNull()) + previousToken_ = value["PreviousToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int ListUserAuthnSourceMappingsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListUserAuthnSourceMappingsResult::getPreviousToken()const +{ + return previousToken_; +} + +std::string ListUserAuthnSourceMappingsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListUserAuthnSourceMappingsResult::getUserAuthnSourceMappings()const +{ + return userAuthnSourceMappings_; +} + +int ListUserAuthnSourceMappingsResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/eiam/src/model/UnbindUserAuthnSourceMappingRequest.cc b/eiam/src/model/UnbindUserAuthnSourceMappingRequest.cc new file mode 100644 index 000000000..29744d439 --- /dev/null +++ b/eiam/src/model/UnbindUserAuthnSourceMappingRequest.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::Eiam::Model::UnbindUserAuthnSourceMappingRequest; + +UnbindUserAuthnSourceMappingRequest::UnbindUserAuthnSourceMappingRequest() + : RpcServiceRequest("eiam", "2021-12-01", "UnbindUserAuthnSourceMapping") { + setMethod(HttpRequest::Method::Post); +} + +UnbindUserAuthnSourceMappingRequest::~UnbindUserAuthnSourceMappingRequest() {} + +std::string UnbindUserAuthnSourceMappingRequest::getUserId() const { + return userId_; +} + +void UnbindUserAuthnSourceMappingRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); +} + +std::string UnbindUserAuthnSourceMappingRequest::getIdentityProviderId() const { + return identityProviderId_; +} + +void UnbindUserAuthnSourceMappingRequest::setIdentityProviderId(const std::string &identityProviderId) { + identityProviderId_ = identityProviderId; + setParameter(std::string("IdentityProviderId"), identityProviderId); +} + +std::string UnbindUserAuthnSourceMappingRequest::getUserExternalId() const { + return userExternalId_; +} + +void UnbindUserAuthnSourceMappingRequest::setUserExternalId(const std::string &userExternalId) { + userExternalId_ = userExternalId; + setParameter(std::string("UserExternalId"), userExternalId); +} + +std::string UnbindUserAuthnSourceMappingRequest::getInstanceId() const { + return instanceId_; +} + +void UnbindUserAuthnSourceMappingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/eiam/src/model/UnbindUserAuthnSourceMappingResult.cc b/eiam/src/model/UnbindUserAuthnSourceMappingResult.cc new file mode 100644 index 000000000..e08347767 --- /dev/null +++ b/eiam/src/model/UnbindUserAuthnSourceMappingResult.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::Eiam; +using namespace AlibabaCloud::Eiam::Model; + +UnbindUserAuthnSourceMappingResult::UnbindUserAuthnSourceMappingResult() : + ServiceResult() +{} + +UnbindUserAuthnSourceMappingResult::UnbindUserAuthnSourceMappingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnbindUserAuthnSourceMappingResult::~UnbindUserAuthnSourceMappingResult() +{} + +void UnbindUserAuthnSourceMappingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +