Generated 2020-05-18 for dataworks-public.
This commit is contained in:
@@ -27,26 +27,15 @@ CreateTableRequest::CreateTableRequest() :
|
||||
CreateTableRequest::~CreateTableRequest()
|
||||
{}
|
||||
|
||||
int CreateTableRequest::getVisibility()const
|
||||
std::string CreateTableRequest::getClientToken()const
|
||||
{
|
||||
return visibility_;
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setVisibility(int visibility)
|
||||
void CreateTableRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
visibility_ = visibility;
|
||||
setParameter("Visibility", std::to_string(visibility));
|
||||
}
|
||||
|
||||
long CreateTableRequest::getPhysicsLevelId()const
|
||||
{
|
||||
return physicsLevelId_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setPhysicsLevelId(long physicsLevelId)
|
||||
{
|
||||
physicsLevelId_ = physicsLevelId;
|
||||
setParameter("PhysicsLevelId", std::to_string(physicsLevelId));
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::vector<CreateTableRequest::Columns> CreateTableRequest::getColumns()const
|
||||
@@ -61,28 +50,15 @@ void CreateTableRequest::setColumns(const std::vector<Columns>& columns)
|
||||
auto columnsObj = columns.at(dep1);
|
||||
std::string columnsObjStr = "Columns." + std::to_string(dep1 + 1);
|
||||
setParameter(columnsObjStr + ".SeqNumber", std::to_string(columnsObj.seqNumber));
|
||||
setParameter(columnsObjStr + ".IsPartitionCol", std::to_string(columnsObj.isPartitionCol));
|
||||
setParameter(columnsObjStr + ".IsPartitionCol", columnsObj.isPartitionCol ? "true" : "false");
|
||||
setParameter(columnsObjStr + ".ColumnNameCn", columnsObj.columnNameCn);
|
||||
setParameter(columnsObjStr + ".Length", std::to_string(columnsObj.length));
|
||||
setParameter(columnsObjStr + ".IsNullable", std::to_string(columnsObj.isNullable));
|
||||
setParameter(columnsObjStr + ".Comment", columnsObj.comment);
|
||||
setParameter(columnsObjStr + ".IsPrimaryKey", std::to_string(columnsObj.isPrimaryKey));
|
||||
setParameter(columnsObjStr + ".ColumnName", columnsObj.columnName);
|
||||
setParameter(columnsObjStr + ".ColumnType", columnsObj.columnType);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
int CreateTableRequest::getLifeCycle()const
|
||||
{
|
||||
return lifeCycle_;
|
||||
@@ -132,28 +108,6 @@ void CreateTableRequest::setEndpoint(const std::string& endpoint)
|
||||
setBodyParameter("Endpoint", endpoint);
|
||||
}
|
||||
|
||||
int CreateTableRequest::getIsView()const
|
||||
{
|
||||
return isView_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setIsView(int isView)
|
||||
{
|
||||
isView_ = isView;
|
||||
setParameter("IsView", std::to_string(isView));
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getExternalTableType()const
|
||||
{
|
||||
return externalTableType_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setExternalTableType(const std::string& externalTableType)
|
||||
{
|
||||
externalTableType_ = externalTableType;
|
||||
setParameter("ExternalTableType", externalTableType);
|
||||
}
|
||||
|
||||
int CreateTableRequest::getEnvType()const
|
||||
{
|
||||
return envType_;
|
||||
@@ -176,28 +130,6 @@ void CreateTableRequest::setHasPart(int hasPart)
|
||||
setParameter("HasPart", std::to_string(hasPart));
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getLocation()const
|
||||
{
|
||||
return location_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setLocation(const std::string& location)
|
||||
{
|
||||
location_ = location;
|
||||
setParameter("Location", location);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
@@ -242,3 +174,80 @@ void CreateTableRequest::setCategoryId(long categoryId)
|
||||
setParameter("CategoryId", std::to_string(categoryId));
|
||||
}
|
||||
|
||||
int CreateTableRequest::getVisibility()const
|
||||
{
|
||||
return visibility_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setVisibility(int visibility)
|
||||
{
|
||||
visibility_ = visibility;
|
||||
setParameter("Visibility", std::to_string(visibility));
|
||||
}
|
||||
|
||||
long CreateTableRequest::getPhysicsLevelId()const
|
||||
{
|
||||
return physicsLevelId_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setPhysicsLevelId(long physicsLevelId)
|
||||
{
|
||||
physicsLevelId_ = physicsLevelId;
|
||||
setParameter("PhysicsLevelId", std::to_string(physicsLevelId));
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
int CreateTableRequest::getIsView()const
|
||||
{
|
||||
return isView_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setIsView(int isView)
|
||||
{
|
||||
isView_ = isView;
|
||||
setParameter("IsView", std::to_string(isView));
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getExternalTableType()const
|
||||
{
|
||||
return externalTableType_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setExternalTableType(const std::string& externalTableType)
|
||||
{
|
||||
externalTableType_ = externalTableType;
|
||||
setParameter("ExternalTableType", externalTableType);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getLocation()const
|
||||
{
|
||||
return location_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setLocation(const std::string& location)
|
||||
{
|
||||
location_ = location;
|
||||
setParameter("Location", location);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,17 @@ void GetMetaTableBasicInfoRequest::setDataSourceType(const std::string& dataSour
|
||||
setParameter("DataSourceType", dataSourceType);
|
||||
}
|
||||
|
||||
bool GetMetaTableBasicInfoRequest::getExtension()const
|
||||
{
|
||||
return extension_;
|
||||
}
|
||||
|
||||
void GetMetaTableBasicInfoRequest::setExtension(bool extension)
|
||||
{
|
||||
extension_ = extension;
|
||||
setParameter("Extension", extension ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetMetaTableBasicInfoRequest::getTableGuid()const
|
||||
{
|
||||
return tableGuid_;
|
||||
|
||||
@@ -80,6 +80,14 @@ void GetMetaTableBasicInfoResult::parse(const std::string &payload)
|
||||
data_.clusterId = dataNode["ClusterId"].asString();
|
||||
if(!dataNode["Caption"].isNull())
|
||||
data_.caption = dataNode["Caption"].asString();
|
||||
if(!dataNode["IsPartitionTable"].isNull())
|
||||
data_.isPartitionTable = dataNode["IsPartitionTable"].asString() == "true";
|
||||
if(!dataNode["ReadCount"].isNull())
|
||||
data_.readCount = std::stol(dataNode["ReadCount"].asString());
|
||||
if(!dataNode["ViewCount"].isNull())
|
||||
data_.viewCount = std::stol(dataNode["ViewCount"].asString());
|
||||
if(!dataNode["FavoriteCount"].isNull())
|
||||
data_.favoriteCount = std::stol(dataNode["FavoriteCount"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
|
||||
@@ -38,6 +38,28 @@ void ListTableLevelRequest::setLevelType(int levelType)
|
||||
setParameter("LevelType", std::to_string(levelType));
|
||||
}
|
||||
|
||||
int ListTableLevelRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListTableLevelRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListTableLevelRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListTableLevelRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long ListTableLevelRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
|
||||
@@ -61,12 +61,10 @@ void UpdateTableRequest::setColumns(const std::vector<Columns>& columns)
|
||||
auto columnsObj = columns.at(dep1);
|
||||
std::string columnsObjStr = "Columns." + std::to_string(dep1 + 1);
|
||||
setParameter(columnsObjStr + ".SeqNumber", std::to_string(columnsObj.seqNumber));
|
||||
setParameter(columnsObjStr + ".IsPartitionCol", std::to_string(columnsObj.isPartitionCol));
|
||||
setParameter(columnsObjStr + ".IsPartitionCol", columnsObj.isPartitionCol ? "true" : "false");
|
||||
setParameter(columnsObjStr + ".ColumnNameCn", columnsObj.columnNameCn);
|
||||
setParameter(columnsObjStr + ".Length", std::to_string(columnsObj.length));
|
||||
setParameter(columnsObjStr + ".IsNullable", std::to_string(columnsObj.isNullable));
|
||||
setParameter(columnsObjStr + ".Comment", columnsObj.comment);
|
||||
setParameter(columnsObjStr + ".IsPrimaryKey", std::to_string(columnsObj.isPrimaryKey));
|
||||
setParameter(columnsObjStr + ".ColumnName", columnsObj.columnName);
|
||||
setParameter(columnsObjStr + ".ColumnType", columnsObj.columnType);
|
||||
}
|
||||
@@ -165,17 +163,6 @@ void UpdateTableRequest::setEnvType(int envType)
|
||||
setBodyParameter("EnvType", std::to_string(envType));
|
||||
}
|
||||
|
||||
int UpdateTableRequest::getHasPart()const
|
||||
{
|
||||
return hasPart_;
|
||||
}
|
||||
|
||||
void UpdateTableRequest::setHasPart(int hasPart)
|
||||
{
|
||||
hasPart_ = hasPart;
|
||||
setParameter("HasPart", std::to_string(hasPart));
|
||||
}
|
||||
|
||||
std::string UpdateTableRequest::getLocation()const
|
||||
{
|
||||
return location_;
|
||||
@@ -187,6 +174,17 @@ void UpdateTableRequest::setLocation(const std::string& location)
|
||||
setParameter("Location", location);
|
||||
}
|
||||
|
||||
int UpdateTableRequest::getHasPart()const
|
||||
{
|
||||
return hasPart_;
|
||||
}
|
||||
|
||||
void UpdateTableRequest::setHasPart(int hasPart)
|
||||
{
|
||||
hasPart_ = hasPart;
|
||||
setParameter("HasPart", std::to_string(hasPart));
|
||||
}
|
||||
|
||||
std::string UpdateTableRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
|
||||
Reference in New Issue
Block a user