Generated 2020-05-18 for dataworks-public.

This commit is contained in:
sdk-team
2021-03-18 11:10:31 +00:00
parent c58473aed2
commit 99896a3333
16 changed files with 186 additions and 123 deletions

View File

@@ -1,3 +1,6 @@
2021-03-18 Version: 1.36.641
- Generated 2020-05-18 for `dataworks-public`.
2021-03-17 Version: 1.36.640
- Add organizaition security center API.

View File

@@ -1 +1 @@
1.36.640
1.36.641

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -34,12 +34,10 @@ namespace AlibabaCloud
struct Columns
{
int seqNumber;
int isPartitionCol;
bool isPartitionCol;
std::string columnNameCn;
int length;
int isNullable;
std::string comment;
int isPrimaryKey;
std::string columnName;
std::string columnType;
};
@@ -53,14 +51,10 @@ namespace AlibabaCloud
CreateTableRequest();
~CreateTableRequest();
int getVisibility()const;
void setVisibility(int visibility);
long getPhysicsLevelId()const;
void setPhysicsLevelId(long physicsLevelId);
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::vector<Columns> getColumns()const;
void setColumns(const std::vector<Columns>& columns);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
int getLifeCycle()const;
void setLifeCycle(int lifeCycle);
std::vector<Themes> getThemes()const;
@@ -69,18 +63,10 @@ namespace AlibabaCloud
void setLogicalLevelId(long logicalLevelId);
std::string getEndpoint()const;
void setEndpoint(const std::string& endpoint);
int getIsView()const;
void setIsView(int isView);
std::string getExternalTableType()const;
void setExternalTableType(const std::string& externalTableType);
int getEnvType()const;
void setEnvType(int envType);
int getHasPart()const;
void setHasPart(int hasPart);
std::string getLocation()const;
void setLocation(const std::string& location);
std::string getComment()const;
void setComment(const std::string& comment);
std::string getTableName()const;
void setTableName(const std::string& tableName);
std::string getAppGuid()const;
@@ -89,26 +75,41 @@ namespace AlibabaCloud
void setProjectId(long projectId);
long getCategoryId()const;
void setCategoryId(long categoryId);
int getVisibility()const;
void setVisibility(int visibility);
long getPhysicsLevelId()const;
void setPhysicsLevelId(long physicsLevelId);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
int getIsView()const;
void setIsView(int isView);
std::string getExternalTableType()const;
void setExternalTableType(const std::string& externalTableType);
std::string getLocation()const;
void setLocation(const std::string& location);
std::string getComment()const;
void setComment(const std::string& comment);
private:
int visibility_;
long physicsLevelId_;
std::string clientToken_;
std::vector<Columns> columns_;
std::string ownerId_;
int lifeCycle_;
std::vector<Themes> themes_;
long logicalLevelId_;
std::string endpoint_;
int isView_;
std::string externalTableType_;
int envType_;
int hasPart_;
std::string location_;
std::string comment_;
std::string tableName_;
std::string appGuid_;
long projectId_;
long categoryId_;
int visibility_;
long physicsLevelId_;
std::string ownerId_;
int isView_;
std::string externalTableType_;
std::string location_;
std::string comment_;
};
}

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getDataSourceType()const;
void setDataSourceType(const std::string& dataSourceType);
bool getExtension()const;
void setExtension(bool extension);
std::string getTableGuid()const;
void setTableGuid(const std::string& tableGuid);
std::string getDatabaseName()const;
@@ -48,6 +50,7 @@ namespace AlibabaCloud
private:
std::string dataSourceType_;
bool extension_;
std::string tableGuid_;
std::string databaseName_;
std::string clusterId_;

View File

@@ -36,12 +36,14 @@ namespace AlibabaCloud
{
int lifeCycle;
std::string comment;
bool isPartitionTable;
std::string projectName;
std::string clusterId;
long lastDdlTime;
long createTime;
long projectId;
std::string databaseName;
long viewCount;
long lastModifyTime;
long lastAccessTime;
int envType;
@@ -51,8 +53,10 @@ namespace AlibabaCloud
long tenantId;
std::string ownerId;
long dataSize;
long favoriteCount;
std::string partitionKeys;
int isVisible;
long readCount;
std::string location;
};

View File

@@ -37,11 +37,17 @@ namespace AlibabaCloud
int getLevelType()const;
void setLevelType(int levelType);
int getPageSize()const;
void setPageSize(int pageSize);
int getPageNum()const;
void setPageNum(int pageNum);
long getProjectId()const;
void setProjectId(long projectId);
private:
int levelType_;
int pageSize_;
int pageNum_;
long projectId_;
};

View File

@@ -34,12 +34,10 @@ namespace AlibabaCloud
struct Columns
{
int seqNumber;
int isPartitionCol;
bool isPartitionCol;
std::string columnNameCn;
int length;
int isNullable;
std::string comment;
int isPrimaryKey;
std::string columnName;
std::string columnType;
};
@@ -75,10 +73,10 @@ namespace AlibabaCloud
void setExternalTableType(const std::string& externalTableType);
int getEnvType()const;
void setEnvType(int envType);
int getHasPart()const;
void setHasPart(int hasPart);
std::string getLocation()const;
void setLocation(const std::string& location);
int getHasPart()const;
void setHasPart(int hasPart);
std::string getTableName()const;
void setTableName(const std::string& tableName);
std::string getAppGuid()const;
@@ -102,8 +100,8 @@ namespace AlibabaCloud
int isView_;
std::string externalTableType_;
int envType_;
int hasPart_;
std::string location_;
int hasPart_;
std::string tableName_;
std::string appGuid_;
long projectId_;

View File

@@ -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);
}

View File

@@ -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_;

View File

@@ -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())

View File

@@ -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_;

View File

@@ -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_;