Generated 2020-05-18 for dataworks-public.

This commit is contained in:
sdk-team
2023-03-02 07:02:04 +00:00
parent 430d7d44dc
commit 0a7dacccb5
11 changed files with 40 additions and 1 deletions

View File

@@ -54,6 +54,8 @@ void GetMetaTableLineageResult::parse(const std::string &payload)
dataEntityListItemObject.tableGuid = dataNodeDataEntityListDataEntityListItem["TableGuid"].asString();
if(!dataNodeDataEntityListDataEntityListItem["CreateTimestamp"].isNull())
dataEntityListItemObject.createTimestamp = std::stol(dataNodeDataEntityListDataEntityListItem["CreateTimestamp"].asString());
if(!dataNodeDataEntityListDataEntityListItem["DatabaseName"].isNull())
dataEntityListItemObject.databaseName = dataNodeDataEntityListDataEntityListItem["DatabaseName"].asString();
data_.dataEntityList.push_back(dataEntityListItemObject);
}
if(!value["HttpStatusCode"].isNull())

View File

@@ -78,6 +78,10 @@ void GetNodeResult::parse(const std::string &payload)
data_.cronExpress = dataNode["CronExpress"].asString();
if(!dataNode["NodeId"].isNull())
data_.nodeId = std::stol(dataNode["NodeId"].asString());
if(!dataNode["ResGroupIdentifier"].isNull())
data_.resGroupIdentifier = dataNode["ResGroupIdentifier"].asString();
if(!dataNode["FileType"].isNull())
data_.fileType = std::stoi(dataNode["FileType"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["ErrorMessage"].isNull())

View File

@@ -88,6 +88,10 @@ void ListNodesResult::parse(const std::string &payload)
nodesItemObject.cronExpress = dataNodeNodesNodesItem["CronExpress"].asString();
if(!dataNodeNodesNodesItem["NodeId"].isNull())
nodesItemObject.nodeId = std::stol(dataNodeNodesNodesItem["NodeId"].asString());
if(!dataNodeNodesNodesItem["ResGroupIdentifier"].isNull())
nodesItemObject.resGroupIdentifier = dataNodeNodesNodesItem["ResGroupIdentifier"].asString();
if(!dataNodeNodesNodesItem["FileType"].isNull())
nodesItemObject.fileType = std::stoi(dataNodeNodesNodesItem["FileType"].asString());
data_.nodes.push_back(nodesItemObject);
}
if(!value["HttpStatusCode"].isNull())

View File

@@ -43,3 +43,12 @@ void MountDirectoryRequest::setTargetId(const std::string &targetId) {
setBodyParameter(std::string("TargetId"), targetId);
}
std::string MountDirectoryRequest::getTargetUserId() const {
return targetUserId_;
}
void MountDirectoryRequest::setTargetUserId(const std::string &targetUserId) {
targetUserId_ = targetUserId;
setBodyParameter(std::string("TargetUserId"), targetUserId);
}

View File

@@ -43,3 +43,12 @@ void UmountDirectoryRequest::setTargetId(const std::string &targetId) {
setBodyParameter(std::string("TargetId"), targetId);
}
std::string UmountDirectoryRequest::getTargetUserId() const {
return targetUserId_;
}
void UmountDirectoryRequest::setTargetUserId(const std::string &targetUserId) {
targetUserId_ = targetUserId;
setBodyParameter(std::string("TargetUserId"), targetUserId);
}