Update parameter.
This commit is contained in:
51
vcs/src/model/BindCorpGroupRequest.cc
Normal file
51
vcs/src/model/BindCorpGroupRequest.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/vcs/model/BindCorpGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::BindCorpGroupRequest;
|
||||
|
||||
BindCorpGroupRequest::BindCorpGroupRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "BindCorpGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindCorpGroupRequest::~BindCorpGroupRequest()
|
||||
{}
|
||||
|
||||
std::string BindCorpGroupRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void BindCorpGroupRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string BindCorpGroupRequest::getCorpGroupId()const
|
||||
{
|
||||
return corpGroupId_;
|
||||
}
|
||||
|
||||
void BindCorpGroupRequest::setCorpGroupId(const std::string& corpGroupId)
|
||||
{
|
||||
corpGroupId_ = corpGroupId;
|
||||
setBodyParameter("CorpGroupId", corpGroupId);
|
||||
}
|
||||
|
||||
65
vcs/src/model/BindCorpGroupResult.cc
Normal file
65
vcs/src/model/BindCorpGroupResult.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/vcs/model/BindCorpGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
BindCorpGroupResult::BindCorpGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindCorpGroupResult::BindCorpGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindCorpGroupResult::~BindCorpGroupResult()
|
||||
{}
|
||||
|
||||
void BindCorpGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string BindCorpGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BindCorpGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BindCorpGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
vcs/src/model/BindUserRequest.cc
Normal file
84
vcs/src/model/BindUserRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/vcs/model/BindUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::BindUserRequest;
|
||||
|
||||
BindUserRequest::BindUserRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "BindUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindUserRequest::~BindUserRequest()
|
||||
{}
|
||||
|
||||
std::string BindUserRequest::getIsvSubId()const
|
||||
{
|
||||
return isvSubId_;
|
||||
}
|
||||
|
||||
void BindUserRequest::setIsvSubId(const std::string& isvSubId)
|
||||
{
|
||||
isvSubId_ = isvSubId;
|
||||
setBodyParameter("IsvSubId", isvSubId);
|
||||
}
|
||||
|
||||
std::string BindUserRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void BindUserRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
long BindUserRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void BindUserRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
std::string BindUserRequest::getMatchingRate()const
|
||||
{
|
||||
return matchingRate_;
|
||||
}
|
||||
|
||||
void BindUserRequest::setMatchingRate(const std::string& matchingRate)
|
||||
{
|
||||
matchingRate_ = matchingRate;
|
||||
setBodyParameter("MatchingRate", matchingRate);
|
||||
}
|
||||
|
||||
std::string BindUserRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void BindUserRequest::setPersonId(const std::string& personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setBodyParameter("PersonId", personId);
|
||||
}
|
||||
|
||||
65
vcs/src/model/BindUserResult.cc
Normal file
65
vcs/src/model/BindUserResult.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/vcs/model/BindUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
BindUserResult::BindUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindUserResult::BindUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindUserResult::~BindUserResult()
|
||||
{}
|
||||
|
||||
void BindUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BindUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool BindUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BindUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
vcs/src/model/CreateUserGroupRequest.cc
Normal file
73
vcs/src/model/CreateUserGroupRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/vcs/model/CreateUserGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::CreateUserGroupRequest;
|
||||
|
||||
CreateUserGroupRequest::CreateUserGroupRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "CreateUserGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUserGroupRequest::~CreateUserGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateUserGroupRequest::getIsvSubId()const
|
||||
{
|
||||
return isvSubId_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setIsvSubId(const std::string& isvSubId)
|
||||
{
|
||||
isvSubId_ = isvSubId;
|
||||
setBodyParameter("IsvSubId", isvSubId);
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string CreateUserGroupRequest::getUserGroupName()const
|
||||
{
|
||||
return userGroupName_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setUserGroupName(const std::string& userGroupName)
|
||||
{
|
||||
userGroupName_ = userGroupName;
|
||||
setBodyParameter("UserGroupName", userGroupName);
|
||||
}
|
||||
|
||||
long CreateUserGroupRequest::getParentUserGroupId()const
|
||||
{
|
||||
return parentUserGroupId_;
|
||||
}
|
||||
|
||||
void CreateUserGroupRequest::setParentUserGroupId(long parentUserGroupId)
|
||||
{
|
||||
parentUserGroupId_ = parentUserGroupId;
|
||||
setBodyParameter("ParentUserGroupId", std::to_string(parentUserGroupId));
|
||||
}
|
||||
|
||||
70
vcs/src/model/CreateUserGroupResult.cc
Normal file
70
vcs/src/model/CreateUserGroupResult.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/vcs/model/CreateUserGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
CreateUserGroupResult::CreateUserGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserGroupResult::CreateUserGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserGroupResult::~CreateUserGroupResult()
|
||||
{}
|
||||
|
||||
void CreateUserGroupResult::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["UserGroupName"].isNull())
|
||||
data_.userGroupName = dataNode["UserGroupName"].asString();
|
||||
if(!dataNode["IsvSubId"].isNull())
|
||||
data_.isvSubId = dataNode["IsvSubId"].asString();
|
||||
if(!dataNode["UserGroupId"].isNull())
|
||||
data_.userGroupId = std::stol(dataNode["UserGroupId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateUserGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateUserGroupResult::Data CreateUserGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateUserGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
172
vcs/src/model/CreateUserRequest.cc
Normal file
172
vcs/src/model/CreateUserRequest.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/vcs/model/CreateUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::CreateUserRequest;
|
||||
|
||||
CreateUserRequest::CreateUserRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "CreateUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUserRequest::~CreateUserRequest()
|
||||
{}
|
||||
|
||||
std::string CreateUserRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
int CreateUserRequest::getGender()const
|
||||
{
|
||||
return gender_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setGender(int gender)
|
||||
{
|
||||
gender_ = gender;
|
||||
setBodyParameter("Gender", std::to_string(gender));
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getPlateNo()const
|
||||
{
|
||||
return plateNo_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setPlateNo(const std::string& plateNo)
|
||||
{
|
||||
plateNo_ = plateNo;
|
||||
setBodyParameter("PlateNo", plateNo);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getIdNumber()const
|
||||
{
|
||||
return idNumber_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setIdNumber(const std::string& idNumber)
|
||||
{
|
||||
idNumber_ = idNumber;
|
||||
setBodyParameter("IdNumber", idNumber);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getFaceImageUrl()const
|
||||
{
|
||||
return faceImageUrl_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setFaceImageUrl(const std::string& faceImageUrl)
|
||||
{
|
||||
faceImageUrl_ = faceImageUrl;
|
||||
setBodyParameter("FaceImageUrl", faceImageUrl);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getAttachment()const
|
||||
{
|
||||
return attachment_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setAttachment(const std::string& attachment)
|
||||
{
|
||||
attachment_ = attachment;
|
||||
setBodyParameter("Attachment", attachment);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getIsvSubId()const
|
||||
{
|
||||
return isvSubId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setIsvSubId(const std::string& isvSubId)
|
||||
{
|
||||
isvSubId_ = isvSubId;
|
||||
setBodyParameter("IsvSubId", isvSubId);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getAddress()const
|
||||
{
|
||||
return address_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setAddress(const std::string& address)
|
||||
{
|
||||
address_ = address;
|
||||
setBodyParameter("Address", address);
|
||||
}
|
||||
|
||||
long CreateUserRequest::getUserGroupId()const
|
||||
{
|
||||
return userGroupId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setUserGroupId(long userGroupId)
|
||||
{
|
||||
userGroupId_ = userGroupId;
|
||||
setBodyParameter("UserGroupId", std::to_string(userGroupId));
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getPhoneNo()const
|
||||
{
|
||||
return phoneNo_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setPhoneNo(const std::string& phoneNo)
|
||||
{
|
||||
phoneNo_ = phoneNo;
|
||||
setBodyParameter("PhoneNo", phoneNo);
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
int CreateUserRequest::getAge()const
|
||||
{
|
||||
return age_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setAge(int age)
|
||||
{
|
||||
age_ = age;
|
||||
setBodyParameter("Age", std::to_string(age));
|
||||
}
|
||||
|
||||
std::string CreateUserRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void CreateUserRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setBodyParameter("UserName", userName);
|
||||
}
|
||||
|
||||
90
vcs/src/model/CreateUserResult.cc
Normal file
90
vcs/src/model/CreateUserResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vcs/model/CreateUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
CreateUserResult::CreateUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserResult::CreateUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserResult::~CreateUserResult()
|
||||
{}
|
||||
|
||||
void CreateUserResult::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["UserId"].isNull())
|
||||
data_.userId = std::stoi(dataNode["UserId"].asString());
|
||||
if(!dataNode["IsvSubId"].isNull())
|
||||
data_.isvSubId = dataNode["IsvSubId"].asString();
|
||||
if(!dataNode["UserName"].isNull())
|
||||
data_.userName = dataNode["UserName"].asString();
|
||||
if(!dataNode["UserGroupId"].isNull())
|
||||
data_.userGroupId = std::stoi(dataNode["UserGroupId"].asString());
|
||||
if(!dataNode["IdNumber"].isNull())
|
||||
data_.idNumber = dataNode["IdNumber"].asString();
|
||||
if(!dataNode["FaceImageUrl"].isNull())
|
||||
data_.faceImageUrl = dataNode["FaceImageUrl"].asString();
|
||||
if(!dataNode["Address"].isNull())
|
||||
data_.address = dataNode["Address"].asString();
|
||||
if(!dataNode["Age"].isNull())
|
||||
data_.age = dataNode["Age"].asString();
|
||||
if(!dataNode["Gender"].isNull())
|
||||
data_.gender = dataNode["Gender"].asString();
|
||||
if(!dataNode["PlateNo"].isNull())
|
||||
data_.plateNo = dataNode["PlateNo"].asString();
|
||||
if(!dataNode["PhoneNo"].isNull())
|
||||
data_.phoneNo = dataNode["PhoneNo"].asString();
|
||||
if(!dataNode["Attachment"].isNull())
|
||||
data_.attachment = dataNode["Attachment"].asString();
|
||||
if(!dataNode["BizId"].isNull())
|
||||
data_.bizId = dataNode["BizId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateUserResult::Data CreateUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
vcs/src/model/DeleteUserGroupRequest.cc
Normal file
62
vcs/src/model/DeleteUserGroupRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/vcs/model/DeleteUserGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::DeleteUserGroupRequest;
|
||||
|
||||
DeleteUserGroupRequest::DeleteUserGroupRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "DeleteUserGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteUserGroupRequest::~DeleteUserGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteUserGroupRequest::getIsvSubId()const
|
||||
{
|
||||
return isvSubId_;
|
||||
}
|
||||
|
||||
void DeleteUserGroupRequest::setIsvSubId(const std::string& isvSubId)
|
||||
{
|
||||
isvSubId_ = isvSubId;
|
||||
setBodyParameter("IsvSubId", isvSubId);
|
||||
}
|
||||
|
||||
std::string DeleteUserGroupRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void DeleteUserGroupRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string DeleteUserGroupRequest::getUserGroupId()const
|
||||
{
|
||||
return userGroupId_;
|
||||
}
|
||||
|
||||
void DeleteUserGroupRequest::setUserGroupId(const std::string& userGroupId)
|
||||
{
|
||||
userGroupId_ = userGroupId;
|
||||
setBodyParameter("UserGroupId", userGroupId);
|
||||
}
|
||||
|
||||
65
vcs/src/model/DeleteUserGroupResult.cc
Normal file
65
vcs/src/model/DeleteUserGroupResult.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/vcs/model/DeleteUserGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
DeleteUserGroupResult::DeleteUserGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteUserGroupResult::DeleteUserGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteUserGroupResult::~DeleteUserGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteUserGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteUserGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool DeleteUserGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteUserGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
vcs/src/model/DeleteUserRequest.cc
Normal file
62
vcs/src/model/DeleteUserRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/vcs/model/DeleteUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::DeleteUserRequest;
|
||||
|
||||
DeleteUserRequest::DeleteUserRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "DeleteUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteUserRequest::~DeleteUserRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteUserRequest::getIsvSubId()const
|
||||
{
|
||||
return isvSubId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setIsvSubId(const std::string& isvSubId)
|
||||
{
|
||||
isvSubId_ = isvSubId;
|
||||
setBodyParameter("IsvSubId", isvSubId);
|
||||
}
|
||||
|
||||
std::string DeleteUserRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
long DeleteUserRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
65
vcs/src/model/DeleteUserResult.cc
Normal file
65
vcs/src/model/DeleteUserResult.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/vcs/model/DeleteUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
DeleteUserResult::DeleteUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteUserResult::DeleteUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteUserResult::~DeleteUserResult()
|
||||
{}
|
||||
|
||||
void DeleteUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool DeleteUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
vcs/src/model/GetPersonListRequest.cc
Normal file
73
vcs/src/model/GetPersonListRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/vcs/model/GetPersonListRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::GetPersonListRequest;
|
||||
|
||||
GetPersonListRequest::GetPersonListRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "GetPersonList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPersonListRequest::~GetPersonListRequest()
|
||||
{}
|
||||
|
||||
std::string GetPersonListRequest::getFaceImageUrl()const
|
||||
{
|
||||
return faceImageUrl_;
|
||||
}
|
||||
|
||||
void GetPersonListRequest::setFaceImageUrl(const std::string& faceImageUrl)
|
||||
{
|
||||
faceImageUrl_ = faceImageUrl;
|
||||
setBodyParameter("FaceImageUrl", faceImageUrl);
|
||||
}
|
||||
|
||||
std::string GetPersonListRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void GetPersonListRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string GetPersonListRequest::getCorpIdList()const
|
||||
{
|
||||
return corpIdList_;
|
||||
}
|
||||
|
||||
void GetPersonListRequest::setCorpIdList(const std::string& corpIdList)
|
||||
{
|
||||
corpIdList_ = corpIdList;
|
||||
setBodyParameter("CorpIdList", corpIdList);
|
||||
}
|
||||
|
||||
std::string GetPersonListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetPersonListRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
96
vcs/src/model/GetPersonListResult.cc
Normal file
96
vcs/src/model/GetPersonListResult.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/vcs/model/GetPersonListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
GetPersonListResult::GetPersonListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPersonListResult::GetPersonListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPersonListResult::~GetPersonListResult()
|
||||
{}
|
||||
|
||||
void GetPersonListResult::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["PageNumber"].isNull())
|
||||
data_.pageNumber = dataNode["PageNumber"].asString();
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = dataNode["PageSize"].asString();
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = dataNode["TotalCount"].asString();
|
||||
auto allRecordsNode = dataNode["Records"]["RecordsItem"];
|
||||
for (auto dataNodeRecordsRecordsItem : allRecordsNode)
|
||||
{
|
||||
Data::RecordsItem recordsItemObject;
|
||||
if(!dataNodeRecordsRecordsItem["FirstAppearTime"].isNull())
|
||||
recordsItemObject.firstAppearTime = dataNodeRecordsRecordsItem["FirstAppearTime"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["PersonId"].isNull())
|
||||
recordsItemObject.personId = dataNodeRecordsRecordsItem["PersonId"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["FaceImageUrl"].isNull())
|
||||
recordsItemObject.faceImageUrl = dataNodeRecordsRecordsItem["FaceImageUrl"].asString();
|
||||
auto allTagListNode = allRecordsNode["TagList"]["TagListItem"];
|
||||
for (auto allRecordsNodeTagListTagListItem : allTagListNode)
|
||||
{
|
||||
Data::RecordsItem::TagListItem tagListObject;
|
||||
if(!allRecordsNodeTagListTagListItem["Code"].isNull())
|
||||
tagListObject.code = allRecordsNodeTagListTagListItem["Code"].asString();
|
||||
if(!allRecordsNodeTagListTagListItem["Value"].isNull())
|
||||
tagListObject.value = allRecordsNodeTagListTagListItem["Value"].asString();
|
||||
if(!allRecordsNodeTagListTagListItem["TagCodeName"].isNull())
|
||||
tagListObject.tagCodeName = allRecordsNodeTagListTagListItem["TagCodeName"].asString();
|
||||
if(!allRecordsNodeTagListTagListItem["TagName"].isNull())
|
||||
tagListObject.tagName = allRecordsNodeTagListTagListItem["TagName"].asString();
|
||||
recordsItemObject.tagList.push_back(tagListObject);
|
||||
}
|
||||
data_.records.push_back(recordsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetPersonListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetPersonListResult::Data GetPersonListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetPersonListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
vcs/src/model/GetUserDetailRequest.cc
Normal file
73
vcs/src/model/GetUserDetailRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/vcs/model/GetUserDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::GetUserDetailRequest;
|
||||
|
||||
GetUserDetailRequest::GetUserDetailRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "GetUserDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserDetailRequest::~GetUserDetailRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserDetailRequest::getIsvSubId()const
|
||||
{
|
||||
return isvSubId_;
|
||||
}
|
||||
|
||||
void GetUserDetailRequest::setIsvSubId(const std::string& isvSubId)
|
||||
{
|
||||
isvSubId_ = isvSubId;
|
||||
setBodyParameter("IsvSubId", isvSubId);
|
||||
}
|
||||
|
||||
std::string GetUserDetailRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void GetUserDetailRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
bool GetUserDetailRequest::getNeedFaceDetail()const
|
||||
{
|
||||
return needFaceDetail_;
|
||||
}
|
||||
|
||||
void GetUserDetailRequest::setNeedFaceDetail(bool needFaceDetail)
|
||||
{
|
||||
needFaceDetail_ = needFaceDetail;
|
||||
setBodyParameter("NeedFaceDetail", needFaceDetail ? "true" : "false");
|
||||
}
|
||||
|
||||
long GetUserDetailRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void GetUserDetailRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
90
vcs/src/model/GetUserDetailResult.cc
Normal file
90
vcs/src/model/GetUserDetailResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/vcs/model/GetUserDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
GetUserDetailResult::GetUserDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUserDetailResult::GetUserDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUserDetailResult::~GetUserDetailResult()
|
||||
{}
|
||||
|
||||
void GetUserDetailResult::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["Address"].isNull())
|
||||
data_.address = dataNode["Address"].asString();
|
||||
if(!dataNode["Age"].isNull())
|
||||
data_.age = dataNode["Age"].asString();
|
||||
if(!dataNode["Attachment"].isNull())
|
||||
data_.attachment = dataNode["Attachment"].asString();
|
||||
if(!dataNode["BizId"].isNull())
|
||||
data_.bizId = dataNode["BizId"].asString();
|
||||
if(!dataNode["FaceImageUrl"].isNull())
|
||||
data_.faceImageUrl = dataNode["FaceImageUrl"].asString();
|
||||
if(!dataNode["Gender"].isNull())
|
||||
data_.gender = dataNode["Gender"].asString();
|
||||
if(!dataNode["IdNumber"].isNull())
|
||||
data_.idNumber = dataNode["IdNumber"].asString();
|
||||
if(!dataNode["PhoneNo"].isNull())
|
||||
data_.phoneNo = dataNode["PhoneNo"].asString();
|
||||
if(!dataNode["PlateNo"].isNull())
|
||||
data_.plateNo = dataNode["PlateNo"].asString();
|
||||
if(!dataNode["UserGroupId"].isNull())
|
||||
data_.userGroupId = std::stoi(dataNode["UserGroupId"].asString());
|
||||
if(!dataNode["UserId"].isNull())
|
||||
data_.userId = std::stoi(dataNode["UserId"].asString());
|
||||
if(!dataNode["UserName"].isNull())
|
||||
data_.userName = dataNode["UserName"].asString();
|
||||
if(!dataNode["IsvSubId"].isNull())
|
||||
data_.isvSubId = dataNode["IsvSubId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetUserDetailResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetUserDetailResult::Data GetUserDetailResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetUserDetailResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ ListCorpGroupMetricsRequest::ListCorpGroupMetricsRequest() :
|
||||
ListCorpGroupMetricsRequest::~ListCorpGroupMetricsRequest()
|
||||
{}
|
||||
|
||||
std::string ListCorpGroupMetricsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListCorpGroupMetricsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string ListCorpGroupMetricsRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
@@ -60,6 +71,17 @@ void ListCorpGroupMetricsRequest::setStartTime(const std::string& startTime)
|
||||
setBodyParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string ListCorpGroupMetricsRequest::getDeviceId()const
|
||||
{
|
||||
return deviceId_;
|
||||
}
|
||||
|
||||
void ListCorpGroupMetricsRequest::setDeviceId(const std::string& deviceId)
|
||||
{
|
||||
deviceId_ = deviceId;
|
||||
setBodyParameter("DeviceId", deviceId);
|
||||
}
|
||||
|
||||
std::string ListCorpGroupMetricsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -71,6 +93,17 @@ void ListCorpGroupMetricsRequest::setPageNumber(const std::string& pageNumber)
|
||||
setBodyParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string ListCorpGroupMetricsRequest::getDeviceGroup()const
|
||||
{
|
||||
return deviceGroup_;
|
||||
}
|
||||
|
||||
void ListCorpGroupMetricsRequest::setDeviceGroup(const std::string& deviceGroup)
|
||||
{
|
||||
deviceGroup_ = deviceGroup;
|
||||
setBodyParameter("DeviceGroup", deviceGroup);
|
||||
}
|
||||
|
||||
std::string ListCorpGroupMetricsRequest::getTagCode()const
|
||||
{
|
||||
return tagCode_;
|
||||
@@ -93,3 +126,14 @@ void ListCorpGroupMetricsRequest::setPageSize(const std::string& pageSize)
|
||||
setBodyParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string ListCorpGroupMetricsRequest::getUserGroup()const
|
||||
{
|
||||
return userGroup_;
|
||||
}
|
||||
|
||||
void ListCorpGroupMetricsRequest::setUserGroup(const std::string& userGroup)
|
||||
{
|
||||
userGroup_ = userGroup;
|
||||
setBodyParameter("UserGroup", userGroup);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,20 +39,30 @@ void ListCorpGroupMetricsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Day"];
|
||||
for (auto valueDataDay : allDataNode)
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
Day dataObject;
|
||||
if(!valueDataDay["CheckedTime"].isNull())
|
||||
dataObject.checkedTime = valueDataDay["CheckedTime"].asString();
|
||||
if(!valueDataDay["TagMetrics"].isNull())
|
||||
dataObject.tagMetrics = valueDataDay["TagMetrics"].asString();
|
||||
if(!valueDataDay["TagCode"].isNull())
|
||||
dataObject.tagCode = valueDataDay["TagCode"].asString();
|
||||
if(!valueDataDay["TagValue"].isNull())
|
||||
dataObject.tagValue = valueDataDay["TagValue"].asString();
|
||||
if(!valueDataDay["GroupId"].isNull())
|
||||
dataObject.groupId = valueDataDay["GroupId"].asString();
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["DateId"].isNull())
|
||||
dataObject.dateId = valueDataDataItem["DateId"].asString();
|
||||
if(!valueDataDataItem["TagMetrics"].isNull())
|
||||
dataObject.tagMetrics = valueDataDataItem["TagMetrics"].asString();
|
||||
if(!valueDataDataItem["TagCode"].isNull())
|
||||
dataObject.tagCode = valueDataDataItem["TagCode"].asString();
|
||||
if(!valueDataDataItem["TagValue"].isNull())
|
||||
dataObject.tagValue = valueDataDataItem["TagValue"].asString();
|
||||
if(!valueDataDataItem["CorpGroupId"].isNull())
|
||||
dataObject.corpGroupId = valueDataDataItem["CorpGroupId"].asString();
|
||||
if(!valueDataDataItem["CorpId"].isNull())
|
||||
dataObject.corpId = valueDataDataItem["CorpId"].asString();
|
||||
if(!valueDataDataItem["DeviceGroupId"].isNull())
|
||||
dataObject.deviceGroupId = valueDataDataItem["DeviceGroupId"].asString();
|
||||
if(!valueDataDataItem["DeviceId"].isNull())
|
||||
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
|
||||
if(!valueDataDataItem["UserGroupId"].isNull())
|
||||
dataObject.userGroupId = valueDataDataItem["UserGroupId"].asString();
|
||||
if(!valueDataDataItem["PersonID"].isNull())
|
||||
dataObject.personID = valueDataDataItem["PersonID"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
@@ -90,7 +100,7 @@ int ListCorpGroupMetricsResult::getPageNumber()const
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListCorpGroupMetricsResult::Day> ListCorpGroupMetricsResult::getData()const
|
||||
std::vector<ListCorpGroupMetricsResult::DataItem> ListCorpGroupMetricsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -71,6 +71,17 @@ void ListCorpMetricsRequest::setPageNumber(const std::string& pageNumber)
|
||||
setBodyParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsRequest::getDeviceGroupList()const
|
||||
{
|
||||
return deviceGroupList_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsRequest::setDeviceGroupList(const std::string& deviceGroupList)
|
||||
{
|
||||
deviceGroupList_ = deviceGroupList;
|
||||
setBodyParameter("DeviceGroupList", deviceGroupList);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsRequest::getTagCode()const
|
||||
{
|
||||
return tagCode_;
|
||||
@@ -82,6 +93,17 @@ void ListCorpMetricsRequest::setTagCode(const std::string& tagCode)
|
||||
setBodyParameter("TagCode", tagCode);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsRequest::getUserGroupList()const
|
||||
{
|
||||
return userGroupList_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsRequest::setUserGroupList(const std::string& userGroupList)
|
||||
{
|
||||
userGroupList_ = userGroupList;
|
||||
setBodyParameter("UserGroupList", userGroupList);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
@@ -93,3 +115,14 @@ void ListCorpMetricsRequest::setPageSize(const std::string& pageSize)
|
||||
setBodyParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string ListCorpMetricsRequest::getDeviceIdList()const
|
||||
{
|
||||
return deviceIdList_;
|
||||
}
|
||||
|
||||
void ListCorpMetricsRequest::setDeviceIdList(const std::string& deviceIdList)
|
||||
{
|
||||
deviceIdList_ = deviceIdList;
|
||||
setBodyParameter("DeviceIdList", deviceIdList);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,6 +51,16 @@ void ListCorpMetricsResult::parse(const std::string &payload)
|
||||
dataObject.tagMetrics = valueDataDataItem["TagMetrics"].asString();
|
||||
if(!valueDataDataItem["TagValue"].isNull())
|
||||
dataObject.tagValue = valueDataDataItem["TagValue"].asString();
|
||||
if(!valueDataDataItem["DeviceGroupId"].isNull())
|
||||
dataObject.deviceGroupId = valueDataDataItem["DeviceGroupId"].asString();
|
||||
if(!valueDataDataItem["DeviceId"].isNull())
|
||||
dataObject.deviceId = valueDataDataItem["DeviceId"].asString();
|
||||
if(!valueDataDataItem["UserGroupId"].isNull())
|
||||
dataObject.userGroupId = valueDataDataItem["UserGroupId"].asString();
|
||||
if(!valueDataDataItem["PersonId"].isNull())
|
||||
dataObject.personId = valueDataDataItem["PersonId"].asString();
|
||||
if(!valueDataDataItem["DateId"].isNull())
|
||||
dataObject.dateId = valueDataDataItem["DateId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
|
||||
51
vcs/src/model/ListUserGroupsRequest.cc
Normal file
51
vcs/src/model/ListUserGroupsRequest.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/vcs/model/ListUserGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::ListUserGroupsRequest;
|
||||
|
||||
ListUserGroupsRequest::ListUserGroupsRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "ListUserGroups")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListUserGroupsRequest::~ListUserGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string ListUserGroupsRequest::getIsvSubId()const
|
||||
{
|
||||
return isvSubId_;
|
||||
}
|
||||
|
||||
void ListUserGroupsRequest::setIsvSubId(const std::string& isvSubId)
|
||||
{
|
||||
isvSubId_ = isvSubId;
|
||||
setParameter("IsvSubId", isvSubId);
|
||||
}
|
||||
|
||||
std::string ListUserGroupsRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListUserGroupsRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
85
vcs/src/model/ListUserGroupsResult.cc
Normal file
85
vcs/src/model/ListUserGroupsResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/vcs/model/ListUserGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
ListUserGroupsResult::ListUserGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListUserGroupsResult::ListUserGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListUserGroupsResult::~ListUserGroupsResult()
|
||||
{}
|
||||
|
||||
void ListUserGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Creator"].isNull())
|
||||
dataObject.creator = valueDataDataItem["Creator"].asString();
|
||||
if(!valueDataDataItem["UserGroupName"].isNull())
|
||||
dataObject.userGroupName = valueDataDataItem["UserGroupName"].asString();
|
||||
if(!valueDataDataItem["IsvSubId"].isNull())
|
||||
dataObject.isvSubId = valueDataDataItem["IsvSubId"].asString();
|
||||
if(!valueDataDataItem["UserGroupId"].isNull())
|
||||
dataObject.userGroupId = std::stol(valueDataDataItem["UserGroupId"].asString());
|
||||
if(!valueDataDataItem["UserCount"].isNull())
|
||||
dataObject.userCount = std::stol(valueDataDataItem["UserCount"].asString());
|
||||
if(!valueDataDataItem["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataDataItem["CreateTime"].asString();
|
||||
if(!valueDataDataItem["UpdateTime"].isNull())
|
||||
dataObject.updateTime = valueDataDataItem["UpdateTime"].asString();
|
||||
if(!valueDataDataItem["ParentUserGroupId"].isNull())
|
||||
dataObject.parentUserGroupId = std::stol(valueDataDataItem["ParentUserGroupId"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListUserGroupsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListUserGroupsResult::DataItem> ListUserGroupsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListUserGroupsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
194
vcs/src/model/ListUsersRequest.cc
Normal file
194
vcs/src/model/ListUsersRequest.cc
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* 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/vcs/model/ListUsersRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::ListUsersRequest;
|
||||
|
||||
ListUsersRequest::ListUsersRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "ListUsers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListUsersRequest::~ListUsersRequest()
|
||||
{}
|
||||
|
||||
std::string ListUsersRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
int ListUsersRequest::getGender()const
|
||||
{
|
||||
return gender_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setGender(int gender)
|
||||
{
|
||||
gender_ = gender;
|
||||
setBodyParameter("Gender", std::to_string(gender));
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getPlateNo()const
|
||||
{
|
||||
return plateNo_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setPlateNo(const std::string& plateNo)
|
||||
{
|
||||
plateNo_ = plateNo;
|
||||
setBodyParameter("PlateNo", plateNo);
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getIdNumber()const
|
||||
{
|
||||
return idNumber_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setIdNumber(const std::string& idNumber)
|
||||
{
|
||||
idNumber_ = idNumber;
|
||||
setBodyParameter("IdNumber", idNumber);
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getFaceImageUrl()const
|
||||
{
|
||||
return faceImageUrl_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setFaceImageUrl(const std::string& faceImageUrl)
|
||||
{
|
||||
faceImageUrl_ = faceImageUrl;
|
||||
setBodyParameter("FaceImageUrl", faceImageUrl);
|
||||
}
|
||||
|
||||
long ListUsersRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getAttachment()const
|
||||
{
|
||||
return attachment_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setAttachment(const std::string& attachment)
|
||||
{
|
||||
attachment_ = attachment;
|
||||
setBodyParameter("Attachment", attachment);
|
||||
}
|
||||
|
||||
long ListUsersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getIsvSubId()const
|
||||
{
|
||||
return isvSubId_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setIsvSubId(const std::string& isvSubId)
|
||||
{
|
||||
isvSubId_ = isvSubId;
|
||||
setBodyParameter("IsvSubId", isvSubId);
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getAddress()const
|
||||
{
|
||||
return address_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setAddress(const std::string& address)
|
||||
{
|
||||
address_ = address;
|
||||
setBodyParameter("Address", address);
|
||||
}
|
||||
|
||||
long ListUsersRequest::getUserGroupId()const
|
||||
{
|
||||
return userGroupId_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setUserGroupId(long userGroupId)
|
||||
{
|
||||
userGroupId_ = userGroupId;
|
||||
setBodyParameter("UserGroupId", std::to_string(userGroupId));
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getPhoneNo()const
|
||||
{
|
||||
return phoneNo_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setPhoneNo(const std::string& phoneNo)
|
||||
{
|
||||
phoneNo_ = phoneNo;
|
||||
setBodyParameter("PhoneNo", phoneNo);
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
int ListUsersRequest::getAge()const
|
||||
{
|
||||
return age_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setAge(int age)
|
||||
{
|
||||
age_ = age;
|
||||
setBodyParameter("Age", std::to_string(age));
|
||||
}
|
||||
|
||||
std::string ListUsersRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void ListUsersRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setBodyParameter("UserName", userName);
|
||||
}
|
||||
|
||||
98
vcs/src/model/ListUsersResult.cc
Normal file
98
vcs/src/model/ListUsersResult.cc
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* 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/vcs/model/ListUsersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
ListUsersResult::ListUsersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListUsersResult::ListUsersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListUsersResult::~ListUsersResult()
|
||||
{}
|
||||
|
||||
void ListUsersResult::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["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stol(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stol(dataNode["PageSize"].asString());
|
||||
if(!dataNode["Success"].isNull())
|
||||
data_.success = std::stol(dataNode["Success"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
auto allRecordsNode = dataNode["Records"]["RecordsItem"];
|
||||
for (auto dataNodeRecordsRecordsItem : allRecordsNode)
|
||||
{
|
||||
Data::RecordsItem recordsItemObject;
|
||||
if(!dataNodeRecordsRecordsItem["UserGroupId"].isNull())
|
||||
recordsItemObject.userGroupId = std::stoi(dataNodeRecordsRecordsItem["UserGroupId"].asString());
|
||||
if(!dataNodeRecordsRecordsItem["Age"].isNull())
|
||||
recordsItemObject.age = dataNodeRecordsRecordsItem["Age"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["Attachment"].isNull())
|
||||
recordsItemObject.attachment = dataNodeRecordsRecordsItem["Attachment"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["BizId"].isNull())
|
||||
recordsItemObject.bizId = dataNodeRecordsRecordsItem["BizId"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["FaceImageUrl"].isNull())
|
||||
recordsItemObject.faceImageUrl = dataNodeRecordsRecordsItem["FaceImageUrl"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["Gender"].isNull())
|
||||
recordsItemObject.gender = dataNodeRecordsRecordsItem["Gender"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["IdNumber"].isNull())
|
||||
recordsItemObject.idNumber = dataNodeRecordsRecordsItem["IdNumber"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["UserId"].isNull())
|
||||
recordsItemObject.userId = std::stoi(dataNodeRecordsRecordsItem["UserId"].asString());
|
||||
if(!dataNodeRecordsRecordsItem["UserName"].isNull())
|
||||
recordsItemObject.userName = dataNodeRecordsRecordsItem["UserName"].asString();
|
||||
if(!dataNodeRecordsRecordsItem["IsvSubId"].isNull())
|
||||
recordsItemObject.isvSubId = dataNodeRecordsRecordsItem["IsvSubId"].asString();
|
||||
data_.records.push_back(recordsItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListUsersResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListUsersResult::Data ListUsersResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListUsersResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
vcs/src/model/UnbindCorpGroupRequest.cc
Normal file
51
vcs/src/model/UnbindCorpGroupRequest.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/vcs/model/UnbindCorpGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::UnbindCorpGroupRequest;
|
||||
|
||||
UnbindCorpGroupRequest::UnbindCorpGroupRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "UnbindCorpGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnbindCorpGroupRequest::~UnbindCorpGroupRequest()
|
||||
{}
|
||||
|
||||
std::string UnbindCorpGroupRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void UnbindCorpGroupRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string UnbindCorpGroupRequest::getCorpGroupId()const
|
||||
{
|
||||
return corpGroupId_;
|
||||
}
|
||||
|
||||
void UnbindCorpGroupRequest::setCorpGroupId(const std::string& corpGroupId)
|
||||
{
|
||||
corpGroupId_ = corpGroupId;
|
||||
setBodyParameter("CorpGroupId", corpGroupId);
|
||||
}
|
||||
|
||||
65
vcs/src/model/UnbindCorpGroupResult.cc
Normal file
65
vcs/src/model/UnbindCorpGroupResult.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/vcs/model/UnbindCorpGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
UnbindCorpGroupResult::UnbindCorpGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnbindCorpGroupResult::UnbindCorpGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnbindCorpGroupResult::~UnbindCorpGroupResult()
|
||||
{}
|
||||
|
||||
void UnbindCorpGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UnbindCorpGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UnbindCorpGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UnbindCorpGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
vcs/src/model/UnbindUserRequest.cc
Normal file
62
vcs/src/model/UnbindUserRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/vcs/model/UnbindUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::UnbindUserRequest;
|
||||
|
||||
UnbindUserRequest::UnbindUserRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "UnbindUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UnbindUserRequest::~UnbindUserRequest()
|
||||
{}
|
||||
|
||||
std::string UnbindUserRequest::getIsvSubId()const
|
||||
{
|
||||
return isvSubId_;
|
||||
}
|
||||
|
||||
void UnbindUserRequest::setIsvSubId(const std::string& isvSubId)
|
||||
{
|
||||
isvSubId_ = isvSubId;
|
||||
setBodyParameter("IsvSubId", isvSubId);
|
||||
}
|
||||
|
||||
std::string UnbindUserRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void UnbindUserRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
long UnbindUserRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void UnbindUserRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
65
vcs/src/model/UnbindUserResult.cc
Normal file
65
vcs/src/model/UnbindUserResult.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/vcs/model/UnbindUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
UnbindUserResult::UnbindUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnbindUserResult::UnbindUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnbindUserResult::~UnbindUserResult()
|
||||
{}
|
||||
|
||||
void UnbindUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UnbindUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool UnbindUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UnbindUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
vcs/src/model/UpdateUserGroupRequest.cc
Normal file
73
vcs/src/model/UpdateUserGroupRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/vcs/model/UpdateUserGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::UpdateUserGroupRequest;
|
||||
|
||||
UpdateUserGroupRequest::UpdateUserGroupRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "UpdateUserGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateUserGroupRequest::~UpdateUserGroupRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateUserGroupRequest::getIsvSubId()const
|
||||
{
|
||||
return isvSubId_;
|
||||
}
|
||||
|
||||
void UpdateUserGroupRequest::setIsvSubId(const std::string& isvSubId)
|
||||
{
|
||||
isvSubId_ = isvSubId;
|
||||
setBodyParameter("IsvSubId", isvSubId);
|
||||
}
|
||||
|
||||
std::string UpdateUserGroupRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void UpdateUserGroupRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
long UpdateUserGroupRequest::getUserGroupId()const
|
||||
{
|
||||
return userGroupId_;
|
||||
}
|
||||
|
||||
void UpdateUserGroupRequest::setUserGroupId(long userGroupId)
|
||||
{
|
||||
userGroupId_ = userGroupId;
|
||||
setBodyParameter("UserGroupId", std::to_string(userGroupId));
|
||||
}
|
||||
|
||||
std::string UpdateUserGroupRequest::getUserGroupName()const
|
||||
{
|
||||
return userGroupName_;
|
||||
}
|
||||
|
||||
void UpdateUserGroupRequest::setUserGroupName(const std::string& userGroupName)
|
||||
{
|
||||
userGroupName_ = userGroupName;
|
||||
setBodyParameter("UserGroupName", userGroupName);
|
||||
}
|
||||
|
||||
74
vcs/src/model/UpdateUserGroupResult.cc
Normal file
74
vcs/src/model/UpdateUserGroupResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/vcs/model/UpdateUserGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
UpdateUserGroupResult::UpdateUserGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateUserGroupResult::UpdateUserGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateUserGroupResult::~UpdateUserGroupResult()
|
||||
{}
|
||||
|
||||
void UpdateUserGroupResult::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["UserGroupId"].isNull())
|
||||
data_.userGroupId = std::stol(dataNode["UserGroupId"].asString());
|
||||
if(!dataNode["IsvSubId"].isNull())
|
||||
data_.isvSubId = dataNode["IsvSubId"].asString();
|
||||
if(!dataNode["UserGroupName"].isNull())
|
||||
data_.userGroupName = dataNode["UserGroupName"].asString();
|
||||
if(!dataNode["UserCount"].isNull())
|
||||
data_.userCount = std::stol(dataNode["UserCount"].asString());
|
||||
if(!dataNode["ParentUserGroupId"].isNull())
|
||||
data_.parentUserGroupId = dataNode["ParentUserGroupId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateUserGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
UpdateUserGroupResult::Data UpdateUserGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateUserGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
194
vcs/src/model/UpdateUserRequest.cc
Normal file
194
vcs/src/model/UpdateUserRequest.cc
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* 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/vcs/model/UpdateUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::UpdateUserRequest;
|
||||
|
||||
UpdateUserRequest::UpdateUserRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "UpdateUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateUserRequest::~UpdateUserRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateUserRequest::getCorpId()const
|
||||
{
|
||||
return corpId_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setCorpId(const std::string& corpId)
|
||||
{
|
||||
corpId_ = corpId;
|
||||
setBodyParameter("CorpId", corpId);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getFaceImageContent()const
|
||||
{
|
||||
return faceImageContent_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setFaceImageContent(const std::string& faceImageContent)
|
||||
{
|
||||
faceImageContent_ = faceImageContent;
|
||||
setBodyParameter("FaceImageContent", faceImageContent);
|
||||
}
|
||||
|
||||
int UpdateUserRequest::getGender()const
|
||||
{
|
||||
return gender_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setGender(int gender)
|
||||
{
|
||||
gender_ = gender;
|
||||
setBodyParameter("Gender", std::to_string(gender));
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getPlateNo()const
|
||||
{
|
||||
return plateNo_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setPlateNo(const std::string& plateNo)
|
||||
{
|
||||
plateNo_ = plateNo;
|
||||
setBodyParameter("PlateNo", plateNo);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getIdNumber()const
|
||||
{
|
||||
return idNumber_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setIdNumber(const std::string& idNumber)
|
||||
{
|
||||
idNumber_ = idNumber;
|
||||
setBodyParameter("IdNumber", idNumber);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getFaceImageUrl()const
|
||||
{
|
||||
return faceImageUrl_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setFaceImageUrl(const std::string& faceImageUrl)
|
||||
{
|
||||
faceImageUrl_ = faceImageUrl;
|
||||
setBodyParameter("FaceImageUrl", faceImageUrl);
|
||||
}
|
||||
|
||||
long UpdateUserRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getAttachment()const
|
||||
{
|
||||
return attachment_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setAttachment(const std::string& attachment)
|
||||
{
|
||||
attachment_ = attachment;
|
||||
setBodyParameter("Attachment", attachment);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getIsvSubId()const
|
||||
{
|
||||
return isvSubId_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setIsvSubId(const std::string& isvSubId)
|
||||
{
|
||||
isvSubId_ = isvSubId;
|
||||
setBodyParameter("IsvSubId", isvSubId);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getAddress()const
|
||||
{
|
||||
return address_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setAddress(const std::string& address)
|
||||
{
|
||||
address_ = address;
|
||||
setBodyParameter("Address", address);
|
||||
}
|
||||
|
||||
long UpdateUserRequest::getUserGroupId()const
|
||||
{
|
||||
return userGroupId_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setUserGroupId(long userGroupId)
|
||||
{
|
||||
userGroupId_ = userGroupId;
|
||||
setBodyParameter("UserGroupId", std::to_string(userGroupId));
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getPhoneNo()const
|
||||
{
|
||||
return phoneNo_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setPhoneNo(const std::string& phoneNo)
|
||||
{
|
||||
phoneNo_ = phoneNo;
|
||||
setBodyParameter("PhoneNo", phoneNo);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
int UpdateUserRequest::getAge()const
|
||||
{
|
||||
return age_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setAge(int age)
|
||||
{
|
||||
age_ = age;
|
||||
setBodyParameter("Age", std::to_string(age));
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setBodyParameter("UserName", userName);
|
||||
}
|
||||
|
||||
65
vcs/src/model/UpdateUserResult.cc
Normal file
65
vcs/src/model/UpdateUserResult.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/vcs/model/UpdateUserResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
UpdateUserResult::UpdateUserResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateUserResult::UpdateUserResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateUserResult::~UpdateUserResult()
|
||||
{}
|
||||
|
||||
void UpdateUserResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateUserResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UpdateUserResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateUserResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
40
vcs/src/model/UploadImageRequest.cc
Normal file
40
vcs/src/model/UploadImageRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/vcs/model/UploadImageRequest.h>
|
||||
|
||||
using AlibabaCloud::Vcs::Model::UploadImageRequest;
|
||||
|
||||
UploadImageRequest::UploadImageRequest() :
|
||||
RpcServiceRequest("vcs", "2020-05-15", "UploadImage")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UploadImageRequest::~UploadImageRequest()
|
||||
{}
|
||||
|
||||
std::string UploadImageRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void UploadImageRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setBodyParameter("ImageUrl", imageUrl);
|
||||
}
|
||||
|
||||
65
vcs/src/model/UploadImageResult.cc
Normal file
65
vcs/src/model/UploadImageResult.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/vcs/model/UploadImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Vcs;
|
||||
using namespace AlibabaCloud::Vcs::Model;
|
||||
|
||||
UploadImageResult::UploadImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UploadImageResult::UploadImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UploadImageResult::~UploadImageResult()
|
||||
{}
|
||||
|
||||
void UploadImageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UploadImageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UploadImageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UploadImageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user