Generated 2020-05-18 for dataworks-public.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ApprovePermissionApplyOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ApprovePermissionApplyOrderRequest;
|
||||
|
||||
ApprovePermissionApplyOrderRequest::ApprovePermissionApplyOrderRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ApprovePermissionApplyOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApprovePermissionApplyOrderRequest::~ApprovePermissionApplyOrderRequest()
|
||||
{}
|
||||
|
||||
std::string ApprovePermissionApplyOrderRequest::getFlowId()const
|
||||
{
|
||||
return flowId_;
|
||||
}
|
||||
|
||||
void ApprovePermissionApplyOrderRequest::setFlowId(const std::string& flowId)
|
||||
{
|
||||
flowId_ = flowId;
|
||||
setParameter("FlowId", flowId);
|
||||
}
|
||||
|
||||
std::string ApprovePermissionApplyOrderRequest::getApproveComment()const
|
||||
{
|
||||
return approveComment_;
|
||||
}
|
||||
|
||||
void ApprovePermissionApplyOrderRequest::setApproveComment(const std::string& approveComment)
|
||||
{
|
||||
approveComment_ = approveComment;
|
||||
setParameter("ApproveComment", approveComment);
|
||||
}
|
||||
|
||||
int ApprovePermissionApplyOrderRequest::getApproveAction()const
|
||||
{
|
||||
return approveAction_;
|
||||
}
|
||||
|
||||
void ApprovePermissionApplyOrderRequest::setApproveAction(int approveAction)
|
||||
{
|
||||
approveAction_ = approveAction;
|
||||
setParameter("ApproveAction", std::to_string(approveAction));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ApprovePermissionApplyOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ApprovePermissionApplyOrderResult::ApprovePermissionApplyOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ApprovePermissionApplyOrderResult::ApprovePermissionApplyOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ApprovePermissionApplyOrderResult::~ApprovePermissionApplyOrderResult()
|
||||
{}
|
||||
|
||||
void ApprovePermissionApplyOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ApproveSuccess"].isNull())
|
||||
approveSuccess_ = value["ApproveSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool ApprovePermissionApplyOrderResult::getApproveSuccess()const
|
||||
{
|
||||
return approveSuccess_;
|
||||
}
|
||||
|
||||
62
dataworks-public/src/model/CheckFileDeploymentRequest.cc
Normal file
62
dataworks-public/src/model/CheckFileDeploymentRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CheckFileDeploymentRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::CheckFileDeploymentRequest;
|
||||
|
||||
CheckFileDeploymentRequest::CheckFileDeploymentRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "CheckFileDeployment")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckFileDeploymentRequest::~CheckFileDeploymentRequest()
|
||||
{}
|
||||
|
||||
std::string CheckFileDeploymentRequest::getCheckDetailUrl()const
|
||||
{
|
||||
return checkDetailUrl_;
|
||||
}
|
||||
|
||||
void CheckFileDeploymentRequest::setCheckDetailUrl(const std::string& checkDetailUrl)
|
||||
{
|
||||
checkDetailUrl_ = checkDetailUrl;
|
||||
setBodyParameter("CheckDetailUrl", checkDetailUrl);
|
||||
}
|
||||
|
||||
std::string CheckFileDeploymentRequest::getCheckerInstanceId()const
|
||||
{
|
||||
return checkerInstanceId_;
|
||||
}
|
||||
|
||||
void CheckFileDeploymentRequest::setCheckerInstanceId(const std::string& checkerInstanceId)
|
||||
{
|
||||
checkerInstanceId_ = checkerInstanceId;
|
||||
setBodyParameter("CheckerInstanceId", checkerInstanceId);
|
||||
}
|
||||
|
||||
std::string CheckFileDeploymentRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void CheckFileDeploymentRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setBodyParameter("Status", status);
|
||||
}
|
||||
|
||||
44
dataworks-public/src/model/CheckFileDeploymentResult.cc
Normal file
44
dataworks-public/src/model/CheckFileDeploymentResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CheckFileDeploymentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
CheckFileDeploymentResult::CheckFileDeploymentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckFileDeploymentResult::CheckFileDeploymentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckFileDeploymentResult::~CheckFileDeploymentResult()
|
||||
{}
|
||||
|
||||
void CheckFileDeploymentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
106
dataworks-public/src/model/CreateDataSourceRequest.cc
Normal file
106
dataworks-public/src/model/CreateDataSourceRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CreateDataSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::CreateDataSourceRequest;
|
||||
|
||||
CreateDataSourceRequest::CreateDataSourceRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateDataSource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataSourceRequest::~CreateDataSourceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDataSourceRequest::getDataSourceType()const
|
||||
{
|
||||
return dataSourceType_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setDataSourceType(const std::string& dataSourceType)
|
||||
{
|
||||
dataSourceType_ = dataSourceType;
|
||||
setParameter("DataSourceType", dataSourceType);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getSubType()const
|
||||
{
|
||||
return subType_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setSubType(const std::string& subType)
|
||||
{
|
||||
subType_ = subType;
|
||||
setParameter("SubType", subType);
|
||||
}
|
||||
|
||||
std::string CreateDataSourceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int CreateDataSourceRequest::getEnvType()const
|
||||
{
|
||||
return envType_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setEnvType(int envType)
|
||||
{
|
||||
envType_ = envType;
|
||||
setParameter("EnvType", std::to_string(envType));
|
||||
}
|
||||
|
||||
long CreateDataSourceRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateDataSourceRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
65
dataworks-public/src/model/CreateDataSourceResult.cc
Normal file
65
dataworks-public/src/model/CreateDataSourceResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CreateDataSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
CreateDataSourceResult::CreateDataSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDataSourceResult::CreateDataSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDataSourceResult::~CreateDataSourceResult()
|
||||
{}
|
||||
|
||||
void CreateDataSourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = value["HttpStatusCode"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDataSourceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long CreateDataSourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool CreateDataSourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
127
dataworks-public/src/model/CreatePermissionApplyOrderRequest.cc
Normal file
127
dataworks-public/src/model/CreatePermissionApplyOrderRequest.cc
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CreatePermissionApplyOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::CreatePermissionApplyOrderRequest;
|
||||
|
||||
CreatePermissionApplyOrderRequest::CreatePermissionApplyOrderRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "CreatePermissionApplyOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePermissionApplyOrderRequest::~CreatePermissionApplyOrderRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePermissionApplyOrderRequest::getApplyReason()const
|
||||
{
|
||||
return applyReason_;
|
||||
}
|
||||
|
||||
void CreatePermissionApplyOrderRequest::setApplyReason(const std::string& applyReason)
|
||||
{
|
||||
applyReason_ = applyReason;
|
||||
setParameter("ApplyReason", applyReason);
|
||||
}
|
||||
|
||||
std::string CreatePermissionApplyOrderRequest::getMaxComputeProjectName()const
|
||||
{
|
||||
return maxComputeProjectName_;
|
||||
}
|
||||
|
||||
void CreatePermissionApplyOrderRequest::setMaxComputeProjectName(const std::string& maxComputeProjectName)
|
||||
{
|
||||
maxComputeProjectName_ = maxComputeProjectName;
|
||||
setParameter("MaxComputeProjectName", maxComputeProjectName);
|
||||
}
|
||||
|
||||
std::vector<CreatePermissionApplyOrderRequest::ApplyObject> CreatePermissionApplyOrderRequest::getApplyObject()const
|
||||
{
|
||||
return applyObject_;
|
||||
}
|
||||
|
||||
void CreatePermissionApplyOrderRequest::setApplyObject(const std::vector<ApplyObject>& applyObject)
|
||||
{
|
||||
applyObject_ = applyObject;
|
||||
for(int dep1 = 0; dep1!= applyObject.size(); dep1++) {
|
||||
auto applyObjectObj = applyObject.at(dep1);
|
||||
std::string applyObjectObjStr = "ApplyObject." + std::to_string(dep1 + 1);
|
||||
for(int dep2 = 0; dep2!= applyObjectObj.columnMetaList.size(); dep2++) {
|
||||
auto columnMetaListObj = applyObjectObj.columnMetaList.at(dep2);
|
||||
std::string columnMetaListObjStr = applyObjectObjStr + "ColumnMetaList." + std::to_string(dep2 + 1);
|
||||
setParameter(columnMetaListObjStr + ".Name", columnMetaListObj.name);
|
||||
}
|
||||
setParameter(applyObjectObjStr + ".Name", applyObjectObj.name);
|
||||
setParameter(applyObjectObjStr + ".Actions", applyObjectObj.actions);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreatePermissionApplyOrderRequest::getApplyUserIds()const
|
||||
{
|
||||
return applyUserIds_;
|
||||
}
|
||||
|
||||
void CreatePermissionApplyOrderRequest::setApplyUserIds(const std::string& applyUserIds)
|
||||
{
|
||||
applyUserIds_ = applyUserIds;
|
||||
setParameter("ApplyUserIds", applyUserIds);
|
||||
}
|
||||
|
||||
long CreatePermissionApplyOrderRequest::getDeadline()const
|
||||
{
|
||||
return deadline_;
|
||||
}
|
||||
|
||||
void CreatePermissionApplyOrderRequest::setDeadline(long deadline)
|
||||
{
|
||||
deadline_ = deadline;
|
||||
setParameter("Deadline", std::to_string(deadline));
|
||||
}
|
||||
|
||||
int CreatePermissionApplyOrderRequest::getWorkspaceId()const
|
||||
{
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void CreatePermissionApplyOrderRequest::setWorkspaceId(int workspaceId)
|
||||
{
|
||||
workspaceId_ = workspaceId;
|
||||
setParameter("WorkspaceId", std::to_string(workspaceId));
|
||||
}
|
||||
|
||||
int CreatePermissionApplyOrderRequest::getOrderType()const
|
||||
{
|
||||
return orderType_;
|
||||
}
|
||||
|
||||
void CreatePermissionApplyOrderRequest::setOrderType(int orderType)
|
||||
{
|
||||
orderType_ = orderType;
|
||||
setParameter("OrderType", std::to_string(orderType));
|
||||
}
|
||||
|
||||
std::string CreatePermissionApplyOrderRequest::getEngineType()const
|
||||
{
|
||||
return engineType_;
|
||||
}
|
||||
|
||||
void CreatePermissionApplyOrderRequest::setEngineType(const std::string& engineType)
|
||||
{
|
||||
engineType_ = engineType;
|
||||
setParameter("EngineType", engineType);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CreatePermissionApplyOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
CreatePermissionApplyOrderResult::CreatePermissionApplyOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePermissionApplyOrderResult::CreatePermissionApplyOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePermissionApplyOrderResult::~CreatePermissionApplyOrderResult()
|
||||
{}
|
||||
|
||||
void CreatePermissionApplyOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFlowId = value["FlowId"]["FlowId"];
|
||||
for (const auto &item : allFlowId)
|
||||
flowId_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> CreatePermissionApplyOrderResult::getFlowId()const
|
||||
{
|
||||
return flowId_;
|
||||
}
|
||||
|
||||
133
dataworks-public/src/model/CreateViewRequest.cc
Normal file
133
dataworks-public/src/model/CreateViewRequest.cc
Normal file
@@ -0,0 +1,133 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CreateViewRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::CreateViewRequest;
|
||||
|
||||
CreateViewRequest::CreateViewRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "CreateView")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateViewRequest::~CreateViewRequest()
|
||||
{}
|
||||
|
||||
std::string CreateViewRequest::getViewName()const
|
||||
{
|
||||
return viewName_;
|
||||
}
|
||||
|
||||
void CreateViewRequest::setViewName(const std::string& viewName)
|
||||
{
|
||||
viewName_ = viewName;
|
||||
setBodyParameter("ViewName", viewName);
|
||||
}
|
||||
|
||||
std::string CreateViewRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateViewRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setBodyParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateViewRequest::getSelectSQL()const
|
||||
{
|
||||
return selectSQL_;
|
||||
}
|
||||
|
||||
void CreateViewRequest::setSelectSQL(const std::string& selectSQL)
|
||||
{
|
||||
selectSQL_ = selectSQL;
|
||||
setBodyParameter("SelectSQL", selectSQL);
|
||||
}
|
||||
|
||||
std::string CreateViewRequest::getSelectWhere()const
|
||||
{
|
||||
return selectWhere_;
|
||||
}
|
||||
|
||||
void CreateViewRequest::setSelectWhere(const std::string& selectWhere)
|
||||
{
|
||||
selectWhere_ = selectWhere;
|
||||
setBodyParameter("SelectWhere", selectWhere);
|
||||
}
|
||||
|
||||
std::string CreateViewRequest::getSelectTableName()const
|
||||
{
|
||||
return selectTableName_;
|
||||
}
|
||||
|
||||
void CreateViewRequest::setSelectTableName(const std::string& selectTableName)
|
||||
{
|
||||
selectTableName_ = selectTableName;
|
||||
setBodyParameter("SelectTableName", selectTableName);
|
||||
}
|
||||
|
||||
std::string CreateViewRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void CreateViewRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setBodyParameter("Comment", comment);
|
||||
}
|
||||
|
||||
std::string CreateViewRequest::getSelectColumn()const
|
||||
{
|
||||
return selectColumn_;
|
||||
}
|
||||
|
||||
void CreateViewRequest::setSelectColumn(const std::string& selectColumn)
|
||||
{
|
||||
selectColumn_ = selectColumn;
|
||||
setBodyParameter("SelectColumn", selectColumn);
|
||||
}
|
||||
|
||||
std::string CreateViewRequest::getAppGuid()const
|
||||
{
|
||||
return appGuid_;
|
||||
}
|
||||
|
||||
void CreateViewRequest::setAppGuid(const std::string& appGuid)
|
||||
{
|
||||
appGuid_ = appGuid;
|
||||
setBodyParameter("AppGuid", appGuid);
|
||||
}
|
||||
|
||||
std::vector<CreateViewRequest::ViewColumn> CreateViewRequest::getViewColumn()const
|
||||
{
|
||||
return viewColumn_;
|
||||
}
|
||||
|
||||
void CreateViewRequest::setViewColumn(const std::vector<ViewColumn>& viewColumn)
|
||||
{
|
||||
viewColumn_ = viewColumn;
|
||||
for(int dep1 = 0; dep1!= viewColumn.size(); dep1++) {
|
||||
auto viewColumnObj = viewColumn.at(dep1);
|
||||
std::string viewColumnObjStr = "ViewColumn." + std::to_string(dep1 + 1);
|
||||
setParameter(viewColumnObjStr + ".Comment", viewColumnObj.comment);
|
||||
setParameter(viewColumnObjStr + ".ColumnName", viewColumnObj.columnName);
|
||||
}
|
||||
}
|
||||
|
||||
58
dataworks-public/src/model/CreateViewResult.cc
Normal file
58
dataworks-public/src/model/CreateViewResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/CreateViewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
CreateViewResult::CreateViewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateViewResult::CreateViewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateViewResult::~CreateViewResult()
|
||||
{}
|
||||
|
||||
void CreateViewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto taskInfoNode = value["TaskInfo"];
|
||||
if(!taskInfoNode["TaskId"].isNull())
|
||||
taskInfo_.taskId = taskInfoNode["TaskId"].asString();
|
||||
if(!taskInfoNode["Content"].isNull())
|
||||
taskInfo_.content = taskInfoNode["Content"].asString();
|
||||
if(!taskInfoNode["Status"].isNull())
|
||||
taskInfo_.status = taskInfoNode["Status"].asString();
|
||||
if(!taskInfoNode["NextTaskId"].isNull())
|
||||
taskInfo_.nextTaskId = taskInfoNode["NextTaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateViewResult::TaskInfo CreateViewResult::getTaskInfo()const
|
||||
{
|
||||
return taskInfo_;
|
||||
}
|
||||
|
||||
40
dataworks-public/src/model/DeleteDataSourceRequest.cc
Normal file
40
dataworks-public/src/model/DeleteDataSourceRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/DeleteDataSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::DeleteDataSourceRequest;
|
||||
|
||||
DeleteDataSourceRequest::DeleteDataSourceRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteDataSource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDataSourceRequest::~DeleteDataSourceRequest()
|
||||
{}
|
||||
|
||||
long DeleteDataSourceRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void DeleteDataSourceRequest::setDataSourceId(long dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setParameter("DataSourceId", std::to_string(dataSourceId));
|
||||
}
|
||||
|
||||
65
dataworks-public/src/model/DeleteDataSourceResult.cc
Normal file
65
dataworks-public/src/model/DeleteDataSourceResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/DeleteDataSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
DeleteDataSourceResult::DeleteDataSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDataSourceResult::DeleteDataSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDataSourceResult::~DeleteDataSourceResult()
|
||||
{}
|
||||
|
||||
void DeleteDataSourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = value["HttpStatusCode"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteDataSourceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
bool DeleteDataSourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool DeleteDataSourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
dataworks-public/src/model/DeleteViewRequest.cc
Normal file
51
dataworks-public/src/model/DeleteViewRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/DeleteViewRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::DeleteViewRequest;
|
||||
|
||||
DeleteViewRequest::DeleteViewRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "DeleteView")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteViewRequest::~DeleteViewRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteViewRequest::getViewName()const
|
||||
{
|
||||
return viewName_;
|
||||
}
|
||||
|
||||
void DeleteViewRequest::setViewName(const std::string& viewName)
|
||||
{
|
||||
viewName_ = viewName;
|
||||
setParameter("ViewName", viewName);
|
||||
}
|
||||
|
||||
std::string DeleteViewRequest::getAppGuid()const
|
||||
{
|
||||
return appGuid_;
|
||||
}
|
||||
|
||||
void DeleteViewRequest::setAppGuid(const std::string& appGuid)
|
||||
{
|
||||
appGuid_ = appGuid;
|
||||
setParameter("AppGuid", appGuid);
|
||||
}
|
||||
|
||||
58
dataworks-public/src/model/DeleteViewResult.cc
Normal file
58
dataworks-public/src/model/DeleteViewResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/DeleteViewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
DeleteViewResult::DeleteViewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteViewResult::DeleteViewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteViewResult::~DeleteViewResult()
|
||||
{}
|
||||
|
||||
void DeleteViewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto taskInfoNode = value["TaskInfo"];
|
||||
if(!taskInfoNode["TaskId"].isNull())
|
||||
taskInfo_.taskId = taskInfoNode["TaskId"].asString();
|
||||
if(!taskInfoNode["Content"].isNull())
|
||||
taskInfo_.content = taskInfoNode["Content"].asString();
|
||||
if(!taskInfoNode["Status"].isNull())
|
||||
taskInfo_.status = taskInfoNode["Status"].asString();
|
||||
if(!taskInfoNode["NextTaskId"].isNull())
|
||||
taskInfo_.nextTaskId = taskInfoNode["NextTaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
DeleteViewResult::TaskInfo DeleteViewResult::getTaskInfo()const
|
||||
{
|
||||
return taskInfo_;
|
||||
}
|
||||
|
||||
62
dataworks-public/src/model/ExportDISyncTasksRequest.cc
Normal file
62
dataworks-public/src/model/ExportDISyncTasksRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ExportDISyncTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ExportDISyncTasksRequest;
|
||||
|
||||
ExportDISyncTasksRequest::ExportDISyncTasksRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ExportDISyncTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExportDISyncTasksRequest::~ExportDISyncTasksRequest()
|
||||
{}
|
||||
|
||||
std::string ExportDISyncTasksRequest::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
void ExportDISyncTasksRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setParameter("TaskType", taskType);
|
||||
}
|
||||
|
||||
std::string ExportDISyncTasksRequest::getTaskParam()const
|
||||
{
|
||||
return taskParam_;
|
||||
}
|
||||
|
||||
void ExportDISyncTasksRequest::setTaskParam(const std::string& taskParam)
|
||||
{
|
||||
taskParam_ = taskParam;
|
||||
setParameter("TaskParam", taskParam);
|
||||
}
|
||||
|
||||
long ExportDISyncTasksRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ExportDISyncTasksRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
59
dataworks-public/src/model/ExportDISyncTasksResult.cc
Normal file
59
dataworks-public/src/model/ExportDISyncTasksResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ExportDISyncTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ExportDISyncTasksResult::ExportDISyncTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ExportDISyncTasksResult::ExportDISyncTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ExportDISyncTasksResult::~ExportDISyncTasksResult()
|
||||
{}
|
||||
|
||||
void ExportDISyncTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto taskDetailNode = value["TaskDetail"];
|
||||
if(!taskDetailNode["RealTimeSolution"].isNull())
|
||||
taskDetail_.realTimeSolution = taskDetailNode["RealTimeSolution"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
ExportDISyncTasksResult::TaskDetail ExportDISyncTasksResult::getTaskDetail()const
|
||||
{
|
||||
return taskDetail_;
|
||||
}
|
||||
|
||||
bool ExportDISyncTasksResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -77,6 +77,10 @@ void GetFileResult::parse(const std::string &payload)
|
||||
data_.file.lastEditTime = std::stol(fileNode["LastEditTime"].asString());
|
||||
if(!fileNode["CommitStatus"].isNull())
|
||||
data_.file.commitStatus = std::stoi(fileNode["CommitStatus"].asString());
|
||||
if(!fileNode["DeletedStatus"].isNull())
|
||||
data_.file.deletedStatus = fileNode["DeletedStatus"].asString();
|
||||
if(!fileNode["BusinessId"].isNull())
|
||||
data_.file.businessId = std::stol(fileNode["BusinessId"].asString());
|
||||
auto nodeConfigurationNode = dataNode["NodeConfiguration"];
|
||||
if(!nodeConfigurationNode["AutoRerunTimes"].isNull())
|
||||
data_.nodeConfiguration.autoRerunTimes = std::stoi(nodeConfigurationNode["AutoRerunTimes"].asString());
|
||||
|
||||
51
dataworks-public/src/model/GetFileTypeStatisticRequest.cc
Normal file
51
dataworks-public/src/model/GetFileTypeStatisticRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/GetFileTypeStatisticRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::GetFileTypeStatisticRequest;
|
||||
|
||||
GetFileTypeStatisticRequest::GetFileTypeStatisticRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "GetFileTypeStatistic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetFileTypeStatisticRequest::~GetFileTypeStatisticRequest()
|
||||
{}
|
||||
|
||||
std::string GetFileTypeStatisticRequest::getProjectEnv()const
|
||||
{
|
||||
return projectEnv_;
|
||||
}
|
||||
|
||||
void GetFileTypeStatisticRequest::setProjectEnv(const std::string& projectEnv)
|
||||
{
|
||||
projectEnv_ = projectEnv;
|
||||
setBodyParameter("ProjectEnv", projectEnv);
|
||||
}
|
||||
|
||||
long GetFileTypeStatisticRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void GetFileTypeStatisticRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
59
dataworks-public/src/model/GetFileTypeStatisticResult.cc
Normal file
59
dataworks-public/src/model/GetFileTypeStatisticResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/GetFileTypeStatisticResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
GetFileTypeStatisticResult::GetFileTypeStatisticResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetFileTypeStatisticResult::GetFileTypeStatisticResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetFileTypeStatisticResult::~GetFileTypeStatisticResult()
|
||||
{}
|
||||
|
||||
void GetFileTypeStatisticResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allProgramTypeAndCountsNode = value["ProgramTypeAndCounts"]["ProgramTypeAndCount"];
|
||||
for (auto valueProgramTypeAndCountsProgramTypeAndCount : allProgramTypeAndCountsNode)
|
||||
{
|
||||
ProgramTypeAndCount programTypeAndCountsObject;
|
||||
if(!valueProgramTypeAndCountsProgramTypeAndCount["ProgramType"].isNull())
|
||||
programTypeAndCountsObject.programType = valueProgramTypeAndCountsProgramTypeAndCount["ProgramType"].asString();
|
||||
if(!valueProgramTypeAndCountsProgramTypeAndCount["Count"].isNull())
|
||||
programTypeAndCountsObject.count = std::stoi(valueProgramTypeAndCountsProgramTypeAndCount["Count"].asString());
|
||||
programTypeAndCounts_.push_back(programTypeAndCountsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetFileTypeStatisticResult::ProgramTypeAndCount> GetFileTypeStatisticResult::getProgramTypeAndCounts()const
|
||||
{
|
||||
return programTypeAndCounts_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/GetInstanceStatusStatisticRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::GetInstanceStatusStatisticRequest;
|
||||
|
||||
GetInstanceStatusStatisticRequest::GetInstanceStatusStatisticRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "GetInstanceStatusStatistic")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetInstanceStatusStatisticRequest::~GetInstanceStatusStatisticRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceStatusStatisticRequest::getProjectEnv()const
|
||||
{
|
||||
return projectEnv_;
|
||||
}
|
||||
|
||||
void GetInstanceStatusStatisticRequest::setProjectEnv(const std::string& projectEnv)
|
||||
{
|
||||
projectEnv_ = projectEnv;
|
||||
setBodyParameter("ProjectEnv", projectEnv);
|
||||
}
|
||||
|
||||
std::string GetInstanceStatusStatisticRequest::getBizDate()const
|
||||
{
|
||||
return bizDate_;
|
||||
}
|
||||
|
||||
void GetInstanceStatusStatisticRequest::setBizDate(const std::string& bizDate)
|
||||
{
|
||||
bizDate_ = bizDate;
|
||||
setBodyParameter("BizDate", bizDate);
|
||||
}
|
||||
|
||||
long GetInstanceStatusStatisticRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void GetInstanceStatusStatisticRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/GetInstanceStatusStatisticResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
GetInstanceStatusStatisticResult::GetInstanceStatusStatisticResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceStatusStatisticResult::GetInstanceStatusStatisticResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceStatusStatisticResult::~GetInstanceStatusStatisticResult()
|
||||
{}
|
||||
|
||||
void GetInstanceStatusStatisticResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto statusCountNode = value["StatusCount"];
|
||||
if(!statusCountNode["TotalCount"].isNull())
|
||||
statusCount_.totalCount = std::stoi(statusCountNode["TotalCount"].asString());
|
||||
if(!statusCountNode["NotRunCount"].isNull())
|
||||
statusCount_.notRunCount = std::stoi(statusCountNode["NotRunCount"].asString());
|
||||
if(!statusCountNode["WaitTimeCount"].isNull())
|
||||
statusCount_.waitTimeCount = std::stoi(statusCountNode["WaitTimeCount"].asString());
|
||||
if(!statusCountNode["WaitResCount"].isNull())
|
||||
statusCount_.waitResCount = std::stoi(statusCountNode["WaitResCount"].asString());
|
||||
if(!statusCountNode["RunningCount"].isNull())
|
||||
statusCount_.runningCount = std::stoi(statusCountNode["RunningCount"].asString());
|
||||
if(!statusCountNode["FailureCount"].isNull())
|
||||
statusCount_.failureCount = std::stoi(statusCountNode["FailureCount"].asString());
|
||||
if(!statusCountNode["SuccessCount"].isNull())
|
||||
statusCount_.successCount = std::stoi(statusCountNode["SuccessCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
GetInstanceStatusStatisticResult::StatusCount GetInstanceStatusStatisticResult::getStatusCount()const
|
||||
{
|
||||
return statusCount_;
|
||||
}
|
||||
|
||||
51
dataworks-public/src/model/GetMetaTableThemeLevelRequest.cc
Normal file
51
dataworks-public/src/model/GetMetaTableThemeLevelRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/GetMetaTableThemeLevelRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::GetMetaTableThemeLevelRequest;
|
||||
|
||||
GetMetaTableThemeLevelRequest::GetMetaTableThemeLevelRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "GetMetaTableThemeLevel")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetMetaTableThemeLevelRequest::~GetMetaTableThemeLevelRequest()
|
||||
{}
|
||||
|
||||
std::string GetMetaTableThemeLevelRequest::getDataSourceType()const
|
||||
{
|
||||
return dataSourceType_;
|
||||
}
|
||||
|
||||
void GetMetaTableThemeLevelRequest::setDataSourceType(const std::string& dataSourceType)
|
||||
{
|
||||
dataSourceType_ = dataSourceType;
|
||||
setParameter("DataSourceType", dataSourceType);
|
||||
}
|
||||
|
||||
std::string GetMetaTableThemeLevelRequest::getTableGuid()const
|
||||
{
|
||||
return tableGuid_;
|
||||
}
|
||||
|
||||
void GetMetaTableThemeLevelRequest::setTableGuid(const std::string& tableGuid)
|
||||
{
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter("TableGuid", tableGuid);
|
||||
}
|
||||
|
||||
106
dataworks-public/src/model/GetMetaTableThemeLevelResult.cc
Normal file
106
dataworks-public/src/model/GetMetaTableThemeLevelResult.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/GetMetaTableThemeLevelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
GetMetaTableThemeLevelResult::GetMetaTableThemeLevelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMetaTableThemeLevelResult::GetMetaTableThemeLevelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMetaTableThemeLevelResult::~GetMetaTableThemeLevelResult()
|
||||
{}
|
||||
|
||||
void GetMetaTableThemeLevelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto entityNode = value["Entity"];
|
||||
auto allThemeNode = entityNode["Theme"]["ThemeItem"];
|
||||
for (auto entityNodeThemeThemeItem : allThemeNode)
|
||||
{
|
||||
Entity::ThemeItem themeItemObject;
|
||||
if(!entityNodeThemeThemeItem["ThemeId"].isNull())
|
||||
themeItemObject.themeId = std::stol(entityNodeThemeThemeItem["ThemeId"].asString());
|
||||
if(!entityNodeThemeThemeItem["Name"].isNull())
|
||||
themeItemObject.name = entityNodeThemeThemeItem["Name"].asString();
|
||||
if(!entityNodeThemeThemeItem["Level"].isNull())
|
||||
themeItemObject.level = std::stoi(entityNodeThemeThemeItem["Level"].asString());
|
||||
if(!entityNodeThemeThemeItem["ParentId"].isNull())
|
||||
themeItemObject.parentId = std::stol(entityNodeThemeThemeItem["ParentId"].asString());
|
||||
entity_.theme.push_back(themeItemObject);
|
||||
}
|
||||
auto allLevelNode = entityNode["Level"]["LevelItem"];
|
||||
for (auto entityNodeLevelLevelItem : allLevelNode)
|
||||
{
|
||||
Entity::LevelItem levelItemObject;
|
||||
if(!entityNodeLevelLevelItem["LevelId"].isNull())
|
||||
levelItemObject.levelId = std::stol(entityNodeLevelLevelItem["LevelId"].asString());
|
||||
if(!entityNodeLevelLevelItem["Name"].isNull())
|
||||
levelItemObject.name = entityNodeLevelLevelItem["Name"].asString();
|
||||
if(!entityNodeLevelLevelItem["Type"].isNull())
|
||||
levelItemObject.type = std::stoi(entityNodeLevelLevelItem["Type"].asString());
|
||||
if(!entityNodeLevelLevelItem["Description"].isNull())
|
||||
levelItemObject.description = entityNodeLevelLevelItem["Description"].asString();
|
||||
entity_.level.push_back(levelItemObject);
|
||||
}
|
||||
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());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
GetMetaTableThemeLevelResult::Entity GetMetaTableThemeLevelResult::getEntity()const
|
||||
{
|
||||
return entity_;
|
||||
}
|
||||
|
||||
int GetMetaTableThemeLevelResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string GetMetaTableThemeLevelResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetMetaTableThemeLevelResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetMetaTableThemeLevelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/GetPermissionApplyOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::GetPermissionApplyOrderDetailRequest;
|
||||
|
||||
GetPermissionApplyOrderDetailRequest::GetPermissionApplyOrderDetailRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "GetPermissionApplyOrderDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPermissionApplyOrderDetailRequest::~GetPermissionApplyOrderDetailRequest()
|
||||
{}
|
||||
|
||||
std::string GetPermissionApplyOrderDetailRequest::getFlowId()const
|
||||
{
|
||||
return flowId_;
|
||||
}
|
||||
|
||||
void GetPermissionApplyOrderDetailRequest::setFlowId(const std::string& flowId)
|
||||
{
|
||||
flowId_ = flowId;
|
||||
setParameter("FlowId", flowId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/GetPermissionApplyOrderDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
GetPermissionApplyOrderDetailResult::GetPermissionApplyOrderDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPermissionApplyOrderDetailResult::GetPermissionApplyOrderDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPermissionApplyOrderDetailResult::~GetPermissionApplyOrderDetailResult()
|
||||
{}
|
||||
|
||||
void GetPermissionApplyOrderDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto applyOrderDetailNode = value["ApplyOrderDetail"];
|
||||
if(!applyOrderDetailNode["ApplyBaseId"].isNull())
|
||||
applyOrderDetail_.applyBaseId = applyOrderDetailNode["ApplyBaseId"].asString();
|
||||
if(!applyOrderDetailNode["ApplyTimestamp"].isNull())
|
||||
applyOrderDetail_.applyTimestamp = std::stol(applyOrderDetailNode["ApplyTimestamp"].asString());
|
||||
if(!applyOrderDetailNode["FlowId"].isNull())
|
||||
applyOrderDetail_.flowId = applyOrderDetailNode["FlowId"].asString();
|
||||
if(!applyOrderDetailNode["FlowStatus"].isNull())
|
||||
applyOrderDetail_.flowStatus = std::stoi(applyOrderDetailNode["FlowStatus"].asString());
|
||||
auto allApproveAccountListNode = applyOrderDetailNode["ApproveAccountList"]["ApproveAccountListItem"];
|
||||
for (auto applyOrderDetailNodeApproveAccountListApproveAccountListItem : allApproveAccountListNode)
|
||||
{
|
||||
ApplyOrderDetail::ApproveAccountListItem approveAccountListItemObject;
|
||||
if(!applyOrderDetailNodeApproveAccountListApproveAccountListItem["BaseId"].isNull())
|
||||
approveAccountListItemObject.baseId = applyOrderDetailNodeApproveAccountListApproveAccountListItem["BaseId"].asString();
|
||||
applyOrderDetail_.approveAccountList.push_back(approveAccountListItemObject);
|
||||
}
|
||||
auto allGranteeObjectListNode = applyOrderDetailNode["GranteeObjectList"]["GranteeObjectListItem"];
|
||||
for (auto applyOrderDetailNodeGranteeObjectListGranteeObjectListItem : allGranteeObjectListNode)
|
||||
{
|
||||
ApplyOrderDetail::GranteeObjectListItem granteeObjectListItemObject;
|
||||
if(!applyOrderDetailNodeGranteeObjectListGranteeObjectListItem["GranteeId"].isNull())
|
||||
granteeObjectListItemObject.granteeId = applyOrderDetailNodeGranteeObjectListGranteeObjectListItem["GranteeId"].asString();
|
||||
if(!applyOrderDetailNodeGranteeObjectListGranteeObjectListItem["GranteeName"].isNull())
|
||||
granteeObjectListItemObject.granteeName = applyOrderDetailNodeGranteeObjectListGranteeObjectListItem["GranteeName"].asString();
|
||||
if(!applyOrderDetailNodeGranteeObjectListGranteeObjectListItem["GranteeType"].isNull())
|
||||
granteeObjectListItemObject.granteeType = std::stoi(applyOrderDetailNodeGranteeObjectListGranteeObjectListItem["GranteeType"].asString());
|
||||
if(!applyOrderDetailNodeGranteeObjectListGranteeObjectListItem["GranteeTypeSub"].isNull())
|
||||
granteeObjectListItemObject.granteeTypeSub = std::stoi(applyOrderDetailNodeGranteeObjectListGranteeObjectListItem["GranteeTypeSub"].asString());
|
||||
applyOrderDetail_.granteeObjectList.push_back(granteeObjectListItemObject);
|
||||
}
|
||||
auto approveContentNode = applyOrderDetailNode["ApproveContent"];
|
||||
if(!approveContentNode["ApplyReason"].isNull())
|
||||
applyOrderDetail_.approveContent.applyReason = approveContentNode["ApplyReason"].asString();
|
||||
if(!approveContentNode["Deadline"].isNull())
|
||||
applyOrderDetail_.approveContent.deadline = std::stol(approveContentNode["Deadline"].asString());
|
||||
if(!approveContentNode["OrderType"].isNull())
|
||||
applyOrderDetail_.approveContent.orderType = std::stoi(approveContentNode["OrderType"].asString());
|
||||
auto projectMetaNode = approveContentNode["ProjectMeta"];
|
||||
if(!projectMetaNode["WorkspaceId"].isNull())
|
||||
applyOrderDetail_.approveContent.projectMeta.workspaceId = std::stoi(projectMetaNode["WorkspaceId"].asString());
|
||||
if(!projectMetaNode["MaxComputeProjectName"].isNull())
|
||||
applyOrderDetail_.approveContent.projectMeta.maxComputeProjectName = projectMetaNode["MaxComputeProjectName"].asString();
|
||||
auto allObjectMetaListNode = projectMetaNode["ObjectMetaList"]["ObjectMetaListItem"];
|
||||
for (auto projectMetaNodeObjectMetaListObjectMetaListItem : allObjectMetaListNode)
|
||||
{
|
||||
ApplyOrderDetail::ApproveContent::ProjectMeta::ObjectMetaListItem objectMetaListItemObject;
|
||||
if(!projectMetaNodeObjectMetaListObjectMetaListItem["ObjectName"].isNull())
|
||||
objectMetaListItemObject.objectName = projectMetaNodeObjectMetaListObjectMetaListItem["ObjectName"].asString();
|
||||
auto allColumnMetaListNode = projectMetaNodeObjectMetaListObjectMetaListItem["ColumnMetaList"]["ColumnMetaListItem"];
|
||||
for (auto projectMetaNodeObjectMetaListObjectMetaListItemColumnMetaListColumnMetaListItem : allColumnMetaListNode)
|
||||
{
|
||||
ApplyOrderDetail::ApproveContent::ProjectMeta::ObjectMetaListItem::ColumnMetaListItem columnMetaListObject;
|
||||
if(!projectMetaNodeObjectMetaListObjectMetaListItemColumnMetaListColumnMetaListItem["ColumnComment"].isNull())
|
||||
columnMetaListObject.columnComment = projectMetaNodeObjectMetaListObjectMetaListItemColumnMetaListColumnMetaListItem["ColumnComment"].asString();
|
||||
if(!projectMetaNodeObjectMetaListObjectMetaListItemColumnMetaListColumnMetaListItem["ColumnName"].isNull())
|
||||
columnMetaListObject.columnName = projectMetaNodeObjectMetaListObjectMetaListItemColumnMetaListColumnMetaListItem["ColumnName"].asString();
|
||||
objectMetaListItemObject.columnMetaList.push_back(columnMetaListObject);
|
||||
}
|
||||
applyOrderDetail_.approveContent.projectMeta.objectMetaList.push_back(objectMetaListItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GetPermissionApplyOrderDetailResult::ApplyOrderDetail GetPermissionApplyOrderDetailResult::getApplyOrderDetail()const
|
||||
{
|
||||
return applyOrderDetail_;
|
||||
}
|
||||
|
||||
40
dataworks-public/src/model/GetProjectRequest.cc
Normal file
40
dataworks-public/src/model/GetProjectRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/GetProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::GetProjectRequest;
|
||||
|
||||
GetProjectRequest::GetProjectRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "GetProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetProjectRequest::~GetProjectRequest()
|
||||
{}
|
||||
|
||||
long GetProjectRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void GetProjectRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
121
dataworks-public/src/model/GetProjectResult.cc
Normal file
121
dataworks-public/src/model/GetProjectResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/GetProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
GetProjectResult::GetProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetProjectResult::GetProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetProjectResult::~GetProjectResult()
|
||||
{}
|
||||
|
||||
void GetProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].asString();
|
||||
if(!dataNode["MaxFlowNode"].isNull())
|
||||
data_.maxFlowNode = std::stoi(dataNode["MaxFlowNode"].asString());
|
||||
if(!dataNode["DefaultDiResourceGroupIdentifier"].isNull())
|
||||
data_.defaultDiResourceGroupIdentifier = dataNode["DefaultDiResourceGroupIdentifier"].asString();
|
||||
if(!dataNode["Destination"].isNull())
|
||||
data_.destination = std::stoi(dataNode["Destination"].asString());
|
||||
if(!dataNode["IsAllowDownload"].isNull())
|
||||
data_.isAllowDownload = std::stoi(dataNode["IsAllowDownload"].asString());
|
||||
if(!dataNode["ProdStorageQuota"].isNull())
|
||||
data_.prodStorageQuota = dataNode["ProdStorageQuota"].asString();
|
||||
if(!dataNode["SchedulerRetryInterval"].isNull())
|
||||
data_.schedulerRetryInterval = std::stoi(dataNode["SchedulerRetryInterval"].asString());
|
||||
if(!dataNode["ResidentArea"].isNull())
|
||||
data_.residentArea = dataNode["ResidentArea"].asString();
|
||||
if(!dataNode["TablePrivacyMode"].isNull())
|
||||
data_.tablePrivacyMode = std::stoi(dataNode["TablePrivacyMode"].asString());
|
||||
if(!dataNode["ProjectOwnerBaseId"].isNull())
|
||||
data_.projectOwnerBaseId = dataNode["ProjectOwnerBaseId"].asString();
|
||||
if(!dataNode["UseProxyOdpsAccount"].isNull())
|
||||
data_.useProxyOdpsAccount = dataNode["UseProxyOdpsAccount"].asString() == "true";
|
||||
if(!dataNode["DisableDevelopment"].isNull())
|
||||
data_.disableDevelopment = dataNode["DisableDevelopment"].asString() == "true";
|
||||
if(!dataNode["ProjectMode"].isNull())
|
||||
data_.projectMode = std::stoi(dataNode["ProjectMode"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["DevStorageQuota"].isNull())
|
||||
data_.devStorageQuota = dataNode["DevStorageQuota"].asString();
|
||||
if(!dataNode["IsDefault"].isNull())
|
||||
data_.isDefault = std::stoi(dataNode["IsDefault"].asString());
|
||||
if(!dataNode["ProtectedMode"].isNull())
|
||||
data_.protectedMode = std::stoi(dataNode["ProtectedMode"].asString());
|
||||
if(!dataNode["BaseProject"].isNull())
|
||||
data_.baseProject = dataNode["BaseProject"].asString() == "true";
|
||||
if(!dataNode["TenantId"].isNull())
|
||||
data_.tenantId = std::stol(dataNode["TenantId"].asString());
|
||||
if(!dataNode["ProjectDescription"].isNull())
|
||||
data_.projectDescription = dataNode["ProjectDescription"].asString();
|
||||
if(!dataNode["Appkey"].isNull())
|
||||
data_.appkey = dataNode["Appkey"].asString();
|
||||
if(!dataNode["SchedulerMaxRetryTimes"].isNull())
|
||||
data_.schedulerMaxRetryTimes = std::stoi(dataNode["SchedulerMaxRetryTimes"].asString());
|
||||
if(!dataNode["ProjectName"].isNull())
|
||||
data_.projectName = dataNode["ProjectName"].asString();
|
||||
if(!dataNode["ProjectIdentifier"].isNull())
|
||||
data_.projectIdentifier = dataNode["ProjectIdentifier"].asString();
|
||||
if(!dataNode["ProjectId"].isNull())
|
||||
data_.projectId = std::stoi(dataNode["ProjectId"].asString());
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["DevelopmentType"].isNull())
|
||||
data_.developmentType = std::stoi(dataNode["DevelopmentType"].asString());
|
||||
auto allEnvTypes = dataNode["EnvTypes"]["EnvTypes"];
|
||||
for (auto value : allEnvTypes)
|
||||
data_.envTypes.push_back(value.asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
int GetProjectResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetProjectResult::Data GetProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool GetProjectResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
dataworks-public/src/model/ImportDISyncTasksRequest.cc
Normal file
73
dataworks-public/src/model/ImportDISyncTasksRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ImportDISyncTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ImportDISyncTasksRequest;
|
||||
|
||||
ImportDISyncTasksRequest::ImportDISyncTasksRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ImportDISyncTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ImportDISyncTasksRequest::~ImportDISyncTasksRequest()
|
||||
{}
|
||||
|
||||
std::string ImportDISyncTasksRequest::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
void ImportDISyncTasksRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setParameter("TaskType", taskType);
|
||||
}
|
||||
|
||||
std::string ImportDISyncTasksRequest::getTaskContent()const
|
||||
{
|
||||
return taskContent_;
|
||||
}
|
||||
|
||||
void ImportDISyncTasksRequest::setTaskContent(const std::string& taskContent)
|
||||
{
|
||||
taskContent_ = taskContent;
|
||||
setParameter("TaskContent", taskContent);
|
||||
}
|
||||
|
||||
std::string ImportDISyncTasksRequest::getTaskParam()const
|
||||
{
|
||||
return taskParam_;
|
||||
}
|
||||
|
||||
void ImportDISyncTasksRequest::setTaskParam(const std::string& taskParam)
|
||||
{
|
||||
taskParam_ = taskParam;
|
||||
setParameter("TaskParam", taskParam);
|
||||
}
|
||||
|
||||
long ImportDISyncTasksRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ImportDISyncTasksRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
59
dataworks-public/src/model/ImportDISyncTasksResult.cc
Normal file
59
dataworks-public/src/model/ImportDISyncTasksResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ImportDISyncTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ImportDISyncTasksResult::ImportDISyncTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ImportDISyncTasksResult::ImportDISyncTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ImportDISyncTasksResult::~ImportDISyncTasksResult()
|
||||
{}
|
||||
|
||||
void ImportDISyncTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto taskInfoNode = value["TaskInfo"];
|
||||
if(!taskInfoNode["TaskId"].isNull())
|
||||
taskInfo_.taskId = std::stol(taskInfoNode["TaskId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
ImportDISyncTasksResult::TaskInfo ImportDISyncTasksResult::getTaskInfo()const
|
||||
{
|
||||
return taskInfo_;
|
||||
}
|
||||
|
||||
bool ImportDISyncTasksResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
dataworks-public/src/model/ListDISyncTasksRequest.cc
Normal file
73
dataworks-public/src/model/ListDISyncTasksRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListDISyncTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListDISyncTasksRequest;
|
||||
|
||||
ListDISyncTasksRequest::ListDISyncTasksRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListDISyncTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDISyncTasksRequest::~ListDISyncTasksRequest()
|
||||
{}
|
||||
|
||||
std::string ListDISyncTasksRequest::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
void ListDISyncTasksRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setParameter("TaskType", taskType);
|
||||
}
|
||||
|
||||
long ListDISyncTasksRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDISyncTasksRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListDISyncTasksRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListDISyncTasksRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
long ListDISyncTasksRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListDISyncTasksRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
79
dataworks-public/src/model/ListDISyncTasksResult.cc
Normal file
79
dataworks-public/src/model/ListDISyncTasksResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListDISyncTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListDISyncTasksResult::ListDISyncTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDISyncTasksResult::ListDISyncTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDISyncTasksResult::~ListDISyncTasksResult()
|
||||
{}
|
||||
|
||||
void ListDISyncTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto taskListNode = value["TaskList"];
|
||||
if(!taskListNode["PageNumber"].isNull())
|
||||
taskList_.pageNumber = std::stoi(taskListNode["PageNumber"].asString());
|
||||
if(!taskListNode["PageSize"].isNull())
|
||||
taskList_.pageSize = std::stoi(taskListNode["PageSize"].asString());
|
||||
if(!taskListNode["TotalCount"].isNull())
|
||||
taskList_.totalCount = std::stoi(taskListNode["TotalCount"].asString());
|
||||
auto allRealTimeSolutionListNode = taskListNode["RealTimeSolutionList"]["RealTimeSolutionListItem"];
|
||||
for (auto taskListNodeRealTimeSolutionListRealTimeSolutionListItem : allRealTimeSolutionListNode)
|
||||
{
|
||||
TaskList::RealTimeSolutionListItem realTimeSolutionListItemObject;
|
||||
if(!taskListNodeRealTimeSolutionListRealTimeSolutionListItem["ProcessId"].isNull())
|
||||
realTimeSolutionListItemObject.processId = std::stol(taskListNodeRealTimeSolutionListRealTimeSolutionListItem["ProcessId"].asString());
|
||||
if(!taskListNodeRealTimeSolutionListRealTimeSolutionListItem["ProcessName"].isNull())
|
||||
realTimeSolutionListItemObject.processName = taskListNodeRealTimeSolutionListRealTimeSolutionListItem["ProcessName"].asString();
|
||||
if(!taskListNodeRealTimeSolutionListRealTimeSolutionListItem["TaskStatus"].isNull())
|
||||
realTimeSolutionListItemObject.taskStatus = taskListNodeRealTimeSolutionListRealTimeSolutionListItem["TaskStatus"].asString();
|
||||
if(!taskListNodeRealTimeSolutionListRealTimeSolutionListItem["TaskType"].isNull())
|
||||
realTimeSolutionListItemObject.taskType = taskListNodeRealTimeSolutionListRealTimeSolutionListItem["TaskType"].asString();
|
||||
if(!taskListNodeRealTimeSolutionListRealTimeSolutionListItem["CreateTime"].isNull())
|
||||
realTimeSolutionListItemObject.createTime = std::stol(taskListNodeRealTimeSolutionListRealTimeSolutionListItem["CreateTime"].asString());
|
||||
taskList_.realTimeSolutionList.push_back(realTimeSolutionListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
ListDISyncTasksResult::TaskList ListDISyncTasksResult::getTaskList()const
|
||||
{
|
||||
return taskList_;
|
||||
}
|
||||
|
||||
bool ListDISyncTasksResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
117
dataworks-public/src/model/ListDataSourcesRequest.cc
Normal file
117
dataworks-public/src/model/ListDataSourcesRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListDataSourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListDataSourcesRequest;
|
||||
|
||||
ListDataSourcesRequest::ListDataSourcesRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListDataSources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListDataSourcesRequest::~ListDataSourcesRequest()
|
||||
{}
|
||||
|
||||
std::string ListDataSourcesRequest::getDataSourceType()const
|
||||
{
|
||||
return dataSourceType_;
|
||||
}
|
||||
|
||||
void ListDataSourcesRequest::setDataSourceType(const std::string& dataSourceType)
|
||||
{
|
||||
dataSourceType_ = dataSourceType;
|
||||
setParameter("DataSourceType", dataSourceType);
|
||||
}
|
||||
|
||||
int ListDataSourcesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListDataSourcesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string ListDataSourcesRequest::getSubType()const
|
||||
{
|
||||
return subType_;
|
||||
}
|
||||
|
||||
void ListDataSourcesRequest::setSubType(const std::string& subType)
|
||||
{
|
||||
subType_ = subType;
|
||||
setParameter("SubType", subType);
|
||||
}
|
||||
|
||||
std::string ListDataSourcesRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListDataSourcesRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
int ListDataSourcesRequest::getEnvType()const
|
||||
{
|
||||
return envType_;
|
||||
}
|
||||
|
||||
void ListDataSourcesRequest::setEnvType(int envType)
|
||||
{
|
||||
envType_ = envType;
|
||||
setParameter("EnvType", std::to_string(envType));
|
||||
}
|
||||
|
||||
int ListDataSourcesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDataSourcesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long ListDataSourcesRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListDataSourcesRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string ListDataSourcesRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListDataSourcesRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
110
dataworks-public/src/model/ListDataSourcesResult.cc
Normal file
110
dataworks-public/src/model/ListDataSourcesResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListDataSourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListDataSourcesResult::ListDataSourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDataSourcesResult::ListDataSourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDataSourcesResult::~ListDataSourcesResult()
|
||||
{}
|
||||
|
||||
void ListDataSourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
auto allDataSourcesNode = dataNode["DataSources"]["DataSourcesItem"];
|
||||
for (auto dataNodeDataSourcesDataSourcesItem : allDataSourcesNode)
|
||||
{
|
||||
Data::DataSourcesItem dataSourcesItemObject;
|
||||
if(!dataNodeDataSourcesDataSourcesItem["Shared"].isNull())
|
||||
dataSourcesItemObject.shared = dataNodeDataSourcesDataSourcesItem["Shared"].asString() == "true";
|
||||
if(!dataNodeDataSourcesDataSourcesItem["GmtModified"].isNull())
|
||||
dataSourcesItemObject.gmtModified = dataNodeDataSourcesDataSourcesItem["GmtModified"].asString();
|
||||
if(!dataNodeDataSourcesDataSourcesItem["ConnectStatus"].isNull())
|
||||
dataSourcesItemObject.connectStatus = std::stoi(dataNodeDataSourcesDataSourcesItem["ConnectStatus"].asString());
|
||||
if(!dataNodeDataSourcesDataSourcesItem["BindingCalcEngineId"].isNull())
|
||||
dataSourcesItemObject.bindingCalcEngineId = std::stoi(dataNodeDataSourcesDataSourcesItem["BindingCalcEngineId"].asString());
|
||||
if(!dataNodeDataSourcesDataSourcesItem["Description"].isNull())
|
||||
dataSourcesItemObject.description = dataNodeDataSourcesDataSourcesItem["Description"].asString();
|
||||
if(!dataNodeDataSourcesDataSourcesItem["DataSourceType"].isNull())
|
||||
dataSourcesItemObject.dataSourceType = dataNodeDataSourcesDataSourcesItem["DataSourceType"].asString();
|
||||
if(!dataNodeDataSourcesDataSourcesItem["GmtCreate"].isNull())
|
||||
dataSourcesItemObject.gmtCreate = dataNodeDataSourcesDataSourcesItem["GmtCreate"].asString();
|
||||
if(!dataNodeDataSourcesDataSourcesItem["DefaultEngine"].isNull())
|
||||
dataSourcesItemObject.defaultEngine = dataNodeDataSourcesDataSourcesItem["DefaultEngine"].asString() == "true";
|
||||
if(!dataNodeDataSourcesDataSourcesItem["Operator"].isNull())
|
||||
dataSourcesItemObject._operator = dataNodeDataSourcesDataSourcesItem["Operator"].asString();
|
||||
if(!dataNodeDataSourcesDataSourcesItem["Sequence"].isNull())
|
||||
dataSourcesItemObject.sequence = std::stoi(dataNodeDataSourcesDataSourcesItem["Sequence"].asString());
|
||||
if(!dataNodeDataSourcesDataSourcesItem["EnvType"].isNull())
|
||||
dataSourcesItemObject.envType = std::stoi(dataNodeDataSourcesDataSourcesItem["EnvType"].asString());
|
||||
if(!dataNodeDataSourcesDataSourcesItem["TenantId"].isNull())
|
||||
dataSourcesItemObject.tenantId = std::stol(dataNodeDataSourcesDataSourcesItem["TenantId"].asString());
|
||||
if(!dataNodeDataSourcesDataSourcesItem["Name"].isNull())
|
||||
dataSourcesItemObject.name = dataNodeDataSourcesDataSourcesItem["Name"].asString();
|
||||
if(!dataNodeDataSourcesDataSourcesItem["SubType"].isNull())
|
||||
dataSourcesItemObject.subType = dataNodeDataSourcesDataSourcesItem["SubType"].asString();
|
||||
if(!dataNodeDataSourcesDataSourcesItem["Id"].isNull())
|
||||
dataSourcesItemObject.id = std::stoi(dataNodeDataSourcesDataSourcesItem["Id"].asString());
|
||||
if(!dataNodeDataSourcesDataSourcesItem["ProjectId"].isNull())
|
||||
dataSourcesItemObject.projectId = std::stoi(dataNodeDataSourcesDataSourcesItem["ProjectId"].asString());
|
||||
if(!dataNodeDataSourcesDataSourcesItem["Status"].isNull())
|
||||
dataSourcesItemObject.status = std::stoi(dataNodeDataSourcesDataSourcesItem["Status"].asString());
|
||||
data_.dataSources.push_back(dataSourcesItemObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
int ListDataSourcesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ListDataSourcesResult::Data ListDataSourcesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool ListDataSourcesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
dataworks-public/src/model/ListFileTypeRequest.cc
Normal file
95
dataworks-public/src/model/ListFileTypeRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListFileTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListFileTypeRequest;
|
||||
|
||||
ListFileTypeRequest::ListFileTypeRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListFileType")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListFileTypeRequest::~ListFileTypeRequest()
|
||||
{}
|
||||
|
||||
int ListFileTypeRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListFileTypeRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListFileTypeRequest::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void ListFileTypeRequest::setKeyword(const std::string& keyword)
|
||||
{
|
||||
keyword_ = keyword;
|
||||
setBodyParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
std::string ListFileTypeRequest::getLocale()const
|
||||
{
|
||||
return locale_;
|
||||
}
|
||||
|
||||
void ListFileTypeRequest::setLocale(const std::string& locale)
|
||||
{
|
||||
locale_ = locale;
|
||||
setBodyParameter("Locale", locale);
|
||||
}
|
||||
|
||||
long ListFileTypeRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListFileTypeRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
std::string ListFileTypeRequest::getProjectIdentifier()const
|
||||
{
|
||||
return projectIdentifier_;
|
||||
}
|
||||
|
||||
void ListFileTypeRequest::setProjectIdentifier(const std::string& projectIdentifier)
|
||||
{
|
||||
projectIdentifier_ = projectIdentifier;
|
||||
setBodyParameter("ProjectIdentifier", projectIdentifier);
|
||||
}
|
||||
|
||||
int ListFileTypeRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListFileTypeRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setBodyParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
66
dataworks-public/src/model/ListFileTypeResult.cc
Normal file
66
dataworks-public/src/model/ListFileTypeResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListFileTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListFileTypeResult::ListFileTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListFileTypeResult::ListFileTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListFileTypeResult::~ListFileTypeResult()
|
||||
{}
|
||||
|
||||
void ListFileTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto nodeTypeInfoListNode = value["NodeTypeInfoList"];
|
||||
if(!nodeTypeInfoListNode["PageNumber"].isNull())
|
||||
nodeTypeInfoList_.pageNumber = std::stoi(nodeTypeInfoListNode["PageNumber"].asString());
|
||||
if(!nodeTypeInfoListNode["PageSize"].isNull())
|
||||
nodeTypeInfoList_.pageSize = std::stoi(nodeTypeInfoListNode["PageSize"].asString());
|
||||
if(!nodeTypeInfoListNode["TotalCount"].isNull())
|
||||
nodeTypeInfoList_.totalCount = std::stoi(nodeTypeInfoListNode["TotalCount"].asString());
|
||||
auto allNodeTypeInfoNode = nodeTypeInfoListNode["NodeTypeInfo"]["NodeTypeInfoItem"];
|
||||
for (auto nodeTypeInfoListNodeNodeTypeInfoNodeTypeInfoItem : allNodeTypeInfoNode)
|
||||
{
|
||||
NodeTypeInfoList::NodeTypeInfoItem nodeTypeInfoItemObject;
|
||||
if(!nodeTypeInfoListNodeNodeTypeInfoNodeTypeInfoItem["NodeType"].isNull())
|
||||
nodeTypeInfoItemObject.nodeType = std::stoi(nodeTypeInfoListNodeNodeTypeInfoNodeTypeInfoItem["NodeType"].asString());
|
||||
if(!nodeTypeInfoListNodeNodeTypeInfoNodeTypeInfoItem["NodeTypeName"].isNull())
|
||||
nodeTypeInfoItemObject.nodeTypeName = nodeTypeInfoListNodeNodeTypeInfoNodeTypeInfoItem["NodeTypeName"].asString();
|
||||
nodeTypeInfoList_.nodeTypeInfo.push_back(nodeTypeInfoItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ListFileTypeResult::NodeTypeInfoList ListFileTypeResult::getNodeTypeInfoList()const
|
||||
{
|
||||
return nodeTypeInfoList_;
|
||||
}
|
||||
|
||||
@@ -88,6 +88,8 @@ void ListFilesResult::parse(const std::string &payload)
|
||||
fileObject.commitStatus = std::stoi(dataNodeFilesFile["CommitStatus"].asString());
|
||||
if(!dataNodeFilesFile["FileId"].isNull())
|
||||
fileObject.fileId = std::stol(dataNodeFilesFile["FileId"].asString());
|
||||
if(!dataNodeFilesFile["BusinessId"].isNull())
|
||||
fileObject.businessId = std::stol(dataNodeFilesFile["BusinessId"].asString());
|
||||
data_.files.push_back(fileObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
62
dataworks-public/src/model/ListInstanceAmountRequest.cc
Normal file
62
dataworks-public/src/model/ListInstanceAmountRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListInstanceAmountRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListInstanceAmountRequest;
|
||||
|
||||
ListInstanceAmountRequest::ListInstanceAmountRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListInstanceAmount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListInstanceAmountRequest::~ListInstanceAmountRequest()
|
||||
{}
|
||||
|
||||
std::string ListInstanceAmountRequest::getBeginDate()const
|
||||
{
|
||||
return beginDate_;
|
||||
}
|
||||
|
||||
void ListInstanceAmountRequest::setBeginDate(const std::string& beginDate)
|
||||
{
|
||||
beginDate_ = beginDate;
|
||||
setBodyParameter("BeginDate", beginDate);
|
||||
}
|
||||
|
||||
std::string ListInstanceAmountRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void ListInstanceAmountRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setBodyParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
long ListInstanceAmountRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListInstanceAmountRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
59
dataworks-public/src/model/ListInstanceAmountResult.cc
Normal file
59
dataworks-public/src/model/ListInstanceAmountResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListInstanceAmountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListInstanceAmountResult::ListInstanceAmountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListInstanceAmountResult::ListInstanceAmountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListInstanceAmountResult::~ListInstanceAmountResult()
|
||||
{}
|
||||
|
||||
void ListInstanceAmountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstanceCountsNode = value["InstanceCounts"]["IntanceCounts"];
|
||||
for (auto valueInstanceCountsIntanceCounts : allInstanceCountsNode)
|
||||
{
|
||||
IntanceCounts instanceCountsObject;
|
||||
if(!valueInstanceCountsIntanceCounts["Date"].isNull())
|
||||
instanceCountsObject.date = std::stol(valueInstanceCountsIntanceCounts["Date"].asString());
|
||||
if(!valueInstanceCountsIntanceCounts["Count"].isNull())
|
||||
instanceCountsObject.count = std::stoi(valueInstanceCountsIntanceCounts["Count"].asString());
|
||||
instanceCounts_.push_back(instanceCountsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListInstanceAmountResult::IntanceCounts> ListInstanceAmountResult::getInstanceCounts()const
|
||||
{
|
||||
return instanceCounts_;
|
||||
}
|
||||
|
||||
62
dataworks-public/src/model/ListManualDagInstancesRequest.cc
Normal file
62
dataworks-public/src/model/ListManualDagInstancesRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListManualDagInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListManualDagInstancesRequest;
|
||||
|
||||
ListManualDagInstancesRequest::ListManualDagInstancesRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListManualDagInstances")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListManualDagInstancesRequest::~ListManualDagInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string ListManualDagInstancesRequest::getProjectEnv()const
|
||||
{
|
||||
return projectEnv_;
|
||||
}
|
||||
|
||||
void ListManualDagInstancesRequest::setProjectEnv(const std::string& projectEnv)
|
||||
{
|
||||
projectEnv_ = projectEnv;
|
||||
setBodyParameter("ProjectEnv", projectEnv);
|
||||
}
|
||||
|
||||
std::string ListManualDagInstancesRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void ListManualDagInstancesRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setBodyParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string ListManualDagInstancesRequest::getDagId()const
|
||||
{
|
||||
return dagId_;
|
||||
}
|
||||
|
||||
void ListManualDagInstancesRequest::setDagId(const std::string& dagId)
|
||||
{
|
||||
dagId_ = dagId;
|
||||
setBodyParameter("DagId", dagId);
|
||||
}
|
||||
|
||||
87
dataworks-public/src/model/ListManualDagInstancesResult.cc
Normal file
87
dataworks-public/src/model/ListManualDagInstancesResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListManualDagInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListManualDagInstancesResult::ListManualDagInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListManualDagInstancesResult::ListManualDagInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListManualDagInstancesResult::~ListManualDagInstancesResult()
|
||||
{}
|
||||
|
||||
void ListManualDagInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstancesNode = value["Instances"]["InstancesItem"];
|
||||
for (auto valueInstancesInstancesItem : allInstancesNode)
|
||||
{
|
||||
InstancesItem instancesObject;
|
||||
if(!valueInstancesInstancesItem["NodeId"].isNull())
|
||||
instancesObject.nodeId = std::stol(valueInstancesInstancesItem["NodeId"].asString());
|
||||
if(!valueInstancesInstancesItem["InstanceId"].isNull())
|
||||
instancesObject.instanceId = std::stol(valueInstancesInstancesItem["InstanceId"].asString());
|
||||
if(!valueInstancesInstancesItem["DagId"].isNull())
|
||||
instancesObject.dagId = std::stol(valueInstancesInstancesItem["DagId"].asString());
|
||||
if(!valueInstancesInstancesItem["DagType"].isNull())
|
||||
instancesObject.dagType = valueInstancesInstancesItem["DagType"].asString();
|
||||
if(!valueInstancesInstancesItem["Status"].isNull())
|
||||
instancesObject.status = valueInstancesInstancesItem["Status"].asString();
|
||||
if(!valueInstancesInstancesItem["BizDate"].isNull())
|
||||
instancesObject.bizDate = std::stol(valueInstancesInstancesItem["BizDate"].asString());
|
||||
if(!valueInstancesInstancesItem["CycTime"].isNull())
|
||||
instancesObject.cycTime = std::stol(valueInstancesInstancesItem["CycTime"].asString());
|
||||
if(!valueInstancesInstancesItem["CreateTime"].isNull())
|
||||
instancesObject.createTime = std::stol(valueInstancesInstancesItem["CreateTime"].asString());
|
||||
if(!valueInstancesInstancesItem["ModifyTime"].isNull())
|
||||
instancesObject.modifyTime = std::stol(valueInstancesInstancesItem["ModifyTime"].asString());
|
||||
if(!valueInstancesInstancesItem["NodeName"].isNull())
|
||||
instancesObject.nodeName = valueInstancesInstancesItem["NodeName"].asString();
|
||||
if(!valueInstancesInstancesItem["BeginWaitTimeTime"].isNull())
|
||||
instancesObject.beginWaitTimeTime = std::stol(valueInstancesInstancesItem["BeginWaitTimeTime"].asString());
|
||||
if(!valueInstancesInstancesItem["BeginWaitResTime"].isNull())
|
||||
instancesObject.beginWaitResTime = std::stol(valueInstancesInstancesItem["BeginWaitResTime"].asString());
|
||||
if(!valueInstancesInstancesItem["BeginRunningTime"].isNull())
|
||||
instancesObject.beginRunningTime = std::stol(valueInstancesInstancesItem["BeginRunningTime"].asString());
|
||||
if(!valueInstancesInstancesItem["ParamValues"].isNull())
|
||||
instancesObject.paramValues = valueInstancesInstancesItem["ParamValues"].asString();
|
||||
if(!valueInstancesInstancesItem["FinishTime"].isNull())
|
||||
instancesObject.finishTime = std::stol(valueInstancesInstancesItem["FinishTime"].asString());
|
||||
if(!valueInstancesInstancesItem["TaskType"].isNull())
|
||||
instancesObject.taskType = valueInstancesInstancesItem["TaskType"].asString();
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListManualDagInstancesResult::InstancesItem> ListManualDagInstancesResult::getInstances()const
|
||||
{
|
||||
return instances_;
|
||||
}
|
||||
|
||||
62
dataworks-public/src/model/ListNodeInputOrOutputRequest.cc
Normal file
62
dataworks-public/src/model/ListNodeInputOrOutputRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListNodeInputOrOutputRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListNodeInputOrOutputRequest;
|
||||
|
||||
ListNodeInputOrOutputRequest::ListNodeInputOrOutputRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListNodeInputOrOutput")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListNodeInputOrOutputRequest::~ListNodeInputOrOutputRequest()
|
||||
{}
|
||||
|
||||
std::string ListNodeInputOrOutputRequest::getProjectEnv()const
|
||||
{
|
||||
return projectEnv_;
|
||||
}
|
||||
|
||||
void ListNodeInputOrOutputRequest::setProjectEnv(const std::string& projectEnv)
|
||||
{
|
||||
projectEnv_ = projectEnv;
|
||||
setBodyParameter("ProjectEnv", projectEnv);
|
||||
}
|
||||
|
||||
long ListNodeInputOrOutputRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void ListNodeInputOrOutputRequest::setNodeId(long nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setBodyParameter("NodeId", std::to_string(nodeId));
|
||||
}
|
||||
|
||||
std::string ListNodeInputOrOutputRequest::getIoType()const
|
||||
{
|
||||
return ioType_;
|
||||
}
|
||||
|
||||
void ListNodeInputOrOutputRequest::setIoType(const std::string& ioType)
|
||||
{
|
||||
ioType_ = ioType;
|
||||
setBodyParameter("IoType", ioType);
|
||||
}
|
||||
|
||||
89
dataworks-public/src/model/ListNodeInputOrOutputResult.cc
Normal file
89
dataworks-public/src/model/ListNodeInputOrOutputResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListNodeInputOrOutputResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListNodeInputOrOutputResult::ListNodeInputOrOutputResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListNodeInputOrOutputResult::ListNodeInputOrOutputResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListNodeInputOrOutputResult::~ListNodeInputOrOutputResult()
|
||||
{}
|
||||
|
||||
void ListNodeInputOrOutputResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["TableName"].isNull())
|
||||
dataObject.tableName = valueDataDataItem["TableName"].asString();
|
||||
if(!valueDataDataItem["Data"].isNull())
|
||||
dataObject.data = valueDataDataItem["Data"].asString();
|
||||
if(!valueDataDataItem["NodeId"].isNull())
|
||||
dataObject.nodeId = std::stol(valueDataDataItem["NodeId"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
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 ListNodeInputOrOutputResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListNodeInputOrOutputResult::DataItem> ListNodeInputOrOutputResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListNodeInputOrOutputResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListNodeInputOrOutputResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListNodeInputOrOutputResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
dataworks-public/src/model/ListNodesByBaselineRequest.cc
Normal file
40
dataworks-public/src/model/ListNodesByBaselineRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListNodesByBaselineRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListNodesByBaselineRequest;
|
||||
|
||||
ListNodesByBaselineRequest::ListNodesByBaselineRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListNodesByBaseline")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListNodesByBaselineRequest::~ListNodesByBaselineRequest()
|
||||
{}
|
||||
|
||||
long ListNodesByBaselineRequest::getBaselineId()const
|
||||
{
|
||||
return baselineId_;
|
||||
}
|
||||
|
||||
void ListNodesByBaselineRequest::setBaselineId(long baselineId)
|
||||
{
|
||||
baselineId_ = baselineId;
|
||||
setBodyParameter("BaselineId", std::to_string(baselineId));
|
||||
}
|
||||
|
||||
91
dataworks-public/src/model/ListNodesByBaselineResult.cc
Normal file
91
dataworks-public/src/model/ListNodesByBaselineResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListNodesByBaselineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListNodesByBaselineResult::ListNodesByBaselineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListNodesByBaselineResult::ListNodesByBaselineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListNodesByBaselineResult::~ListNodesByBaselineResult()
|
||||
{}
|
||||
|
||||
void ListNodesByBaselineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["NodeId"].isNull())
|
||||
dataObject.nodeId = std::stol(valueDataDataItem["NodeId"].asString());
|
||||
if(!valueDataDataItem["NodeName"].isNull())
|
||||
dataObject.nodeName = valueDataDataItem["NodeName"].asString();
|
||||
if(!valueDataDataItem["Owner"].isNull())
|
||||
dataObject.owner = valueDataDataItem["Owner"].asString();
|
||||
if(!valueDataDataItem["ProjectId"].isNull())
|
||||
dataObject.projectId = std::stol(valueDataDataItem["ProjectId"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
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 ListNodesByBaselineResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListNodesByBaselineResult::DataItem> ListNodesByBaselineResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListNodesByBaselineResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListNodesByBaselineResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string ListNodesByBaselineResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
dataworks-public/src/model/ListNodesByOutputRequest.cc
Normal file
62
dataworks-public/src/model/ListNodesByOutputRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListNodesByOutputRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListNodesByOutputRequest;
|
||||
|
||||
ListNodesByOutputRequest::ListNodesByOutputRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListNodesByOutput")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListNodesByOutputRequest::~ListNodesByOutputRequest()
|
||||
{}
|
||||
|
||||
std::string ListNodesByOutputRequest::getProjectEnv()const
|
||||
{
|
||||
return projectEnv_;
|
||||
}
|
||||
|
||||
void ListNodesByOutputRequest::setProjectEnv(const std::string& projectEnv)
|
||||
{
|
||||
projectEnv_ = projectEnv;
|
||||
setBodyParameter("ProjectEnv", projectEnv);
|
||||
}
|
||||
|
||||
std::string ListNodesByOutputRequest::getOutputs()const
|
||||
{
|
||||
return outputs_;
|
||||
}
|
||||
|
||||
void ListNodesByOutputRequest::setOutputs(const std::string& outputs)
|
||||
{
|
||||
outputs_ = outputs;
|
||||
setBodyParameter("Outputs", outputs);
|
||||
}
|
||||
|
||||
bool ListNodesByOutputRequest::getOutputNodeListAsMap()const
|
||||
{
|
||||
return outputNodeListAsMap_;
|
||||
}
|
||||
|
||||
void ListNodesByOutputRequest::setOutputNodeListAsMap(bool outputNodeListAsMap)
|
||||
{
|
||||
outputNodeListAsMap_ = outputNodeListAsMap;
|
||||
setBodyParameter("OutputNodeListAsMap", outputNodeListAsMap ? "true" : "false");
|
||||
}
|
||||
|
||||
129
dataworks-public/src/model/ListNodesByOutputResult.cc
Normal file
129
dataworks-public/src/model/ListNodesByOutputResult.cc
Normal file
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListNodesByOutputResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListNodesByOutputResult::ListNodesByOutputResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListNodesByOutputResult::ListNodesByOutputResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListNodesByOutputResult::~ListNodesByOutputResult()
|
||||
{}
|
||||
|
||||
void ListNodesByOutputResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["OutputNodePair"];
|
||||
for (auto valueDataOutputNodePair : allDataNode)
|
||||
{
|
||||
OutputNodePair dataObject;
|
||||
if(!valueDataOutputNodePair["Output"].isNull())
|
||||
dataObject.output = valueDataOutputNodePair["Output"].asString();
|
||||
auto allNodeListNode = valueDataOutputNodePair["NodeList"]["Node"];
|
||||
for (auto valueDataOutputNodePairNodeListNode : allNodeListNode)
|
||||
{
|
||||
OutputNodePair::Node nodeListObject;
|
||||
if(!valueDataOutputNodePairNodeListNode["NodeId"].isNull())
|
||||
nodeListObject.nodeId = std::stol(valueDataOutputNodePairNodeListNode["NodeId"].asString());
|
||||
if(!valueDataOutputNodePairNodeListNode["NodeName"].isNull())
|
||||
nodeListObject.nodeName = valueDataOutputNodePairNodeListNode["NodeName"].asString();
|
||||
if(!valueDataOutputNodePairNodeListNode["OwnerId"].isNull())
|
||||
nodeListObject.ownerId = valueDataOutputNodePairNodeListNode["OwnerId"].asString();
|
||||
if(!valueDataOutputNodePairNodeListNode["Description"].isNull())
|
||||
nodeListObject.description = valueDataOutputNodePairNodeListNode["Description"].asString();
|
||||
if(!valueDataOutputNodePairNodeListNode["ResGroupName"].isNull())
|
||||
nodeListObject.resGroupName = valueDataOutputNodePairNodeListNode["ResGroupName"].asString();
|
||||
if(!valueDataOutputNodePairNodeListNode["CronExpress"].isNull())
|
||||
nodeListObject.cronExpress = valueDataOutputNodePairNodeListNode["CronExpress"].asString();
|
||||
if(!valueDataOutputNodePairNodeListNode["Repeatability"].isNull())
|
||||
nodeListObject.repeatability = valueDataOutputNodePairNodeListNode["Repeatability"].asString() == "true";
|
||||
if(!valueDataOutputNodePairNodeListNode["ProgramType"].isNull())
|
||||
nodeListObject.programType = valueDataOutputNodePairNodeListNode["ProgramType"].asString();
|
||||
if(!valueDataOutputNodePairNodeListNode["ProjectId"].isNull())
|
||||
nodeListObject.projectId = std::stol(valueDataOutputNodePairNodeListNode["ProjectId"].asString());
|
||||
if(!valueDataOutputNodePairNodeListNode["SchedulerType"].isNull())
|
||||
nodeListObject.schedulerType = valueDataOutputNodePairNodeListNode["SchedulerType"].asString();
|
||||
if(!valueDataOutputNodePairNodeListNode["ParamValues"].isNull())
|
||||
nodeListObject.paramValues = valueDataOutputNodePairNodeListNode["ParamValues"].asString();
|
||||
if(!valueDataOutputNodePairNodeListNode["Priority"].isNull())
|
||||
nodeListObject.priority = std::stoi(valueDataOutputNodePairNodeListNode["Priority"].asString());
|
||||
if(!valueDataOutputNodePairNodeListNode["BaselineId"].isNull())
|
||||
nodeListObject.baselineId = std::stol(valueDataOutputNodePairNodeListNode["BaselineId"].asString());
|
||||
if(!valueDataOutputNodePairNodeListNode["RepeatInterval"].isNull())
|
||||
nodeListObject.repeatInterval = std::stoi(valueDataOutputNodePairNodeListNode["RepeatInterval"].asString());
|
||||
if(!valueDataOutputNodePairNodeListNode["Connection"].isNull())
|
||||
nodeListObject.connection = valueDataOutputNodePairNodeListNode["Connection"].asString();
|
||||
if(!valueDataOutputNodePairNodeListNode["DqcType"].isNull())
|
||||
nodeListObject.dqcType = std::stoi(valueDataOutputNodePairNodeListNode["DqcType"].asString());
|
||||
if(!valueDataOutputNodePairNodeListNode["DqcDescription"].isNull())
|
||||
nodeListObject.dqcDescription = valueDataOutputNodePairNodeListNode["DqcDescription"].asString();
|
||||
if(!valueDataOutputNodePairNodeListNode["RelatedFlowId"].isNull())
|
||||
nodeListObject.relatedFlowId = std::stol(valueDataOutputNodePairNodeListNode["RelatedFlowId"].asString());
|
||||
if(!valueDataOutputNodePairNodeListNode["FileType"].isNull())
|
||||
nodeListObject.fileType = valueDataOutputNodePairNodeListNode["FileType"].asString();
|
||||
dataObject.nodeList.push_back(nodeListObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
int ListNodesByOutputResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListNodesByOutputResult::OutputNodePair> ListNodesByOutputResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListNodesByOutputResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListNodesByOutputResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListNodesByOutputResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
150
dataworks-public/src/model/ListPermissionApplyOrdersRequest.cc
Normal file
150
dataworks-public/src/model/ListPermissionApplyOrdersRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListPermissionApplyOrdersRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListPermissionApplyOrdersRequest;
|
||||
|
||||
ListPermissionApplyOrdersRequest::ListPermissionApplyOrdersRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListPermissionApplyOrders")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPermissionApplyOrdersRequest::~ListPermissionApplyOrdersRequest()
|
||||
{}
|
||||
|
||||
std::string ListPermissionApplyOrdersRequest::getMaxComputeProjectName()const
|
||||
{
|
||||
return maxComputeProjectName_;
|
||||
}
|
||||
|
||||
void ListPermissionApplyOrdersRequest::setMaxComputeProjectName(const std::string& maxComputeProjectName)
|
||||
{
|
||||
maxComputeProjectName_ = maxComputeProjectName;
|
||||
setParameter("MaxComputeProjectName", maxComputeProjectName);
|
||||
}
|
||||
|
||||
long ListPermissionApplyOrdersRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListPermissionApplyOrdersRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long ListPermissionApplyOrdersRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListPermissionApplyOrdersRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
int ListPermissionApplyOrdersRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListPermissionApplyOrdersRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int ListPermissionApplyOrdersRequest::getFlowStatus()const
|
||||
{
|
||||
return flowStatus_;
|
||||
}
|
||||
|
||||
void ListPermissionApplyOrdersRequest::setFlowStatus(int flowStatus)
|
||||
{
|
||||
flowStatus_ = flowStatus;
|
||||
setParameter("FlowStatus", std::to_string(flowStatus));
|
||||
}
|
||||
|
||||
int ListPermissionApplyOrdersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListPermissionApplyOrdersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListPermissionApplyOrdersRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void ListPermissionApplyOrdersRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
int ListPermissionApplyOrdersRequest::getQueryType()const
|
||||
{
|
||||
return queryType_;
|
||||
}
|
||||
|
||||
void ListPermissionApplyOrdersRequest::setQueryType(int queryType)
|
||||
{
|
||||
queryType_ = queryType;
|
||||
setParameter("QueryType", std::to_string(queryType));
|
||||
}
|
||||
|
||||
int ListPermissionApplyOrdersRequest::getWorkspaceId()const
|
||||
{
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void ListPermissionApplyOrdersRequest::setWorkspaceId(int workspaceId)
|
||||
{
|
||||
workspaceId_ = workspaceId;
|
||||
setParameter("WorkspaceId", std::to_string(workspaceId));
|
||||
}
|
||||
|
||||
int ListPermissionApplyOrdersRequest::getOrderType()const
|
||||
{
|
||||
return orderType_;
|
||||
}
|
||||
|
||||
void ListPermissionApplyOrdersRequest::setOrderType(int orderType)
|
||||
{
|
||||
orderType_ = orderType;
|
||||
setParameter("OrderType", std::to_string(orderType));
|
||||
}
|
||||
|
||||
std::string ListPermissionApplyOrdersRequest::getEngineType()const
|
||||
{
|
||||
return engineType_;
|
||||
}
|
||||
|
||||
void ListPermissionApplyOrdersRequest::setEngineType(const std::string& engineType)
|
||||
{
|
||||
engineType_ = engineType;
|
||||
setParameter("EngineType", engineType);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListPermissionApplyOrdersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListPermissionApplyOrdersResult::ListPermissionApplyOrdersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPermissionApplyOrdersResult::ListPermissionApplyOrdersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPermissionApplyOrdersResult::~ListPermissionApplyOrdersResult()
|
||||
{}
|
||||
|
||||
void ListPermissionApplyOrdersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto applyOrdersNode = value["ApplyOrders"];
|
||||
if(!applyOrdersNode["PageSize"].isNull())
|
||||
applyOrders_.pageSize = std::stoi(applyOrdersNode["PageSize"].asString());
|
||||
if(!applyOrdersNode["PageNumber"].isNull())
|
||||
applyOrders_.pageNumber = std::stoi(applyOrdersNode["PageNumber"].asString());
|
||||
if(!applyOrdersNode["TotalCount"].isNull())
|
||||
applyOrders_.totalCount = std::stoi(applyOrdersNode["TotalCount"].asString());
|
||||
auto allApplyOrderNode = applyOrdersNode["ApplyOrder"]["Orders"];
|
||||
for (auto applyOrdersNodeApplyOrderOrders : allApplyOrderNode)
|
||||
{
|
||||
ApplyOrders::Orders ordersObject;
|
||||
if(!applyOrdersNodeApplyOrderOrders["FlowId"].isNull())
|
||||
ordersObject.flowId = applyOrdersNodeApplyOrderOrders["FlowId"].asString();
|
||||
if(!applyOrdersNodeApplyOrderOrders["ApplyBaseId"].isNull())
|
||||
ordersObject.applyBaseId = applyOrdersNodeApplyOrderOrders["ApplyBaseId"].asString();
|
||||
if(!applyOrdersNodeApplyOrderOrders["ApplyTimestamp"].isNull())
|
||||
ordersObject.applyTimestamp = std::stol(applyOrdersNodeApplyOrderOrders["ApplyTimestamp"].asString());
|
||||
if(!applyOrdersNodeApplyOrderOrders["FlowStatus"].isNull())
|
||||
ordersObject.flowStatus = std::stoi(applyOrdersNodeApplyOrderOrders["FlowStatus"].asString());
|
||||
auto approveContentNode = value["ApproveContent"];
|
||||
if(!approveContentNode["ApplyReason"].isNull())
|
||||
ordersObject.approveContent.applyReason = approveContentNode["ApplyReason"].asString();
|
||||
if(!approveContentNode["OrderType"].isNull())
|
||||
ordersObject.approveContent.orderType = std::stoi(approveContentNode["OrderType"].asString());
|
||||
auto projectMetaNode = approveContentNode["ProjectMeta"];
|
||||
if(!projectMetaNode["WorkspaceName"].isNull())
|
||||
ordersObject.approveContent.projectMeta.workspaceName = projectMetaNode["WorkspaceName"].asString();
|
||||
auto allObjectMetaListNode = projectMetaNode["ObjectMetaList"]["ObjectMetaListItem"];
|
||||
for (auto projectMetaNodeObjectMetaListObjectMetaListItem : allObjectMetaListNode)
|
||||
{
|
||||
ApplyOrders::Orders::ApproveContent::ProjectMeta::ObjectMetaListItem objectMetaListItemObject;
|
||||
if(!projectMetaNodeObjectMetaListObjectMetaListItem["ObjectName"].isNull())
|
||||
objectMetaListItemObject.objectName = projectMetaNodeObjectMetaListObjectMetaListItem["ObjectName"].asString();
|
||||
auto allActions = value["Actions"]["Actions"];
|
||||
for (auto value : allActions)
|
||||
objectMetaListItemObject.actions.push_back(value.asString());
|
||||
ordersObject.approveContent.projectMeta.objectMetaList.push_back(objectMetaListItemObject);
|
||||
}
|
||||
applyOrders_.applyOrder.push_back(ordersObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ListPermissionApplyOrdersResult::ApplyOrders ListPermissionApplyOrdersResult::getApplyOrders()const
|
||||
{
|
||||
return applyOrders_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ ListResourceGroupsRequest::ListResourceGroupsRequest() :
|
||||
ListResourceGroupsRequest::~ListResourceGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string ListResourceGroupsRequest::getBizExtKey()const
|
||||
{
|
||||
return bizExtKey_;
|
||||
}
|
||||
|
||||
void ListResourceGroupsRequest::setBizExtKey(const std::string& bizExtKey)
|
||||
{
|
||||
bizExtKey_ = bizExtKey;
|
||||
setParameter("BizExtKey", bizExtKey);
|
||||
}
|
||||
|
||||
int ListResourceGroupsRequest::getResourceGroupType()const
|
||||
{
|
||||
return resourceGroupType_;
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListSuccessInstanceAmountRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListSuccessInstanceAmountRequest;
|
||||
|
||||
ListSuccessInstanceAmountRequest::ListSuccessInstanceAmountRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListSuccessInstanceAmount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSuccessInstanceAmountRequest::~ListSuccessInstanceAmountRequest()
|
||||
{}
|
||||
|
||||
long ListSuccessInstanceAmountRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListSuccessInstanceAmountRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/ListSuccessInstanceAmountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListSuccessInstanceAmountResult::ListSuccessInstanceAmountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSuccessInstanceAmountResult::ListSuccessInstanceAmountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSuccessInstanceAmountResult::~ListSuccessInstanceAmountResult()
|
||||
{}
|
||||
|
||||
void ListSuccessInstanceAmountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceStatusTrendNode = value["InstanceStatusTrend"];
|
||||
auto allTodayTrendNode = instanceStatusTrendNode["TodayTrend"]["TodayTrendItem"];
|
||||
for (auto instanceStatusTrendNodeTodayTrendTodayTrendItem : allTodayTrendNode)
|
||||
{
|
||||
InstanceStatusTrend::TodayTrendItem todayTrendItemObject;
|
||||
if(!instanceStatusTrendNodeTodayTrendTodayTrendItem["Count"].isNull())
|
||||
todayTrendItemObject.count = std::stoi(instanceStatusTrendNodeTodayTrendTodayTrendItem["Count"].asString());
|
||||
if(!instanceStatusTrendNodeTodayTrendTodayTrendItem["TimePoint"].isNull())
|
||||
todayTrendItemObject.timePoint = instanceStatusTrendNodeTodayTrendTodayTrendItem["TimePoint"].asString();
|
||||
instanceStatusTrend_.todayTrend.push_back(todayTrendItemObject);
|
||||
}
|
||||
auto allYesterdayTrendNode = instanceStatusTrendNode["YesterdayTrend"]["YesterdayTrendItem"];
|
||||
for (auto instanceStatusTrendNodeYesterdayTrendYesterdayTrendItem : allYesterdayTrendNode)
|
||||
{
|
||||
InstanceStatusTrend::YesterdayTrendItem yesterdayTrendItemObject;
|
||||
if(!instanceStatusTrendNodeYesterdayTrendYesterdayTrendItem["Count"].isNull())
|
||||
yesterdayTrendItemObject.count = std::stoi(instanceStatusTrendNodeYesterdayTrendYesterdayTrendItem["Count"].asString());
|
||||
if(!instanceStatusTrendNodeYesterdayTrendYesterdayTrendItem["TimePoint"].isNull())
|
||||
yesterdayTrendItemObject.timePoint = instanceStatusTrendNodeYesterdayTrendYesterdayTrendItem["TimePoint"].asString();
|
||||
instanceStatusTrend_.yesterdayTrend.push_back(yesterdayTrendItemObject);
|
||||
}
|
||||
auto allAvgTrendNode = instanceStatusTrendNode["AvgTrend"]["AvgTrendItem"];
|
||||
for (auto instanceStatusTrendNodeAvgTrendAvgTrendItem : allAvgTrendNode)
|
||||
{
|
||||
InstanceStatusTrend::AvgTrendItem avgTrendItemObject;
|
||||
if(!instanceStatusTrendNodeAvgTrendAvgTrendItem["Count"].isNull())
|
||||
avgTrendItemObject.count = std::stoi(instanceStatusTrendNodeAvgTrendAvgTrendItem["Count"].asString());
|
||||
if(!instanceStatusTrendNodeAvgTrendAvgTrendItem["TimePoint"].isNull())
|
||||
avgTrendItemObject.timePoint = instanceStatusTrendNodeAvgTrendAvgTrendItem["TimePoint"].asString();
|
||||
instanceStatusTrend_.avgTrend.push_back(avgTrendItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ListSuccessInstanceAmountResult::InstanceStatusTrend ListSuccessInstanceAmountResult::getInstanceStatusTrend()const
|
||||
{
|
||||
return instanceStatusTrend_;
|
||||
}
|
||||
|
||||
95
dataworks-public/src/model/RevokeColumnPermissionRequest.cc
Normal file
95
dataworks-public/src/model/RevokeColumnPermissionRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/RevokeColumnPermissionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::RevokeColumnPermissionRequest;
|
||||
|
||||
RevokeColumnPermissionRequest::RevokeColumnPermissionRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "RevokeColumnPermission")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RevokeColumnPermissionRequest::~RevokeColumnPermissionRequest()
|
||||
{}
|
||||
|
||||
std::string RevokeColumnPermissionRequest::getRevokeUserName()const
|
||||
{
|
||||
return revokeUserName_;
|
||||
}
|
||||
|
||||
void RevokeColumnPermissionRequest::setRevokeUserName(const std::string& revokeUserName)
|
||||
{
|
||||
revokeUserName_ = revokeUserName;
|
||||
setParameter("RevokeUserName", revokeUserName);
|
||||
}
|
||||
|
||||
std::string RevokeColumnPermissionRequest::getMaxComputeProjectName()const
|
||||
{
|
||||
return maxComputeProjectName_;
|
||||
}
|
||||
|
||||
void RevokeColumnPermissionRequest::setMaxComputeProjectName(const std::string& maxComputeProjectName)
|
||||
{
|
||||
maxComputeProjectName_ = maxComputeProjectName;
|
||||
setParameter("MaxComputeProjectName", maxComputeProjectName);
|
||||
}
|
||||
|
||||
std::string RevokeColumnPermissionRequest::getColumns()const
|
||||
{
|
||||
return columns_;
|
||||
}
|
||||
|
||||
void RevokeColumnPermissionRequest::setColumns(const std::string& columns)
|
||||
{
|
||||
columns_ = columns;
|
||||
setParameter("Columns", columns);
|
||||
}
|
||||
|
||||
std::string RevokeColumnPermissionRequest::getRevokeUserId()const
|
||||
{
|
||||
return revokeUserId_;
|
||||
}
|
||||
|
||||
void RevokeColumnPermissionRequest::setRevokeUserId(const std::string& revokeUserId)
|
||||
{
|
||||
revokeUserId_ = revokeUserId;
|
||||
setParameter("RevokeUserId", revokeUserId);
|
||||
}
|
||||
|
||||
std::string RevokeColumnPermissionRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void RevokeColumnPermissionRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
long RevokeColumnPermissionRequest::getWorkspaceId()const
|
||||
{
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void RevokeColumnPermissionRequest::setWorkspaceId(long workspaceId)
|
||||
{
|
||||
workspaceId_ = workspaceId;
|
||||
setParameter("WorkspaceId", std::to_string(workspaceId));
|
||||
}
|
||||
|
||||
51
dataworks-public/src/model/RevokeColumnPermissionResult.cc
Normal file
51
dataworks-public/src/model/RevokeColumnPermissionResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/RevokeColumnPermissionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
RevokeColumnPermissionResult::RevokeColumnPermissionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RevokeColumnPermissionResult::RevokeColumnPermissionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RevokeColumnPermissionResult::~RevokeColumnPermissionResult()
|
||||
{}
|
||||
|
||||
void RevokeColumnPermissionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RevokeSuccess"].isNull())
|
||||
revokeSuccess_ = value["RevokeSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool RevokeColumnPermissionResult::getRevokeSuccess()const
|
||||
{
|
||||
return revokeSuccess_;
|
||||
}
|
||||
|
||||
95
dataworks-public/src/model/RevokeTablePermissionRequest.cc
Normal file
95
dataworks-public/src/model/RevokeTablePermissionRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/RevokeTablePermissionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::RevokeTablePermissionRequest;
|
||||
|
||||
RevokeTablePermissionRequest::RevokeTablePermissionRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "RevokeTablePermission")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RevokeTablePermissionRequest::~RevokeTablePermissionRequest()
|
||||
{}
|
||||
|
||||
std::string RevokeTablePermissionRequest::getRevokeUserName()const
|
||||
{
|
||||
return revokeUserName_;
|
||||
}
|
||||
|
||||
void RevokeTablePermissionRequest::setRevokeUserName(const std::string& revokeUserName)
|
||||
{
|
||||
revokeUserName_ = revokeUserName;
|
||||
setParameter("RevokeUserName", revokeUserName);
|
||||
}
|
||||
|
||||
std::string RevokeTablePermissionRequest::getMaxComputeProjectName()const
|
||||
{
|
||||
return maxComputeProjectName_;
|
||||
}
|
||||
|
||||
void RevokeTablePermissionRequest::setMaxComputeProjectName(const std::string& maxComputeProjectName)
|
||||
{
|
||||
maxComputeProjectName_ = maxComputeProjectName;
|
||||
setParameter("MaxComputeProjectName", maxComputeProjectName);
|
||||
}
|
||||
|
||||
std::string RevokeTablePermissionRequest::getRevokeUserId()const
|
||||
{
|
||||
return revokeUserId_;
|
||||
}
|
||||
|
||||
void RevokeTablePermissionRequest::setRevokeUserId(const std::string& revokeUserId)
|
||||
{
|
||||
revokeUserId_ = revokeUserId;
|
||||
setParameter("RevokeUserId", revokeUserId);
|
||||
}
|
||||
|
||||
std::string RevokeTablePermissionRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void RevokeTablePermissionRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
std::string RevokeTablePermissionRequest::getActions()const
|
||||
{
|
||||
return actions_;
|
||||
}
|
||||
|
||||
void RevokeTablePermissionRequest::setActions(const std::string& actions)
|
||||
{
|
||||
actions_ = actions;
|
||||
setParameter("Actions", actions);
|
||||
}
|
||||
|
||||
long RevokeTablePermissionRequest::getWorkspaceId()const
|
||||
{
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void RevokeTablePermissionRequest::setWorkspaceId(long workspaceId)
|
||||
{
|
||||
workspaceId_ = workspaceId;
|
||||
setParameter("WorkspaceId", std::to_string(workspaceId));
|
||||
}
|
||||
|
||||
51
dataworks-public/src/model/RevokeTablePermissionResult.cc
Normal file
51
dataworks-public/src/model/RevokeTablePermissionResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/RevokeTablePermissionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
RevokeTablePermissionResult::RevokeTablePermissionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RevokeTablePermissionResult::RevokeTablePermissionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RevokeTablePermissionResult::~RevokeTablePermissionResult()
|
||||
{}
|
||||
|
||||
void RevokeTablePermissionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["RevokeSuccess"].isNull())
|
||||
revokeSuccess_ = value["RevokeSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool RevokeTablePermissionResult::getRevokeSuccess()const
|
||||
{
|
||||
return revokeSuccess_;
|
||||
}
|
||||
|
||||
150
dataworks-public/src/model/RunCycleDagNodesRequest.cc
Normal file
150
dataworks-public/src/model/RunCycleDagNodesRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/RunCycleDagNodesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::RunCycleDagNodesRequest;
|
||||
|
||||
RunCycleDagNodesRequest::RunCycleDagNodesRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "RunCycleDagNodes")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RunCycleDagNodesRequest::~RunCycleDagNodesRequest()
|
||||
{}
|
||||
|
||||
std::string RunCycleDagNodesRequest::getProjectEnv()const
|
||||
{
|
||||
return projectEnv_;
|
||||
}
|
||||
|
||||
void RunCycleDagNodesRequest::setProjectEnv(const std::string& projectEnv)
|
||||
{
|
||||
projectEnv_ = projectEnv;
|
||||
setBodyParameter("ProjectEnv", projectEnv);
|
||||
}
|
||||
|
||||
std::string RunCycleDagNodesRequest::getStartBizDate()const
|
||||
{
|
||||
return startBizDate_;
|
||||
}
|
||||
|
||||
void RunCycleDagNodesRequest::setStartBizDate(const std::string& startBizDate)
|
||||
{
|
||||
startBizDate_ = startBizDate;
|
||||
setBodyParameter("StartBizDate", startBizDate);
|
||||
}
|
||||
|
||||
bool RunCycleDagNodesRequest::getParallelism()const
|
||||
{
|
||||
return parallelism_;
|
||||
}
|
||||
|
||||
void RunCycleDagNodesRequest::setParallelism(bool parallelism)
|
||||
{
|
||||
parallelism_ = parallelism;
|
||||
setBodyParameter("Parallelism", parallelism ? "true" : "false");
|
||||
}
|
||||
|
||||
long RunCycleDagNodesRequest::getRootNodeId()const
|
||||
{
|
||||
return rootNodeId_;
|
||||
}
|
||||
|
||||
void RunCycleDagNodesRequest::setRootNodeId(long rootNodeId)
|
||||
{
|
||||
rootNodeId_ = rootNodeId;
|
||||
setBodyParameter("RootNodeId", std::to_string(rootNodeId));
|
||||
}
|
||||
|
||||
std::string RunCycleDagNodesRequest::getBizBeginTime()const
|
||||
{
|
||||
return bizBeginTime_;
|
||||
}
|
||||
|
||||
void RunCycleDagNodesRequest::setBizBeginTime(const std::string& bizBeginTime)
|
||||
{
|
||||
bizBeginTime_ = bizBeginTime;
|
||||
setBodyParameter("BizBeginTime", bizBeginTime);
|
||||
}
|
||||
|
||||
std::string RunCycleDagNodesRequest::getEndBizDate()const
|
||||
{
|
||||
return endBizDate_;
|
||||
}
|
||||
|
||||
void RunCycleDagNodesRequest::setEndBizDate(const std::string& endBizDate)
|
||||
{
|
||||
endBizDate_ = endBizDate;
|
||||
setBodyParameter("EndBizDate", endBizDate);
|
||||
}
|
||||
|
||||
std::string RunCycleDagNodesRequest::getIncludeNodeIds()const
|
||||
{
|
||||
return includeNodeIds_;
|
||||
}
|
||||
|
||||
void RunCycleDagNodesRequest::setIncludeNodeIds(const std::string& includeNodeIds)
|
||||
{
|
||||
includeNodeIds_ = includeNodeIds;
|
||||
setBodyParameter("IncludeNodeIds", includeNodeIds);
|
||||
}
|
||||
|
||||
std::string RunCycleDagNodesRequest::getBizEndTime()const
|
||||
{
|
||||
return bizEndTime_;
|
||||
}
|
||||
|
||||
void RunCycleDagNodesRequest::setBizEndTime(const std::string& bizEndTime)
|
||||
{
|
||||
bizEndTime_ = bizEndTime;
|
||||
setBodyParameter("BizEndTime", bizEndTime);
|
||||
}
|
||||
|
||||
std::string RunCycleDagNodesRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void RunCycleDagNodesRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string RunCycleDagNodesRequest::getExcludeNodeIds()const
|
||||
{
|
||||
return excludeNodeIds_;
|
||||
}
|
||||
|
||||
void RunCycleDagNodesRequest::setExcludeNodeIds(const std::string& excludeNodeIds)
|
||||
{
|
||||
excludeNodeIds_ = excludeNodeIds;
|
||||
setBodyParameter("ExcludeNodeIds", excludeNodeIds);
|
||||
}
|
||||
|
||||
std::string RunCycleDagNodesRequest::getNodeParams()const
|
||||
{
|
||||
return nodeParams_;
|
||||
}
|
||||
|
||||
void RunCycleDagNodesRequest::setNodeParams(const std::string& nodeParams)
|
||||
{
|
||||
nodeParams_ = nodeParams;
|
||||
setBodyParameter("NodeParams", nodeParams);
|
||||
}
|
||||
|
||||
80
dataworks-public/src/model/RunCycleDagNodesResult.cc
Normal file
80
dataworks-public/src/model/RunCycleDagNodesResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/RunCycleDagNodesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
RunCycleDagNodesResult::RunCycleDagNodesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RunCycleDagNodesResult::RunCycleDagNodesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RunCycleDagNodesResult::~RunCycleDagNodesResult()
|
||||
{}
|
||||
|
||||
void RunCycleDagNodesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["dagId"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
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());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
int RunCycleDagNodesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> RunCycleDagNodesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string RunCycleDagNodesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string RunCycleDagNodesResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool RunCycleDagNodesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
dataworks-public/src/model/RunManualDagNodesRequest.cc
Normal file
95
dataworks-public/src/model/RunManualDagNodesRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/RunManualDagNodesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::RunManualDagNodesRequest;
|
||||
|
||||
RunManualDagNodesRequest::RunManualDagNodesRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "RunManualDagNodes")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RunManualDagNodesRequest::~RunManualDagNodesRequest()
|
||||
{}
|
||||
|
||||
std::string RunManualDagNodesRequest::getProjectEnv()const
|
||||
{
|
||||
return projectEnv_;
|
||||
}
|
||||
|
||||
void RunManualDagNodesRequest::setProjectEnv(const std::string& projectEnv)
|
||||
{
|
||||
projectEnv_ = projectEnv;
|
||||
setBodyParameter("ProjectEnv", projectEnv);
|
||||
}
|
||||
|
||||
std::string RunManualDagNodesRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void RunManualDagNodesRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setBodyParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string RunManualDagNodesRequest::getBizDate()const
|
||||
{
|
||||
return bizDate_;
|
||||
}
|
||||
|
||||
void RunManualDagNodesRequest::setBizDate(const std::string& bizDate)
|
||||
{
|
||||
bizDate_ = bizDate;
|
||||
setBodyParameter("BizDate", bizDate);
|
||||
}
|
||||
|
||||
std::string RunManualDagNodesRequest::getFlowName()const
|
||||
{
|
||||
return flowName_;
|
||||
}
|
||||
|
||||
void RunManualDagNodesRequest::setFlowName(const std::string& flowName)
|
||||
{
|
||||
flowName_ = flowName;
|
||||
setBodyParameter("FlowName", flowName);
|
||||
}
|
||||
|
||||
std::string RunManualDagNodesRequest::getDagParameters()const
|
||||
{
|
||||
return dagParameters_;
|
||||
}
|
||||
|
||||
void RunManualDagNodesRequest::setDagParameters(const std::string& dagParameters)
|
||||
{
|
||||
dagParameters_ = dagParameters;
|
||||
setBodyParameter("DagParameters", dagParameters);
|
||||
}
|
||||
|
||||
std::string RunManualDagNodesRequest::getNodeParameters()const
|
||||
{
|
||||
return nodeParameters_;
|
||||
}
|
||||
|
||||
void RunManualDagNodesRequest::setNodeParameters(const std::string& nodeParameters)
|
||||
{
|
||||
nodeParameters_ = nodeParameters;
|
||||
setBodyParameter("NodeParameters", nodeParameters);
|
||||
}
|
||||
|
||||
51
dataworks-public/src/model/RunManualDagNodesResult.cc
Normal file
51
dataworks-public/src/model/RunManualDagNodesResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/RunManualDagNodesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
RunManualDagNodesResult::RunManualDagNodesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RunManualDagNodesResult::RunManualDagNodesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RunManualDagNodesResult::~RunManualDagNodesResult()
|
||||
{}
|
||||
|
||||
void RunManualDagNodesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DagId"].isNull())
|
||||
dagId_ = std::stol(value["DagId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long RunManualDagNodesResult::getDagId()const
|
||||
{
|
||||
return dagId_;
|
||||
}
|
||||
|
||||
84
dataworks-public/src/model/RunSmokeTestRequest.cc
Normal file
84
dataworks-public/src/model/RunSmokeTestRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/RunSmokeTestRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::RunSmokeTestRequest;
|
||||
|
||||
RunSmokeTestRequest::RunSmokeTestRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "RunSmokeTest")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RunSmokeTestRequest::~RunSmokeTestRequest()
|
||||
{}
|
||||
|
||||
std::string RunSmokeTestRequest::getProjectEnv()const
|
||||
{
|
||||
return projectEnv_;
|
||||
}
|
||||
|
||||
void RunSmokeTestRequest::setProjectEnv(const std::string& projectEnv)
|
||||
{
|
||||
projectEnv_ = projectEnv;
|
||||
setBodyParameter("ProjectEnv", projectEnv);
|
||||
}
|
||||
|
||||
std::string RunSmokeTestRequest::getBizdate()const
|
||||
{
|
||||
return bizdate_;
|
||||
}
|
||||
|
||||
void RunSmokeTestRequest::setBizdate(const std::string& bizdate)
|
||||
{
|
||||
bizdate_ = bizdate;
|
||||
setBodyParameter("Bizdate", bizdate);
|
||||
}
|
||||
|
||||
std::string RunSmokeTestRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void RunSmokeTestRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string RunSmokeTestRequest::getNodeParams()const
|
||||
{
|
||||
return nodeParams_;
|
||||
}
|
||||
|
||||
void RunSmokeTestRequest::setNodeParams(const std::string& nodeParams)
|
||||
{
|
||||
nodeParams_ = nodeParams;
|
||||
setBodyParameter("NodeParams", nodeParams);
|
||||
}
|
||||
|
||||
long RunSmokeTestRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void RunSmokeTestRequest::setNodeId(long nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setBodyParameter("NodeId", std::to_string(nodeId));
|
||||
}
|
||||
|
||||
79
dataworks-public/src/model/RunSmokeTestResult.cc
Normal file
79
dataworks-public/src/model/RunSmokeTestResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/RunSmokeTestResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
RunSmokeTestResult::RunSmokeTestResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RunSmokeTestResult::RunSmokeTestResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RunSmokeTestResult::~RunSmokeTestResult()
|
||||
{}
|
||||
|
||||
void RunSmokeTestResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
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());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
int RunSmokeTestResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long RunSmokeTestResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string RunSmokeTestResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string RunSmokeTestResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool RunSmokeTestResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/TopTenElapsedTimeInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::TopTenElapsedTimeInstanceRequest;
|
||||
|
||||
TopTenElapsedTimeInstanceRequest::TopTenElapsedTimeInstanceRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "TopTenElapsedTimeInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TopTenElapsedTimeInstanceRequest::~TopTenElapsedTimeInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string TopTenElapsedTimeInstanceRequest::getBusinessDate()const
|
||||
{
|
||||
return businessDate_;
|
||||
}
|
||||
|
||||
void TopTenElapsedTimeInstanceRequest::setBusinessDate(const std::string& businessDate)
|
||||
{
|
||||
businessDate_ = businessDate;
|
||||
setBodyParameter("BusinessDate", businessDate);
|
||||
}
|
||||
|
||||
long TopTenElapsedTimeInstanceRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void TopTenElapsedTimeInstanceRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/TopTenElapsedTimeInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
TopTenElapsedTimeInstanceResult::TopTenElapsedTimeInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TopTenElapsedTimeInstanceResult::TopTenElapsedTimeInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TopTenElapsedTimeInstanceResult::~TopTenElapsedTimeInstanceResult()
|
||||
{}
|
||||
|
||||
void TopTenElapsedTimeInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceConsumeTimeRankNode = value["InstanceConsumeTimeRank"];
|
||||
if(!instanceConsumeTimeRankNode["UpdateTime"].isNull())
|
||||
instanceConsumeTimeRank_.updateTime = std::stol(instanceConsumeTimeRankNode["UpdateTime"].asString());
|
||||
auto allConsumeTimeRankNode = instanceConsumeTimeRankNode["ConsumeTimeRank"]["ConsumeTimeRankItem"];
|
||||
for (auto instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem : allConsumeTimeRankNode)
|
||||
{
|
||||
InstanceConsumeTimeRank::ConsumeTimeRankItem consumeTimeRankItemObject;
|
||||
if(!instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["NodeName"].isNull())
|
||||
consumeTimeRankItemObject.nodeName = instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["NodeName"].asString();
|
||||
if(!instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["NodeId"].isNull())
|
||||
consumeTimeRankItemObject.nodeId = std::stol(instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["NodeId"].asString());
|
||||
if(!instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["BusinessDate"].isNull())
|
||||
consumeTimeRankItemObject.businessDate = std::stol(instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["BusinessDate"].asString());
|
||||
if(!instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["Owner"].isNull())
|
||||
consumeTimeRankItemObject.owner = instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["Owner"].asString();
|
||||
if(!instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["Consumed"].isNull())
|
||||
consumeTimeRankItemObject.consumed = std::stol(instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["Consumed"].asString());
|
||||
if(!instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["InstanceId"].isNull())
|
||||
consumeTimeRankItemObject.instanceId = std::stol(instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["InstanceId"].asString());
|
||||
if(!instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["ProgramType"].isNull())
|
||||
consumeTimeRankItemObject.programType = std::stoi(instanceConsumeTimeRankNodeConsumeTimeRankConsumeTimeRankItem["ProgramType"].asString());
|
||||
instanceConsumeTimeRank_.consumeTimeRank.push_back(consumeTimeRankItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TopTenElapsedTimeInstanceResult::InstanceConsumeTimeRank TopTenElapsedTimeInstanceResult::getInstanceConsumeTimeRank()const
|
||||
{
|
||||
return instanceConsumeTimeRank_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/TopTenErrorTimesInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::TopTenErrorTimesInstanceRequest;
|
||||
|
||||
TopTenErrorTimesInstanceRequest::TopTenErrorTimesInstanceRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "TopTenErrorTimesInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TopTenErrorTimesInstanceRequest::~TopTenErrorTimesInstanceRequest()
|
||||
{}
|
||||
|
||||
long TopTenErrorTimesInstanceRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void TopTenErrorTimesInstanceRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
70
dataworks-public/src/model/TopTenErrorTimesInstanceResult.cc
Normal file
70
dataworks-public/src/model/TopTenErrorTimesInstanceResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/TopTenErrorTimesInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
TopTenErrorTimesInstanceResult::TopTenErrorTimesInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TopTenErrorTimesInstanceResult::TopTenErrorTimesInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TopTenErrorTimesInstanceResult::~TopTenErrorTimesInstanceResult()
|
||||
{}
|
||||
|
||||
void TopTenErrorTimesInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceErrorRankNode = value["InstanceErrorRank"];
|
||||
if(!instanceErrorRankNode["UpdateTime"].isNull())
|
||||
instanceErrorRank_.updateTime = std::stol(instanceErrorRankNode["UpdateTime"].asString());
|
||||
auto allErrorRankNode = instanceErrorRankNode["ErrorRank"]["ErrorRankItem"];
|
||||
for (auto instanceErrorRankNodeErrorRankErrorRankItem : allErrorRankNode)
|
||||
{
|
||||
InstanceErrorRank::ErrorRankItem errorRankItemObject;
|
||||
if(!instanceErrorRankNodeErrorRankErrorRankItem["NodeId"].isNull())
|
||||
errorRankItemObject.nodeId = std::stol(instanceErrorRankNodeErrorRankErrorRankItem["NodeId"].asString());
|
||||
if(!instanceErrorRankNodeErrorRankErrorRankItem["NodeName"].isNull())
|
||||
errorRankItemObject.nodeName = instanceErrorRankNodeErrorRankErrorRankItem["NodeName"].asString();
|
||||
if(!instanceErrorRankNodeErrorRankErrorRankItem["Owner"].isNull())
|
||||
errorRankItemObject.owner = instanceErrorRankNodeErrorRankErrorRankItem["Owner"].asString();
|
||||
if(!instanceErrorRankNodeErrorRankErrorRankItem["Count"].isNull())
|
||||
errorRankItemObject.count = std::stoi(instanceErrorRankNodeErrorRankErrorRankItem["Count"].asString());
|
||||
if(!instanceErrorRankNodeErrorRankErrorRankItem["ProjectId"].isNull())
|
||||
errorRankItemObject.projectId = std::stol(instanceErrorRankNodeErrorRankErrorRankItem["ProjectId"].asString());
|
||||
if(!instanceErrorRankNodeErrorRankErrorRankItem["ProgramType"].isNull())
|
||||
errorRankItemObject.programType = std::stoi(instanceErrorRankNodeErrorRankErrorRankItem["ProgramType"].asString());
|
||||
instanceErrorRank_.errorRank.push_back(errorRankItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TopTenErrorTimesInstanceResult::InstanceErrorRank TopTenErrorTimesInstanceResult::getInstanceErrorRank()const
|
||||
{
|
||||
return instanceErrorRank_;
|
||||
}
|
||||
|
||||
84
dataworks-public/src/model/UpdateDataSourceRequest.cc
Normal file
84
dataworks-public/src/model/UpdateDataSourceRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/UpdateDataSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::UpdateDataSourceRequest;
|
||||
|
||||
UpdateDataSourceRequest::UpdateDataSourceRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "UpdateDataSource")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
UpdateDataSourceRequest::~UpdateDataSourceRequest()
|
||||
{}
|
||||
|
||||
int UpdateDataSourceRequest::getEnvType()const
|
||||
{
|
||||
return envType_;
|
||||
}
|
||||
|
||||
void UpdateDataSourceRequest::setEnvType(int envType)
|
||||
{
|
||||
envType_ = envType;
|
||||
setParameter("EnvType", std::to_string(envType));
|
||||
}
|
||||
|
||||
long UpdateDataSourceRequest::getDataSourceId()const
|
||||
{
|
||||
return dataSourceId_;
|
||||
}
|
||||
|
||||
void UpdateDataSourceRequest::setDataSourceId(long dataSourceId)
|
||||
{
|
||||
dataSourceId_ = dataSourceId;
|
||||
setParameter("DataSourceId", std::to_string(dataSourceId));
|
||||
}
|
||||
|
||||
std::string UpdateDataSourceRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateDataSourceRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string UpdateDataSourceRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void UpdateDataSourceRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string UpdateDataSourceRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void UpdateDataSourceRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
65
dataworks-public/src/model/UpdateDataSourceResult.cc
Normal file
65
dataworks-public/src/model/UpdateDataSourceResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/UpdateDataSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
UpdateDataSourceResult::UpdateDataSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateDataSourceResult::UpdateDataSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateDataSourceResult::~UpdateDataSourceResult()
|
||||
{}
|
||||
|
||||
void UpdateDataSourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = value["HttpStatusCode"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateDataSourceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
bool UpdateDataSourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool UpdateDataSourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user