Generated 2020-05-18 for dataworks-public.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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<Error, Model::UpdateMetaTableIntroWikiResult> UpdateMetaTableIntroWikiOutcome;
|
||||
typedef std::future<UpdateMetaTableIntroWikiOutcome> UpdateMetaTableIntroWikiOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::UpdateMetaTableIntroWikiRequest&, const UpdateMetaTableIntroWikiOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateMetaTableIntroWikiAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateNodeOwnerResult> UpdateNodeOwnerOutcome;
|
||||
typedef std::future<UpdateNodeOwnerOutcome> UpdateNodeOwnerOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::UpdateNodeOwnerRequest&, const UpdateNodeOwnerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateNodeOwnerAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateNodeRunModeResult> UpdateNodeRunModeOutcome;
|
||||
typedef std::future<UpdateNodeRunModeOutcome> UpdateNodeRunModeOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::UpdateNodeRunModeRequest&, const UpdateNodeRunModeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateNodeRunModeAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateQualityFollowerResult> UpdateQualityFollowerOutcome;
|
||||
typedef std::future<UpdateQualityFollowerOutcome> UpdateQualityFollowerOutcomeCallable;
|
||||
typedef std::function<void(const Dataworks_publicClient*, const Model::UpdateQualityFollowerRequest&, const UpdateQualityFollowerOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateQualityFollowerOutcomeCallable updateQualityFollowerCallable(const Model::UpdateQualityFollowerRequest& request) const;
|
||||
|
||||
@@ -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_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -53,6 +53,7 @@ namespace AlibabaCloud
|
||||
long nodeId;
|
||||
int commitStatus;
|
||||
long fileId;
|
||||
bool autoParsing;
|
||||
std::string fileFolderId;
|
||||
long bizId;
|
||||
long businessId;
|
||||
|
||||
@@ -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_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dataworks-public/Dataworks_publicExport.h>
|
||||
|
||||
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_
|
||||
@@ -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<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();
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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"];
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
51
dataworks-public/src/model/UpdateNodeOwnerResult.cc
Normal file
51
dataworks-public/src/model/UpdateNodeOwnerResult.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/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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
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::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));
|
||||
}
|
||||
|
||||
51
dataworks-public/src/model/UpdateNodeRunModeResult.cc
Normal file
51
dataworks-public/src/model/UpdateNodeRunModeResult.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/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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool UpdateNodeRunModeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user