diff --git a/CHANGELOG b/CHANGELOG index 7f3a449e6..b171f3483 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-05-19 Version: 1.36.746 +- Generated 2020-05-18 for `dataworks-public`. + 2021-05-19 Version: 1.36.745 - Update API. diff --git a/VERSION b/VERSION index 70b331103..7378af09e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.745 \ No newline at end of file +1.36.746 \ No newline at end of file diff --git a/dataworks-public/CMakeLists.txt b/dataworks-public/CMakeLists.txt index 93cdb1ed3..a4279ad53 100644 --- a/dataworks-public/CMakeLists.txt +++ b/dataworks-public/CMakeLists.txt @@ -395,6 +395,10 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/UpdateMetaTableResult.h include/alibabacloud/dataworks-public/model/UpdateMetaTableIntroWikiRequest.h include/alibabacloud/dataworks-public/model/UpdateMetaTableIntroWikiResult.h + include/alibabacloud/dataworks-public/model/UpdateNodeOwnerRequest.h + include/alibabacloud/dataworks-public/model/UpdateNodeOwnerResult.h + include/alibabacloud/dataworks-public/model/UpdateNodeRunModeRequest.h + include/alibabacloud/dataworks-public/model/UpdateNodeRunModeResult.h include/alibabacloud/dataworks-public/model/UpdateQualityFollowerRequest.h include/alibabacloud/dataworks-public/model/UpdateQualityFollowerResult.h include/alibabacloud/dataworks-public/model/UpdateQualityRuleRequest.h @@ -790,6 +794,10 @@ set(dataworks-public_src src/model/UpdateMetaTableResult.cc src/model/UpdateMetaTableIntroWikiRequest.cc src/model/UpdateMetaTableIntroWikiResult.cc + src/model/UpdateNodeOwnerRequest.cc + src/model/UpdateNodeOwnerResult.cc + src/model/UpdateNodeRunModeRequest.cc + src/model/UpdateNodeRunModeResult.cc src/model/UpdateQualityFollowerRequest.cc src/model/UpdateQualityFollowerResult.cc src/model/UpdateQualityRuleRequest.cc diff --git a/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h b/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h index 27798c300..53f49cefb 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h @@ -396,6 +396,10 @@ #include "model/UpdateMetaTableResult.h" #include "model/UpdateMetaTableIntroWikiRequest.h" #include "model/UpdateMetaTableIntroWikiResult.h" +#include "model/UpdateNodeOwnerRequest.h" +#include "model/UpdateNodeOwnerResult.h" +#include "model/UpdateNodeRunModeRequest.h" +#include "model/UpdateNodeRunModeResult.h" #include "model/UpdateQualityFollowerRequest.h" #include "model/UpdateQualityFollowerResult.h" #include "model/UpdateQualityRuleRequest.h" @@ -984,6 +988,12 @@ namespace AlibabaCloud typedef Outcome UpdateMetaTableIntroWikiOutcome; typedef std::future UpdateMetaTableIntroWikiOutcomeCallable; typedef std::function&)> UpdateMetaTableIntroWikiAsyncHandler; + typedef Outcome UpdateNodeOwnerOutcome; + typedef std::future UpdateNodeOwnerOutcomeCallable; + typedef std::function&)> UpdateNodeOwnerAsyncHandler; + typedef Outcome UpdateNodeRunModeOutcome; + typedef std::future UpdateNodeRunModeOutcomeCallable; + typedef std::function&)> UpdateNodeRunModeAsyncHandler; typedef Outcome UpdateQualityFollowerOutcome; typedef std::future UpdateQualityFollowerOutcomeCallable; typedef std::function&)> UpdateQualityFollowerAsyncHandler; @@ -1577,6 +1587,12 @@ namespace AlibabaCloud UpdateMetaTableIntroWikiOutcome updateMetaTableIntroWiki(const Model::UpdateMetaTableIntroWikiRequest &request)const; void updateMetaTableIntroWikiAsync(const Model::UpdateMetaTableIntroWikiRequest& request, const UpdateMetaTableIntroWikiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateMetaTableIntroWikiOutcomeCallable updateMetaTableIntroWikiCallable(const Model::UpdateMetaTableIntroWikiRequest& request) const; + UpdateNodeOwnerOutcome updateNodeOwner(const Model::UpdateNodeOwnerRequest &request)const; + void updateNodeOwnerAsync(const Model::UpdateNodeOwnerRequest& request, const UpdateNodeOwnerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateNodeOwnerOutcomeCallable updateNodeOwnerCallable(const Model::UpdateNodeOwnerRequest& request) const; + UpdateNodeRunModeOutcome updateNodeRunMode(const Model::UpdateNodeRunModeRequest &request)const; + void updateNodeRunModeAsync(const Model::UpdateNodeRunModeRequest& request, const UpdateNodeRunModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateNodeRunModeOutcomeCallable updateNodeRunModeCallable(const Model::UpdateNodeRunModeRequest& request) const; UpdateQualityFollowerOutcome updateQualityFollower(const Model::UpdateQualityFollowerRequest &request)const; void updateQualityFollowerAsync(const Model::UpdateQualityFollowerRequest& request, const UpdateQualityFollowerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateQualityFollowerOutcomeCallable updateQualityFollowerCallable(const Model::UpdateQualityFollowerRequest& request) const; diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateFileRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateFileRequest.h index 5763e1dab..35910d4bb 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateFileRequest.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateFileRequest.h @@ -81,6 +81,8 @@ namespace AlibabaCloud void setFileFolderPath(const std::string& fileFolderPath); std::string getFileDescription()const; void setFileDescription(const std::string& fileDescription); + bool getAutoParsing()const; + void setAutoParsing(bool autoParsing); private: int fileType_; @@ -106,6 +108,7 @@ namespace AlibabaCloud std::string dependentType_; std::string fileFolderPath_; std::string fileDescription_; + bool autoParsing_; }; } diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/GetFileResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/GetFileResult.h index dea34e81e..f63888612 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/GetFileResult.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/GetFileResult.h @@ -53,6 +53,7 @@ namespace AlibabaCloud long nodeId; int commitStatus; std::string deletedStatus; + bool autoParsing; std::string fileFolderId; long bizId; long businessId; @@ -62,6 +63,7 @@ namespace AlibabaCloud struct NodeInputOutput { std::string input; + std::string parseType; }; struct NodeInputOutput1 { diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListFilesResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListFilesResult.h index 687adea78..57989d137 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/ListFilesResult.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListFilesResult.h @@ -53,6 +53,7 @@ namespace AlibabaCloud long nodeId; int commitStatus; long fileId; + bool autoParsing; std::string fileFolderId; long bizId; long businessId; diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateFileRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateFileRequest.h index a0eef3eb7..af87d218d 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateFileRequest.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateFileRequest.h @@ -81,6 +81,8 @@ namespace AlibabaCloud void setFileFolderPath(const std::string& fileFolderPath); std::string getFileDescription()const; void setFileDescription(const std::string& fileDescription); + bool getAutoParsing()const; + void setAutoParsing(bool autoParsing); private: std::string outputList_; @@ -106,6 +108,7 @@ namespace AlibabaCloud std::string dependentType_; std::string fileFolderPath_; std::string fileDescription_; + bool autoParsing_; }; } diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeOwnerRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeOwnerRequest.h new file mode 100644 index 000000000..3eb61d2dd --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeOwnerRequest.h @@ -0,0 +1,54 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATENODEOWNERREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATENODEOWNERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT UpdateNodeOwnerRequest : public RpcServiceRequest + { + + public: + UpdateNodeOwnerRequest(); + ~UpdateNodeOwnerRequest(); + + std::string getProjectEnv()const; + void setProjectEnv(const std::string& projectEnv); + long getNodeId()const; + void setNodeId(long nodeId); + std::string getUserId()const; + void setUserId(const std::string& userId); + + private: + std::string projectEnv_; + long nodeId_; + std::string userId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATENODEOWNERREQUEST_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeOwnerResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeOwnerResult.h new file mode 100644 index 000000000..e16c2571a --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeOwnerResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATENODEOWNERRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATENODEOWNERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT UpdateNodeOwnerResult : public ServiceResult + { + public: + + + UpdateNodeOwnerResult(); + explicit UpdateNodeOwnerResult(const std::string &payload); + ~UpdateNodeOwnerResult(); + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATENODEOWNERRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeRunModeRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeRunModeRequest.h new file mode 100644 index 000000000..4d3d3ad11 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeRunModeRequest.h @@ -0,0 +1,54 @@ +/* + * 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. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATENODERUNMODEREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATENODERUNMODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT UpdateNodeRunModeRequest : public RpcServiceRequest + { + + public: + UpdateNodeRunModeRequest(); + ~UpdateNodeRunModeRequest(); + + std::string getProjectEnv()const; + void setProjectEnv(const std::string& projectEnv); + int getSchedulerType()const; + void setSchedulerType(int schedulerType); + long getNodeId()const; + void setNodeId(long nodeId); + + private: + std::string projectEnv_; + int schedulerType_; + long nodeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATENODERUNMODEREQUEST_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeRunModeResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeRunModeResult.h new file mode 100644 index 000000000..17168fe9d --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeRunModeResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATENODERUNMODERESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATENODERUNMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT UpdateNodeRunModeResult : public ServiceResult + { + public: + + + UpdateNodeRunModeResult(); + explicit UpdateNodeRunModeResult(const std::string &payload); + ~UpdateNodeRunModeResult(); + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UPDATENODERUNMODERESULT_H_ \ No newline at end of file diff --git a/dataworks-public/src/Dataworks-publicClient.cc b/dataworks-public/src/Dataworks-publicClient.cc index a9fad2a8d..4209457e2 100644 --- a/dataworks-public/src/Dataworks-publicClient.cc +++ b/dataworks-public/src/Dataworks-publicClient.cc @@ -6783,6 +6783,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& 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>( + [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& 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>( + [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(); diff --git a/dataworks-public/src/model/CreateFileRequest.cc b/dataworks-public/src/model/CreateFileRequest.cc index 01c662527..abdd78c66 100644 --- a/dataworks-public/src/model/CreateFileRequest.cc +++ b/dataworks-public/src/model/CreateFileRequest.cc @@ -280,3 +280,14 @@ void CreateFileRequest::setFileDescription(const std::string& fileDescription) setBodyParameter("FileDescription", fileDescription); } +bool CreateFileRequest::getAutoParsing()const +{ + return autoParsing_; +} + +void CreateFileRequest::setAutoParsing(bool autoParsing) +{ + autoParsing_ = autoParsing; + setBodyParameter("AutoParsing", autoParsing ? "true" : "false"); +} + diff --git a/dataworks-public/src/model/GetFileResult.cc b/dataworks-public/src/model/GetFileResult.cc index 932384fc8..35e48b339 100644 --- a/dataworks-public/src/model/GetFileResult.cc +++ b/dataworks-public/src/model/GetFileResult.cc @@ -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["AutoParsing"].isNull()) + data_.file.autoParsing = fileNode["AutoParsing"].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"]; diff --git a/dataworks-public/src/model/ListFilesResult.cc b/dataworks-public/src/model/ListFilesResult.cc index f52b68d4c..e9faae932 100644 --- a/dataworks-public/src/model/ListFilesResult.cc +++ b/dataworks-public/src/model/ListFilesResult.cc @@ -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["AutoParsing"].isNull()) + fileObject.autoParsing = dataNodeFilesFile["AutoParsing"].asString() == "true"; data_.files.push_back(fileObject); } if(!value["Success"].isNull()) diff --git a/dataworks-public/src/model/UpdateFileRequest.cc b/dataworks-public/src/model/UpdateFileRequest.cc index c9afd9138..cdabbe815 100644 --- a/dataworks-public/src/model/UpdateFileRequest.cc +++ b/dataworks-public/src/model/UpdateFileRequest.cc @@ -280,3 +280,14 @@ void UpdateFileRequest::setFileDescription(const std::string& fileDescription) setBodyParameter("FileDescription", fileDescription); } +bool UpdateFileRequest::getAutoParsing()const +{ + return autoParsing_; +} + +void UpdateFileRequest::setAutoParsing(bool autoParsing) +{ + autoParsing_ = autoParsing; + setBodyParameter("AutoParsing", autoParsing ? "true" : "false"); +} + diff --git a/dataworks-public/src/model/UpdateNodeOwnerRequest.cc b/dataworks-public/src/model/UpdateNodeOwnerRequest.cc new file mode 100644 index 000000000..609e772e5 --- /dev/null +++ b/dataworks-public/src/model/UpdateNodeOwnerRequest.cc @@ -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 + +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); +} + +long UpdateNodeOwnerRequest::getNodeId()const +{ + return nodeId_; +} + +void UpdateNodeOwnerRequest::setNodeId(long nodeId) +{ + nodeId_ = nodeId; + setBodyParameter("NodeId", std::to_string(nodeId)); +} + +std::string UpdateNodeOwnerRequest::getUserId()const +{ + return userId_; +} + +void UpdateNodeOwnerRequest::setUserId(const std::string& userId) +{ + userId_ = userId; + setBodyParameter("UserId", userId); +} + diff --git a/dataworks-public/src/model/UpdateNodeOwnerResult.cc b/dataworks-public/src/model/UpdateNodeOwnerResult.cc new file mode 100644 index 000000000..f705a627b --- /dev/null +++ b/dataworks-public/src/model/UpdateNodeOwnerResult.cc @@ -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 +#include + +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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool UpdateNodeOwnerResult::getSuccess()const +{ + return success_; +} + diff --git a/dataworks-public/src/model/UpdateNodeRunModeRequest.cc b/dataworks-public/src/model/UpdateNodeRunModeRequest.cc new file mode 100644 index 000000000..12d0306bd --- /dev/null +++ b/dataworks-public/src/model/UpdateNodeRunModeRequest.cc @@ -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 + +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::getSchedulerType()const +{ + return schedulerType_; +} + +void UpdateNodeRunModeRequest::setSchedulerType(int schedulerType) +{ + schedulerType_ = schedulerType; + setBodyParameter("SchedulerType", std::to_string(schedulerType)); +} + +long UpdateNodeRunModeRequest::getNodeId()const +{ + return nodeId_; +} + +void UpdateNodeRunModeRequest::setNodeId(long nodeId) +{ + nodeId_ = nodeId; + setBodyParameter("NodeId", std::to_string(nodeId)); +} + diff --git a/dataworks-public/src/model/UpdateNodeRunModeResult.cc b/dataworks-public/src/model/UpdateNodeRunModeResult.cc new file mode 100644 index 000000000..044a2bd8f --- /dev/null +++ b/dataworks-public/src/model/UpdateNodeRunModeResult.cc @@ -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 +#include + +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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool UpdateNodeRunModeResult::getSuccess()const +{ + return success_; +} +