Generated 2020-05-18 for dataworks-public.
This commit is contained in:
@@ -30,6 +30,8 @@ class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT CreateQualityRuleRequest : public Rpc
|
||||
public:
|
||||
CreateQualityRuleRequest();
|
||||
~CreateQualityRuleRequest();
|
||||
std::string getTaskSetting() const;
|
||||
void setTaskSetting(const std::string &taskSetting);
|
||||
std::string getTrend() const;
|
||||
void setTrend(const std::string &trend);
|
||||
int getBlockType() const;
|
||||
@@ -70,6 +72,7 @@ public:
|
||||
void setPredictType(int predictType);
|
||||
|
||||
private:
|
||||
std::string taskSetting_;
|
||||
std::string trend_;
|
||||
int blockType_;
|
||||
std::string propertyType_;
|
||||
|
||||
@@ -32,6 +32,8 @@ public:
|
||||
~GetInstanceStatusStatisticRequest();
|
||||
std::string getProjectEnv() const;
|
||||
void setProjectEnv(const std::string &projectEnv);
|
||||
std::string getSchedulerPeriod() const;
|
||||
void setSchedulerPeriod(const std::string &schedulerPeriod);
|
||||
std::string getDagType() const;
|
||||
void setDagType(const std::string &dagType);
|
||||
std::string getBizDate() const;
|
||||
@@ -43,6 +45,7 @@ public:
|
||||
|
||||
private:
|
||||
std::string projectEnv_;
|
||||
std::string schedulerPeriod_;
|
||||
std::string dagType_;
|
||||
std::string bizDate_;
|
||||
std::string schedulerType_;
|
||||
|
||||
@@ -32,37 +32,15 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT GetMetaCollectionDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Collection
|
||||
{
|
||||
std::string comment;
|
||||
std::string ownerName;
|
||||
std::string ownerId;
|
||||
std::string qualifiedName;
|
||||
std::string collectionType;
|
||||
long createTime;
|
||||
long updateTime;
|
||||
int level;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetMetaCollectionDetailResult();
|
||||
explicit GetMetaCollectionDetailResult(const std::string &payload);
|
||||
~GetMetaCollectionDetailResult();
|
||||
int getHttpStatusCode()const;
|
||||
Collection getCollection()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
Collection collection_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,11 +37,9 @@ namespace AlibabaCloud
|
||||
std::string extensionName;
|
||||
long tenantId;
|
||||
std::string owner;
|
||||
long gmtCreate;
|
||||
std::string modifyUser;
|
||||
std::string parameterSetting;
|
||||
std::string extensionDesc;
|
||||
long gmtModified;
|
||||
std::string createUser;
|
||||
std::string extensionCode;
|
||||
};
|
||||
|
||||
@@ -28,10 +28,6 @@ namespace Dataworks_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListEntitiesByTagsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Tags {
|
||||
std::string tagValue;
|
||||
std::string tagKey;
|
||||
};
|
||||
ListEntitiesByTagsRequest();
|
||||
~ListEntitiesByTagsRequest();
|
||||
std::string getEntityType() const;
|
||||
@@ -40,14 +36,14 @@ public:
|
||||
void setNextToken(const std::string &nextToken);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::vector<Tags> getTags() const;
|
||||
void setTags(const std::vector<Tags> &tags);
|
||||
std::vector<ObjectOfAny> getTags() const;
|
||||
void setTags(const std::vector<ObjectOfAny> &tags);
|
||||
|
||||
private:
|
||||
std::string entityType_;
|
||||
std::string nextToken_;
|
||||
int pageSize_;
|
||||
std::vector<Tags> tags_;
|
||||
std::vector<ObjectOfAny> tags_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dataworks_public
|
||||
|
||||
@@ -34,14 +34,8 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct EntityListItem
|
||||
{
|
||||
std::string entityContent;
|
||||
long tenantId;
|
||||
std::string qualifiedName;
|
||||
};
|
||||
std::string nextToken;
|
||||
std::vector<EntityListItem> entityList;
|
||||
std::vector<std::string> entityList;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -32,18 +32,13 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListEntityTagsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
{
|
||||
std::string tagKey;
|
||||
std::string tagValue;
|
||||
};
|
||||
|
||||
|
||||
ListEntityTagsResult();
|
||||
explicit ListEntityTagsResult(const std::string &payload);
|
||||
~ListEntityTagsResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
std::vector<std::string> getData()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
@@ -52,7 +47,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
std::vector<DataItem> data_;
|
||||
std::vector<std::string> data_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
@@ -38,6 +38,8 @@ public:
|
||||
void setBizName(const std::string &bizName);
|
||||
std::string getBeginBizdate() const;
|
||||
void setBeginBizdate(const std::string &beginBizdate);
|
||||
std::string getOrderBy() const;
|
||||
void setOrderBy(const std::string &orderBy);
|
||||
std::string getEndBizdate() const;
|
||||
void setEndBizdate(const std::string &endBizdate);
|
||||
long getDagId() const;
|
||||
@@ -64,6 +66,7 @@ private:
|
||||
std::string owner_;
|
||||
std::string bizName_;
|
||||
std::string beginBizdate_;
|
||||
std::string orderBy_;
|
||||
std::string endBizdate_;
|
||||
long dagId_;
|
||||
int pageNumber_;
|
||||
|
||||
@@ -36,12 +36,6 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct DataEntityListItem
|
||||
{
|
||||
struct Entity
|
||||
{
|
||||
std::string entityContent;
|
||||
long tenantId;
|
||||
std::string qualifiedName;
|
||||
};
|
||||
struct RelationListItem
|
||||
{
|
||||
std::string datasource;
|
||||
@@ -49,7 +43,7 @@ namespace AlibabaCloud
|
||||
std::string channel;
|
||||
std::string guid;
|
||||
};
|
||||
Entity entity;
|
||||
ObjectOfAny entity;
|
||||
std::vector<DataEntityListItem::RelationListItem> relationList;
|
||||
long createTimestamp;
|
||||
};
|
||||
|
||||
@@ -34,14 +34,8 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct EntityListItem
|
||||
{
|
||||
std::string entityContent;
|
||||
long tenantId;
|
||||
std::string qualifiedName;
|
||||
};
|
||||
std::string nextToken;
|
||||
std::vector<EntityListItem> entityList;
|
||||
std::vector<std::string> entityList;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -34,19 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct CollectionListItem
|
||||
{
|
||||
std::string comment;
|
||||
std::string ownerName;
|
||||
std::string ownerId;
|
||||
std::string qualifiedName;
|
||||
std::string collectionType;
|
||||
long createTime;
|
||||
long updateTime;
|
||||
int level;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<CollectionListItem> collectionList;
|
||||
std::vector<std::string> collectionList;
|
||||
std::string nextToken;
|
||||
};
|
||||
|
||||
|
||||
@@ -28,34 +28,13 @@ namespace Dataworks_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT RegisterLineageRelationRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct LineageRelationRegisterVO {
|
||||
struct DestEntity {
|
||||
std::string parentName;
|
||||
std::string qualifiedName;
|
||||
std::string name;
|
||||
std::string detailUrl;
|
||||
};
|
||||
DestEntity destEntity;
|
||||
long createTimestamp;
|
||||
struct Relationship {
|
||||
std::string type;
|
||||
};
|
||||
Relationship relationship;
|
||||
struct SrcEntity {
|
||||
std::string parentName;
|
||||
std::string qualifiedName;
|
||||
std::string name;
|
||||
std::string detailUrl;
|
||||
};
|
||||
SrcEntity srcEntity;
|
||||
};
|
||||
RegisterLineageRelationRequest();
|
||||
~RegisterLineageRelationRequest();
|
||||
LineageRelationRegisterVO getLineageRelationRegisterVO() const;
|
||||
void setLineageRelationRegisterVO(const LineageRelationRegisterVO &lineageRelationRegisterVO);
|
||||
ObjectOfAny getLineageRelationRegisterVO() const;
|
||||
void setLineageRelationRegisterVO(ObjectOfAny lineageRelationRegisterVO);
|
||||
|
||||
private:
|
||||
LineageRelationRegisterVO lineageRelationRegisterVO_;
|
||||
ObjectOfAny lineageRelationRegisterVO_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dataworks_public
|
||||
|
||||
@@ -28,20 +28,16 @@ namespace Dataworks_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT SetEntityTagsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Tags {
|
||||
std::string tagValue;
|
||||
std::string tagKey;
|
||||
};
|
||||
SetEntityTagsRequest();
|
||||
~SetEntityTagsRequest();
|
||||
std::string getQualifiedName() const;
|
||||
void setQualifiedName(const std::string &qualifiedName);
|
||||
std::vector<Tags> getTags() const;
|
||||
void setTags(const std::vector<Tags> &tags);
|
||||
std::vector<ObjectOfAny> getTags() const;
|
||||
void setTags(const std::vector<ObjectOfAny> &tags);
|
||||
|
||||
private:
|
||||
std::string qualifiedName_;
|
||||
std::vector<Tags> tags_;
|
||||
std::vector<ObjectOfAny> tags_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dataworks_public
|
||||
|
||||
@@ -30,6 +30,8 @@ class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT UpdateQualityRuleRequest : public Rpc
|
||||
public:
|
||||
UpdateQualityRuleRequest();
|
||||
~UpdateQualityRuleRequest();
|
||||
std::string getTaskSetting() const;
|
||||
void setTaskSetting(const std::string &taskSetting);
|
||||
std::string getTrend() const;
|
||||
void setTrend(const std::string &trend);
|
||||
int getBlockType() const;
|
||||
@@ -74,6 +76,7 @@ public:
|
||||
void setPredictType(int predictType);
|
||||
|
||||
private:
|
||||
std::string taskSetting_;
|
||||
std::string trend_;
|
||||
int blockType_;
|
||||
std::string propertyType_;
|
||||
|
||||
@@ -25,6 +25,15 @@ CreateQualityRuleRequest::CreateQualityRuleRequest()
|
||||
|
||||
CreateQualityRuleRequest::~CreateQualityRuleRequest() {}
|
||||
|
||||
std::string CreateQualityRuleRequest::getTaskSetting() const {
|
||||
return taskSetting_;
|
||||
}
|
||||
|
||||
void CreateQualityRuleRequest::setTaskSetting(const std::string &taskSetting) {
|
||||
taskSetting_ = taskSetting;
|
||||
setBodyParameter(std::string("TaskSetting"), taskSetting);
|
||||
}
|
||||
|
||||
std::string CreateQualityRuleRequest::getTrend() const {
|
||||
return trend_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void GetInstanceStatusStatisticRequest::setProjectEnv(const std::string &project
|
||||
setBodyParameter(std::string("ProjectEnv"), projectEnv);
|
||||
}
|
||||
|
||||
std::string GetInstanceStatusStatisticRequest::getSchedulerPeriod() const {
|
||||
return schedulerPeriod_;
|
||||
}
|
||||
|
||||
void GetInstanceStatusStatisticRequest::setSchedulerPeriod(const std::string &schedulerPeriod) {
|
||||
schedulerPeriod_ = schedulerPeriod;
|
||||
setBodyParameter(std::string("SchedulerPeriod"), schedulerPeriod);
|
||||
}
|
||||
|
||||
std::string GetInstanceStatusStatisticRequest::getDagType() const {
|
||||
return dagType_;
|
||||
}
|
||||
|
||||
@@ -39,58 +39,6 @@ void GetMetaCollectionDetailResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto collectionNode = value["Collection"];
|
||||
if(!collectionNode["QualifiedName"].isNull())
|
||||
collection_.qualifiedName = collectionNode["QualifiedName"].asString();
|
||||
if(!collectionNode["CollectionType"].isNull())
|
||||
collection_.collectionType = collectionNode["CollectionType"].asString();
|
||||
if(!collectionNode["Name"].isNull())
|
||||
collection_.name = collectionNode["Name"].asString();
|
||||
if(!collectionNode["Comment"].isNull())
|
||||
collection_.comment = collectionNode["Comment"].asString();
|
||||
if(!collectionNode["OwnerId"].isNull())
|
||||
collection_.ownerId = collectionNode["OwnerId"].asString();
|
||||
if(!collectionNode["OwnerName"].isNull())
|
||||
collection_.ownerName = collectionNode["OwnerName"].asString();
|
||||
if(!collectionNode["CreateTime"].isNull())
|
||||
collection_.createTime = std::stol(collectionNode["CreateTime"].asString());
|
||||
if(!collectionNode["UpdateTime"].isNull())
|
||||
collection_.updateTime = std::stol(collectionNode["UpdateTime"].asString());
|
||||
if(!collectionNode["Level"].isNull())
|
||||
collection_.level = std::stoi(collectionNode["Level"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
int GetMetaCollectionDetailResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetMetaCollectionDetailResult::Collection GetMetaCollectionDetailResult::getCollection()const
|
||||
{
|
||||
return collection_;
|
||||
}
|
||||
|
||||
std::string GetMetaCollectionDetailResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetMetaCollectionDetailResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetMetaCollectionDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
|
||||
@@ -59,10 +59,6 @@ void ListEnabledExtensionsForProjectResult::parse(const std::string &payload)
|
||||
extensionsObject.owner = valueExtensionsExtensionsItem["Owner"].asString();
|
||||
if(!valueExtensionsExtensionsItem["ParameterSetting"].isNull())
|
||||
extensionsObject.parameterSetting = valueExtensionsExtensionsItem["ParameterSetting"].asString();
|
||||
if(!valueExtensionsExtensionsItem["GmtCreate"].isNull())
|
||||
extensionsObject.gmtCreate = std::stol(valueExtensionsExtensionsItem["GmtCreate"].asString());
|
||||
if(!valueExtensionsExtensionsItem["GmtModified"].isNull())
|
||||
extensionsObject.gmtModified = std::stol(valueExtensionsExtensionsItem["GmtModified"].asString());
|
||||
extensions_.push_back(extensionsObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,15 +52,14 @@ void ListEntitiesByTagsRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<ListEntitiesByTagsRequest::Tags> ListEntitiesByTagsRequest::getTags() const {
|
||||
std::vector<ListEntitiesByTagsRequest::ObjectOfAny> ListEntitiesByTagsRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListEntitiesByTagsRequest::setTags(const std::vector<ListEntitiesByTagsRequest::Tags> &tags) {
|
||||
void ListEntitiesByTagsRequest::setTags(const std::vector<ListEntitiesByTagsRequest::ObjectOfAny> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".TagValue", tags[dep1].tagValue);
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".TagKey", tags[dep1].tagKey);
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1), std::to_string(tags[dep1]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,18 +42,9 @@ void ListEntitiesByTagsResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allEntityListNode = dataNode["EntityList"]["EntityListItem"];
|
||||
for (auto dataNodeEntityListEntityListItem : allEntityListNode)
|
||||
{
|
||||
Data::EntityListItem entityListItemObject;
|
||||
if(!dataNodeEntityListEntityListItem["QualifiedName"].isNull())
|
||||
entityListItemObject.qualifiedName = dataNodeEntityListEntityListItem["QualifiedName"].asString();
|
||||
if(!dataNodeEntityListEntityListItem["TenantId"].isNull())
|
||||
entityListItemObject.tenantId = std::stol(dataNodeEntityListEntityListItem["TenantId"].asString());
|
||||
if(!dataNodeEntityListEntityListItem["EntityContent"].isNull())
|
||||
entityListItemObject.entityContent = dataNodeEntityListEntityListItem["EntityContent"].asString();
|
||||
data_.entityList.push_back(entityListItemObject);
|
||||
}
|
||||
auto allEntityList = dataNode["EntityList"]["EntityList"];
|
||||
for (auto value : allEntityList)
|
||||
data_.entityList.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
|
||||
@@ -39,16 +39,9 @@ void ListEntityTagsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["dataItem"];
|
||||
for (auto valueDatadataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDatadataItem["TagKey"].isNull())
|
||||
dataObject.tagKey = valueDatadataItem["TagKey"].asString();
|
||||
if(!valueDatadataItem["TagValue"].isNull())
|
||||
dataObject.tagValue = valueDatadataItem["TagValue"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
auto allData = value["Data"]["data"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
@@ -65,7 +58,7 @@ int ListEntityTagsResult::getHttpStatusCode()const
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListEntityTagsResult::DataItem> ListEntityTagsResult::getData()const
|
||||
std::vector<std::string> ListEntityTagsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,15 @@ void ListInstancesRequest::setBeginBizdate(const std::string &beginBizdate) {
|
||||
setBodyParameter(std::string("BeginBizdate"), beginBizdate);
|
||||
}
|
||||
|
||||
std::string ListInstancesRequest::getOrderBy() const {
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
void ListInstancesRequest::setOrderBy(const std::string &orderBy) {
|
||||
orderBy_ = orderBy;
|
||||
setBodyParameter(std::string("OrderBy"), orderBy);
|
||||
}
|
||||
|
||||
std::string ListInstancesRequest::getEndBizdate() const {
|
||||
return endBizdate_;
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ void ListLineageResult::parse(const std::string &payload)
|
||||
for (auto dataNodeDataEntityListDataEntityListItem : allDataEntityListNode)
|
||||
{
|
||||
Data::DataEntityListItem dataEntityListItemObject;
|
||||
if(!dataNodeDataEntityListDataEntityListItem["Entity"].isNull())
|
||||
dataEntityListItemObject.entity = dataNodeDataEntityListDataEntityListItem["Entity"].asString();
|
||||
if(!dataNodeDataEntityListDataEntityListItem["CreateTimestamp"].isNull())
|
||||
dataEntityListItemObject.createTimestamp = std::stol(dataNodeDataEntityListDataEntityListItem["CreateTimestamp"].asString());
|
||||
auto allRelationListNode = dataNodeDataEntityListDataEntityListItem["RelationList"]["RelationListItem"];
|
||||
@@ -62,13 +64,6 @@ void ListLineageResult::parse(const std::string &payload)
|
||||
relationListObject.channel = dataNodeDataEntityListDataEntityListItemRelationListRelationListItem["Channel"].asString();
|
||||
dataEntityListItemObject.relationList.push_back(relationListObject);
|
||||
}
|
||||
auto entityNode = value["Entity"];
|
||||
if(!entityNode["QualifiedName"].isNull())
|
||||
dataEntityListItemObject.entity.qualifiedName = entityNode["QualifiedName"].asString();
|
||||
if(!entityNode["TenantId"].isNull())
|
||||
dataEntityListItemObject.entity.tenantId = std::stol(entityNode["TenantId"].asString());
|
||||
if(!entityNode["EntityContent"].isNull())
|
||||
dataEntityListItemObject.entity.entityContent = entityNode["EntityContent"].asString();
|
||||
data_.dataEntityList.push_back(dataEntityListItemObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
@@ -42,18 +42,9 @@ void ListMetaCollectionEntitiesResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allEntityListNode = dataNode["EntityList"]["EntityListItem"];
|
||||
for (auto dataNodeEntityListEntityListItem : allEntityListNode)
|
||||
{
|
||||
Data::EntityListItem entityListItemObject;
|
||||
if(!dataNodeEntityListEntityListItem["QualifiedName"].isNull())
|
||||
entityListItemObject.qualifiedName = dataNodeEntityListEntityListItem["QualifiedName"].asString();
|
||||
if(!dataNodeEntityListEntityListItem["TenantId"].isNull())
|
||||
entityListItemObject.tenantId = std::stol(dataNodeEntityListEntityListItem["TenantId"].asString());
|
||||
if(!dataNodeEntityListEntityListItem["EntityContent"].isNull())
|
||||
entityListItemObject.entityContent = dataNodeEntityListEntityListItem["EntityContent"].asString();
|
||||
data_.entityList.push_back(entityListItemObject);
|
||||
}
|
||||
auto allEntityList = dataNode["EntityList"]["EntityList"];
|
||||
for (auto value : allEntityList)
|
||||
data_.entityList.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
|
||||
@@ -42,30 +42,9 @@ void ListMetaCollectionsResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allCollectionListNode = dataNode["CollectionList"]["CollectionListItem"];
|
||||
for (auto dataNodeCollectionListCollectionListItem : allCollectionListNode)
|
||||
{
|
||||
Data::CollectionListItem collectionListItemObject;
|
||||
if(!dataNodeCollectionListCollectionListItem["QualifiedName"].isNull())
|
||||
collectionListItemObject.qualifiedName = dataNodeCollectionListCollectionListItem["QualifiedName"].asString();
|
||||
if(!dataNodeCollectionListCollectionListItem["CollectionType"].isNull())
|
||||
collectionListItemObject.collectionType = dataNodeCollectionListCollectionListItem["CollectionType"].asString();
|
||||
if(!dataNodeCollectionListCollectionListItem["Name"].isNull())
|
||||
collectionListItemObject.name = dataNodeCollectionListCollectionListItem["Name"].asString();
|
||||
if(!dataNodeCollectionListCollectionListItem["Comment"].isNull())
|
||||
collectionListItemObject.comment = dataNodeCollectionListCollectionListItem["Comment"].asString();
|
||||
if(!dataNodeCollectionListCollectionListItem["OwnerId"].isNull())
|
||||
collectionListItemObject.ownerId = dataNodeCollectionListCollectionListItem["OwnerId"].asString();
|
||||
if(!dataNodeCollectionListCollectionListItem["OwnerName"].isNull())
|
||||
collectionListItemObject.ownerName = dataNodeCollectionListCollectionListItem["OwnerName"].asString();
|
||||
if(!dataNodeCollectionListCollectionListItem["CreateTime"].isNull())
|
||||
collectionListItemObject.createTime = std::stol(dataNodeCollectionListCollectionListItem["CreateTime"].asString());
|
||||
if(!dataNodeCollectionListCollectionListItem["UpdateTime"].isNull())
|
||||
collectionListItemObject.updateTime = std::stol(dataNodeCollectionListCollectionListItem["UpdateTime"].asString());
|
||||
if(!dataNodeCollectionListCollectionListItem["Level"].isNull())
|
||||
collectionListItemObject.level = std::stoi(dataNodeCollectionListCollectionListItem["Level"].asString());
|
||||
data_.collectionList.push_back(collectionListItemObject);
|
||||
}
|
||||
auto allCollectionList = dataNode["CollectionList"]["CollectionList"];
|
||||
for (auto value : allCollectionList)
|
||||
data_.collectionList.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
|
||||
@@ -25,21 +25,12 @@ RegisterLineageRelationRequest::RegisterLineageRelationRequest()
|
||||
|
||||
RegisterLineageRelationRequest::~RegisterLineageRelationRequest() {}
|
||||
|
||||
RegisterLineageRelationRequest::LineageRelationRegisterVO RegisterLineageRelationRequest::getLineageRelationRegisterVO() const {
|
||||
ObjectOfAny RegisterLineageRelationRequest::getLineageRelationRegisterVO() const {
|
||||
return lineageRelationRegisterVO_;
|
||||
}
|
||||
|
||||
void RegisterLineageRelationRequest::setLineageRelationRegisterVO(const RegisterLineageRelationRequest::LineageRelationRegisterVO &lineageRelationRegisterVO) {
|
||||
void RegisterLineageRelationRequest::setLineageRelationRegisterVO(ObjectOfAny lineageRelationRegisterVO) {
|
||||
lineageRelationRegisterVO_ = lineageRelationRegisterVO;
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".DestEntity.ParentName", lineageRelationRegisterVO.destEntity.parentName);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".DestEntity.QualifiedName", lineageRelationRegisterVO.destEntity.qualifiedName);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".DestEntity.Name", lineageRelationRegisterVO.destEntity.name);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".DestEntity.DetailUrl", lineageRelationRegisterVO.destEntity.detailUrl);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".CreateTimestamp", std::to_string(lineageRelationRegisterVO.createTimestamp));
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".Relationship.Type", lineageRelationRegisterVO.relationship.type);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".SrcEntity.ParentName", lineageRelationRegisterVO.srcEntity.parentName);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".SrcEntity.QualifiedName", lineageRelationRegisterVO.srcEntity.qualifiedName);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".SrcEntity.Name", lineageRelationRegisterVO.srcEntity.name);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO") + ".SrcEntity.DetailUrl", lineageRelationRegisterVO.srcEntity.detailUrl);
|
||||
setBodyParameter(std::string("LineageRelationRegisterVO"), std::to_string(lineageRelationRegisterVO));
|
||||
}
|
||||
|
||||
|
||||
@@ -34,15 +34,14 @@ void SetEntityTagsRequest::setQualifiedName(const std::string &qualifiedName) {
|
||||
setParameter(std::string("QualifiedName"), qualifiedName);
|
||||
}
|
||||
|
||||
std::vector<SetEntityTagsRequest::Tags> SetEntityTagsRequest::getTags() const {
|
||||
std::vector<SetEntityTagsRequest::ObjectOfAny> SetEntityTagsRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void SetEntityTagsRequest::setTags(const std::vector<SetEntityTagsRequest::Tags> &tags) {
|
||||
void SetEntityTagsRequest::setTags(const std::vector<SetEntityTagsRequest::ObjectOfAny> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
setBodyParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".TagValue", tags[dep1].tagValue);
|
||||
setBodyParameter(std::string("Tags") + "." + std::to_string(dep1 + 1) + ".TagKey", tags[dep1].tagKey);
|
||||
setBodyParameter(std::string("Tags") + "." + std::to_string(dep1 + 1), std::to_string(tags[dep1]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ UpdateQualityRuleRequest::UpdateQualityRuleRequest()
|
||||
|
||||
UpdateQualityRuleRequest::~UpdateQualityRuleRequest() {}
|
||||
|
||||
std::string UpdateQualityRuleRequest::getTaskSetting() const {
|
||||
return taskSetting_;
|
||||
}
|
||||
|
||||
void UpdateQualityRuleRequest::setTaskSetting(const std::string &taskSetting) {
|
||||
taskSetting_ = taskSetting;
|
||||
setBodyParameter(std::string("TaskSetting"), taskSetting);
|
||||
}
|
||||
|
||||
std::string UpdateQualityRuleRequest::getTrend() const {
|
||||
return trend_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user