From afefd8895cff7457461ecb62ee3f876ead5710b3 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 11 May 2021 11:40:26 +0000 Subject: [PATCH] Generated 2020-05-18 for dataworks-public. --- CHANGELOG | 3 + VERSION | 2 +- dataworks-public/CMakeLists.txt | 24 ++ .../dataworks-public/Dataworks_publicClient.h | 48 ++++ .../model/CreateFileRequest.h | 3 + .../dataworks-public/model/GetFileResult.h | 2 + .../model/GetMetaTableBasicInfoResult.h | 15 +- .../ListColumnWithLabelPermissionRequest.h | 60 +++++ .../ListColumnWithLabelPermissionResult.h | 60 +++++ .../dataworks-public/model/ListFilesResult.h | 1 + .../model/ListTableGranteesRequest.h | 57 +++++ .../model/ListTableGranteesResult.h | 58 +++++ .../model/ListTableWithPermissionRequest.h | 66 ++++++ .../model/ListTableWithPermissionResult.h | 68 ++++++ .../model/QueryPublicModelEngineRequest.h | 54 +++++ .../model/QueryPublicModelEngineResult.h | 51 +++++ .../model/UpdateFileRequest.h | 3 + .../model/UpdateNodeOwnerRequest.h | 54 +++++ .../model/UpdateNodeOwnerResult.h | 59 +++++ .../model/UpdateNodeRunModeRequest.h | 54 +++++ .../model/UpdateNodeRunModeResult.h | 59 +++++ .../src/Dataworks-publicClient.cc | 216 ++++++++++++++++++ .../src/model/CreateFileRequest.cc | 11 + dataworks-public/src/model/GetFileResult.cc | 4 + .../src/model/GetMetaTableBasicInfoResult.cc | 2 + .../ListColumnWithLabelPermissionRequest.cc | 84 +++++++ .../ListColumnWithLabelPermissionResult.cc | 67 ++++++ dataworks-public/src/model/ListFilesResult.cc | 2 + .../src/model/ListTableGranteesRequest.cc | 73 ++++++ .../src/model/ListTableGranteesResult.cc | 64 ++++++ .../model/ListTableWithPermissionRequest.cc | 106 +++++++++ .../model/ListTableWithPermissionResult.cc | 77 +++++++ .../model/QueryPublicModelEngineRequest.cc | 62 +++++ .../src/model/QueryPublicModelEngineResult.cc | 52 +++++ .../src/model/UpdateFileRequest.cc | 11 + .../src/model/UpdateNodeOwnerRequest.cc | 62 +++++ .../src/model/UpdateNodeOwnerResult.cc | 79 +++++++ .../src/model/UpdateNodeRunModeRequest.cc | 62 +++++ .../src/model/UpdateNodeRunModeResult.cc | 79 +++++++ 39 files changed, 1906 insertions(+), 8 deletions(-) create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/ListColumnWithLabelPermissionRequest.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/ListColumnWithLabelPermissionResult.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/ListTableGranteesRequest.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/ListTableGranteesResult.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/ListTableWithPermissionRequest.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/ListTableWithPermissionResult.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/QueryPublicModelEngineRequest.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/QueryPublicModelEngineResult.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeOwnerRequest.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeOwnerResult.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeRunModeRequest.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeRunModeResult.h create mode 100644 dataworks-public/src/model/ListColumnWithLabelPermissionRequest.cc create mode 100644 dataworks-public/src/model/ListColumnWithLabelPermissionResult.cc create mode 100644 dataworks-public/src/model/ListTableGranteesRequest.cc create mode 100644 dataworks-public/src/model/ListTableGranteesResult.cc create mode 100644 dataworks-public/src/model/ListTableWithPermissionRequest.cc create mode 100644 dataworks-public/src/model/ListTableWithPermissionResult.cc create mode 100644 dataworks-public/src/model/QueryPublicModelEngineRequest.cc create mode 100644 dataworks-public/src/model/QueryPublicModelEngineResult.cc create mode 100644 dataworks-public/src/model/UpdateNodeOwnerRequest.cc create mode 100644 dataworks-public/src/model/UpdateNodeOwnerResult.cc create mode 100644 dataworks-public/src/model/UpdateNodeRunModeRequest.cc create mode 100644 dataworks-public/src/model/UpdateNodeRunModeResult.cc diff --git a/CHANGELOG b/CHANGELOG index ed1fac9de..48522456a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-05-11 Version: 1.36.726 +- Generated 2020-05-18 for `dataworks-public`. + 2021-05-11 Version: 1.36.725 - CreateInstance API add Port, Tags, DryRun. diff --git a/VERSION b/VERSION index 161bf0f25..542e7abfd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.725 \ No newline at end of file +1.36.726 \ No newline at end of file diff --git a/dataworks-public/CMakeLists.txt b/dataworks-public/CMakeLists.txt index 6d15c64e1..8ce1f19e5 100644 --- a/dataworks-public/CMakeLists.txt +++ b/dataworks-public/CMakeLists.txt @@ -261,6 +261,8 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/ListBusinessResult.h include/alibabacloud/dataworks-public/model/ListCalcEnginesRequest.h include/alibabacloud/dataworks-public/model/ListCalcEnginesResult.h + include/alibabacloud/dataworks-public/model/ListColumnWithLabelPermissionRequest.h + include/alibabacloud/dataworks-public/model/ListColumnWithLabelPermissionResult.h include/alibabacloud/dataworks-public/model/ListConnectionsRequest.h include/alibabacloud/dataworks-public/model/ListConnectionsResult.h include/alibabacloud/dataworks-public/model/ListDISyncTasksRequest.h @@ -329,14 +331,20 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/ListResourceGroupsResult.h include/alibabacloud/dataworks-public/model/ListSuccessInstanceAmountRequest.h include/alibabacloud/dataworks-public/model/ListSuccessInstanceAmountResult.h + include/alibabacloud/dataworks-public/model/ListTableGranteesRequest.h + include/alibabacloud/dataworks-public/model/ListTableGranteesResult.h include/alibabacloud/dataworks-public/model/ListTableLevelRequest.h include/alibabacloud/dataworks-public/model/ListTableLevelResult.h include/alibabacloud/dataworks-public/model/ListTableThemeRequest.h include/alibabacloud/dataworks-public/model/ListTableThemeResult.h + include/alibabacloud/dataworks-public/model/ListTableWithPermissionRequest.h + include/alibabacloud/dataworks-public/model/ListTableWithPermissionResult.h include/alibabacloud/dataworks-public/model/ListTopicsRequest.h include/alibabacloud/dataworks-public/model/ListTopicsResult.h include/alibabacloud/dataworks-public/model/PublishDataServiceApiRequest.h include/alibabacloud/dataworks-public/model/PublishDataServiceApiResult.h + include/alibabacloud/dataworks-public/model/QueryPublicModelEngineRequest.h + include/alibabacloud/dataworks-public/model/QueryPublicModelEngineResult.h include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleRequest.h include/alibabacloud/dataworks-public/model/RemoveProjectMemberFromRoleResult.h include/alibabacloud/dataworks-public/model/RestartInstanceRequest.h @@ -393,6 +401,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 @@ -654,6 +666,8 @@ set(dataworks-public_src src/model/ListBusinessResult.cc src/model/ListCalcEnginesRequest.cc src/model/ListCalcEnginesResult.cc + src/model/ListColumnWithLabelPermissionRequest.cc + src/model/ListColumnWithLabelPermissionResult.cc src/model/ListConnectionsRequest.cc src/model/ListConnectionsResult.cc src/model/ListDISyncTasksRequest.cc @@ -722,14 +736,20 @@ set(dataworks-public_src src/model/ListResourceGroupsResult.cc src/model/ListSuccessInstanceAmountRequest.cc src/model/ListSuccessInstanceAmountResult.cc + src/model/ListTableGranteesRequest.cc + src/model/ListTableGranteesResult.cc src/model/ListTableLevelRequest.cc src/model/ListTableLevelResult.cc src/model/ListTableThemeRequest.cc src/model/ListTableThemeResult.cc + src/model/ListTableWithPermissionRequest.cc + src/model/ListTableWithPermissionResult.cc src/model/ListTopicsRequest.cc src/model/ListTopicsResult.cc src/model/PublishDataServiceApiRequest.cc src/model/PublishDataServiceApiResult.cc + src/model/QueryPublicModelEngineRequest.cc + src/model/QueryPublicModelEngineResult.cc src/model/RemoveProjectMemberFromRoleRequest.cc src/model/RemoveProjectMemberFromRoleResult.cc src/model/RestartInstanceRequest.cc @@ -786,6 +806,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 d3c5ba342..d4bd168b6 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h @@ -262,6 +262,8 @@ #include "model/ListBusinessResult.h" #include "model/ListCalcEnginesRequest.h" #include "model/ListCalcEnginesResult.h" +#include "model/ListColumnWithLabelPermissionRequest.h" +#include "model/ListColumnWithLabelPermissionResult.h" #include "model/ListConnectionsRequest.h" #include "model/ListConnectionsResult.h" #include "model/ListDISyncTasksRequest.h" @@ -330,14 +332,20 @@ #include "model/ListResourceGroupsResult.h" #include "model/ListSuccessInstanceAmountRequest.h" #include "model/ListSuccessInstanceAmountResult.h" +#include "model/ListTableGranteesRequest.h" +#include "model/ListTableGranteesResult.h" #include "model/ListTableLevelRequest.h" #include "model/ListTableLevelResult.h" #include "model/ListTableThemeRequest.h" #include "model/ListTableThemeResult.h" +#include "model/ListTableWithPermissionRequest.h" +#include "model/ListTableWithPermissionResult.h" #include "model/ListTopicsRequest.h" #include "model/ListTopicsResult.h" #include "model/PublishDataServiceApiRequest.h" #include "model/PublishDataServiceApiResult.h" +#include "model/QueryPublicModelEngineRequest.h" +#include "model/QueryPublicModelEngineResult.h" #include "model/RemoveProjectMemberFromRoleRequest.h" #include "model/RemoveProjectMemberFromRoleResult.h" #include "model/RestartInstanceRequest.h" @@ -394,6 +402,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" @@ -781,6 +793,9 @@ namespace AlibabaCloud typedef Outcome ListCalcEnginesOutcome; typedef std::future ListCalcEnginesOutcomeCallable; typedef std::function&)> ListCalcEnginesAsyncHandler; + typedef Outcome ListColumnWithLabelPermissionOutcome; + typedef std::future ListColumnWithLabelPermissionOutcomeCallable; + typedef std::function&)> ListColumnWithLabelPermissionAsyncHandler; typedef Outcome ListConnectionsOutcome; typedef std::future ListConnectionsOutcomeCallable; typedef std::function&)> ListConnectionsAsyncHandler; @@ -883,18 +898,27 @@ namespace AlibabaCloud typedef Outcome ListSuccessInstanceAmountOutcome; typedef std::future ListSuccessInstanceAmountOutcomeCallable; typedef std::function&)> ListSuccessInstanceAmountAsyncHandler; + typedef Outcome ListTableGranteesOutcome; + typedef std::future ListTableGranteesOutcomeCallable; + typedef std::function&)> ListTableGranteesAsyncHandler; typedef Outcome ListTableLevelOutcome; typedef std::future ListTableLevelOutcomeCallable; typedef std::function&)> ListTableLevelAsyncHandler; typedef Outcome ListTableThemeOutcome; typedef std::future ListTableThemeOutcomeCallable; typedef std::function&)> ListTableThemeAsyncHandler; + typedef Outcome ListTableWithPermissionOutcome; + typedef std::future ListTableWithPermissionOutcomeCallable; + typedef std::function&)> ListTableWithPermissionAsyncHandler; typedef Outcome ListTopicsOutcome; typedef std::future ListTopicsOutcomeCallable; typedef std::function&)> ListTopicsAsyncHandler; typedef Outcome PublishDataServiceApiOutcome; typedef std::future PublishDataServiceApiOutcomeCallable; typedef std::function&)> PublishDataServiceApiAsyncHandler; + typedef Outcome QueryPublicModelEngineOutcome; + typedef std::future QueryPublicModelEngineOutcomeCallable; + typedef std::function&)> QueryPublicModelEngineAsyncHandler; typedef Outcome RemoveProjectMemberFromRoleOutcome; typedef std::future RemoveProjectMemberFromRoleOutcomeCallable; typedef std::function&)> RemoveProjectMemberFromRoleAsyncHandler; @@ -979,6 +1003,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; @@ -1371,6 +1401,9 @@ namespace AlibabaCloud ListCalcEnginesOutcome listCalcEngines(const Model::ListCalcEnginesRequest &request)const; void listCalcEnginesAsync(const Model::ListCalcEnginesRequest& request, const ListCalcEnginesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListCalcEnginesOutcomeCallable listCalcEnginesCallable(const Model::ListCalcEnginesRequest& request) const; + ListColumnWithLabelPermissionOutcome listColumnWithLabelPermission(const Model::ListColumnWithLabelPermissionRequest &request)const; + void listColumnWithLabelPermissionAsync(const Model::ListColumnWithLabelPermissionRequest& request, const ListColumnWithLabelPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListColumnWithLabelPermissionOutcomeCallable listColumnWithLabelPermissionCallable(const Model::ListColumnWithLabelPermissionRequest& request) const; ListConnectionsOutcome listConnections(const Model::ListConnectionsRequest &request)const; void listConnectionsAsync(const Model::ListConnectionsRequest& request, const ListConnectionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListConnectionsOutcomeCallable listConnectionsCallable(const Model::ListConnectionsRequest& request) const; @@ -1473,18 +1506,27 @@ namespace AlibabaCloud ListSuccessInstanceAmountOutcome listSuccessInstanceAmount(const Model::ListSuccessInstanceAmountRequest &request)const; void listSuccessInstanceAmountAsync(const Model::ListSuccessInstanceAmountRequest& request, const ListSuccessInstanceAmountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSuccessInstanceAmountOutcomeCallable listSuccessInstanceAmountCallable(const Model::ListSuccessInstanceAmountRequest& request) const; + ListTableGranteesOutcome listTableGrantees(const Model::ListTableGranteesRequest &request)const; + void listTableGranteesAsync(const Model::ListTableGranteesRequest& request, const ListTableGranteesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTableGranteesOutcomeCallable listTableGranteesCallable(const Model::ListTableGranteesRequest& request) const; ListTableLevelOutcome listTableLevel(const Model::ListTableLevelRequest &request)const; void listTableLevelAsync(const Model::ListTableLevelRequest& request, const ListTableLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTableLevelOutcomeCallable listTableLevelCallable(const Model::ListTableLevelRequest& request) const; ListTableThemeOutcome listTableTheme(const Model::ListTableThemeRequest &request)const; void listTableThemeAsync(const Model::ListTableThemeRequest& request, const ListTableThemeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTableThemeOutcomeCallable listTableThemeCallable(const Model::ListTableThemeRequest& request) const; + ListTableWithPermissionOutcome listTableWithPermission(const Model::ListTableWithPermissionRequest &request)const; + void listTableWithPermissionAsync(const Model::ListTableWithPermissionRequest& request, const ListTableWithPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTableWithPermissionOutcomeCallable listTableWithPermissionCallable(const Model::ListTableWithPermissionRequest& request) const; ListTopicsOutcome listTopics(const Model::ListTopicsRequest &request)const; void listTopicsAsync(const Model::ListTopicsRequest& request, const ListTopicsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTopicsOutcomeCallable listTopicsCallable(const Model::ListTopicsRequest& request) const; PublishDataServiceApiOutcome publishDataServiceApi(const Model::PublishDataServiceApiRequest &request)const; void publishDataServiceApiAsync(const Model::PublishDataServiceApiRequest& request, const PublishDataServiceApiAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; PublishDataServiceApiOutcomeCallable publishDataServiceApiCallable(const Model::PublishDataServiceApiRequest& request) const; + QueryPublicModelEngineOutcome queryPublicModelEngine(const Model::QueryPublicModelEngineRequest &request)const; + void queryPublicModelEngineAsync(const Model::QueryPublicModelEngineRequest& request, const QueryPublicModelEngineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryPublicModelEngineOutcomeCallable queryPublicModelEngineCallable(const Model::QueryPublicModelEngineRequest& request) const; RemoveProjectMemberFromRoleOutcome removeProjectMemberFromRole(const Model::RemoveProjectMemberFromRoleRequest &request)const; void removeProjectMemberFromRoleAsync(const Model::RemoveProjectMemberFromRoleRequest& request, const RemoveProjectMemberFromRoleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveProjectMemberFromRoleOutcomeCallable removeProjectMemberFromRoleCallable(const Model::RemoveProjectMemberFromRoleRequest& request) const; @@ -1569,6 +1611,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..f2bc21695 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateFileRequest.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateFileRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setFileType(int fileType); std::string getDependentNodeIdList()const; void setDependentNodeIdList(const std::string& dependentNodeIdList); + bool getAutoParse()const; + void setAutoParse(bool autoParse); std::string getContent()const; void setContent(const std::string& content); std::string getProjectIdentifier()const; @@ -85,6 +87,7 @@ namespace AlibabaCloud private: int fileType_; std::string dependentNodeIdList_; + bool autoParse_; std::string content_; std::string projectIdentifier_; long resourceGroupId_; diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/GetFileResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/GetFileResult.h index dea34e81e..1c8b6c029 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/GetFileResult.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/GetFileResult.h @@ -56,12 +56,14 @@ namespace AlibabaCloud std::string fileFolderId; long bizId; long businessId; + bool autoParse; }; struct NodeConfiguration { struct NodeInputOutput { std::string input; + std::string parseType; }; struct NodeInputOutput1 { diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/GetMetaTableBasicInfoResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/GetMetaTableBasicInfoResult.h index 51619eb2f..f77d1e54e 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/GetMetaTableBasicInfoResult.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/GetMetaTableBasicInfoResult.h @@ -35,26 +35,27 @@ namespace AlibabaCloud struct Data { int lifeCycle; - std::string comment; + bool isView; bool isPartitionTable; std::string projectName; + long lastModifyTime; + long lastAccessTime; + int envType; + std::string ownerId; + long dataSize; + std::string partitionKeys; + std::string comment; std::string clusterId; long lastDdlTime; long createTime; long projectId; std::string databaseName; long viewCount; - long lastModifyTime; - long lastAccessTime; - int envType; std::string caption; std::string tableName; std::string tableGuid; long tenantId; - std::string ownerId; - long dataSize; long favoriteCount; - std::string partitionKeys; int isVisible; long readCount; std::string location; diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListColumnWithLabelPermissionRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListColumnWithLabelPermissionRequest.h new file mode 100644 index 000000000..dd484fb86 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListColumnWithLabelPermissionRequest.h @@ -0,0 +1,60 @@ +/* + * 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_LISTCOLUMNWITHLABELPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTCOLUMNWITHLABELPERMISSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListColumnWithLabelPermissionRequest : public RpcServiceRequest + { + + public: + ListColumnWithLabelPermissionRequest(); + ~ListColumnWithLabelPermissionRequest(); + + std::string getMaxComputeProjectName()const; + void setMaxComputeProjectName(const std::string& maxComputeProjectName); + std::string getTableName()const; + void setTableName(const std::string& tableName); + std::string getUserId()const; + void setUserId(const std::string& userId); + int getWorkspaceId()const; + void setWorkspaceId(int workspaceId); + std::string getEngineType()const; + void setEngineType(const std::string& engineType); + + private: + std::string maxComputeProjectName_; + std::string tableName_; + std::string userId_; + int workspaceId_; + std::string engineType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTCOLUMNWITHLABELPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListColumnWithLabelPermissionResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListColumnWithLabelPermissionResult.h new file mode 100644 index 000000000..64b1a43d4 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListColumnWithLabelPermissionResult.h @@ -0,0 +1,60 @@ +/* + * 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_LISTCOLUMNWITHLABELPERMISSIONRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTCOLUMNWITHLABELPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListColumnWithLabelPermissionResult : public ServiceResult + { + public: + struct ColumnMetaItem + { + std::string comment; + std::string securityLevel; + std::string deadline; + std::string guid; + std::string name; + std::string grantedLabel; + }; + + + ListColumnWithLabelPermissionResult(); + explicit ListColumnWithLabelPermissionResult(const std::string &payload); + ~ListColumnWithLabelPermissionResult(); + std::vector getColumnMeta()const; + + protected: + void parse(const std::string &payload); + private: + std::vector columnMeta_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTCOLUMNWITHLABELPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListFilesResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListFilesResult.h index 687adea78..54a486e80 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/ListFilesResult.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListFilesResult.h @@ -56,6 +56,7 @@ namespace AlibabaCloud std::string fileFolderId; long bizId; long businessId; + bool autoParse; }; int totalCount; int pageSize; diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListTableGranteesRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListTableGranteesRequest.h new file mode 100644 index 000000000..2abd4b171 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListTableGranteesRequest.h @@ -0,0 +1,57 @@ +/* + * 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_LISTTABLEGRANTEESREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTTABLEGRANTEESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListTableGranteesRequest : public RpcServiceRequest + { + + public: + ListTableGranteesRequest(); + ~ListTableGranteesRequest(); + + std::string getMaxComputeProjectName()const; + void setMaxComputeProjectName(const std::string& maxComputeProjectName); + std::string getTableName()const; + void setTableName(const std::string& tableName); + int getWorkspaceId()const; + void setWorkspaceId(int workspaceId); + std::string getEngineType()const; + void setEngineType(const std::string& engineType); + + private: + std::string maxComputeProjectName_; + std::string tableName_; + int workspaceId_; + std::string engineType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTTABLEGRANTEESREQUEST_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListTableGranteesResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListTableGranteesResult.h new file mode 100644 index 000000000..f7a0fa973 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListTableGranteesResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTTABLEGRANTEESRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTTABLEGRANTEESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListTableGranteesResult : public ServiceResult + { + public: + struct GranteeItem + { + std::string granteeId; + std::string granteeTypeDescription; + std::vector actions; + std::string granteeName; + }; + + + ListTableGranteesResult(); + explicit ListTableGranteesResult(const std::string &payload); + ~ListTableGranteesResult(); + std::vector getGrantee()const; + + protected: + void parse(const std::string &payload); + private: + std::vector grantee_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTTABLEGRANTEESRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListTableWithPermissionRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListTableWithPermissionRequest.h new file mode 100644 index 000000000..0c339d9bd --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListTableWithPermissionRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTTABLEWITHPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTTABLEWITHPERMISSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListTableWithPermissionRequest : public RpcServiceRequest + { + + public: + ListTableWithPermissionRequest(); + ~ListTableWithPermissionRequest(); + + std::string getMaxComputeProjectName()const; + void setMaxComputeProjectName(const std::string& maxComputeProjectName); + int getPageNum()const; + void setPageNum(int pageNum); + std::string getUserId()const; + void setUserId(const std::string& userId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getKeyword()const; + void setKeyword(const std::string& keyword); + int getWorkspaceId()const; + void setWorkspaceId(int workspaceId); + std::string getEngineType()const; + void setEngineType(const std::string& engineType); + + private: + std::string maxComputeProjectName_; + int pageNum_; + std::string userId_; + int pageSize_; + std::string keyword_; + int workspaceId_; + std::string engineType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTTABLEWITHPERMISSIONREQUEST_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/ListTableWithPermissionResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/ListTableWithPermissionResult.h new file mode 100644 index 000000000..877e95f6f --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/ListTableWithPermissionResult.h @@ -0,0 +1,68 @@ +/* + * 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_LISTTABLEWITHPERMISSIONRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTTABLEWITHPERMISSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT ListTableWithPermissionResult : public ServiceResult + { + public: + struct Tables + { + struct TableListItem + { + std::string comment; + std::string owner; + std::vector action; + std::string nameCn; + std::string guid; + std::string projectGuid; + std::string name; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector tableList; + }; + + + ListTableWithPermissionResult(); + explicit ListTableWithPermissionResult(const std::string &payload); + ~ListTableWithPermissionResult(); + Tables getTables()const; + + protected: + void parse(const std::string &payload); + private: + Tables tables_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_LISTTABLEWITHPERMISSIONRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/QueryPublicModelEngineRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/QueryPublicModelEngineRequest.h new file mode 100644 index 000000000..88825af89 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/QueryPublicModelEngineRequest.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_QUERYPUBLICMODELENGINEREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_QUERYPUBLICMODELENGINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT QueryPublicModelEngineRequest : public RpcServiceRequest + { + + public: + QueryPublicModelEngineRequest(); + ~QueryPublicModelEngineRequest(); + + std::string getTenantId()const; + void setTenantId(const std::string& tenantId); + std::string getText()const; + void setText(const std::string& text); + std::string getProjectId()const; + void setProjectId(const std::string& projectId); + + private: + std::string tenantId_; + std::string text_; + std::string projectId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_QUERYPUBLICMODELENGINEREQUEST_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/QueryPublicModelEngineResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/QueryPublicModelEngineResult.h new file mode 100644 index 000000000..ddafdfe0c --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/QueryPublicModelEngineResult.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_QUERYPUBLICMODELENGINERESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_QUERYPUBLICMODELENGINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT QueryPublicModelEngineResult : public ServiceResult + { + public: + + + QueryPublicModelEngineResult(); + explicit QueryPublicModelEngineResult(const std::string &payload); + ~QueryPublicModelEngineResult(); + std::vector getReturnValue()const; + + protected: + void parse(const std::string &payload); + private: + std::vector returnValue_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_QUERYPUBLICMODELENGINERESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateFileRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateFileRequest.h index a0eef3eb7..6ae5bb5cc 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateFileRequest.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateFileRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setOutputList(const std::string& outputList); std::string getDependentNodeIdList()const; void setDependentNodeIdList(const std::string& dependentNodeIdList); + bool getAutoParse()const; + void setAutoParse(bool autoParse); std::string getContent()const; void setContent(const std::string& content); std::string getProjectIdentifier()const; @@ -85,6 +87,7 @@ namespace AlibabaCloud private: std::string outputList_; std::string dependentNodeIdList_; + bool autoParse_; std::string content_; std::string projectIdentifier_; long projectId_; 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..0b82080a7 --- /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); + std::string getOwner()const; + void setOwner(const std::string& owner); + long getNodeId()const; + void setNodeId(long nodeId); + + private: + std::string projectEnv_; + std::string owner_; + long nodeId_; + + }; + } + } +} +#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..c6b974c4c --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeOwnerResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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(); + int getHttpStatusCode()const; + bool getData()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + bool data_; + std::string errorCode_; + std::string errorMessage_; + 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..99fb0a5c3 --- /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 getNodeType()const; + void setNodeType(int nodeType); + long getNodeId()const; + void setNodeId(long nodeId); + + private: + std::string projectEnv_; + int nodeType_; + 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..0a9ac6dad --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateNodeRunModeResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#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(); + int getHttpStatusCode()const; + bool getData()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + bool data_; + std::string errorCode_; + std::string errorMessage_; + 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 3e7df8856..82f9d1bce 100644 --- a/dataworks-public/src/Dataworks-publicClient.cc +++ b/dataworks-public/src/Dataworks-publicClient.cc @@ -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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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..f0735c020 100644 --- a/dataworks-public/src/model/CreateFileRequest.cc +++ b/dataworks-public/src/model/CreateFileRequest.cc @@ -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_; diff --git a/dataworks-public/src/model/GetFileResult.cc b/dataworks-public/src/model/GetFileResult.cc index 932384fc8..cd92aba8b 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["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"]; diff --git a/dataworks-public/src/model/GetMetaTableBasicInfoResult.cc b/dataworks-public/src/model/GetMetaTableBasicInfoResult.cc index 9450c955f..479f1e16c 100644 --- a/dataworks-public/src/model/GetMetaTableBasicInfoResult.cc +++ b/dataworks-public/src/model/GetMetaTableBasicInfoResult.cc @@ -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()) diff --git a/dataworks-public/src/model/ListColumnWithLabelPermissionRequest.cc b/dataworks-public/src/model/ListColumnWithLabelPermissionRequest.cc new file mode 100644 index 000000000..88e8f7ed5 --- /dev/null +++ b/dataworks-public/src/model/ListColumnWithLabelPermissionRequest.cc @@ -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 + +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); +} + diff --git a/dataworks-public/src/model/ListColumnWithLabelPermissionResult.cc b/dataworks-public/src/model/ListColumnWithLabelPermissionResult.cc new file mode 100644 index 000000000..1ea97b066 --- /dev/null +++ b/dataworks-public/src/model/ListColumnWithLabelPermissionResult.cc @@ -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 +#include + +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::getColumnMeta()const +{ + return columnMeta_; +} + diff --git a/dataworks-public/src/model/ListFilesResult.cc b/dataworks-public/src/model/ListFilesResult.cc index f52b68d4c..6c28fa779 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["AutoParse"].isNull()) + fileObject.autoParse = dataNodeFilesFile["AutoParse"].asString() == "true"; data_.files.push_back(fileObject); } if(!value["Success"].isNull()) diff --git a/dataworks-public/src/model/ListTableGranteesRequest.cc b/dataworks-public/src/model/ListTableGranteesRequest.cc new file mode 100644 index 000000000..28cdd2923 --- /dev/null +++ b/dataworks-public/src/model/ListTableGranteesRequest.cc @@ -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 + +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); +} + diff --git a/dataworks-public/src/model/ListTableGranteesResult.cc b/dataworks-public/src/model/ListTableGranteesResult.cc new file mode 100644 index 000000000..1e20659c9 --- /dev/null +++ b/dataworks-public/src/model/ListTableGranteesResult.cc @@ -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 +#include + +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::getGrantee()const +{ + return grantee_; +} + diff --git a/dataworks-public/src/model/ListTableWithPermissionRequest.cc b/dataworks-public/src/model/ListTableWithPermissionRequest.cc new file mode 100644 index 000000000..1c96d63fe --- /dev/null +++ b/dataworks-public/src/model/ListTableWithPermissionRequest.cc @@ -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 + +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); +} + diff --git a/dataworks-public/src/model/ListTableWithPermissionResult.cc b/dataworks-public/src/model/ListTableWithPermissionResult.cc new file mode 100644 index 000000000..77223be3f --- /dev/null +++ b/dataworks-public/src/model/ListTableWithPermissionResult.cc @@ -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 +#include + +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_; +} + diff --git a/dataworks-public/src/model/QueryPublicModelEngineRequest.cc b/dataworks-public/src/model/QueryPublicModelEngineRequest.cc new file mode 100644 index 000000000..c98167cda --- /dev/null +++ b/dataworks-public/src/model/QueryPublicModelEngineRequest.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::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); +} + diff --git a/dataworks-public/src/model/QueryPublicModelEngineResult.cc b/dataworks-public/src/model/QueryPublicModelEngineResult.cc new file mode 100644 index 000000000..39bd30f67 --- /dev/null +++ b/dataworks-public/src/model/QueryPublicModelEngineResult.cc @@ -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 +#include + +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 QueryPublicModelEngineResult::getReturnValue()const +{ + return returnValue_; +} + diff --git a/dataworks-public/src/model/UpdateFileRequest.cc b/dataworks-public/src/model/UpdateFileRequest.cc index c9afd9138..a5ac6135e 100644 --- a/dataworks-public/src/model/UpdateFileRequest.cc +++ b/dataworks-public/src/model/UpdateFileRequest.cc @@ -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_; diff --git a/dataworks-public/src/model/UpdateNodeOwnerRequest.cc b/dataworks-public/src/model/UpdateNodeOwnerRequest.cc new file mode 100644 index 000000000..2f678d68d --- /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); +} + +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)); +} + diff --git a/dataworks-public/src/model/UpdateNodeOwnerResult.cc b/dataworks-public/src/model/UpdateNodeOwnerResult.cc new file mode 100644 index 000000000..1e8dfde6b --- /dev/null +++ b/dataworks-public/src/model/UpdateNodeOwnerResult.cc @@ -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 +#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["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_; +} + diff --git a/dataworks-public/src/model/UpdateNodeRunModeRequest.cc b/dataworks-public/src/model/UpdateNodeRunModeRequest.cc new file mode 100644 index 000000000..8bc5020cf --- /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::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)); +} + diff --git a/dataworks-public/src/model/UpdateNodeRunModeResult.cc b/dataworks-public/src/model/UpdateNodeRunModeResult.cc new file mode 100644 index 000000000..9a8c1c960 --- /dev/null +++ b/dataworks-public/src/model/UpdateNodeRunModeResult.cc @@ -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 +#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["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_; +} +