Generated 2021-03-08 for eds-user.
This commit is contained in:
1241
eds-user/src/Eds-userClient.cc
Normal file
1241
eds-user/src/Eds-userClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
44
eds-user/src/model/BatchSetDesktopManagerRequest.cc
Normal file
44
eds-user/src/model/BatchSetDesktopManagerRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/BatchSetDesktopManagerRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::BatchSetDesktopManagerRequest;
|
||||
|
||||
BatchSetDesktopManagerRequest::BatchSetDesktopManagerRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "BatchSetDesktopManager") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchSetDesktopManagerRequest::~BatchSetDesktopManagerRequest() {}
|
||||
|
||||
std::string BatchSetDesktopManagerRequest::getIsDesktopManager() const {
|
||||
return isDesktopManager_;
|
||||
}
|
||||
|
||||
void BatchSetDesktopManagerRequest::setIsDesktopManager(const std::string &isDesktopManager) {
|
||||
isDesktopManager_ = isDesktopManager;
|
||||
setBodyParameter(std::string("IsDesktopManager"), isDesktopManager);
|
||||
}
|
||||
|
||||
std::vector<std::string> BatchSetDesktopManagerRequest::getUsers() const {
|
||||
return users_;
|
||||
}
|
||||
|
||||
void BatchSetDesktopManagerRequest::setUsers(const std::vector<std::string> &users) {
|
||||
users_ = users;
|
||||
}
|
||||
|
||||
44
eds-user/src/model/BatchSetDesktopManagerResult.cc
Normal file
44
eds-user/src/model/BatchSetDesktopManagerResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/BatchSetDesktopManagerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
BatchSetDesktopManagerResult::BatchSetDesktopManagerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchSetDesktopManagerResult::BatchSetDesktopManagerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchSetDesktopManagerResult::~BatchSetDesktopManagerResult()
|
||||
{}
|
||||
|
||||
void BatchSetDesktopManagerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
eds-user/src/model/ChangeUserPasswordRequest.cc
Normal file
54
eds-user/src/model/ChangeUserPasswordRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/ChangeUserPasswordRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::ChangeUserPasswordRequest;
|
||||
|
||||
ChangeUserPasswordRequest::ChangeUserPasswordRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "ChangeUserPassword") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChangeUserPasswordRequest::~ChangeUserPasswordRequest() {}
|
||||
|
||||
std::string ChangeUserPasswordRequest::getNewPassword() const {
|
||||
return newPassword_;
|
||||
}
|
||||
|
||||
void ChangeUserPasswordRequest::setNewPassword(const std::string &newPassword) {
|
||||
newPassword_ = newPassword;
|
||||
setBodyParameter(std::string("NewPassword"), newPassword);
|
||||
}
|
||||
|
||||
std::string ChangeUserPasswordRequest::getEndUserId() const {
|
||||
return endUserId_;
|
||||
}
|
||||
|
||||
void ChangeUserPasswordRequest::setEndUserId(const std::string &endUserId) {
|
||||
endUserId_ = endUserId;
|
||||
setBodyParameter(std::string("EndUserId"), endUserId);
|
||||
}
|
||||
|
||||
std::string ChangeUserPasswordRequest::getNotifyType() const {
|
||||
return notifyType_;
|
||||
}
|
||||
|
||||
void ChangeUserPasswordRequest::setNotifyType(const std::string ¬ifyType) {
|
||||
notifyType_ = notifyType;
|
||||
setBodyParameter(std::string("NotifyType"), notifyType);
|
||||
}
|
||||
|
||||
44
eds-user/src/model/ChangeUserPasswordResult.cc
Normal file
44
eds-user/src/model/ChangeUserPasswordResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/ChangeUserPasswordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
ChangeUserPasswordResult::ChangeUserPasswordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeUserPasswordResult::ChangeUserPasswordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeUserPasswordResult::~ChangeUserPasswordResult()
|
||||
{}
|
||||
|
||||
void ChangeUserPasswordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
eds-user/src/model/CheckUsedPropertyRequest.cc
Normal file
36
eds-user/src/model/CheckUsedPropertyRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/CheckUsedPropertyRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::CheckUsedPropertyRequest;
|
||||
|
||||
CheckUsedPropertyRequest::CheckUsedPropertyRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "CheckUsedProperty") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckUsedPropertyRequest::~CheckUsedPropertyRequest() {}
|
||||
|
||||
long CheckUsedPropertyRequest::getPropertyId() const {
|
||||
return propertyId_;
|
||||
}
|
||||
|
||||
void CheckUsedPropertyRequest::setPropertyId(long propertyId) {
|
||||
propertyId_ = propertyId;
|
||||
setParameter(std::string("PropertyId"), std::to_string(propertyId));
|
||||
}
|
||||
|
||||
51
eds-user/src/model/CheckUsedPropertyResult.cc
Normal file
51
eds-user/src/model/CheckUsedPropertyResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/CheckUsedPropertyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
CheckUsedPropertyResult::CheckUsedPropertyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckUsedPropertyResult::CheckUsedPropertyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckUsedPropertyResult::~CheckUsedPropertyResult()
|
||||
{}
|
||||
|
||||
void CheckUsedPropertyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["UseCount"].isNull())
|
||||
useCount_ = std::stol(value["UseCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CheckUsedPropertyResult::getUseCount()const
|
||||
{
|
||||
return useCount_;
|
||||
}
|
||||
|
||||
45
eds-user/src/model/CheckUsedPropertyValueRequest.cc
Normal file
45
eds-user/src/model/CheckUsedPropertyValueRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/CheckUsedPropertyValueRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::CheckUsedPropertyValueRequest;
|
||||
|
||||
CheckUsedPropertyValueRequest::CheckUsedPropertyValueRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "CheckUsedPropertyValue") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckUsedPropertyValueRequest::~CheckUsedPropertyValueRequest() {}
|
||||
|
||||
long CheckUsedPropertyValueRequest::getPropertyValueId() const {
|
||||
return propertyValueId_;
|
||||
}
|
||||
|
||||
void CheckUsedPropertyValueRequest::setPropertyValueId(long propertyValueId) {
|
||||
propertyValueId_ = propertyValueId;
|
||||
setParameter(std::string("PropertyValueId"), std::to_string(propertyValueId));
|
||||
}
|
||||
|
||||
long CheckUsedPropertyValueRequest::getPropertyId() const {
|
||||
return propertyId_;
|
||||
}
|
||||
|
||||
void CheckUsedPropertyValueRequest::setPropertyId(long propertyId) {
|
||||
propertyId_ = propertyId;
|
||||
setParameter(std::string("PropertyId"), std::to_string(propertyId));
|
||||
}
|
||||
|
||||
51
eds-user/src/model/CheckUsedPropertyValueResult.cc
Normal file
51
eds-user/src/model/CheckUsedPropertyValueResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/CheckUsedPropertyValueResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
CheckUsedPropertyValueResult::CheckUsedPropertyValueResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckUsedPropertyValueResult::CheckUsedPropertyValueResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckUsedPropertyValueResult::~CheckUsedPropertyValueResult()
|
||||
{}
|
||||
|
||||
void CheckUsedPropertyValueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["UseCount"].isNull())
|
||||
useCount_ = std::stol(value["UseCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CheckUsedPropertyValueResult::getUseCount()const
|
||||
{
|
||||
return useCount_;
|
||||
}
|
||||
|
||||
54
eds-user/src/model/CreateOrgRequest.cc
Normal file
54
eds-user/src/model/CreateOrgRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/CreateOrgRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::CreateOrgRequest;
|
||||
|
||||
CreateOrgRequest::CreateOrgRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "CreateOrg") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrgRequest::~CreateOrgRequest() {}
|
||||
|
||||
std::string CreateOrgRequest::getIcon() const {
|
||||
return icon_;
|
||||
}
|
||||
|
||||
void CreateOrgRequest::setIcon(const std::string &icon) {
|
||||
icon_ = icon;
|
||||
setParameter(std::string("Icon"), icon);
|
||||
}
|
||||
|
||||
std::string CreateOrgRequest::getOrgName() const {
|
||||
return orgName_;
|
||||
}
|
||||
|
||||
void CreateOrgRequest::setOrgName(const std::string &orgName) {
|
||||
orgName_ = orgName;
|
||||
setParameter(std::string("OrgName"), orgName);
|
||||
}
|
||||
|
||||
std::string CreateOrgRequest::getParentOrgId() const {
|
||||
return parentOrgId_;
|
||||
}
|
||||
|
||||
void CreateOrgRequest::setParentOrgId(const std::string &parentOrgId) {
|
||||
parentOrgId_ = parentOrgId;
|
||||
setParameter(std::string("ParentOrgId"), parentOrgId);
|
||||
}
|
||||
|
||||
51
eds-user/src/model/CreateOrgResult.cc
Normal file
51
eds-user/src/model/CreateOrgResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/CreateOrgResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
CreateOrgResult::CreateOrgResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrgResult::CreateOrgResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrgResult::~CreateOrgResult()
|
||||
{}
|
||||
|
||||
void CreateOrgResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrgId"].isNull())
|
||||
orgId_ = value["OrgId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateOrgResult::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
44
eds-user/src/model/CreatePropertyRequest.cc
Normal file
44
eds-user/src/model/CreatePropertyRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/CreatePropertyRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::CreatePropertyRequest;
|
||||
|
||||
CreatePropertyRequest::CreatePropertyRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "CreateProperty") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePropertyRequest::~CreatePropertyRequest() {}
|
||||
|
||||
std::string CreatePropertyRequest::getPropertyKey() const {
|
||||
return propertyKey_;
|
||||
}
|
||||
|
||||
void CreatePropertyRequest::setPropertyKey(const std::string &propertyKey) {
|
||||
propertyKey_ = propertyKey;
|
||||
setBodyParameter(std::string("PropertyKey"), propertyKey);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreatePropertyRequest::getPropertyValues() const {
|
||||
return propertyValues_;
|
||||
}
|
||||
|
||||
void CreatePropertyRequest::setPropertyValues(const std::vector<std::string> &propertyValues) {
|
||||
propertyValues_ = propertyValues;
|
||||
}
|
||||
|
||||
79
eds-user/src/model/CreatePropertyResult.cc
Normal file
79
eds-user/src/model/CreatePropertyResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/CreatePropertyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
CreatePropertyResult::CreatePropertyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePropertyResult::CreatePropertyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePropertyResult::~CreatePropertyResult()
|
||||
{}
|
||||
|
||||
void CreatePropertyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto createResultNode = value["CreateResult"];
|
||||
if(!createResultNode["PropertyId"].isNull())
|
||||
createResult_.propertyId = std::stol(createResultNode["PropertyId"].asString());
|
||||
if(!createResultNode["PropertyKey"].isNull())
|
||||
createResult_.propertyKey = createResultNode["PropertyKey"].asString();
|
||||
auto savePropertyValueModelNode = createResultNode["SavePropertyValueModel"];
|
||||
auto allSavePropertyValuesNode = savePropertyValueModelNode["SavePropertyValues"]["savePropertyValuesItem"];
|
||||
for (auto savePropertyValueModelNodeSavePropertyValuessavePropertyValuesItem : allSavePropertyValuesNode)
|
||||
{
|
||||
CreateResult::SavePropertyValueModel::SavePropertyValuesItem savePropertyValuesItemObject;
|
||||
if(!savePropertyValueModelNodeSavePropertyValuessavePropertyValuesItem["PropertyValueId"].isNull())
|
||||
savePropertyValuesItemObject.propertyValueId = std::stol(savePropertyValueModelNodeSavePropertyValuessavePropertyValuesItem["PropertyValueId"].asString());
|
||||
if(!savePropertyValueModelNodeSavePropertyValuessavePropertyValuesItem["PropertyValue"].isNull())
|
||||
savePropertyValuesItemObject.propertyValue = savePropertyValueModelNodeSavePropertyValuessavePropertyValuesItem["PropertyValue"].asString();
|
||||
createResult_.savePropertyValueModel.savePropertyValues.push_back(savePropertyValuesItemObject);
|
||||
}
|
||||
auto allFailedPropertyValuesNode = savePropertyValueModelNode["FailedPropertyValues"]["failedPropertyValuesItem"];
|
||||
for (auto savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem : allFailedPropertyValuesNode)
|
||||
{
|
||||
CreateResult::SavePropertyValueModel::FailedPropertyValuesItem failedPropertyValuesItemObject;
|
||||
if(!savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["PropertyId"].isNull())
|
||||
failedPropertyValuesItemObject.propertyId = std::stol(savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["PropertyId"].asString());
|
||||
if(!savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["PropertyValue"].isNull())
|
||||
failedPropertyValuesItemObject.propertyValue = savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["PropertyValue"].asString();
|
||||
if(!savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["ErrorCode"].isNull())
|
||||
failedPropertyValuesItemObject.errorCode = savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["ErrorCode"].asString();
|
||||
if(!savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["ErrorMessage"].isNull())
|
||||
failedPropertyValuesItemObject.errorMessage = savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["ErrorMessage"].asString();
|
||||
createResult_.savePropertyValueModel.failedPropertyValues.push_back(failedPropertyValuesItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CreatePropertyResult::CreateResult CreatePropertyResult::getCreateResult()const
|
||||
{
|
||||
return createResult_;
|
||||
}
|
||||
|
||||
83
eds-user/src/model/CreateUsersRequest.cc
Normal file
83
eds-user/src/model/CreateUsersRequest.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/CreateUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::CreateUsersRequest;
|
||||
|
||||
CreateUsersRequest::CreateUsersRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "CreateUsers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUsersRequest::~CreateUsersRequest() {}
|
||||
|
||||
std::string CreateUsersRequest::getAutoLockTime() const {
|
||||
return autoLockTime_;
|
||||
}
|
||||
|
||||
void CreateUsersRequest::setAutoLockTime(const std::string &autoLockTime) {
|
||||
autoLockTime_ = autoLockTime;
|
||||
setParameter(std::string("AutoLockTime"), autoLockTime);
|
||||
}
|
||||
|
||||
bool CreateUsersRequest::getIsLocalAdmin() const {
|
||||
return isLocalAdmin_;
|
||||
}
|
||||
|
||||
void CreateUsersRequest::setIsLocalAdmin(bool isLocalAdmin) {
|
||||
isLocalAdmin_ = isLocalAdmin;
|
||||
setParameter(std::string("IsLocalAdmin"), isLocalAdmin ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<CreateUsersRequest::Users> CreateUsersRequest::getUsers() const {
|
||||
return users_;
|
||||
}
|
||||
|
||||
void CreateUsersRequest::setUsers(const std::vector<CreateUsersRequest::Users> &users) {
|
||||
users_ = users;
|
||||
for(int dep1 = 0; dep1 != users.size(); dep1++) {
|
||||
auto usersObj = users.at(dep1);
|
||||
std::string usersObjStr = std::string("Users") + "." + std::to_string(dep1 + 1);
|
||||
setBodyParameter(usersObjStr + ".Password", usersObj.password);
|
||||
setBodyParameter(usersObjStr + ".RealNickName", usersObj.realNickName);
|
||||
setBodyParameter(usersObjStr + ".Phone", usersObj.phone);
|
||||
setBodyParameter(usersObjStr + ".OwnerType", usersObj.ownerType);
|
||||
setBodyParameter(usersObjStr + ".EndUserId", usersObj.endUserId);
|
||||
setBodyParameter(usersObjStr + ".Remark", usersObj.remark);
|
||||
setBodyParameter(usersObjStr + ".Email", usersObj.email);
|
||||
setBodyParameter(usersObjStr + ".OrgId", usersObj.orgId);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateUsersRequest::getPassword() const {
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateUsersRequest::setPassword(const std::string &password) {
|
||||
password_ = password;
|
||||
setBodyParameter(std::string("Password"), password);
|
||||
}
|
||||
|
||||
std::string CreateUsersRequest::getPasswordExpireDays() const {
|
||||
return passwordExpireDays_;
|
||||
}
|
||||
|
||||
void CreateUsersRequest::setPasswordExpireDays(const std::string &passwordExpireDays) {
|
||||
passwordExpireDays_ = passwordExpireDays;
|
||||
setParameter(std::string("PasswordExpireDays"), passwordExpireDays);
|
||||
}
|
||||
|
||||
82
eds-user/src/model/CreateUsersResult.cc
Normal file
82
eds-user/src/model/CreateUsersResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/CreateUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
CreateUsersResult::CreateUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUsersResult::CreateUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUsersResult::~CreateUsersResult()
|
||||
{}
|
||||
|
||||
void CreateUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto createResultNode = value["CreateResult"];
|
||||
auto allCreatedUsersNode = createResultNode["CreatedUsers"]["createdUsersItem"];
|
||||
for (auto createResultNodeCreatedUserscreatedUsersItem : allCreatedUsersNode)
|
||||
{
|
||||
CreateResult::CreatedUsersItem createdUsersItemObject;
|
||||
if(!createResultNodeCreatedUserscreatedUsersItem["EndUserId"].isNull())
|
||||
createdUsersItemObject.endUserId = createResultNodeCreatedUserscreatedUsersItem["EndUserId"].asString();
|
||||
if(!createResultNodeCreatedUserscreatedUsersItem["Email"].isNull())
|
||||
createdUsersItemObject.email = createResultNodeCreatedUserscreatedUsersItem["Email"].asString();
|
||||
if(!createResultNodeCreatedUserscreatedUsersItem["Phone"].isNull())
|
||||
createdUsersItemObject.phone = createResultNodeCreatedUserscreatedUsersItem["Phone"].asString();
|
||||
if(!createResultNodeCreatedUserscreatedUsersItem["Remark"].isNull())
|
||||
createdUsersItemObject.remark = createResultNodeCreatedUserscreatedUsersItem["Remark"].asString();
|
||||
if(!createResultNodeCreatedUserscreatedUsersItem["RealNickName"].isNull())
|
||||
createdUsersItemObject.realNickName = createResultNodeCreatedUserscreatedUsersItem["RealNickName"].asString();
|
||||
createResult_.createdUsers.push_back(createdUsersItemObject);
|
||||
}
|
||||
auto allFailedUsersNode = createResultNode["FailedUsers"]["failedUsersItem"];
|
||||
for (auto createResultNodeFailedUsersfailedUsersItem : allFailedUsersNode)
|
||||
{
|
||||
CreateResult::FailedUsersItem failedUsersItemObject;
|
||||
if(!createResultNodeFailedUsersfailedUsersItem["EndUserId"].isNull())
|
||||
failedUsersItemObject.endUserId = createResultNodeFailedUsersfailedUsersItem["EndUserId"].asString();
|
||||
if(!createResultNodeFailedUsersfailedUsersItem["Email"].isNull())
|
||||
failedUsersItemObject.email = createResultNodeFailedUsersfailedUsersItem["Email"].asString();
|
||||
if(!createResultNodeFailedUsersfailedUsersItem["Phone"].isNull())
|
||||
failedUsersItemObject.phone = createResultNodeFailedUsersfailedUsersItem["Phone"].asString();
|
||||
if(!createResultNodeFailedUsersfailedUsersItem["ErrorCode"].isNull())
|
||||
failedUsersItemObject.errorCode = createResultNodeFailedUsersfailedUsersItem["ErrorCode"].asString();
|
||||
if(!createResultNodeFailedUsersfailedUsersItem["ErrorMessage"].isNull())
|
||||
failedUsersItemObject.errorMessage = createResultNodeFailedUsersfailedUsersItem["ErrorMessage"].asString();
|
||||
createResult_.failedUsers.push_back(failedUsersItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CreateUsersResult::CreateResult CreateUsersResult::getCreateResult()const
|
||||
{
|
||||
return createResult_;
|
||||
}
|
||||
|
||||
54
eds-user/src/model/DeleteUserPropertyValueRequest.cc
Normal file
54
eds-user/src/model/DeleteUserPropertyValueRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/DeleteUserPropertyValueRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::DeleteUserPropertyValueRequest;
|
||||
|
||||
DeleteUserPropertyValueRequest::DeleteUserPropertyValueRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "DeleteUserPropertyValue") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteUserPropertyValueRequest::~DeleteUserPropertyValueRequest() {}
|
||||
|
||||
long DeleteUserPropertyValueRequest::getPropertyValueId() const {
|
||||
return propertyValueId_;
|
||||
}
|
||||
|
||||
void DeleteUserPropertyValueRequest::setPropertyValueId(long propertyValueId) {
|
||||
propertyValueId_ = propertyValueId;
|
||||
setBodyParameter(std::string("PropertyValueId"), std::to_string(propertyValueId));
|
||||
}
|
||||
|
||||
long DeleteUserPropertyValueRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void DeleteUserPropertyValueRequest::setUserId(long userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), std::to_string(userId));
|
||||
}
|
||||
|
||||
long DeleteUserPropertyValueRequest::getPropertyId() const {
|
||||
return propertyId_;
|
||||
}
|
||||
|
||||
void DeleteUserPropertyValueRequest::setPropertyId(long propertyId) {
|
||||
propertyId_ = propertyId;
|
||||
setBodyParameter(std::string("PropertyId"), std::to_string(propertyId));
|
||||
}
|
||||
|
||||
44
eds-user/src/model/DeleteUserPropertyValueResult.cc
Normal file
44
eds-user/src/model/DeleteUserPropertyValueResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/DeleteUserPropertyValueResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
DeleteUserPropertyValueResult::DeleteUserPropertyValueResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteUserPropertyValueResult::DeleteUserPropertyValueResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteUserPropertyValueResult::~DeleteUserPropertyValueResult()
|
||||
{}
|
||||
|
||||
void DeleteUserPropertyValueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
70
eds-user/src/model/DescribeMfaDevicesRequest.cc
Normal file
70
eds-user/src/model/DescribeMfaDevicesRequest.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/DescribeMfaDevicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::DescribeMfaDevicesRequest;
|
||||
|
||||
DescribeMfaDevicesRequest::DescribeMfaDevicesRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "DescribeMfaDevices") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMfaDevicesRequest::~DescribeMfaDevicesRequest() {}
|
||||
|
||||
std::vector<std::string> DescribeMfaDevicesRequest::getEndUserIds() const {
|
||||
return endUserIds_;
|
||||
}
|
||||
|
||||
void DescribeMfaDevicesRequest::setEndUserIds(const std::vector<std::string> &endUserIds) {
|
||||
endUserIds_ = endUserIds;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeMfaDevicesRequest::getSerialNumbers() const {
|
||||
return serialNumbers_;
|
||||
}
|
||||
|
||||
void DescribeMfaDevicesRequest::setSerialNumbers(const std::vector<std::string> &serialNumbers) {
|
||||
serialNumbers_ = serialNumbers;
|
||||
}
|
||||
|
||||
std::string DescribeMfaDevicesRequest::getAdDomain() const {
|
||||
return adDomain_;
|
||||
}
|
||||
|
||||
void DescribeMfaDevicesRequest::setAdDomain(const std::string &adDomain) {
|
||||
adDomain_ = adDomain;
|
||||
setParameter(std::string("AdDomain"), adDomain);
|
||||
}
|
||||
|
||||
std::string DescribeMfaDevicesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeMfaDevicesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
long DescribeMfaDevicesRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeMfaDevicesRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
80
eds-user/src/model/DescribeMfaDevicesResult.cc
Normal file
80
eds-user/src/model/DescribeMfaDevicesResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/DescribeMfaDevicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
DescribeMfaDevicesResult::DescribeMfaDevicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMfaDevicesResult::DescribeMfaDevicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMfaDevicesResult::~DescribeMfaDevicesResult()
|
||||
{}
|
||||
|
||||
void DescribeMfaDevicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMfaDevicesNode = value["MfaDevices"]["data"];
|
||||
for (auto valueMfaDevicesdata : allMfaDevicesNode)
|
||||
{
|
||||
Data mfaDevicesObject;
|
||||
if(!valueMfaDevicesdata["Id"].isNull())
|
||||
mfaDevicesObject.id = std::stol(valueMfaDevicesdata["Id"].asString());
|
||||
if(!valueMfaDevicesdata["EndUserId"].isNull())
|
||||
mfaDevicesObject.endUserId = valueMfaDevicesdata["EndUserId"].asString();
|
||||
if(!valueMfaDevicesdata["Email"].isNull())
|
||||
mfaDevicesObject.email = valueMfaDevicesdata["Email"].asString();
|
||||
if(!valueMfaDevicesdata["GmtEnabled"].isNull())
|
||||
mfaDevicesObject.gmtEnabled = valueMfaDevicesdata["GmtEnabled"].asString();
|
||||
if(!valueMfaDevicesdata["GmtUnlock"].isNull())
|
||||
mfaDevicesObject.gmtUnlock = valueMfaDevicesdata["GmtUnlock"].asString();
|
||||
if(!valueMfaDevicesdata["ConsecutiveFails"].isNull())
|
||||
mfaDevicesObject.consecutiveFails = std::stoi(valueMfaDevicesdata["ConsecutiveFails"].asString());
|
||||
if(!valueMfaDevicesdata["SerialNumber"].isNull())
|
||||
mfaDevicesObject.serialNumber = valueMfaDevicesdata["SerialNumber"].asString();
|
||||
if(!valueMfaDevicesdata["Status"].isNull())
|
||||
mfaDevicesObject.status = valueMfaDevicesdata["Status"].asString();
|
||||
if(!valueMfaDevicesdata["DeviceType"].isNull())
|
||||
mfaDevicesObject.deviceType = valueMfaDevicesdata["DeviceType"].asString();
|
||||
mfaDevices_.push_back(mfaDevicesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeMfaDevicesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<DescribeMfaDevicesResult::Data> DescribeMfaDevicesResult::getMfaDevices()const
|
||||
{
|
||||
return mfaDevices_;
|
||||
}
|
||||
|
||||
45
eds-user/src/model/DescribeOrgByLayerRequest.cc
Normal file
45
eds-user/src/model/DescribeOrgByLayerRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/DescribeOrgByLayerRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::DescribeOrgByLayerRequest;
|
||||
|
||||
DescribeOrgByLayerRequest::DescribeOrgByLayerRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "DescribeOrgByLayer") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeOrgByLayerRequest::~DescribeOrgByLayerRequest() {}
|
||||
|
||||
std::string DescribeOrgByLayerRequest::getOrgName() const {
|
||||
return orgName_;
|
||||
}
|
||||
|
||||
void DescribeOrgByLayerRequest::setOrgName(const std::string &orgName) {
|
||||
orgName_ = orgName;
|
||||
setBodyParameter(std::string("OrgName"), orgName);
|
||||
}
|
||||
|
||||
std::string DescribeOrgByLayerRequest::getParentOrgId() const {
|
||||
return parentOrgId_;
|
||||
}
|
||||
|
||||
void DescribeOrgByLayerRequest::setParentOrgId(const std::string &parentOrgId) {
|
||||
parentOrgId_ = parentOrgId;
|
||||
setBodyParameter(std::string("ParentOrgId"), parentOrgId);
|
||||
}
|
||||
|
||||
61
eds-user/src/model/DescribeOrgByLayerResult.cc
Normal file
61
eds-user/src/model/DescribeOrgByLayerResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/DescribeOrgByLayerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
DescribeOrgByLayerResult::DescribeOrgByLayerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeOrgByLayerResult::DescribeOrgByLayerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeOrgByLayerResult::~DescribeOrgByLayerResult()
|
||||
{}
|
||||
|
||||
void DescribeOrgByLayerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOrgsNode = value["Orgs"]["data"];
|
||||
for (auto valueOrgsdata : allOrgsNode)
|
||||
{
|
||||
Data orgsObject;
|
||||
if(!valueOrgsdata["OrgName"].isNull())
|
||||
orgsObject.orgName = valueOrgsdata["OrgName"].asString();
|
||||
if(!valueOrgsdata["OrgId"].isNull())
|
||||
orgsObject.orgId = valueOrgsdata["OrgId"].asString();
|
||||
if(!valueOrgsdata["ParentOrgId"].isNull())
|
||||
orgsObject.parentOrgId = valueOrgsdata["ParentOrgId"].asString();
|
||||
orgs_.push_back(orgsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeOrgByLayerResult::Data> DescribeOrgByLayerResult::getOrgs()const
|
||||
{
|
||||
return orgs_;
|
||||
}
|
||||
|
||||
63
eds-user/src/model/DescribeOrgsRequest.cc
Normal file
63
eds-user/src/model/DescribeOrgsRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/DescribeOrgsRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::DescribeOrgsRequest;
|
||||
|
||||
DescribeOrgsRequest::DescribeOrgsRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "DescribeOrgs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeOrgsRequest::~DescribeOrgsRequest() {}
|
||||
|
||||
std::string DescribeOrgsRequest::getOrgName() const {
|
||||
return orgName_;
|
||||
}
|
||||
|
||||
void DescribeOrgsRequest::setOrgName(const std::string &orgName) {
|
||||
orgName_ = orgName;
|
||||
setParameter(std::string("OrgName"), orgName);
|
||||
}
|
||||
|
||||
std::string DescribeOrgsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeOrgsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string DescribeOrgsRequest::getParentOrgId() const {
|
||||
return parentOrgId_;
|
||||
}
|
||||
|
||||
void DescribeOrgsRequest::setParentOrgId(const std::string &parentOrgId) {
|
||||
parentOrgId_ = parentOrgId;
|
||||
setParameter(std::string("ParentOrgId"), parentOrgId);
|
||||
}
|
||||
|
||||
long DescribeOrgsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeOrgsRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
68
eds-user/src/model/DescribeOrgsResult.cc
Normal file
68
eds-user/src/model/DescribeOrgsResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/DescribeOrgsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
DescribeOrgsResult::DescribeOrgsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeOrgsResult::DescribeOrgsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeOrgsResult::~DescribeOrgsResult()
|
||||
{}
|
||||
|
||||
void DescribeOrgsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOrgsNode = value["Orgs"]["data"];
|
||||
for (auto valueOrgsdata : allOrgsNode)
|
||||
{
|
||||
Data orgsObject;
|
||||
if(!valueOrgsdata["OrgName"].isNull())
|
||||
orgsObject.orgName = valueOrgsdata["OrgName"].asString();
|
||||
if(!valueOrgsdata["OrgId"].isNull())
|
||||
orgsObject.orgId = valueOrgsdata["OrgId"].asString();
|
||||
if(!valueOrgsdata["ParentOrgId"].isNull())
|
||||
orgsObject.parentOrgId = valueOrgsdata["ParentOrgId"].asString();
|
||||
orgs_.push_back(orgsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeOrgsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<DescribeOrgsResult::Data> DescribeOrgsResult::getOrgs()const
|
||||
{
|
||||
return orgs_;
|
||||
}
|
||||
|
||||
148
eds-user/src/model/DescribeUsersRequest.cc
Normal file
148
eds-user/src/model/DescribeUsersRequest.cc
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/DescribeUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::DescribeUsersRequest;
|
||||
|
||||
DescribeUsersRequest::DescribeUsersRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "DescribeUsers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeUsersRequest::~DescribeUsersRequest() {}
|
||||
|
||||
bool DescribeUsersRequest::getIsQueryAllSubOrgs() const {
|
||||
return isQueryAllSubOrgs_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setIsQueryAllSubOrgs(bool isQueryAllSubOrgs) {
|
||||
isQueryAllSubOrgs_ = isQueryAllSubOrgs;
|
||||
setBodyParameter(std::string("IsQueryAllSubOrgs"), isQueryAllSubOrgs ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeUsersRequest::getEndUserIds() const {
|
||||
return endUserIds_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setEndUserIds(const std::vector<std::string> &endUserIds) {
|
||||
endUserIds_ = endUserIds;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeUsersRequest::getExcludeEndUserIds() const {
|
||||
return excludeEndUserIds_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setExcludeEndUserIds(const std::vector<std::string> &excludeEndUserIds) {
|
||||
excludeEndUserIds_ = excludeEndUserIds;
|
||||
}
|
||||
|
||||
std::string DescribeUsersRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string DescribeUsersRequest::getSolutionId() const {
|
||||
return solutionId_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setSolutionId(const std::string &solutionId) {
|
||||
solutionId_ = solutionId;
|
||||
setBodyParameter(std::string("SolutionId"), solutionId);
|
||||
}
|
||||
|
||||
std::map<std::string, bool> DescribeUsersRequest::getFilterWithAssignedResources() const {
|
||||
return filterWithAssignedResources_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setFilterWithAssignedResources(const std::map<std::string, bool> &filterWithAssignedResources) {
|
||||
filterWithAssignedResources_ = filterWithAssignedResources;
|
||||
for(auto const &iter1 : filterWithAssignedResources) {
|
||||
setBodyParameter(std::string("FilterWithAssignedResources") + "." + iter1.first, iter1.second ? "true" : "false");
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeUsersRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setBodyParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
std::string DescribeUsersRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> DescribeUsersRequest::getFilterWithAssignedResource() const {
|
||||
return filterWithAssignedResource_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setFilterWithAssignedResource(const std::map<std::string, std::string> &filterWithAssignedResource) {
|
||||
filterWithAssignedResource_ = filterWithAssignedResource;
|
||||
for(auto const &iter1 : filterWithAssignedResource) {
|
||||
setParameter(std::string("FilterWithAssignedResource") + "." + iter1.first, iter1.second);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeUsersRequest::getFilter() const {
|
||||
return filter_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setFilter(const std::string &filter) {
|
||||
filter_ = filter;
|
||||
setParameter(std::string("Filter"), filter);
|
||||
}
|
||||
|
||||
std::string DescribeUsersRequest::getBizType() const {
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setBizType(const std::string &bizType) {
|
||||
bizType_ = bizType;
|
||||
setBodyParameter(std::string("BizType"), bizType);
|
||||
}
|
||||
|
||||
long DescribeUsersRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::map<std::string, ObjectOfAny> DescribeUsersRequest::getShowExtras() const {
|
||||
return showExtras_;
|
||||
}
|
||||
|
||||
void DescribeUsersRequest::setShowExtras(const std::map<std::string, ObjectOfAny> &showExtras) {
|
||||
showExtras_ = showExtras;
|
||||
for(auto const &iter1 : showExtras) {
|
||||
setBodyParameter(std::string("ShowExtras") + "." + iter1.first, std::to_string(iter1.second));
|
||||
}
|
||||
}
|
||||
|
||||
127
eds-user/src/model/DescribeUsersResult.cc
Normal file
127
eds-user/src/model/DescribeUsersResult.cc
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/DescribeUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
DescribeUsersResult::DescribeUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeUsersResult::DescribeUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeUsersResult::~DescribeUsersResult()
|
||||
{}
|
||||
|
||||
void DescribeUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUsersNode = value["Users"]["data"];
|
||||
for (auto valueUsersdata : allUsersNode)
|
||||
{
|
||||
Data usersObject;
|
||||
if(!valueUsersdata["Id"].isNull())
|
||||
usersObject.id = std::stol(valueUsersdata["Id"].asString());
|
||||
if(!valueUsersdata["EndUserId"].isNull())
|
||||
usersObject.endUserId = valueUsersdata["EndUserId"].asString();
|
||||
if(!valueUsersdata["Email"].isNull())
|
||||
usersObject.email = valueUsersdata["Email"].asString();
|
||||
if(!valueUsersdata["Phone"].isNull())
|
||||
usersObject.phone = valueUsersdata["Phone"].asString();
|
||||
if(!valueUsersdata["Status"].isNull())
|
||||
usersObject.status = std::stol(valueUsersdata["Status"].asString());
|
||||
if(!valueUsersdata["OwnerType"].isNull())
|
||||
usersObject.ownerType = valueUsersdata["OwnerType"].asString();
|
||||
if(!valueUsersdata["Remark"].isNull())
|
||||
usersObject.remark = valueUsersdata["Remark"].asString();
|
||||
if(!valueUsersdata["OrgId"].isNull())
|
||||
usersObject.orgId = valueUsersdata["OrgId"].asString();
|
||||
if(!valueUsersdata["WyId"].isNull())
|
||||
usersObject.wyId = valueUsersdata["WyId"].asString();
|
||||
if(!valueUsersdata["IsTenantManager"].isNull())
|
||||
usersObject.isTenantManager = valueUsersdata["IsTenantManager"].asString() == "true";
|
||||
if(!valueUsersdata["Avatar"].isNull())
|
||||
usersObject.avatar = valueUsersdata["Avatar"].asString();
|
||||
if(!valueUsersdata["Address"].isNull())
|
||||
usersObject.address = valueUsersdata["Address"].asString();
|
||||
if(!valueUsersdata["NickName"].isNull())
|
||||
usersObject.nickName = valueUsersdata["NickName"].asString();
|
||||
if(!valueUsersdata["RealNickName"].isNull())
|
||||
usersObject.realNickName = valueUsersdata["RealNickName"].asString();
|
||||
if(!valueUsersdata["JobNumber"].isNull())
|
||||
usersObject.jobNumber = valueUsersdata["JobNumber"].asString();
|
||||
if(!valueUsersdata["ExternalName"].isNull())
|
||||
usersObject.externalName = valueUsersdata["ExternalName"].asString();
|
||||
auto allGroupsNode = valueUsersdata["Groups"]["group"];
|
||||
for (auto valueUsersdataGroupsgroup : allGroupsNode)
|
||||
{
|
||||
Data::Group groupsObject;
|
||||
if(!valueUsersdataGroupsgroup["GroupId"].isNull())
|
||||
groupsObject.groupId = valueUsersdataGroupsgroup["GroupId"].asString();
|
||||
if(!valueUsersdataGroupsgroup["GroupName"].isNull())
|
||||
groupsObject.groupName = valueUsersdataGroupsgroup["GroupName"].asString();
|
||||
usersObject.groups.push_back(groupsObject);
|
||||
}
|
||||
auto allOrgsNode = valueUsersdata["Orgs"]["org"];
|
||||
for (auto valueUsersdataOrgsorg : allOrgsNode)
|
||||
{
|
||||
Data::Org orgsObject;
|
||||
if(!valueUsersdataOrgsorg["OrgId"].isNull())
|
||||
orgsObject.orgId = valueUsersdataOrgsorg["OrgId"].asString();
|
||||
if(!valueUsersdataOrgsorg["OrgName"].isNull())
|
||||
orgsObject.orgName = valueUsersdataOrgsorg["OrgName"].asString();
|
||||
usersObject.orgs.push_back(orgsObject);
|
||||
}
|
||||
auto allPropertiesNode = valueUsersdata["Properties"]["Property"];
|
||||
for (auto valueUsersdataPropertiesProperty : allPropertiesNode)
|
||||
{
|
||||
Data::Property propertiesObject;
|
||||
if(!valueUsersdataPropertiesProperty["Key"].isNull())
|
||||
propertiesObject.key = valueUsersdataPropertiesProperty["Key"].asString();
|
||||
if(!valueUsersdataPropertiesProperty["Value"].isNull())
|
||||
propertiesObject.value = valueUsersdataPropertiesProperty["Value"].asString();
|
||||
usersObject.properties.push_back(propertiesObject);
|
||||
}
|
||||
auto extrasNode = value["Extras"];
|
||||
if(!extrasNode["AssignedResourceCount"].isNull())
|
||||
usersObject.extras.assignedResourceCount = extrasNode["AssignedResourceCount"].asString();
|
||||
users_.push_back(usersObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeUsersResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<DescribeUsersResult::Data> DescribeUsersResult::getUsers()const
|
||||
{
|
||||
return users_;
|
||||
}
|
||||
|
||||
172
eds-user/src/model/FilterUsersRequest.cc
Normal file
172
eds-user/src/model/FilterUsersRequest.cc
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/FilterUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::FilterUsersRequest;
|
||||
|
||||
FilterUsersRequest::FilterUsersRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "FilterUsers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
FilterUsersRequest::~FilterUsersRequest() {}
|
||||
|
||||
bool FilterUsersRequest::getIsQueryAllSubOrgs() const {
|
||||
return isQueryAllSubOrgs_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setIsQueryAllSubOrgs(bool isQueryAllSubOrgs) {
|
||||
isQueryAllSubOrgs_ = isQueryAllSubOrgs;
|
||||
setParameter(std::string("IsQueryAllSubOrgs"), isQueryAllSubOrgs ? "true" : "false");
|
||||
}
|
||||
|
||||
FilterUsersRequest::OrderParam FilterUsersRequest::getOrderParam() const {
|
||||
return orderParam_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setOrderParam(const FilterUsersRequest::OrderParam &orderParam) {
|
||||
orderParam_ = orderParam;
|
||||
setParameter(std::string("OrderParam") + ".OrderField", orderParam.orderField);
|
||||
setParameter(std::string("OrderParam") + ".OrderType", orderParam.orderType);
|
||||
}
|
||||
|
||||
std::vector<std::string> FilterUsersRequest::getExcludeEndUserIds() const {
|
||||
return excludeEndUserIds_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setExcludeEndUserIds(const std::vector<std::string> &excludeEndUserIds) {
|
||||
excludeEndUserIds_ = excludeEndUserIds;
|
||||
}
|
||||
|
||||
std::string FilterUsersRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
bool FilterUsersRequest::getIncludeDesktopCount() const {
|
||||
return includeDesktopCount_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setIncludeDesktopCount(bool includeDesktopCount) {
|
||||
includeDesktopCount_ = includeDesktopCount;
|
||||
setParameter(std::string("IncludeDesktopCount"), includeDesktopCount ? "true" : "false");
|
||||
}
|
||||
|
||||
bool FilterUsersRequest::getIncludeSupportIdps() const {
|
||||
return includeSupportIdps_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setIncludeSupportIdps(bool includeSupportIdps) {
|
||||
includeSupportIdps_ = includeSupportIdps;
|
||||
setParameter(std::string("IncludeSupportIdps"), includeSupportIdps ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<FilterUsersRequest::PropertyFilterParam> FilterUsersRequest::getPropertyFilterParam() const {
|
||||
return propertyFilterParam_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setPropertyFilterParam(const std::vector<FilterUsersRequest::PropertyFilterParam> &propertyFilterParam) {
|
||||
propertyFilterParam_ = propertyFilterParam;
|
||||
for(int dep1 = 0; dep1 != propertyFilterParam.size(); dep1++) {
|
||||
auto propertyFilterParamObj = propertyFilterParam.at(dep1);
|
||||
std::string propertyFilterParamObjStr = std::string("PropertyFilterParam") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(propertyFilterParamObjStr + ".PropertyId", std::to_string(propertyFilterParamObj.propertyId));
|
||||
setParameter(propertyFilterParamObjStr + ".PropertyValueIds", propertyFilterParamObj.propertyValueIds);
|
||||
}
|
||||
}
|
||||
|
||||
bool FilterUsersRequest::getIncludeOrgInfo() const {
|
||||
return includeOrgInfo_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setIncludeOrgInfo(bool includeOrgInfo) {
|
||||
includeOrgInfo_ = includeOrgInfo;
|
||||
setParameter(std::string("IncludeOrgInfo"), includeOrgInfo ? "true" : "false");
|
||||
}
|
||||
|
||||
bool FilterUsersRequest::getIncludeDesktopGroupCount() const {
|
||||
return includeDesktopGroupCount_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setIncludeDesktopGroupCount(bool includeDesktopGroupCount) {
|
||||
includeDesktopGroupCount_ = includeDesktopGroupCount;
|
||||
setParameter(std::string("IncludeDesktopGroupCount"), includeDesktopGroupCount ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string FilterUsersRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
std::string FilterUsersRequest::getFilter() const {
|
||||
return filter_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setFilter(const std::string &filter) {
|
||||
filter_ = filter;
|
||||
setParameter(std::string("Filter"), filter);
|
||||
}
|
||||
|
||||
std::vector<FilterUsersRequest::PropertyKeyValueFilterParam> FilterUsersRequest::getPropertyKeyValueFilterParam() const {
|
||||
return propertyKeyValueFilterParam_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setPropertyKeyValueFilterParam(const std::vector<FilterUsersRequest::PropertyKeyValueFilterParam> &propertyKeyValueFilterParam) {
|
||||
propertyKeyValueFilterParam_ = propertyKeyValueFilterParam;
|
||||
for(int dep1 = 0; dep1 != propertyKeyValueFilterParam.size(); dep1++) {
|
||||
auto propertyKeyValueFilterParamObj = propertyKeyValueFilterParam.at(dep1);
|
||||
std::string propertyKeyValueFilterParamObjStr = std::string("PropertyKeyValueFilterParam") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(propertyKeyValueFilterParamObjStr + ".PropertyKey", propertyKeyValueFilterParamObj.propertyKey);
|
||||
setParameter(propertyKeyValueFilterParamObjStr + ".PropertyValues", propertyKeyValueFilterParamObj.propertyValues);
|
||||
}
|
||||
}
|
||||
|
||||
std::string FilterUsersRequest::getOwnerType() const {
|
||||
return ownerType_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setOwnerType(const std::string &ownerType) {
|
||||
ownerType_ = ownerType;
|
||||
setParameter(std::string("OwnerType"), ownerType);
|
||||
}
|
||||
|
||||
long FilterUsersRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setMaxResults(long maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
int FilterUsersRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void FilterUsersRequest::setStatus(int status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), std::to_string(status));
|
||||
}
|
||||
|
||||
143
eds-user/src/model/FilterUsersResult.cc
Normal file
143
eds-user/src/model/FilterUsersResult.cc
Normal file
@@ -0,0 +1,143 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/FilterUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
FilterUsersResult::FilterUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FilterUsersResult::FilterUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FilterUsersResult::~FilterUsersResult()
|
||||
{}
|
||||
|
||||
void FilterUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUsersNode = value["Users"]["data"];
|
||||
for (auto valueUsersdata : allUsersNode)
|
||||
{
|
||||
Data usersObject;
|
||||
if(!valueUsersdata["Id"].isNull())
|
||||
usersObject.id = std::stol(valueUsersdata["Id"].asString());
|
||||
if(!valueUsersdata["EndUserId"].isNull())
|
||||
usersObject.endUserId = valueUsersdata["EndUserId"].asString();
|
||||
if(!valueUsersdata["Email"].isNull())
|
||||
usersObject.email = valueUsersdata["Email"].asString();
|
||||
if(!valueUsersdata["Phone"].isNull())
|
||||
usersObject.phone = valueUsersdata["Phone"].asString();
|
||||
if(!valueUsersdata["Status"].isNull())
|
||||
usersObject.status = std::stol(valueUsersdata["Status"].asString());
|
||||
if(!valueUsersdata["DesktopCount"].isNull())
|
||||
usersObject.desktopCount = std::stol(valueUsersdata["DesktopCount"].asString());
|
||||
if(!valueUsersdata["DesktopGroupCount"].isNull())
|
||||
usersObject.desktopGroupCount = std::stol(valueUsersdata["DesktopGroupCount"].asString());
|
||||
if(!valueUsersdata["OwnerType"].isNull())
|
||||
usersObject.ownerType = valueUsersdata["OwnerType"].asString();
|
||||
if(!valueUsersdata["Remark"].isNull())
|
||||
usersObject.remark = valueUsersdata["Remark"].asString();
|
||||
if(!valueUsersdata["IsTenantManager"].isNull())
|
||||
usersObject.isTenantManager = valueUsersdata["IsTenantManager"].asString() == "true";
|
||||
if(!valueUsersdata["EnableAdminAccess"].isNull())
|
||||
usersObject.enableAdminAccess = valueUsersdata["EnableAdminAccess"].asString() == "true";
|
||||
if(!valueUsersdata["RealNickName"].isNull())
|
||||
usersObject.realNickName = valueUsersdata["RealNickName"].asString();
|
||||
if(!valueUsersdata["AutoLockTime"].isNull())
|
||||
usersObject.autoLockTime = valueUsersdata["AutoLockTime"].asString();
|
||||
if(!valueUsersdata["PasswordExpireDays"].isNull())
|
||||
usersObject.passwordExpireDays = std::stoi(valueUsersdata["PasswordExpireDays"].asString());
|
||||
if(!valueUsersdata["PasswordExpireRestDays"].isNull())
|
||||
usersObject.passwordExpireRestDays = std::stoi(valueUsersdata["PasswordExpireRestDays"].asString());
|
||||
auto allUserSetPropertiesModelsNode = valueUsersdata["UserSetPropertiesModels"]["userSetPropertiesModelsItem"];
|
||||
for (auto valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItem : allUserSetPropertiesModelsNode)
|
||||
{
|
||||
Data::UserSetPropertiesModelsItem userSetPropertiesModelsObject;
|
||||
if(!valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItem["UserId"].isNull())
|
||||
userSetPropertiesModelsObject.userId = std::stol(valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItem["UserId"].asString());
|
||||
if(!valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItem["UserName"].isNull())
|
||||
userSetPropertiesModelsObject.userName = valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItem["UserName"].asString();
|
||||
if(!valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItem["PropertyId"].isNull())
|
||||
userSetPropertiesModelsObject.propertyId = std::stol(valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItem["PropertyId"].asString());
|
||||
if(!valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItem["PropertyKey"].isNull())
|
||||
userSetPropertiesModelsObject.propertyKey = valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItem["PropertyKey"].asString();
|
||||
if(!valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItem["PropertyType"].isNull())
|
||||
userSetPropertiesModelsObject.propertyType = std::stoi(valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItem["PropertyType"].asString());
|
||||
auto allPropertyValuesNode = valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItem["PropertyValues"]["propertyValuesItem"];
|
||||
for (auto valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItemPropertyValuespropertyValuesItem : allPropertyValuesNode)
|
||||
{
|
||||
Data::UserSetPropertiesModelsItem::PropertyValuesItem propertyValuesObject;
|
||||
if(!valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItemPropertyValuespropertyValuesItem["PropertyValueId"].isNull())
|
||||
propertyValuesObject.propertyValueId = std::stol(valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItemPropertyValuespropertyValuesItem["PropertyValueId"].asString());
|
||||
if(!valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItemPropertyValuespropertyValuesItem["PropertyValue"].isNull())
|
||||
propertyValuesObject.propertyValue = valueUsersdataUserSetPropertiesModelsuserSetPropertiesModelsItemPropertyValuespropertyValuesItem["PropertyValue"].asString();
|
||||
userSetPropertiesModelsObject.propertyValues.push_back(propertyValuesObject);
|
||||
}
|
||||
usersObject.userSetPropertiesModels.push_back(userSetPropertiesModelsObject);
|
||||
}
|
||||
auto allOrgListNode = valueUsersdata["OrgList"]["orgListItem"];
|
||||
for (auto valueUsersdataOrgListorgListItem : allOrgListNode)
|
||||
{
|
||||
Data::OrgListItem orgListObject;
|
||||
if(!valueUsersdataOrgListorgListItem["OrgId"].isNull())
|
||||
orgListObject.orgId = valueUsersdataOrgListorgListItem["OrgId"].asString();
|
||||
if(!valueUsersdataOrgListorgListItem["OrgName"].isNull())
|
||||
orgListObject.orgName = valueUsersdataOrgListorgListItem["OrgName"].asString();
|
||||
usersObject.orgList.push_back(orgListObject);
|
||||
}
|
||||
auto allSupportLoginIdpsNode = valueUsersdata["SupportLoginIdps"]["IdpInfo"];
|
||||
for (auto valueUsersdataSupportLoginIdpsIdpInfo : allSupportLoginIdpsNode)
|
||||
{
|
||||
Data::IdpInfo supportLoginIdpsObject;
|
||||
if(!valueUsersdataSupportLoginIdpsIdpInfo["IdpId"].isNull())
|
||||
supportLoginIdpsObject.idpId = valueUsersdataSupportLoginIdpsIdpInfo["IdpId"].asString();
|
||||
if(!valueUsersdataSupportLoginIdpsIdpInfo["IdpName"].isNull())
|
||||
supportLoginIdpsObject.idpName = valueUsersdataSupportLoginIdpsIdpInfo["IdpName"].asString();
|
||||
usersObject.supportLoginIdps.push_back(supportLoginIdpsObject);
|
||||
}
|
||||
auto externalInfoNode = value["ExternalInfo"];
|
||||
if(!externalInfoNode["ExternalName"].isNull())
|
||||
usersObject.externalInfo.externalName = externalInfoNode["ExternalName"].asString();
|
||||
if(!externalInfoNode["JobNumber"].isNull())
|
||||
usersObject.externalInfo.jobNumber = externalInfoNode["JobNumber"].asString();
|
||||
users_.push_back(usersObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FilterUsersResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<FilterUsersResult::Data> FilterUsersResult::getUsers()const
|
||||
{
|
||||
return users_;
|
||||
}
|
||||
|
||||
36
eds-user/src/model/GetManagerInfoByAuthCodeRequest.cc
Normal file
36
eds-user/src/model/GetManagerInfoByAuthCodeRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/GetManagerInfoByAuthCodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::GetManagerInfoByAuthCodeRequest;
|
||||
|
||||
GetManagerInfoByAuthCodeRequest::GetManagerInfoByAuthCodeRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "GetManagerInfoByAuthCode") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetManagerInfoByAuthCodeRequest::~GetManagerInfoByAuthCodeRequest() {}
|
||||
|
||||
std::string GetManagerInfoByAuthCodeRequest::getAuthCode() const {
|
||||
return authCode_;
|
||||
}
|
||||
|
||||
void GetManagerInfoByAuthCodeRequest::setAuthCode(const std::string &authCode) {
|
||||
authCode_ = authCode;
|
||||
setParameter(std::string("AuthCode"), authCode);
|
||||
}
|
||||
|
||||
79
eds-user/src/model/GetManagerInfoByAuthCodeResult.cc
Normal file
79
eds-user/src/model/GetManagerInfoByAuthCodeResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/GetManagerInfoByAuthCodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
GetManagerInfoByAuthCodeResult::GetManagerInfoByAuthCodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetManagerInfoByAuthCodeResult::GetManagerInfoByAuthCodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetManagerInfoByAuthCodeResult::~GetManagerInfoByAuthCodeResult()
|
||||
{}
|
||||
|
||||
void GetManagerInfoByAuthCodeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["WaId"].isNull())
|
||||
waId_ = std::stol(value["WaId"].asString());
|
||||
if(!value["OrgId"].isNull())
|
||||
orgId_ = value["OrgId"].asString();
|
||||
if(!value["UserName"].isNull())
|
||||
userName_ = value["UserName"].asString();
|
||||
if(!value["Phone"].isNull())
|
||||
phone_ = value["Phone"].asString();
|
||||
if(!value["TeamName"].isNull())
|
||||
teamName_ = value["TeamName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetManagerInfoByAuthCodeResult::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
std::string GetManagerInfoByAuthCodeResult::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
}
|
||||
|
||||
std::string GetManagerInfoByAuthCodeResult::getPhone()const
|
||||
{
|
||||
return phone_;
|
||||
}
|
||||
|
||||
std::string GetManagerInfoByAuthCodeResult::getTeamName()const
|
||||
{
|
||||
return teamName_;
|
||||
}
|
||||
|
||||
long GetManagerInfoByAuthCodeResult::getWaId()const
|
||||
{
|
||||
return waId_;
|
||||
}
|
||||
|
||||
27
eds-user/src/model/InitTenantAliasRequest.cc
Normal file
27
eds-user/src/model/InitTenantAliasRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/InitTenantAliasRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::InitTenantAliasRequest;
|
||||
|
||||
InitTenantAliasRequest::InitTenantAliasRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "InitTenantAlias") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InitTenantAliasRequest::~InitTenantAliasRequest() {}
|
||||
|
||||
65
eds-user/src/model/InitTenantAliasResult.cc
Normal file
65
eds-user/src/model/InitTenantAliasResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/InitTenantAliasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
InitTenantAliasResult::InitTenantAliasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InitTenantAliasResult::InitTenantAliasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InitTenantAliasResult::~InitTenantAliasResult()
|
||||
{}
|
||||
|
||||
void InitTenantAliasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto aliasInfoNode = value["AliasInfo"];
|
||||
if(!aliasInfoNode["AliasSourceType"].isNull())
|
||||
aliasInfo_.aliasSourceType = aliasInfoNode["AliasSourceType"].asString();
|
||||
if(!aliasInfoNode["AliasEditable"].isNull())
|
||||
aliasInfo_.aliasEditable = aliasInfoNode["AliasEditable"].asString() == "true";
|
||||
if(!aliasInfoNode["AliasEditDisabledReason"].isNull())
|
||||
aliasInfo_.aliasEditDisabledReason = aliasInfoNode["AliasEditDisabledReason"].asString();
|
||||
if(!aliasInfoNode["NextModifyTime"].isNull())
|
||||
aliasInfo_.nextModifyTime = aliasInfoNode["NextModifyTime"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
InitTenantAliasResult::AliasInfo InitTenantAliasResult::getAliasInfo()const
|
||||
{
|
||||
return aliasInfo_;
|
||||
}
|
||||
|
||||
std::string InitTenantAliasResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
27
eds-user/src/model/ListPropertyRequest.cc
Normal file
27
eds-user/src/model/ListPropertyRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/ListPropertyRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::ListPropertyRequest;
|
||||
|
||||
ListPropertyRequest::ListPropertyRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "ListProperty") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPropertyRequest::~ListPropertyRequest() {}
|
||||
|
||||
76
eds-user/src/model/ListPropertyResult.cc
Normal file
76
eds-user/src/model/ListPropertyResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/ListPropertyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
ListPropertyResult::ListPropertyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPropertyResult::ListPropertyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPropertyResult::~ListPropertyResult()
|
||||
{}
|
||||
|
||||
void ListPropertyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPropertiesNode = value["Properties"]["data"];
|
||||
for (auto valuePropertiesdata : allPropertiesNode)
|
||||
{
|
||||
Data propertiesObject;
|
||||
if(!valuePropertiesdata["PropertyId"].isNull())
|
||||
propertiesObject.propertyId = std::stol(valuePropertiesdata["PropertyId"].asString());
|
||||
if(!valuePropertiesdata["PropertyKey"].isNull())
|
||||
propertiesObject.propertyKey = valuePropertiesdata["PropertyKey"].asString();
|
||||
auto allPropertyValuesNode = valuePropertiesdata["PropertyValues"]["propertyValuesItem"];
|
||||
for (auto valuePropertiesdataPropertyValuespropertyValuesItem : allPropertyValuesNode)
|
||||
{
|
||||
Data::PropertyValuesItem propertyValuesObject;
|
||||
if(!valuePropertiesdataPropertyValuespropertyValuesItem["PropertyValueId"].isNull())
|
||||
propertyValuesObject.propertyValueId = std::stol(valuePropertiesdataPropertyValuespropertyValuesItem["PropertyValueId"].asString());
|
||||
if(!valuePropertiesdataPropertyValuespropertyValuesItem["PropertyValue"].isNull())
|
||||
propertyValuesObject.propertyValue = valuePropertiesdataPropertyValuespropertyValuesItem["PropertyValue"].asString();
|
||||
propertiesObject.propertyValues.push_back(propertyValuesObject);
|
||||
}
|
||||
properties_.push_back(propertiesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListPropertyResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListPropertyResult::Data> ListPropertyResult::getProperties()const
|
||||
{
|
||||
return properties_;
|
||||
}
|
||||
|
||||
36
eds-user/src/model/ListPropertyValueRequest.cc
Normal file
36
eds-user/src/model/ListPropertyValueRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/ListPropertyValueRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::ListPropertyValueRequest;
|
||||
|
||||
ListPropertyValueRequest::ListPropertyValueRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "ListPropertyValue") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPropertyValueRequest::~ListPropertyValueRequest() {}
|
||||
|
||||
long ListPropertyValueRequest::getPropertyId() const {
|
||||
return propertyId_;
|
||||
}
|
||||
|
||||
void ListPropertyValueRequest::setPropertyId(long propertyId) {
|
||||
propertyId_ = propertyId;
|
||||
setParameter(std::string("PropertyId"), std::to_string(propertyId));
|
||||
}
|
||||
|
||||
59
eds-user/src/model/ListPropertyValueResult.cc
Normal file
59
eds-user/src/model/ListPropertyValueResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/ListPropertyValueResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
ListPropertyValueResult::ListPropertyValueResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPropertyValueResult::ListPropertyValueResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPropertyValueResult::~ListPropertyValueResult()
|
||||
{}
|
||||
|
||||
void ListPropertyValueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPropertyValueInfosNode = value["PropertyValueInfos"]["data"];
|
||||
for (auto valuePropertyValueInfosdata : allPropertyValueInfosNode)
|
||||
{
|
||||
Data propertyValueInfosObject;
|
||||
if(!valuePropertyValueInfosdata["PropertyValueId"].isNull())
|
||||
propertyValueInfosObject.propertyValueId = std::stol(valuePropertyValueInfosdata["PropertyValueId"].asString());
|
||||
if(!valuePropertyValueInfosdata["PropertyValue"].isNull())
|
||||
propertyValueInfosObject.propertyValue = valuePropertyValueInfosdata["PropertyValue"].asString();
|
||||
propertyValueInfos_.push_back(propertyValueInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListPropertyValueResult::Data> ListPropertyValueResult::getPropertyValueInfos()const
|
||||
{
|
||||
return propertyValueInfos_;
|
||||
}
|
||||
|
||||
45
eds-user/src/model/LockMfaDeviceRequest.cc
Normal file
45
eds-user/src/model/LockMfaDeviceRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/LockMfaDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::LockMfaDeviceRequest;
|
||||
|
||||
LockMfaDeviceRequest::LockMfaDeviceRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "LockMfaDevice") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
LockMfaDeviceRequest::~LockMfaDeviceRequest() {}
|
||||
|
||||
std::string LockMfaDeviceRequest::getSerialNumber() const {
|
||||
return serialNumber_;
|
||||
}
|
||||
|
||||
void LockMfaDeviceRequest::setSerialNumber(const std::string &serialNumber) {
|
||||
serialNumber_ = serialNumber;
|
||||
setParameter(std::string("SerialNumber"), serialNumber);
|
||||
}
|
||||
|
||||
std::string LockMfaDeviceRequest::getAdDomain() const {
|
||||
return adDomain_;
|
||||
}
|
||||
|
||||
void LockMfaDeviceRequest::setAdDomain(const std::string &adDomain) {
|
||||
adDomain_ = adDomain;
|
||||
setParameter(std::string("AdDomain"), adDomain);
|
||||
}
|
||||
|
||||
44
eds-user/src/model/LockMfaDeviceResult.cc
Normal file
44
eds-user/src/model/LockMfaDeviceResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/LockMfaDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
LockMfaDeviceResult::LockMfaDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
LockMfaDeviceResult::LockMfaDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
LockMfaDeviceResult::~LockMfaDeviceResult()
|
||||
{}
|
||||
|
||||
void LockMfaDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
44
eds-user/src/model/LockUsersRequest.cc
Normal file
44
eds-user/src/model/LockUsersRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/LockUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::LockUsersRequest;
|
||||
|
||||
LockUsersRequest::LockUsersRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "LockUsers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
LockUsersRequest::~LockUsersRequest() {}
|
||||
|
||||
bool LockUsersRequest::getLogoutSession() const {
|
||||
return logoutSession_;
|
||||
}
|
||||
|
||||
void LockUsersRequest::setLogoutSession(bool logoutSession) {
|
||||
logoutSession_ = logoutSession;
|
||||
setParameter(std::string("LogoutSession"), logoutSession ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> LockUsersRequest::getUsers() const {
|
||||
return users_;
|
||||
}
|
||||
|
||||
void LockUsersRequest::setUsers(const std::vector<std::string> &users) {
|
||||
users_ = users;
|
||||
}
|
||||
|
||||
65
eds-user/src/model/LockUsersResult.cc
Normal file
65
eds-user/src/model/LockUsersResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/LockUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
LockUsersResult::LockUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
LockUsersResult::LockUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
LockUsersResult::~LockUsersResult()
|
||||
{}
|
||||
|
||||
void LockUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto lockUsersResultNode = value["LockUsersResult"];
|
||||
auto allFailedUsersNode = lockUsersResultNode["FailedUsers"]["FailedUsersItem"];
|
||||
for (auto lockUsersResultNodeFailedUsersFailedUsersItem : allFailedUsersNode)
|
||||
{
|
||||
Result::FailedUsersItem failedUsersItemObject;
|
||||
if(!lockUsersResultNodeFailedUsersFailedUsersItem["EndUserId"].isNull())
|
||||
failedUsersItemObject.endUserId = lockUsersResultNodeFailedUsersFailedUsersItem["EndUserId"].asString();
|
||||
if(!lockUsersResultNodeFailedUsersFailedUsersItem["ErrorCode"].isNull())
|
||||
failedUsersItemObject.errorCode = lockUsersResultNodeFailedUsersFailedUsersItem["ErrorCode"].asString();
|
||||
if(!lockUsersResultNodeFailedUsersFailedUsersItem["ErrorMessage"].isNull())
|
||||
failedUsersItemObject.errorMessage = lockUsersResultNodeFailedUsersFailedUsersItem["ErrorMessage"].asString();
|
||||
result_.failedUsers.push_back(failedUsersItemObject);
|
||||
}
|
||||
auto allLockedUsers = lockUsersResultNode["LockedUsers"]["LockedUsers"];
|
||||
for (auto value : allLockedUsers)
|
||||
result_.lockedUsers.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
LockUsersResult::Result LockUsersResult::getLockUsersResult()const
|
||||
{
|
||||
return lockUsersResult_;
|
||||
}
|
||||
|
||||
54
eds-user/src/model/ModifyOrgRequest.cc
Normal file
54
eds-user/src/model/ModifyOrgRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/ModifyOrgRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::ModifyOrgRequest;
|
||||
|
||||
ModifyOrgRequest::ModifyOrgRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "ModifyOrg") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyOrgRequest::~ModifyOrgRequest() {}
|
||||
|
||||
std::string ModifyOrgRequest::getIcon() const {
|
||||
return icon_;
|
||||
}
|
||||
|
||||
void ModifyOrgRequest::setIcon(const std::string &icon) {
|
||||
icon_ = icon;
|
||||
setParameter(std::string("Icon"), icon);
|
||||
}
|
||||
|
||||
std::string ModifyOrgRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void ModifyOrgRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
std::string ModifyOrgRequest::getOrgName() const {
|
||||
return orgName_;
|
||||
}
|
||||
|
||||
void ModifyOrgRequest::setOrgName(const std::string &orgName) {
|
||||
orgName_ = orgName;
|
||||
setParameter(std::string("OrgName"), orgName);
|
||||
}
|
||||
|
||||
44
eds-user/src/model/ModifyOrgResult.cc
Normal file
44
eds-user/src/model/ModifyOrgResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/ModifyOrgResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
ModifyOrgResult::ModifyOrgResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyOrgResult::ModifyOrgResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyOrgResult::~ModifyOrgResult()
|
||||
{}
|
||||
|
||||
void ModifyOrgResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
54
eds-user/src/model/ModifyUserRequest.cc
Normal file
54
eds-user/src/model/ModifyUserRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/ModifyUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::ModifyUserRequest;
|
||||
|
||||
ModifyUserRequest::ModifyUserRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "ModifyUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyUserRequest::~ModifyUserRequest() {}
|
||||
|
||||
std::string ModifyUserRequest::getPhone() const {
|
||||
return phone_;
|
||||
}
|
||||
|
||||
void ModifyUserRequest::setPhone(const std::string &phone) {
|
||||
phone_ = phone;
|
||||
setParameter(std::string("Phone"), phone);
|
||||
}
|
||||
|
||||
std::string ModifyUserRequest::getEndUserId() const {
|
||||
return endUserId_;
|
||||
}
|
||||
|
||||
void ModifyUserRequest::setEndUserId(const std::string &endUserId) {
|
||||
endUserId_ = endUserId;
|
||||
setParameter(std::string("EndUserId"), endUserId);
|
||||
}
|
||||
|
||||
std::string ModifyUserRequest::getEmail() const {
|
||||
return email_;
|
||||
}
|
||||
|
||||
void ModifyUserRequest::setEmail(const std::string &email) {
|
||||
email_ = email;
|
||||
setParameter(std::string("Email"), email);
|
||||
}
|
||||
|
||||
44
eds-user/src/model/ModifyUserResult.cc
Normal file
44
eds-user/src/model/ModifyUserResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/ModifyUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
ModifyUserResult::ModifyUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyUserResult::ModifyUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyUserResult::~ModifyUserResult()
|
||||
{}
|
||||
|
||||
void ModifyUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
45
eds-user/src/model/MoveOrgRequest.cc
Normal file
45
eds-user/src/model/MoveOrgRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/MoveOrgRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::MoveOrgRequest;
|
||||
|
||||
MoveOrgRequest::MoveOrgRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "MoveOrg") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
MoveOrgRequest::~MoveOrgRequest() {}
|
||||
|
||||
std::string MoveOrgRequest::getNewParentOrgId() const {
|
||||
return newParentOrgId_;
|
||||
}
|
||||
|
||||
void MoveOrgRequest::setNewParentOrgId(const std::string &newParentOrgId) {
|
||||
newParentOrgId_ = newParentOrgId;
|
||||
setBodyParameter(std::string("NewParentOrgId"), newParentOrgId);
|
||||
}
|
||||
|
||||
std::string MoveOrgRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void MoveOrgRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
44
eds-user/src/model/MoveOrgResult.cc
Normal file
44
eds-user/src/model/MoveOrgResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/MoveOrgResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
MoveOrgResult::MoveOrgResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
MoveOrgResult::MoveOrgResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
MoveOrgResult::~MoveOrgResult()
|
||||
{}
|
||||
|
||||
void MoveOrgResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
27
eds-user/src/model/QuerySyncStatusByAliUidRequest.cc
Normal file
27
eds-user/src/model/QuerySyncStatusByAliUidRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/QuerySyncStatusByAliUidRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::QuerySyncStatusByAliUidRequest;
|
||||
|
||||
QuerySyncStatusByAliUidRequest::QuerySyncStatusByAliUidRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "QuerySyncStatusByAliUid") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QuerySyncStatusByAliUidRequest::~QuerySyncStatusByAliUidRequest() {}
|
||||
|
||||
96
eds-user/src/model/QuerySyncStatusByAliUidResult.cc
Normal file
96
eds-user/src/model/QuerySyncStatusByAliUidResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/QuerySyncStatusByAliUidResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
QuerySyncStatusByAliUidResult::QuerySyncStatusByAliUidResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QuerySyncStatusByAliUidResult::QuerySyncStatusByAliUidResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QuerySyncStatusByAliUidResult::~QuerySyncStatusByAliUidResult()
|
||||
{}
|
||||
|
||||
void QuerySyncStatusByAliUidResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["GmtCreated"].isNull())
|
||||
data_.gmtCreated = dataNode["GmtCreated"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].asString();
|
||||
if(!dataNode["AliUid"].isNull())
|
||||
data_.aliUid = std::stol(dataNode["AliUid"].asString());
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["CorpId"].isNull())
|
||||
data_.corpId = dataNode["CorpId"].asString();
|
||||
if(!dataNode["LatestBeginTime"].isNull())
|
||||
data_.latestBeginTime = dataNode["LatestBeginTime"].asString();
|
||||
if(!dataNode["LatestEndTime"].isNull())
|
||||
data_.latestEndTime = dataNode["LatestEndTime"].asString();
|
||||
if(!dataNode["LatestSuccessTime"].isNull())
|
||||
data_.latestSuccessTime = dataNode["LatestSuccessTime"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string QuerySyncStatusByAliUidResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int QuerySyncStatusByAliUidResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
QuerySyncStatusByAliUidResult::Data QuerySyncStatusByAliUidResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QuerySyncStatusByAliUidResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QuerySyncStatusByAliUidResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
eds-user/src/model/RemoveMfaDeviceRequest.cc
Normal file
45
eds-user/src/model/RemoveMfaDeviceRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/RemoveMfaDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::RemoveMfaDeviceRequest;
|
||||
|
||||
RemoveMfaDeviceRequest::RemoveMfaDeviceRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "RemoveMfaDevice") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RemoveMfaDeviceRequest::~RemoveMfaDeviceRequest() {}
|
||||
|
||||
std::string RemoveMfaDeviceRequest::getSerialNumber() const {
|
||||
return serialNumber_;
|
||||
}
|
||||
|
||||
void RemoveMfaDeviceRequest::setSerialNumber(const std::string &serialNumber) {
|
||||
serialNumber_ = serialNumber;
|
||||
setParameter(std::string("SerialNumber"), serialNumber);
|
||||
}
|
||||
|
||||
std::string RemoveMfaDeviceRequest::getAdDomain() const {
|
||||
return adDomain_;
|
||||
}
|
||||
|
||||
void RemoveMfaDeviceRequest::setAdDomain(const std::string &adDomain) {
|
||||
adDomain_ = adDomain;
|
||||
setParameter(std::string("AdDomain"), adDomain);
|
||||
}
|
||||
|
||||
44
eds-user/src/model/RemoveMfaDeviceResult.cc
Normal file
44
eds-user/src/model/RemoveMfaDeviceResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/RemoveMfaDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
RemoveMfaDeviceResult::RemoveMfaDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemoveMfaDeviceResult::RemoveMfaDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemoveMfaDeviceResult::~RemoveMfaDeviceResult()
|
||||
{}
|
||||
|
||||
void RemoveMfaDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
eds-user/src/model/RemoveOrgRequest.cc
Normal file
36
eds-user/src/model/RemoveOrgRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/RemoveOrgRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::RemoveOrgRequest;
|
||||
|
||||
RemoveOrgRequest::RemoveOrgRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "RemoveOrg") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RemoveOrgRequest::~RemoveOrgRequest() {}
|
||||
|
||||
std::string RemoveOrgRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void RemoveOrgRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
44
eds-user/src/model/RemoveOrgResult.cc
Normal file
44
eds-user/src/model/RemoveOrgResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/RemoveOrgResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
RemoveOrgResult::RemoveOrgResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemoveOrgResult::RemoveOrgResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemoveOrgResult::~RemoveOrgResult()
|
||||
{}
|
||||
|
||||
void RemoveOrgResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
36
eds-user/src/model/RemovePropertyRequest.cc
Normal file
36
eds-user/src/model/RemovePropertyRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/RemovePropertyRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::RemovePropertyRequest;
|
||||
|
||||
RemovePropertyRequest::RemovePropertyRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "RemoveProperty") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RemovePropertyRequest::~RemovePropertyRequest() {}
|
||||
|
||||
long RemovePropertyRequest::getPropertyId() const {
|
||||
return propertyId_;
|
||||
}
|
||||
|
||||
void RemovePropertyRequest::setPropertyId(long propertyId) {
|
||||
propertyId_ = propertyId;
|
||||
setBodyParameter(std::string("PropertyId"), std::to_string(propertyId));
|
||||
}
|
||||
|
||||
44
eds-user/src/model/RemovePropertyResult.cc
Normal file
44
eds-user/src/model/RemovePropertyResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/RemovePropertyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
RemovePropertyResult::RemovePropertyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemovePropertyResult::RemovePropertyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemovePropertyResult::~RemovePropertyResult()
|
||||
{}
|
||||
|
||||
void RemovePropertyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
35
eds-user/src/model/RemoveUsersRequest.cc
Normal file
35
eds-user/src/model/RemoveUsersRequest.cc
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/RemoveUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::RemoveUsersRequest;
|
||||
|
||||
RemoveUsersRequest::RemoveUsersRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "RemoveUsers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RemoveUsersRequest::~RemoveUsersRequest() {}
|
||||
|
||||
std::vector<std::string> RemoveUsersRequest::getUsers() const {
|
||||
return users_;
|
||||
}
|
||||
|
||||
void RemoveUsersRequest::setUsers(const std::vector<std::string> &users) {
|
||||
users_ = users;
|
||||
}
|
||||
|
||||
65
eds-user/src/model/RemoveUsersResult.cc
Normal file
65
eds-user/src/model/RemoveUsersResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/RemoveUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
RemoveUsersResult::RemoveUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RemoveUsersResult::RemoveUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RemoveUsersResult::~RemoveUsersResult()
|
||||
{}
|
||||
|
||||
void RemoveUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto removeUsersResultNode = value["RemoveUsersResult"];
|
||||
auto allFailedUsersNode = removeUsersResultNode["FailedUsers"]["failedUsersItem"];
|
||||
for (auto removeUsersResultNodeFailedUsersfailedUsersItem : allFailedUsersNode)
|
||||
{
|
||||
Result::FailedUsersItem failedUsersItemObject;
|
||||
if(!removeUsersResultNodeFailedUsersfailedUsersItem["EndUserId"].isNull())
|
||||
failedUsersItemObject.endUserId = removeUsersResultNodeFailedUsersfailedUsersItem["EndUserId"].asString();
|
||||
if(!removeUsersResultNodeFailedUsersfailedUsersItem["ErrorCode"].isNull())
|
||||
failedUsersItemObject.errorCode = removeUsersResultNodeFailedUsersfailedUsersItem["ErrorCode"].asString();
|
||||
if(!removeUsersResultNodeFailedUsersfailedUsersItem["ErrorMessage"].isNull())
|
||||
failedUsersItemObject.errorMessage = removeUsersResultNodeFailedUsersfailedUsersItem["ErrorMessage"].asString();
|
||||
result_.failedUsers.push_back(failedUsersItemObject);
|
||||
}
|
||||
auto allRemovedUsers = removeUsersResultNode["RemovedUsers"]["removedUsers"];
|
||||
for (auto value : allRemovedUsers)
|
||||
result_.removedUsers.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
RemoveUsersResult::Result RemoveUsersResult::getRemoveUsersResult()const
|
||||
{
|
||||
return removeUsersResult_;
|
||||
}
|
||||
|
||||
44
eds-user/src/model/ResetUserPasswordRequest.cc
Normal file
44
eds-user/src/model/ResetUserPasswordRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/ResetUserPasswordRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::ResetUserPasswordRequest;
|
||||
|
||||
ResetUserPasswordRequest::ResetUserPasswordRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "ResetUserPassword") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ResetUserPasswordRequest::~ResetUserPasswordRequest() {}
|
||||
|
||||
std::vector<std::string> ResetUserPasswordRequest::getUsers() const {
|
||||
return users_;
|
||||
}
|
||||
|
||||
void ResetUserPasswordRequest::setUsers(const std::vector<std::string> &users) {
|
||||
users_ = users;
|
||||
}
|
||||
|
||||
int ResetUserPasswordRequest::getNotifyType() const {
|
||||
return notifyType_;
|
||||
}
|
||||
|
||||
void ResetUserPasswordRequest::setNotifyType(int notifyType) {
|
||||
notifyType_ = notifyType;
|
||||
setBodyParameter(std::string("NotifyType"), std::to_string(notifyType));
|
||||
}
|
||||
|
||||
65
eds-user/src/model/ResetUserPasswordResult.cc
Normal file
65
eds-user/src/model/ResetUserPasswordResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/ResetUserPasswordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
ResetUserPasswordResult::ResetUserPasswordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResetUserPasswordResult::ResetUserPasswordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResetUserPasswordResult::~ResetUserPasswordResult()
|
||||
{}
|
||||
|
||||
void ResetUserPasswordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resetUsersResultNode = value["ResetUsersResult"];
|
||||
auto allFailedUsersNode = resetUsersResultNode["FailedUsers"]["failedUsersItem"];
|
||||
for (auto resetUsersResultNodeFailedUsersfailedUsersItem : allFailedUsersNode)
|
||||
{
|
||||
ResetUsersResult::FailedUsersItem failedUsersItemObject;
|
||||
if(!resetUsersResultNodeFailedUsersfailedUsersItem["EndUserId"].isNull())
|
||||
failedUsersItemObject.endUserId = resetUsersResultNodeFailedUsersfailedUsersItem["EndUserId"].asString();
|
||||
if(!resetUsersResultNodeFailedUsersfailedUsersItem["ErrorCode"].isNull())
|
||||
failedUsersItemObject.errorCode = resetUsersResultNodeFailedUsersfailedUsersItem["ErrorCode"].asString();
|
||||
if(!resetUsersResultNodeFailedUsersfailedUsersItem["ErrorMessage"].isNull())
|
||||
failedUsersItemObject.errorMessage = resetUsersResultNodeFailedUsersfailedUsersItem["ErrorMessage"].asString();
|
||||
resetUsersResult_.failedUsers.push_back(failedUsersItemObject);
|
||||
}
|
||||
auto allResetUsers = resetUsersResultNode["ResetUsers"]["ResetUsers"];
|
||||
for (auto value : allResetUsers)
|
||||
resetUsersResult_.resetUsers.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
ResetUserPasswordResult::ResetUsersResult ResetUserPasswordResult::getResetUsersResult()const
|
||||
{
|
||||
return resetUsersResult_;
|
||||
}
|
||||
|
||||
63
eds-user/src/model/SetUserPropertyValueRequest.cc
Normal file
63
eds-user/src/model/SetUserPropertyValueRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/SetUserPropertyValueRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::SetUserPropertyValueRequest;
|
||||
|
||||
SetUserPropertyValueRequest::SetUserPropertyValueRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "SetUserPropertyValue") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetUserPropertyValueRequest::~SetUserPropertyValueRequest() {}
|
||||
|
||||
long SetUserPropertyValueRequest::getPropertyValueId() const {
|
||||
return propertyValueId_;
|
||||
}
|
||||
|
||||
void SetUserPropertyValueRequest::setPropertyValueId(long propertyValueId) {
|
||||
propertyValueId_ = propertyValueId;
|
||||
setBodyParameter(std::string("PropertyValueId"), std::to_string(propertyValueId));
|
||||
}
|
||||
|
||||
long SetUserPropertyValueRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void SetUserPropertyValueRequest::setUserId(long userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), std::to_string(userId));
|
||||
}
|
||||
|
||||
long SetUserPropertyValueRequest::getPropertyId() const {
|
||||
return propertyId_;
|
||||
}
|
||||
|
||||
void SetUserPropertyValueRequest::setPropertyId(long propertyId) {
|
||||
propertyId_ = propertyId;
|
||||
setBodyParameter(std::string("PropertyId"), std::to_string(propertyId));
|
||||
}
|
||||
|
||||
std::string SetUserPropertyValueRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void SetUserPropertyValueRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setBodyParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
44
eds-user/src/model/SetUserPropertyValueResult.cc
Normal file
44
eds-user/src/model/SetUserPropertyValueResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/SetUserPropertyValueResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
SetUserPropertyValueResult::SetUserPropertyValueResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetUserPropertyValueResult::SetUserPropertyValueResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetUserPropertyValueResult::~SetUserPropertyValueResult()
|
||||
{}
|
||||
|
||||
void SetUserPropertyValueResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
27
eds-user/src/model/SyncAllEduInfoRequest.cc
Normal file
27
eds-user/src/model/SyncAllEduInfoRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/SyncAllEduInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::SyncAllEduInfoRequest;
|
||||
|
||||
SyncAllEduInfoRequest::SyncAllEduInfoRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "SyncAllEduInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SyncAllEduInfoRequest::~SyncAllEduInfoRequest() {}
|
||||
|
||||
72
eds-user/src/model/SyncAllEduInfoResult.cc
Normal file
72
eds-user/src/model/SyncAllEduInfoResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/SyncAllEduInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
SyncAllEduInfoResult::SyncAllEduInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SyncAllEduInfoResult::SyncAllEduInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SyncAllEduInfoResult::~SyncAllEduInfoResult()
|
||||
{}
|
||||
|
||||
void SyncAllEduInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string SyncAllEduInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int SyncAllEduInfoResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string SyncAllEduInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SyncAllEduInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
eds-user/src/model/UnlockMfaDeviceRequest.cc
Normal file
45
eds-user/src/model/UnlockMfaDeviceRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/UnlockMfaDeviceRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::UnlockMfaDeviceRequest;
|
||||
|
||||
UnlockMfaDeviceRequest::UnlockMfaDeviceRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "UnlockMfaDevice") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnlockMfaDeviceRequest::~UnlockMfaDeviceRequest() {}
|
||||
|
||||
std::string UnlockMfaDeviceRequest::getSerialNumber() const {
|
||||
return serialNumber_;
|
||||
}
|
||||
|
||||
void UnlockMfaDeviceRequest::setSerialNumber(const std::string &serialNumber) {
|
||||
serialNumber_ = serialNumber;
|
||||
setParameter(std::string("SerialNumber"), serialNumber);
|
||||
}
|
||||
|
||||
std::string UnlockMfaDeviceRequest::getAdDomain() const {
|
||||
return adDomain_;
|
||||
}
|
||||
|
||||
void UnlockMfaDeviceRequest::setAdDomain(const std::string &adDomain) {
|
||||
adDomain_ = adDomain;
|
||||
setParameter(std::string("AdDomain"), adDomain);
|
||||
}
|
||||
|
||||
44
eds-user/src/model/UnlockMfaDeviceResult.cc
Normal file
44
eds-user/src/model/UnlockMfaDeviceResult.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/UnlockMfaDeviceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
UnlockMfaDeviceResult::UnlockMfaDeviceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnlockMfaDeviceResult::UnlockMfaDeviceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnlockMfaDeviceResult::~UnlockMfaDeviceResult()
|
||||
{}
|
||||
|
||||
void UnlockMfaDeviceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
44
eds-user/src/model/UnlockUsersRequest.cc
Normal file
44
eds-user/src/model/UnlockUsersRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/UnlockUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::UnlockUsersRequest;
|
||||
|
||||
UnlockUsersRequest::UnlockUsersRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "UnlockUsers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnlockUsersRequest::~UnlockUsersRequest() {}
|
||||
|
||||
std::string UnlockUsersRequest::getAutoLockTime() const {
|
||||
return autoLockTime_;
|
||||
}
|
||||
|
||||
void UnlockUsersRequest::setAutoLockTime(const std::string &autoLockTime) {
|
||||
autoLockTime_ = autoLockTime;
|
||||
setParameter(std::string("AutoLockTime"), autoLockTime);
|
||||
}
|
||||
|
||||
std::vector<std::string> UnlockUsersRequest::getUsers() const {
|
||||
return users_;
|
||||
}
|
||||
|
||||
void UnlockUsersRequest::setUsers(const std::vector<std::string> &users) {
|
||||
users_ = users;
|
||||
}
|
||||
|
||||
65
eds-user/src/model/UnlockUsersResult.cc
Normal file
65
eds-user/src/model/UnlockUsersResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/eds-user/model/UnlockUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
UnlockUsersResult::UnlockUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnlockUsersResult::UnlockUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnlockUsersResult::~UnlockUsersResult()
|
||||
{}
|
||||
|
||||
void UnlockUsersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto unlockUsersResultNode = value["UnlockUsersResult"];
|
||||
auto allFailedUsersNode = unlockUsersResultNode["FailedUsers"]["FailedUsersItem"];
|
||||
for (auto unlockUsersResultNodeFailedUsersFailedUsersItem : allFailedUsersNode)
|
||||
{
|
||||
Result::FailedUsersItem failedUsersItemObject;
|
||||
if(!unlockUsersResultNodeFailedUsersFailedUsersItem["EndUserId"].isNull())
|
||||
failedUsersItemObject.endUserId = unlockUsersResultNodeFailedUsersFailedUsersItem["EndUserId"].asString();
|
||||
if(!unlockUsersResultNodeFailedUsersFailedUsersItem["ErrorCode"].isNull())
|
||||
failedUsersItemObject.errorCode = unlockUsersResultNodeFailedUsersFailedUsersItem["ErrorCode"].asString();
|
||||
if(!unlockUsersResultNodeFailedUsersFailedUsersItem["ErrorMessage"].isNull())
|
||||
failedUsersItemObject.errorMessage = unlockUsersResultNodeFailedUsersFailedUsersItem["ErrorMessage"].asString();
|
||||
result_.failedUsers.push_back(failedUsersItemObject);
|
||||
}
|
||||
auto allUnlockedUsers = unlockUsersResultNode["UnlockedUsers"]["UnlockedUsers"];
|
||||
for (auto value : allUnlockedUsers)
|
||||
result_.unlockedUsers.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
UnlockUsersResult::Result UnlockUsersResult::getUnlockUsersResult()const
|
||||
{
|
||||
return unlockUsersResult_;
|
||||
}
|
||||
|
||||
59
eds-user/src/model/UpdatePropertyRequest.cc
Normal file
59
eds-user/src/model/UpdatePropertyRequest.cc
Normal file
@@ -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 <alibabacloud/eds-user/model/UpdatePropertyRequest.h>
|
||||
|
||||
using AlibabaCloud::Eds_user::Model::UpdatePropertyRequest;
|
||||
|
||||
UpdatePropertyRequest::UpdatePropertyRequest()
|
||||
: RpcServiceRequest("eds-user", "2021-03-08", "UpdateProperty") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdatePropertyRequest::~UpdatePropertyRequest() {}
|
||||
|
||||
std::string UpdatePropertyRequest::getPropertyKey() const {
|
||||
return propertyKey_;
|
||||
}
|
||||
|
||||
void UpdatePropertyRequest::setPropertyKey(const std::string &propertyKey) {
|
||||
propertyKey_ = propertyKey;
|
||||
setBodyParameter(std::string("PropertyKey"), propertyKey);
|
||||
}
|
||||
|
||||
long UpdatePropertyRequest::getPropertyId() const {
|
||||
return propertyId_;
|
||||
}
|
||||
|
||||
void UpdatePropertyRequest::setPropertyId(long propertyId) {
|
||||
propertyId_ = propertyId;
|
||||
setBodyParameter(std::string("PropertyId"), std::to_string(propertyId));
|
||||
}
|
||||
|
||||
std::vector<UpdatePropertyRequest::PropertyValues> UpdatePropertyRequest::getPropertyValues() const {
|
||||
return propertyValues_;
|
||||
}
|
||||
|
||||
void UpdatePropertyRequest::setPropertyValues(const std::vector<UpdatePropertyRequest::PropertyValues> &propertyValues) {
|
||||
propertyValues_ = propertyValues;
|
||||
for(int dep1 = 0; dep1 != propertyValues.size(); dep1++) {
|
||||
auto propertyValuesObj = propertyValues.at(dep1);
|
||||
std::string propertyValuesObjStr = std::string("PropertyValues") + "." + std::to_string(dep1 + 1);
|
||||
setBodyParameter(propertyValuesObjStr + ".PropertyValueId", std::to_string(propertyValuesObj.propertyValueId));
|
||||
setBodyParameter(propertyValuesObjStr + ".PropertyValue", propertyValuesObj.propertyValue);
|
||||
}
|
||||
}
|
||||
|
||||
79
eds-user/src/model/UpdatePropertyResult.cc
Normal file
79
eds-user/src/model/UpdatePropertyResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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 <alibabacloud/eds-user/model/UpdatePropertyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Eds_user;
|
||||
using namespace AlibabaCloud::Eds_user::Model;
|
||||
|
||||
UpdatePropertyResult::UpdatePropertyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdatePropertyResult::UpdatePropertyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdatePropertyResult::~UpdatePropertyResult()
|
||||
{}
|
||||
|
||||
void UpdatePropertyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto updateResultNode = value["UpdateResult"];
|
||||
if(!updateResultNode["PropertyId"].isNull())
|
||||
updateResult_.propertyId = std::stol(updateResultNode["PropertyId"].asString());
|
||||
if(!updateResultNode["PropertyKey"].isNull())
|
||||
updateResult_.propertyKey = updateResultNode["PropertyKey"].asString();
|
||||
auto savePropertyValueModelNode = updateResultNode["SavePropertyValueModel"];
|
||||
auto allSavePropertyValuesNode = savePropertyValueModelNode["SavePropertyValues"]["savePropertyValuesItem"];
|
||||
for (auto savePropertyValueModelNodeSavePropertyValuessavePropertyValuesItem : allSavePropertyValuesNode)
|
||||
{
|
||||
UpdateResult::SavePropertyValueModel::SavePropertyValuesItem savePropertyValuesItemObject;
|
||||
if(!savePropertyValueModelNodeSavePropertyValuessavePropertyValuesItem["PropertyValueId"].isNull())
|
||||
savePropertyValuesItemObject.propertyValueId = std::stol(savePropertyValueModelNodeSavePropertyValuessavePropertyValuesItem["PropertyValueId"].asString());
|
||||
if(!savePropertyValueModelNodeSavePropertyValuessavePropertyValuesItem["PropertyValue"].isNull())
|
||||
savePropertyValuesItemObject.propertyValue = savePropertyValueModelNodeSavePropertyValuessavePropertyValuesItem["PropertyValue"].asString();
|
||||
updateResult_.savePropertyValueModel.savePropertyValues.push_back(savePropertyValuesItemObject);
|
||||
}
|
||||
auto allFailedPropertyValuesNode = savePropertyValueModelNode["FailedPropertyValues"]["failedPropertyValuesItem"];
|
||||
for (auto savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem : allFailedPropertyValuesNode)
|
||||
{
|
||||
UpdateResult::SavePropertyValueModel::FailedPropertyValuesItem failedPropertyValuesItemObject;
|
||||
if(!savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["PropertyId"].isNull())
|
||||
failedPropertyValuesItemObject.propertyId = std::stol(savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["PropertyId"].asString());
|
||||
if(!savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["PropertyValue"].isNull())
|
||||
failedPropertyValuesItemObject.propertyValue = savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["PropertyValue"].asString();
|
||||
if(!savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["ErrorCode"].isNull())
|
||||
failedPropertyValuesItemObject.errorCode = savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["ErrorCode"].asString();
|
||||
if(!savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["ErrorMessage"].isNull())
|
||||
failedPropertyValuesItemObject.errorMessage = savePropertyValueModelNodeFailedPropertyValuesfailedPropertyValuesItem["ErrorMessage"].asString();
|
||||
updateResult_.savePropertyValueModel.failedPropertyValues.push_back(failedPropertyValuesItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
UpdatePropertyResult::UpdateResult UpdatePropertyResult::getUpdateResult()const
|
||||
{
|
||||
return updateResult_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user