Generated 2020-05-18 for dataworks-public.
This commit is contained in:
@@ -4371,6 +4371,42 @@ Dataworks_publicClient::ListCalcEnginesOutcomeCallable Dataworks_publicClient::l
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListColumnWithLabelPermissionOutcome Dataworks_publicClient::listColumnWithLabelPermission(const ListColumnWithLabelPermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListColumnWithLabelPermissionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListColumnWithLabelPermissionOutcome(ListColumnWithLabelPermissionResult(outcome.result()));
|
||||
else
|
||||
return ListColumnWithLabelPermissionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::listColumnWithLabelPermissionAsync(const ListColumnWithLabelPermissionRequest& request, const ListColumnWithLabelPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listColumnWithLabelPermission(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListColumnWithLabelPermissionOutcomeCallable Dataworks_publicClient::listColumnWithLabelPermissionCallable(const ListColumnWithLabelPermissionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListColumnWithLabelPermissionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listColumnWithLabelPermission(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListConnectionsOutcome Dataworks_publicClient::listConnections(const ListConnectionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5595,6 +5631,42 @@ Dataworks_publicClient::ListSuccessInstanceAmountOutcomeCallable Dataworks_publi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListTableGranteesOutcome Dataworks_publicClient::listTableGrantees(const ListTableGranteesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTableGranteesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTableGranteesOutcome(ListTableGranteesResult(outcome.result()));
|
||||
else
|
||||
return ListTableGranteesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::listTableGranteesAsync(const ListTableGranteesRequest& request, const ListTableGranteesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTableGrantees(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListTableGranteesOutcomeCallable Dataworks_publicClient::listTableGranteesCallable(const ListTableGranteesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTableGranteesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTableGrantees(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListTableLevelOutcome Dataworks_publicClient::listTableLevel(const ListTableLevelRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5667,6 +5739,42 @@ Dataworks_publicClient::ListTableThemeOutcomeCallable Dataworks_publicClient::li
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListTableWithPermissionOutcome Dataworks_publicClient::listTableWithPermission(const ListTableWithPermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListTableWithPermissionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListTableWithPermissionOutcome(ListTableWithPermissionResult(outcome.result()));
|
||||
else
|
||||
return ListTableWithPermissionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::listTableWithPermissionAsync(const ListTableWithPermissionRequest& request, const ListTableWithPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listTableWithPermission(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListTableWithPermissionOutcomeCallable Dataworks_publicClient::listTableWithPermissionCallable(const ListTableWithPermissionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListTableWithPermissionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listTableWithPermission(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::ListTopicsOutcome Dataworks_publicClient::listTopics(const ListTopicsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5739,6 +5847,42 @@ Dataworks_publicClient::PublishDataServiceApiOutcomeCallable Dataworks_publicCli
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::QueryPublicModelEngineOutcome Dataworks_publicClient::queryPublicModelEngine(const QueryPublicModelEngineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryPublicModelEngineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryPublicModelEngineOutcome(QueryPublicModelEngineResult(outcome.result()));
|
||||
else
|
||||
return QueryPublicModelEngineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::queryPublicModelEngineAsync(const QueryPublicModelEngineRequest& request, const QueryPublicModelEngineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryPublicModelEngine(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::QueryPublicModelEngineOutcomeCallable Dataworks_publicClient::queryPublicModelEngineCallable(const QueryPublicModelEngineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryPublicModelEngineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryPublicModelEngine(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::RemoveProjectMemberFromRoleOutcome Dataworks_publicClient::removeProjectMemberFromRole(const RemoveProjectMemberFromRoleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6747,6 +6891,78 @@ Dataworks_publicClient::UpdateMetaTableIntroWikiOutcomeCallable Dataworks_public
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::UpdateNodeOwnerOutcome Dataworks_publicClient::updateNodeOwner(const UpdateNodeOwnerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateNodeOwnerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateNodeOwnerOutcome(UpdateNodeOwnerResult(outcome.result()));
|
||||
else
|
||||
return UpdateNodeOwnerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::updateNodeOwnerAsync(const UpdateNodeOwnerRequest& request, const UpdateNodeOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateNodeOwner(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::UpdateNodeOwnerOutcomeCallable Dataworks_publicClient::updateNodeOwnerCallable(const UpdateNodeOwnerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateNodeOwnerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateNodeOwner(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::UpdateNodeRunModeOutcome Dataworks_publicClient::updateNodeRunMode(const UpdateNodeRunModeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateNodeRunModeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateNodeRunModeOutcome(UpdateNodeRunModeResult(outcome.result()));
|
||||
else
|
||||
return UpdateNodeRunModeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dataworks_publicClient::updateNodeRunModeAsync(const UpdateNodeRunModeRequest& request, const UpdateNodeRunModeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateNodeRunMode(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dataworks_publicClient::UpdateNodeRunModeOutcomeCallable Dataworks_publicClient::updateNodeRunModeCallable(const UpdateNodeRunModeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateNodeRunModeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateNodeRunMode(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dataworks_publicClient::UpdateQualityFollowerOutcome Dataworks_publicClient::updateQualityFollower(const UpdateQualityFollowerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -49,6 +49,17 @@ void CreateFileRequest::setDependentNodeIdList(const std::string& dependentNodeI
|
||||
setBodyParameter("DependentNodeIdList", dependentNodeIdList);
|
||||
}
|
||||
|
||||
bool CreateFileRequest::getAutoParse()const
|
||||
{
|
||||
return autoParse_;
|
||||
}
|
||||
|
||||
void CreateFileRequest::setAutoParse(bool autoParse)
|
||||
{
|
||||
autoParse_ = autoParse;
|
||||
setBodyParameter("AutoParse", autoParse ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateFileRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
|
||||
@@ -81,6 +81,8 @@ void GetFileResult::parse(const std::string &payload)
|
||||
data_.file.deletedStatus = fileNode["DeletedStatus"].asString();
|
||||
if(!fileNode["BusinessId"].isNull())
|
||||
data_.file.businessId = std::stol(fileNode["BusinessId"].asString());
|
||||
if(!fileNode["AutoParse"].isNull())
|
||||
data_.file.autoParse = fileNode["AutoParse"].asString() == "true";
|
||||
auto nodeConfigurationNode = dataNode["NodeConfiguration"];
|
||||
if(!nodeConfigurationNode["AutoRerunTimes"].isNull())
|
||||
data_.nodeConfiguration.autoRerunTimes = std::stoi(nodeConfigurationNode["AutoRerunTimes"].asString());
|
||||
@@ -112,6 +114,8 @@ void GetFileResult::parse(const std::string &payload)
|
||||
Data::NodeConfiguration::NodeInputOutput nodeInputOutputObject;
|
||||
if(!nodeConfigurationNodeInputListNodeInputOutput["Input"].isNull())
|
||||
nodeInputOutputObject.input = nodeConfigurationNodeInputListNodeInputOutput["Input"].asString();
|
||||
if(!nodeConfigurationNodeInputListNodeInputOutput["ParseType"].isNull())
|
||||
nodeInputOutputObject.parseType = nodeConfigurationNodeInputListNodeInputOutput["ParseType"].asString();
|
||||
data_.nodeConfiguration.inputList.push_back(nodeInputOutputObject);
|
||||
}
|
||||
auto allOutputListNode = nodeConfigurationNode["OutputList"]["NodeInputOutput"];
|
||||
|
||||
@@ -88,6 +88,8 @@ void GetMetaTableBasicInfoResult::parse(const std::string &payload)
|
||||
data_.viewCount = std::stol(dataNode["ViewCount"].asString());
|
||||
if(!dataNode["FavoriteCount"].isNull())
|
||||
data_.favoriteCount = std::stol(dataNode["FavoriteCount"].asString());
|
||||
if(!dataNode["IsView"].isNull())
|
||||
data_.isView = dataNode["IsView"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
|
||||
@@ -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/ListColumnWithLabelPermissionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListColumnWithLabelPermissionRequest;
|
||||
|
||||
ListColumnWithLabelPermissionRequest::ListColumnWithLabelPermissionRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListColumnWithLabelPermission")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListColumnWithLabelPermissionRequest::~ListColumnWithLabelPermissionRequest()
|
||||
{}
|
||||
|
||||
std::string ListColumnWithLabelPermissionRequest::getMaxComputeProjectName()const
|
||||
{
|
||||
return maxComputeProjectName_;
|
||||
}
|
||||
|
||||
void ListColumnWithLabelPermissionRequest::setMaxComputeProjectName(const std::string& maxComputeProjectName)
|
||||
{
|
||||
maxComputeProjectName_ = maxComputeProjectName;
|
||||
setParameter("MaxComputeProjectName", maxComputeProjectName);
|
||||
}
|
||||
|
||||
std::string ListColumnWithLabelPermissionRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void ListColumnWithLabelPermissionRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
std::string ListColumnWithLabelPermissionRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void ListColumnWithLabelPermissionRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
int ListColumnWithLabelPermissionRequest::getWorkspaceId()const
|
||||
{
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void ListColumnWithLabelPermissionRequest::setWorkspaceId(int workspaceId)
|
||||
{
|
||||
workspaceId_ = workspaceId;
|
||||
setParameter("WorkspaceId", std::to_string(workspaceId));
|
||||
}
|
||||
|
||||
std::string ListColumnWithLabelPermissionRequest::getEngineType()const
|
||||
{
|
||||
return engineType_;
|
||||
}
|
||||
|
||||
void ListColumnWithLabelPermissionRequest::setEngineType(const std::string& engineType)
|
||||
{
|
||||
engineType_ = engineType;
|
||||
setParameter("EngineType", engineType);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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/ListColumnWithLabelPermissionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListColumnWithLabelPermissionResult::ListColumnWithLabelPermissionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListColumnWithLabelPermissionResult::ListColumnWithLabelPermissionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListColumnWithLabelPermissionResult::~ListColumnWithLabelPermissionResult()
|
||||
{}
|
||||
|
||||
void ListColumnWithLabelPermissionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allColumnMetaNode = value["ColumnMeta"]["ColumnMetaItem"];
|
||||
for (auto valueColumnMetaColumnMetaItem : allColumnMetaNode)
|
||||
{
|
||||
ColumnMetaItem columnMetaObject;
|
||||
if(!valueColumnMetaColumnMetaItem["Guid"].isNull())
|
||||
columnMetaObject.guid = valueColumnMetaColumnMetaItem["Guid"].asString();
|
||||
if(!valueColumnMetaColumnMetaItem["Name"].isNull())
|
||||
columnMetaObject.name = valueColumnMetaColumnMetaItem["Name"].asString();
|
||||
if(!valueColumnMetaColumnMetaItem["Comment"].isNull())
|
||||
columnMetaObject.comment = valueColumnMetaColumnMetaItem["Comment"].asString();
|
||||
if(!valueColumnMetaColumnMetaItem["SecurityLevel"].isNull())
|
||||
columnMetaObject.securityLevel = valueColumnMetaColumnMetaItem["SecurityLevel"].asString();
|
||||
if(!valueColumnMetaColumnMetaItem["Deadline"].isNull())
|
||||
columnMetaObject.deadline = valueColumnMetaColumnMetaItem["Deadline"].asString();
|
||||
if(!valueColumnMetaColumnMetaItem["GrantedLabel"].isNull())
|
||||
columnMetaObject.grantedLabel = valueColumnMetaColumnMetaItem["GrantedLabel"].asString();
|
||||
columnMeta_.push_back(columnMetaObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListColumnWithLabelPermissionResult::ColumnMetaItem> ListColumnWithLabelPermissionResult::getColumnMeta()const
|
||||
{
|
||||
return columnMeta_;
|
||||
}
|
||||
|
||||
@@ -90,6 +90,8 @@ void ListFilesResult::parse(const std::string &payload)
|
||||
fileObject.fileId = std::stol(dataNodeFilesFile["FileId"].asString());
|
||||
if(!dataNodeFilesFile["BusinessId"].isNull())
|
||||
fileObject.businessId = std::stol(dataNodeFilesFile["BusinessId"].asString());
|
||||
if(!dataNodeFilesFile["AutoParse"].isNull())
|
||||
fileObject.autoParse = dataNodeFilesFile["AutoParse"].asString() == "true";
|
||||
data_.files.push_back(fileObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
73
dataworks-public/src/model/ListTableGranteesRequest.cc
Normal file
73
dataworks-public/src/model/ListTableGranteesRequest.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/ListTableGranteesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListTableGranteesRequest;
|
||||
|
||||
ListTableGranteesRequest::ListTableGranteesRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListTableGrantees")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTableGranteesRequest::~ListTableGranteesRequest()
|
||||
{}
|
||||
|
||||
std::string ListTableGranteesRequest::getMaxComputeProjectName()const
|
||||
{
|
||||
return maxComputeProjectName_;
|
||||
}
|
||||
|
||||
void ListTableGranteesRequest::setMaxComputeProjectName(const std::string& maxComputeProjectName)
|
||||
{
|
||||
maxComputeProjectName_ = maxComputeProjectName;
|
||||
setParameter("MaxComputeProjectName", maxComputeProjectName);
|
||||
}
|
||||
|
||||
std::string ListTableGranteesRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void ListTableGranteesRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
int ListTableGranteesRequest::getWorkspaceId()const
|
||||
{
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void ListTableGranteesRequest::setWorkspaceId(int workspaceId)
|
||||
{
|
||||
workspaceId_ = workspaceId;
|
||||
setParameter("WorkspaceId", std::to_string(workspaceId));
|
||||
}
|
||||
|
||||
std::string ListTableGranteesRequest::getEngineType()const
|
||||
{
|
||||
return engineType_;
|
||||
}
|
||||
|
||||
void ListTableGranteesRequest::setEngineType(const std::string& engineType)
|
||||
{
|
||||
engineType_ = engineType;
|
||||
setParameter("EngineType", engineType);
|
||||
}
|
||||
|
||||
64
dataworks-public/src/model/ListTableGranteesResult.cc
Normal file
64
dataworks-public/src/model/ListTableGranteesResult.cc
Normal file
@@ -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/ListTableGranteesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListTableGranteesResult::ListTableGranteesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTableGranteesResult::ListTableGranteesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTableGranteesResult::~ListTableGranteesResult()
|
||||
{}
|
||||
|
||||
void ListTableGranteesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGranteeNode = value["Grantee"]["GranteeItem"];
|
||||
for (auto valueGranteeGranteeItem : allGranteeNode)
|
||||
{
|
||||
GranteeItem granteeObject;
|
||||
if(!valueGranteeGranteeItem["GranteeTypeDescription"].isNull())
|
||||
granteeObject.granteeTypeDescription = valueGranteeGranteeItem["GranteeTypeDescription"].asString();
|
||||
if(!valueGranteeGranteeItem["GranteeName"].isNull())
|
||||
granteeObject.granteeName = valueGranteeGranteeItem["GranteeName"].asString();
|
||||
if(!valueGranteeGranteeItem["GranteeId"].isNull())
|
||||
granteeObject.granteeId = valueGranteeGranteeItem["GranteeId"].asString();
|
||||
auto allActions = value["Actions"]["Actions"];
|
||||
for (auto value : allActions)
|
||||
granteeObject.actions.push_back(value.asString());
|
||||
grantee_.push_back(granteeObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListTableGranteesResult::GranteeItem> ListTableGranteesResult::getGrantee()const
|
||||
{
|
||||
return grantee_;
|
||||
}
|
||||
|
||||
106
dataworks-public/src/model/ListTableWithPermissionRequest.cc
Normal file
106
dataworks-public/src/model/ListTableWithPermissionRequest.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/ListTableWithPermissionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::ListTableWithPermissionRequest;
|
||||
|
||||
ListTableWithPermissionRequest::ListTableWithPermissionRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "ListTableWithPermission")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTableWithPermissionRequest::~ListTableWithPermissionRequest()
|
||||
{}
|
||||
|
||||
std::string ListTableWithPermissionRequest::getMaxComputeProjectName()const
|
||||
{
|
||||
return maxComputeProjectName_;
|
||||
}
|
||||
|
||||
void ListTableWithPermissionRequest::setMaxComputeProjectName(const std::string& maxComputeProjectName)
|
||||
{
|
||||
maxComputeProjectName_ = maxComputeProjectName;
|
||||
setParameter("MaxComputeProjectName", maxComputeProjectName);
|
||||
}
|
||||
|
||||
int ListTableWithPermissionRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListTableWithPermissionRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string ListTableWithPermissionRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void ListTableWithPermissionRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
int ListTableWithPermissionRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListTableWithPermissionRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListTableWithPermissionRequest::getKeyword()const
|
||||
{
|
||||
return keyword_;
|
||||
}
|
||||
|
||||
void ListTableWithPermissionRequest::setKeyword(const std::string& keyword)
|
||||
{
|
||||
keyword_ = keyword;
|
||||
setParameter("Keyword", keyword);
|
||||
}
|
||||
|
||||
int ListTableWithPermissionRequest::getWorkspaceId()const
|
||||
{
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void ListTableWithPermissionRequest::setWorkspaceId(int workspaceId)
|
||||
{
|
||||
workspaceId_ = workspaceId;
|
||||
setParameter("WorkspaceId", std::to_string(workspaceId));
|
||||
}
|
||||
|
||||
std::string ListTableWithPermissionRequest::getEngineType()const
|
||||
{
|
||||
return engineType_;
|
||||
}
|
||||
|
||||
void ListTableWithPermissionRequest::setEngineType(const std::string& engineType)
|
||||
{
|
||||
engineType_ = engineType;
|
||||
setParameter("EngineType", engineType);
|
||||
}
|
||||
|
||||
77
dataworks-public/src/model/ListTableWithPermissionResult.cc
Normal file
77
dataworks-public/src/model/ListTableWithPermissionResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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/ListTableWithPermissionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
ListTableWithPermissionResult::ListTableWithPermissionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTableWithPermissionResult::ListTableWithPermissionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTableWithPermissionResult::~ListTableWithPermissionResult()
|
||||
{}
|
||||
|
||||
void ListTableWithPermissionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto tablesNode = value["Tables"];
|
||||
if(!tablesNode["PageNumber"].isNull())
|
||||
tables_.pageNumber = std::stoi(tablesNode["PageNumber"].asString());
|
||||
if(!tablesNode["PageSize"].isNull())
|
||||
tables_.pageSize = std::stoi(tablesNode["PageSize"].asString());
|
||||
if(!tablesNode["TotalCount"].isNull())
|
||||
tables_.totalCount = std::stoi(tablesNode["TotalCount"].asString());
|
||||
auto allTableListNode = tablesNode["TableList"]["TableListItem"];
|
||||
for (auto tablesNodeTableListTableListItem : allTableListNode)
|
||||
{
|
||||
Tables::TableListItem tableListItemObject;
|
||||
if(!tablesNodeTableListTableListItem["ProjectGuid"].isNull())
|
||||
tableListItemObject.projectGuid = tablesNodeTableListTableListItem["ProjectGuid"].asString();
|
||||
if(!tablesNodeTableListTableListItem["Guid"].isNull())
|
||||
tableListItemObject.guid = tablesNodeTableListTableListItem["Guid"].asString();
|
||||
if(!tablesNodeTableListTableListItem["Name"].isNull())
|
||||
tableListItemObject.name = tablesNodeTableListTableListItem["Name"].asString();
|
||||
if(!tablesNodeTableListTableListItem["NameCn"].isNull())
|
||||
tableListItemObject.nameCn = tablesNodeTableListTableListItem["NameCn"].asString();
|
||||
if(!tablesNodeTableListTableListItem["Comment"].isNull())
|
||||
tableListItemObject.comment = tablesNodeTableListTableListItem["Comment"].asString();
|
||||
if(!tablesNodeTableListTableListItem["Owner"].isNull())
|
||||
tableListItemObject.owner = tablesNodeTableListTableListItem["Owner"].asString();
|
||||
auto allAction = value["Action"]["Action"];
|
||||
for (auto value : allAction)
|
||||
tableListItemObject.action.push_back(value.asString());
|
||||
tables_.tableList.push_back(tableListItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ListTableWithPermissionResult::Tables ListTableWithPermissionResult::getTables()const
|
||||
{
|
||||
return tables_;
|
||||
}
|
||||
|
||||
62
dataworks-public/src/model/QueryPublicModelEngineRequest.cc
Normal file
62
dataworks-public/src/model/QueryPublicModelEngineRequest.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/QueryPublicModelEngineRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::QueryPublicModelEngineRequest;
|
||||
|
||||
QueryPublicModelEngineRequest::QueryPublicModelEngineRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "QueryPublicModelEngine")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryPublicModelEngineRequest::~QueryPublicModelEngineRequest()
|
||||
{}
|
||||
|
||||
std::string QueryPublicModelEngineRequest::getTenantId()const
|
||||
{
|
||||
return tenantId_;
|
||||
}
|
||||
|
||||
void QueryPublicModelEngineRequest::setTenantId(const std::string& tenantId)
|
||||
{
|
||||
tenantId_ = tenantId;
|
||||
setBodyParameter("TenantId", tenantId);
|
||||
}
|
||||
|
||||
std::string QueryPublicModelEngineRequest::getText()const
|
||||
{
|
||||
return text_;
|
||||
}
|
||||
|
||||
void QueryPublicModelEngineRequest::setText(const std::string& text)
|
||||
{
|
||||
text_ = text;
|
||||
setBodyParameter("Text", text);
|
||||
}
|
||||
|
||||
std::string QueryPublicModelEngineRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void QueryPublicModelEngineRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
52
dataworks-public/src/model/QueryPublicModelEngineResult.cc
Normal file
52
dataworks-public/src/model/QueryPublicModelEngineResult.cc
Normal file
@@ -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/QueryPublicModelEngineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
QueryPublicModelEngineResult::QueryPublicModelEngineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryPublicModelEngineResult::QueryPublicModelEngineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryPublicModelEngineResult::~QueryPublicModelEngineResult()
|
||||
{}
|
||||
|
||||
void QueryPublicModelEngineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allReturnValue = value["ReturnValue"]["DetailDTO"];
|
||||
for (const auto &item : allReturnValue)
|
||||
returnValue_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryPublicModelEngineResult::getReturnValue()const
|
||||
{
|
||||
return returnValue_;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,17 @@ void UpdateFileRequest::setDependentNodeIdList(const std::string& dependentNodeI
|
||||
setBodyParameter("DependentNodeIdList", dependentNodeIdList);
|
||||
}
|
||||
|
||||
bool UpdateFileRequest::getAutoParse()const
|
||||
{
|
||||
return autoParse_;
|
||||
}
|
||||
|
||||
void UpdateFileRequest::setAutoParse(bool autoParse)
|
||||
{
|
||||
autoParse_ = autoParse;
|
||||
setBodyParameter("AutoParse", autoParse ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateFileRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
|
||||
62
dataworks-public/src/model/UpdateNodeOwnerRequest.cc
Normal file
62
dataworks-public/src/model/UpdateNodeOwnerRequest.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/UpdateNodeOwnerRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::UpdateNodeOwnerRequest;
|
||||
|
||||
UpdateNodeOwnerRequest::UpdateNodeOwnerRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "UpdateNodeOwner")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateNodeOwnerRequest::~UpdateNodeOwnerRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateNodeOwnerRequest::getProjectEnv()const
|
||||
{
|
||||
return projectEnv_;
|
||||
}
|
||||
|
||||
void UpdateNodeOwnerRequest::setProjectEnv(const std::string& projectEnv)
|
||||
{
|
||||
projectEnv_ = projectEnv;
|
||||
setBodyParameter("ProjectEnv", projectEnv);
|
||||
}
|
||||
|
||||
std::string UpdateNodeOwnerRequest::getOwner()const
|
||||
{
|
||||
return owner_;
|
||||
}
|
||||
|
||||
void UpdateNodeOwnerRequest::setOwner(const std::string& owner)
|
||||
{
|
||||
owner_ = owner;
|
||||
setBodyParameter("Owner", owner);
|
||||
}
|
||||
|
||||
long UpdateNodeOwnerRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void UpdateNodeOwnerRequest::setNodeId(long nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setBodyParameter("NodeId", std::to_string(nodeId));
|
||||
}
|
||||
|
||||
79
dataworks-public/src/model/UpdateNodeOwnerResult.cc
Normal file
79
dataworks-public/src/model/UpdateNodeOwnerResult.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/UpdateNodeOwnerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
UpdateNodeOwnerResult::UpdateNodeOwnerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateNodeOwnerResult::UpdateNodeOwnerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateNodeOwnerResult::~UpdateNodeOwnerResult()
|
||||
{}
|
||||
|
||||
void UpdateNodeOwnerResult::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_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
int UpdateNodeOwnerResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
bool UpdateNodeOwnerResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateNodeOwnerResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateNodeOwnerResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool UpdateNodeOwnerResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
dataworks-public/src/model/UpdateNodeRunModeRequest.cc
Normal file
62
dataworks-public/src/model/UpdateNodeRunModeRequest.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/UpdateNodeRunModeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dataworks_public::Model::UpdateNodeRunModeRequest;
|
||||
|
||||
UpdateNodeRunModeRequest::UpdateNodeRunModeRequest() :
|
||||
RpcServiceRequest("dataworks-public", "2020-05-18", "UpdateNodeRunMode")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateNodeRunModeRequest::~UpdateNodeRunModeRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateNodeRunModeRequest::getProjectEnv()const
|
||||
{
|
||||
return projectEnv_;
|
||||
}
|
||||
|
||||
void UpdateNodeRunModeRequest::setProjectEnv(const std::string& projectEnv)
|
||||
{
|
||||
projectEnv_ = projectEnv;
|
||||
setBodyParameter("ProjectEnv", projectEnv);
|
||||
}
|
||||
|
||||
int UpdateNodeRunModeRequest::getNodeType()const
|
||||
{
|
||||
return nodeType_;
|
||||
}
|
||||
|
||||
void UpdateNodeRunModeRequest::setNodeType(int nodeType)
|
||||
{
|
||||
nodeType_ = nodeType;
|
||||
setBodyParameter("NodeType", std::to_string(nodeType));
|
||||
}
|
||||
|
||||
long UpdateNodeRunModeRequest::getNodeId()const
|
||||
{
|
||||
return nodeId_;
|
||||
}
|
||||
|
||||
void UpdateNodeRunModeRequest::setNodeId(long nodeId)
|
||||
{
|
||||
nodeId_ = nodeId;
|
||||
setBodyParameter("NodeId", std::to_string(nodeId));
|
||||
}
|
||||
|
||||
79
dataworks-public/src/model/UpdateNodeRunModeResult.cc
Normal file
79
dataworks-public/src/model/UpdateNodeRunModeResult.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/UpdateNodeRunModeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dataworks_public;
|
||||
using namespace AlibabaCloud::Dataworks_public::Model;
|
||||
|
||||
UpdateNodeRunModeResult::UpdateNodeRunModeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateNodeRunModeResult::UpdateNodeRunModeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateNodeRunModeResult::~UpdateNodeRunModeResult()
|
||||
{}
|
||||
|
||||
void UpdateNodeRunModeResult::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_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
int UpdateNodeRunModeResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
bool UpdateNodeRunModeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UpdateNodeRunModeResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateNodeRunModeResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool UpdateNodeRunModeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user