AllotDatasetAccelerationTask API add error code.
This commit is contained in:
@@ -44,6 +44,8 @@ public:
|
||||
void setSignType(const std::string &signType);
|
||||
std::string getAccountId() const;
|
||||
void setAccountId(const std::string &accountId);
|
||||
std::string getRoleIds() const;
|
||||
void setRoleIds(const std::string &roleIds);
|
||||
std::string getAccountName() const;
|
||||
void setAccountName(const std::string &accountName);
|
||||
std::string getPhone() const;
|
||||
@@ -63,6 +65,7 @@ private:
|
||||
int userType_;
|
||||
std::string signType_;
|
||||
std::string accountId_;
|
||||
std::string roleIds_;
|
||||
std::string accountName_;
|
||||
std::string phone_;
|
||||
std::string nickName_;
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::vector<std::string> roleIdList;
|
||||
std::string email;
|
||||
std::string userId;
|
||||
std::string phone;
|
||||
|
||||
@@ -36,6 +36,8 @@ public:
|
||||
void setAccountType(int accountType);
|
||||
std::string getSignType() const;
|
||||
void setSignType(const std::string &signType);
|
||||
std::string getParentAccountName() const;
|
||||
void setParentAccountName(const std::string &parentAccountName);
|
||||
std::string getAccount() const;
|
||||
void setAccount(const std::string &account);
|
||||
|
||||
@@ -43,6 +45,7 @@ private:
|
||||
std::string accessPoint_;
|
||||
int accountType_;
|
||||
std::string signType_;
|
||||
std::string parentAccountName_;
|
||||
std::string account_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::vector<std::string> roleIdList;
|
||||
std::string email;
|
||||
std::string accountId;
|
||||
std::string userId;
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::vector<std::string> roleIdList;
|
||||
std::string email;
|
||||
std::string accountId;
|
||||
std::string userId;
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct DataItem
|
||||
{
|
||||
std::vector<std::string> roleIdList;
|
||||
std::string email;
|
||||
std::string accountId;
|
||||
std::string userId;
|
||||
|
||||
@@ -42,6 +42,8 @@ public:
|
||||
void setSignType(const std::string &signType);
|
||||
std::string getUserId() const;
|
||||
void setUserId(const std::string &userId);
|
||||
std::string getRoleIds() const;
|
||||
void setRoleIds(const std::string &roleIds);
|
||||
std::string getPhone() const;
|
||||
void setPhone(const std::string &phone);
|
||||
std::string getNickName() const;
|
||||
@@ -58,6 +60,7 @@ private:
|
||||
int userType_;
|
||||
std::string signType_;
|
||||
std::string userId_;
|
||||
std::string roleIds_;
|
||||
std::string phone_;
|
||||
std::string nickName_;
|
||||
bool authAdminUser_;
|
||||
|
||||
@@ -88,6 +88,15 @@ void AddUserRequest::setAccountId(const std::string &accountId) {
|
||||
setParameter(std::string("AccountId"), accountId);
|
||||
}
|
||||
|
||||
std::string AddUserRequest::getRoleIds() const {
|
||||
return roleIds_;
|
||||
}
|
||||
|
||||
void AddUserRequest::setRoleIds(const std::string &roleIds) {
|
||||
roleIds_ = roleIds;
|
||||
setBodyParameter(std::string("RoleIds"), roleIds);
|
||||
}
|
||||
|
||||
std::string AddUserRequest::getAccountName() const {
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
@@ -56,6 +56,9 @@ void AddUserResult::parse(const std::string &payload)
|
||||
result_.phone = resultNode["Phone"].asString();
|
||||
if(!resultNode["AccountName"].isNull())
|
||||
result_.accountName = resultNode["AccountName"].asString();
|
||||
auto allRoleIdList = resultNode["RoleIdList"]["RoleIdList"];
|
||||
for (auto value : allRoleIdList)
|
||||
result_.roleIdList.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
|
||||
@@ -52,6 +52,15 @@ void QueryUserInfoByAccountRequest::setSignType(const std::string &signType) {
|
||||
setParameter(std::string("SignType"), signType);
|
||||
}
|
||||
|
||||
std::string QueryUserInfoByAccountRequest::getParentAccountName() const {
|
||||
return parentAccountName_;
|
||||
}
|
||||
|
||||
void QueryUserInfoByAccountRequest::setParentAccountName(const std::string &parentAccountName) {
|
||||
parentAccountName_ = parentAccountName;
|
||||
setParameter(std::string("ParentAccountName"), parentAccountName);
|
||||
}
|
||||
|
||||
std::string QueryUserInfoByAccountRequest::getAccount() const {
|
||||
return account_;
|
||||
}
|
||||
|
||||
@@ -58,6 +58,9 @@ void QueryUserInfoByAccountResult::parse(const std::string &payload)
|
||||
result_.phone = resultNode["Phone"].asString();
|
||||
if(!resultNode["AccountName"].isNull())
|
||||
result_.accountName = resultNode["AccountName"].asString();
|
||||
auto allRoleIdList = resultNode["RoleIdList"]["RoleIdList"];
|
||||
for (auto value : allRoleIdList)
|
||||
result_.roleIdList.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
|
||||
@@ -58,6 +58,9 @@ void QueryUserInfoByUserIdResult::parse(const std::string &payload)
|
||||
result_.phone = resultNode["Phone"].asString();
|
||||
if(!resultNode["AccountName"].isNull())
|
||||
result_.accountName = resultNode["AccountName"].asString();
|
||||
auto allRoleIdList = resultNode["RoleIdList"]["RoleIdList"];
|
||||
for (auto value : allRoleIdList)
|
||||
result_.roleIdList.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
|
||||
@@ -70,6 +70,9 @@ void QueryUserListResult::parse(const std::string &payload)
|
||||
dataItemObject.phone = resultNodeDataDataItem["Phone"].asString();
|
||||
if(!resultNodeDataDataItem["AccountName"].isNull())
|
||||
dataItemObject.accountName = resultNodeDataDataItem["AccountName"].asString();
|
||||
auto allRoleIdList = value["RoleIdList"]["roleIdList"];
|
||||
for (auto value : allRoleIdList)
|
||||
dataItemObject.roleIdList.push_back(value.asString());
|
||||
result_.data.push_back(dataItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -79,6 +79,15 @@ void UpdateUserRequest::setUserId(const std::string &userId) {
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getRoleIds() const {
|
||||
return roleIds_;
|
||||
}
|
||||
|
||||
void UpdateUserRequest::setRoleIds(const std::string &roleIds) {
|
||||
roleIds_ = roleIds;
|
||||
setParameter(std::string("RoleIds"), roleIds);
|
||||
}
|
||||
|
||||
std::string UpdateUserRequest::getPhone() const {
|
||||
return phone_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user