From 35aa024193f875ab646a318a4e95b3539ac2c9d2 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 5 Jan 2023 07:54:43 +0000 Subject: [PATCH] Generated 2020-05-18 for dataworks-public. --- VERSION | 2 +- dataworks-public/CMakeLists.txt | 8 ++ .../dataworks-public/Dataworks_publicClient.h | 16 ++++ .../model/CreateBaselineRequest.h | 6 +- .../model/CreateBusinessRequest.h | 12 +-- .../model/MountDirectoryRequest.h | 45 +++++++++++ .../model/MountDirectoryResult.h | 59 ++++++++++++++ .../model/UmountDirectoryRequest.h | 45 +++++++++++ .../model/UmountDirectoryResult.h | 59 ++++++++++++++ .../model/UpdateBaselineRequest.h | 12 +-- .../model/UpdateBusinessRequest.h | 12 +-- .../src/Dataworks-publicClient.cc | 72 +++++++++++++++++ .../src/model/CreateBaselineRequest.cc | 18 ++--- .../src/model/CreateBusinessRequest.cc | 36 ++++----- .../src/model/MountDirectoryRequest.cc | 45 +++++++++++ .../src/model/MountDirectoryResult.cc | 79 +++++++++++++++++++ .../src/model/UmountDirectoryRequest.cc | 45 +++++++++++ .../src/model/UmountDirectoryResult.cc | 79 +++++++++++++++++++ .../src/model/UpdateBaselineRequest.cc | 36 ++++----- .../src/model/UpdateBusinessRequest.cc | 36 ++++----- 20 files changed, 637 insertions(+), 85 deletions(-) create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/MountDirectoryRequest.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/MountDirectoryResult.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/UmountDirectoryRequest.h create mode 100644 dataworks-public/include/alibabacloud/dataworks-public/model/UmountDirectoryResult.h create mode 100644 dataworks-public/src/model/MountDirectoryRequest.cc create mode 100644 dataworks-public/src/model/MountDirectoryResult.cc create mode 100644 dataworks-public/src/model/UmountDirectoryRequest.cc create mode 100644 dataworks-public/src/model/UmountDirectoryResult.cc diff --git a/VERSION b/VERSION index 4f243ff8d..41bc6cf22 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1413 \ No newline at end of file +1.36.1414 \ No newline at end of file diff --git a/dataworks-public/CMakeLists.txt b/dataworks-public/CMakeLists.txt index 6b44a2d86..b05b4e6cb 100644 --- a/dataworks-public/CMakeLists.txt +++ b/dataworks-public/CMakeLists.txt @@ -409,6 +409,8 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/ListTableThemeResult.h include/alibabacloud/dataworks-public/model/ListTopicsRequest.h include/alibabacloud/dataworks-public/model/ListTopicsResult.h + include/alibabacloud/dataworks-public/model/MountDirectoryRequest.h + include/alibabacloud/dataworks-public/model/MountDirectoryResult.h include/alibabacloud/dataworks-public/model/OfflineNodeRequest.h include/alibabacloud/dataworks-public/model/OfflineNodeResult.h include/alibabacloud/dataworks-public/model/PublishDataServiceApiRequest.h @@ -467,6 +469,8 @@ set(dataworks-public_public_header_model include/alibabacloud/dataworks-public/model/TopTenElapsedTimeInstanceResult.h include/alibabacloud/dataworks-public/model/TopTenErrorTimesInstanceRequest.h include/alibabacloud/dataworks-public/model/TopTenErrorTimesInstanceResult.h + include/alibabacloud/dataworks-public/model/UmountDirectoryRequest.h + include/alibabacloud/dataworks-public/model/UmountDirectoryResult.h include/alibabacloud/dataworks-public/model/UpdateBaselineRequest.h include/alibabacloud/dataworks-public/model/UpdateBaselineResult.h include/alibabacloud/dataworks-public/model/UpdateBusinessRequest.h @@ -910,6 +914,8 @@ set(dataworks-public_src src/model/ListTableThemeResult.cc src/model/ListTopicsRequest.cc src/model/ListTopicsResult.cc + src/model/MountDirectoryRequest.cc + src/model/MountDirectoryResult.cc src/model/OfflineNodeRequest.cc src/model/OfflineNodeResult.cc src/model/PublishDataServiceApiRequest.cc @@ -968,6 +974,8 @@ set(dataworks-public_src src/model/TopTenElapsedTimeInstanceResult.cc src/model/TopTenErrorTimesInstanceRequest.cc src/model/TopTenErrorTimesInstanceResult.cc + src/model/UmountDirectoryRequest.cc + src/model/UmountDirectoryResult.cc src/model/UpdateBaselineRequest.cc src/model/UpdateBaselineResult.cc src/model/UpdateBusinessRequest.cc diff --git a/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h b/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h index 7827d5446..9ef7d1dc9 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/Dataworks_publicClient.h @@ -410,6 +410,8 @@ #include "model/ListTableThemeResult.h" #include "model/ListTopicsRequest.h" #include "model/ListTopicsResult.h" +#include "model/MountDirectoryRequest.h" +#include "model/MountDirectoryResult.h" #include "model/OfflineNodeRequest.h" #include "model/OfflineNodeResult.h" #include "model/PublishDataServiceApiRequest.h" @@ -468,6 +470,8 @@ #include "model/TopTenElapsedTimeInstanceResult.h" #include "model/TopTenErrorTimesInstanceRequest.h" #include "model/TopTenErrorTimesInstanceResult.h" +#include "model/UmountDirectoryRequest.h" +#include "model/UmountDirectoryResult.h" #include "model/UpdateBaselineRequest.h" #include "model/UpdateBaselineResult.h" #include "model/UpdateBusinessRequest.h" @@ -1111,6 +1115,9 @@ namespace AlibabaCloud typedef Outcome ListTopicsOutcome; typedef std::future ListTopicsOutcomeCallable; typedef std::function&)> ListTopicsAsyncHandler; + typedef Outcome MountDirectoryOutcome; + typedef std::future MountDirectoryOutcomeCallable; + typedef std::function&)> MountDirectoryAsyncHandler; typedef Outcome OfflineNodeOutcome; typedef std::future OfflineNodeOutcomeCallable; typedef std::function&)> OfflineNodeAsyncHandler; @@ -1198,6 +1205,9 @@ namespace AlibabaCloud typedef Outcome TopTenErrorTimesInstanceOutcome; typedef std::future TopTenErrorTimesInstanceOutcomeCallable; typedef std::function&)> TopTenErrorTimesInstanceAsyncHandler; + typedef Outcome UmountDirectoryOutcome; + typedef std::future UmountDirectoryOutcomeCallable; + typedef std::function&)> UmountDirectoryAsyncHandler; typedef Outcome UpdateBaselineOutcome; typedef std::future UpdateBaselineOutcomeCallable; typedef std::function&)> UpdateBaselineAsyncHandler; @@ -1863,6 +1873,9 @@ namespace AlibabaCloud 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; + MountDirectoryOutcome mountDirectory(const Model::MountDirectoryRequest &request)const; + void mountDirectoryAsync(const Model::MountDirectoryRequest& request, const MountDirectoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MountDirectoryOutcomeCallable mountDirectoryCallable(const Model::MountDirectoryRequest& request) const; OfflineNodeOutcome offlineNode(const Model::OfflineNodeRequest &request)const; void offlineNodeAsync(const Model::OfflineNodeRequest& request, const OfflineNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OfflineNodeOutcomeCallable offlineNodeCallable(const Model::OfflineNodeRequest& request) const; @@ -1950,6 +1963,9 @@ namespace AlibabaCloud TopTenErrorTimesInstanceOutcome topTenErrorTimesInstance(const Model::TopTenErrorTimesInstanceRequest &request)const; void topTenErrorTimesInstanceAsync(const Model::TopTenErrorTimesInstanceRequest& request, const TopTenErrorTimesInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TopTenErrorTimesInstanceOutcomeCallable topTenErrorTimesInstanceCallable(const Model::TopTenErrorTimesInstanceRequest& request) const; + UmountDirectoryOutcome umountDirectory(const Model::UmountDirectoryRequest &request)const; + void umountDirectoryAsync(const Model::UmountDirectoryRequest& request, const UmountDirectoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UmountDirectoryOutcomeCallable umountDirectoryCallable(const Model::UmountDirectoryRequest& request) const; UpdateBaselineOutcome updateBaseline(const Model::UpdateBaselineRequest &request)const; void updateBaselineAsync(const Model::UpdateBaselineRequest& request, const UpdateBaselineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateBaselineOutcomeCallable updateBaselineCallable(const Model::UpdateBaselineRequest& request) const; diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateBaselineRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateBaselineRequest.h index 0421e5612..4c9bf3868 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateBaselineRequest.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateBaselineRequest.h @@ -42,24 +42,24 @@ public: void setOvertimeSettings(const std::vector &overtimeSettings); int getPriority() const; void setPriority(int priority); - std::string getTaskIds() const; - void setTaskIds(const std::string &taskIds); std::string getBaselineType() const; void setBaselineType(const std::string &baselineType); std::string getBaselineName() const; void setBaselineName(const std::string &baselineName); long getProjectId() const; void setProjectId(long projectId); + std::string getNodeIds() const; + void setNodeIds(const std::string &nodeIds); private: std::string owner_; int alertMarginThreshold_; std::vector overtimeSettings_; int priority_; - std::string taskIds_; std::string baselineType_; std::string baselineName_; long projectId_; + std::string nodeIds_; }; } // namespace Model } // namespace Dataworks_public diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateBusinessRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateBusinessRequest.h index 1ef9fffe2..8f61269b9 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/CreateBusinessRequest.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/CreateBusinessRequest.h @@ -32,24 +32,24 @@ public: ~CreateBusinessRequest(); std::string getOwner() const; void setOwner(const std::string &owner); - std::string getBusinessName() const; - void setBusinessName(const std::string &businessName); std::string getDescription() const; void setDescription(const std::string &description); + std::string getProjectIdentifier() const; + void setProjectIdentifier(const std::string &projectIdentifier); + std::string getBusinessName() const; + void setBusinessName(const std::string &businessName); long getProjectId() const; void setProjectId(long projectId); std::string getUseType() const; void setUseType(const std::string &useType); - std::string getProjectIdentifier() const; - void setProjectIdentifier(const std::string &projectIdentifier); private: std::string owner_; - std::string businessName_; std::string description_; + std::string projectIdentifier_; + std::string businessName_; long projectId_; std::string useType_; - std::string projectIdentifier_; }; } // namespace Model } // namespace Dataworks_public diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/MountDirectoryRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/MountDirectoryRequest.h new file mode 100644 index 000000000..c3ed53161 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/MountDirectoryRequest.h @@ -0,0 +1,45 @@ +/* + * 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_MOUNTDIRECTORYREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_MOUNTDIRECTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT MountDirectoryRequest : public RpcServiceRequest { +public: + MountDirectoryRequest(); + ~MountDirectoryRequest(); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getTargetId() const; + void setTargetId(const std::string &targetId); + +private: + std::string targetType_; + std::string targetId_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_MOUNTDIRECTORYREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/MountDirectoryResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/MountDirectoryResult.h new file mode 100644 index 000000000..7ebefa90c --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/MountDirectoryResult.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_MOUNTDIRECTORYRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_MOUNTDIRECTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT MountDirectoryResult : public ServiceResult + { + public: + + + MountDirectoryResult(); + explicit MountDirectoryResult(const std::string &payload); + ~MountDirectoryResult(); + int getHttpStatusCode()const; + int getData()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + int data_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_MOUNTDIRECTORYRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UmountDirectoryRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UmountDirectoryRequest.h new file mode 100644 index 000000000..fd55643e6 --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UmountDirectoryRequest.h @@ -0,0 +1,45 @@ +/* + * 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_UMOUNTDIRECTORYREQUEST_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UMOUNTDIRECTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dataworks_public { +namespace Model { +class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT UmountDirectoryRequest : public RpcServiceRequest { +public: + UmountDirectoryRequest(); + ~UmountDirectoryRequest(); + std::string getTargetType() const; + void setTargetType(const std::string &targetType); + std::string getTargetId() const; + void setTargetId(const std::string &targetId); + +private: + std::string targetType_; + std::string targetId_; +}; +} // namespace Model +} // namespace Dataworks_public +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UMOUNTDIRECTORYREQUEST_H_ diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UmountDirectoryResult.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UmountDirectoryResult.h new file mode 100644 index 000000000..7b055e93f --- /dev/null +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UmountDirectoryResult.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_UMOUNTDIRECTORYRESULT_H_ +#define ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UMOUNTDIRECTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dataworks_public + { + namespace Model + { + class ALIBABACLOUD_DATAWORKS_PUBLIC_EXPORT UmountDirectoryResult : public ServiceResult + { + public: + + + UmountDirectoryResult(); + explicit UmountDirectoryResult(const std::string &payload); + ~UmountDirectoryResult(); + int getHttpStatusCode()const; + int getData()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int httpStatusCode_; + int data_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DATAWORKS_PUBLIC_MODEL_UMOUNTDIRECTORYRESULT_H_ \ No newline at end of file diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateBaselineRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateBaselineRequest.h index 9e5f871b3..a4d15f49a 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateBaselineRequest.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateBaselineRequest.h @@ -58,16 +58,14 @@ public: ~UpdateBaselineRequest(); std::string getOwner() const; void setOwner(const std::string &owner); + std::string getRemoveNodeIds() const; + void setRemoveNodeIds(const std::string &removeNodeIds); int getAlertMarginThreshold() const; void setAlertMarginThreshold(int alertMarginThreshold); - std::string getRemoveTaskIds() const; - void setRemoveTaskIds(const std::string &removeTaskIds); std::vector getOvertimeSettings() const; void setOvertimeSettings(const std::vector &overtimeSettings); int getPriority() const; void setPriority(int priority); - std::string getTaskIds() const; - void setTaskIds(const std::string &taskIds); long getBaselineId() const; void setBaselineId(long baselineId); bool getEnabled() const; @@ -82,14 +80,15 @@ public: void setBaselineName(const std::string &baselineName); long getProjectId() const; void setProjectId(long projectId); + std::string getNodeIds() const; + void setNodeIds(const std::string &nodeIds); private: std::string owner_; + std::string removeNodeIds_; int alertMarginThreshold_; - std::string removeTaskIds_; std::vector overtimeSettings_; int priority_; - std::string taskIds_; long baselineId_; bool enabled_; std::string baselineType_; @@ -97,6 +96,7 @@ private: std::vector alertSettings_; std::string baselineName_; long projectId_; + std::string nodeIds_; }; } // namespace Model } // namespace Dataworks_public diff --git a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateBusinessRequest.h b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateBusinessRequest.h index 894019f83..c0b4e2c11 100644 --- a/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateBusinessRequest.h +++ b/dataworks-public/include/alibabacloud/dataworks-public/model/UpdateBusinessRequest.h @@ -34,22 +34,22 @@ public: void setOwner(const std::string &owner); long getBusinessId() const; void setBusinessId(long businessId); - std::string getBusinessName() const; - void setBusinessName(const std::string &businessName); std::string getDescription() const; void setDescription(const std::string &description); - long getProjectId() const; - void setProjectId(long projectId); std::string getProjectIdentifier() const; void setProjectIdentifier(const std::string &projectIdentifier); + std::string getBusinessName() const; + void setBusinessName(const std::string &businessName); + long getProjectId() const; + void setProjectId(long projectId); private: std::string owner_; long businessId_; - std::string businessName_; std::string description_; - long projectId_; std::string projectIdentifier_; + std::string businessName_; + long projectId_; }; } // namespace Model } // namespace Dataworks_public diff --git a/dataworks-public/src/Dataworks-publicClient.cc b/dataworks-public/src/Dataworks-publicClient.cc index dfcd23d0d..4fdd7c01b 100644 --- a/dataworks-public/src/Dataworks-publicClient.cc +++ b/dataworks-public/src/Dataworks-publicClient.cc @@ -7035,6 +7035,42 @@ Dataworks_publicClient::ListTopicsOutcomeCallable Dataworks_publicClient::listTo return task->get_future(); } +Dataworks_publicClient::MountDirectoryOutcome Dataworks_publicClient::mountDirectory(const MountDirectoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MountDirectoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MountDirectoryOutcome(MountDirectoryResult(outcome.result())); + else + return MountDirectoryOutcome(outcome.error()); +} + +void Dataworks_publicClient::mountDirectoryAsync(const MountDirectoryRequest& request, const MountDirectoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, mountDirectory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::MountDirectoryOutcomeCallable Dataworks_publicClient::mountDirectoryCallable(const MountDirectoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->mountDirectory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::OfflineNodeOutcome Dataworks_publicClient::offlineNode(const OfflineNodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -8079,6 +8115,42 @@ Dataworks_publicClient::TopTenErrorTimesInstanceOutcomeCallable Dataworks_public return task->get_future(); } +Dataworks_publicClient::UmountDirectoryOutcome Dataworks_publicClient::umountDirectory(const UmountDirectoryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UmountDirectoryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UmountDirectoryOutcome(UmountDirectoryResult(outcome.result())); + else + return UmountDirectoryOutcome(outcome.error()); +} + +void Dataworks_publicClient::umountDirectoryAsync(const UmountDirectoryRequest& request, const UmountDirectoryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, umountDirectory(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dataworks_publicClient::UmountDirectoryOutcomeCallable Dataworks_publicClient::umountDirectoryCallable(const UmountDirectoryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->umountDirectory(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dataworks_publicClient::UpdateBaselineOutcome Dataworks_publicClient::updateBaseline(const UpdateBaselineRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dataworks-public/src/model/CreateBaselineRequest.cc b/dataworks-public/src/model/CreateBaselineRequest.cc index 205b3a267..b856c78c8 100644 --- a/dataworks-public/src/model/CreateBaselineRequest.cc +++ b/dataworks-public/src/model/CreateBaselineRequest.cc @@ -66,15 +66,6 @@ void CreateBaselineRequest::setPriority(int priority) { setBodyParameter(std::string("Priority"), std::to_string(priority)); } -std::string CreateBaselineRequest::getTaskIds() const { - return taskIds_; -} - -void CreateBaselineRequest::setTaskIds(const std::string &taskIds) { - taskIds_ = taskIds; - setBodyParameter(std::string("TaskIds"), taskIds); -} - std::string CreateBaselineRequest::getBaselineType() const { return baselineType_; } @@ -102,3 +93,12 @@ void CreateBaselineRequest::setProjectId(long projectId) { setBodyParameter(std::string("ProjectId"), std::to_string(projectId)); } +std::string CreateBaselineRequest::getNodeIds() const { + return nodeIds_; +} + +void CreateBaselineRequest::setNodeIds(const std::string &nodeIds) { + nodeIds_ = nodeIds; + setBodyParameter(std::string("NodeIds"), nodeIds); +} + diff --git a/dataworks-public/src/model/CreateBusinessRequest.cc b/dataworks-public/src/model/CreateBusinessRequest.cc index 8dff29821..b12397782 100644 --- a/dataworks-public/src/model/CreateBusinessRequest.cc +++ b/dataworks-public/src/model/CreateBusinessRequest.cc @@ -34,15 +34,6 @@ void CreateBusinessRequest::setOwner(const std::string &owner) { setBodyParameter(std::string("Owner"), owner); } -std::string CreateBusinessRequest::getBusinessName() const { - return businessName_; -} - -void CreateBusinessRequest::setBusinessName(const std::string &businessName) { - businessName_ = businessName; - setBodyParameter(std::string("BusinessName"), businessName); -} - std::string CreateBusinessRequest::getDescription() const { return description_; } @@ -52,6 +43,24 @@ void CreateBusinessRequest::setDescription(const std::string &description) { setBodyParameter(std::string("Description"), description); } +std::string CreateBusinessRequest::getProjectIdentifier() const { + return projectIdentifier_; +} + +void CreateBusinessRequest::setProjectIdentifier(const std::string &projectIdentifier) { + projectIdentifier_ = projectIdentifier; + setBodyParameter(std::string("ProjectIdentifier"), projectIdentifier); +} + +std::string CreateBusinessRequest::getBusinessName() const { + return businessName_; +} + +void CreateBusinessRequest::setBusinessName(const std::string &businessName) { + businessName_ = businessName; + setBodyParameter(std::string("BusinessName"), businessName); +} + long CreateBusinessRequest::getProjectId() const { return projectId_; } @@ -70,12 +79,3 @@ void CreateBusinessRequest::setUseType(const std::string &useType) { setBodyParameter(std::string("UseType"), useType); } -std::string CreateBusinessRequest::getProjectIdentifier() const { - return projectIdentifier_; -} - -void CreateBusinessRequest::setProjectIdentifier(const std::string &projectIdentifier) { - projectIdentifier_ = projectIdentifier; - setBodyParameter(std::string("ProjectIdentifier"), projectIdentifier); -} - diff --git a/dataworks-public/src/model/MountDirectoryRequest.cc b/dataworks-public/src/model/MountDirectoryRequest.cc new file mode 100644 index 000000000..3e684a074 --- /dev/null +++ b/dataworks-public/src/model/MountDirectoryRequest.cc @@ -0,0 +1,45 @@ +/* + * 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::MountDirectoryRequest; + +MountDirectoryRequest::MountDirectoryRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "MountDirectory") { + setMethod(HttpRequest::Method::Post); +} + +MountDirectoryRequest::~MountDirectoryRequest() {} + +std::string MountDirectoryRequest::getTargetType() const { + return targetType_; +} + +void MountDirectoryRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setBodyParameter(std::string("TargetType"), targetType); +} + +std::string MountDirectoryRequest::getTargetId() const { + return targetId_; +} + +void MountDirectoryRequest::setTargetId(const std::string &targetId) { + targetId_ = targetId; + setBodyParameter(std::string("TargetId"), targetId); +} + diff --git a/dataworks-public/src/model/MountDirectoryResult.cc b/dataworks-public/src/model/MountDirectoryResult.cc new file mode 100644 index 000000000..130525dd1 --- /dev/null +++ b/dataworks-public/src/model/MountDirectoryResult.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; + +MountDirectoryResult::MountDirectoryResult() : + ServiceResult() +{} + +MountDirectoryResult::MountDirectoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MountDirectoryResult::~MountDirectoryResult() +{} + +void MountDirectoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Data"].isNull()) + data_ = std::stoi(value["Data"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +int MountDirectoryResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +int MountDirectoryResult::getData()const +{ + return data_; +} + +std::string MountDirectoryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string MountDirectoryResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool MountDirectoryResult::getSuccess()const +{ + return success_; +} + diff --git a/dataworks-public/src/model/UmountDirectoryRequest.cc b/dataworks-public/src/model/UmountDirectoryRequest.cc new file mode 100644 index 000000000..182c245cd --- /dev/null +++ b/dataworks-public/src/model/UmountDirectoryRequest.cc @@ -0,0 +1,45 @@ +/* + * 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::UmountDirectoryRequest; + +UmountDirectoryRequest::UmountDirectoryRequest() + : RpcServiceRequest("dataworks-public", "2020-05-18", "UmountDirectory") { + setMethod(HttpRequest::Method::Post); +} + +UmountDirectoryRequest::~UmountDirectoryRequest() {} + +std::string UmountDirectoryRequest::getTargetType() const { + return targetType_; +} + +void UmountDirectoryRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setBodyParameter(std::string("TargetType"), targetType); +} + +std::string UmountDirectoryRequest::getTargetId() const { + return targetId_; +} + +void UmountDirectoryRequest::setTargetId(const std::string &targetId) { + targetId_ = targetId; + setBodyParameter(std::string("TargetId"), targetId); +} + diff --git a/dataworks-public/src/model/UmountDirectoryResult.cc b/dataworks-public/src/model/UmountDirectoryResult.cc new file mode 100644 index 000000000..59a2888e0 --- /dev/null +++ b/dataworks-public/src/model/UmountDirectoryResult.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; + +UmountDirectoryResult::UmountDirectoryResult() : + ServiceResult() +{} + +UmountDirectoryResult::UmountDirectoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UmountDirectoryResult::~UmountDirectoryResult() +{} + +void UmountDirectoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Data"].isNull()) + data_ = std::stoi(value["Data"].asString()); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + +} + +int UmountDirectoryResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +int UmountDirectoryResult::getData()const +{ + return data_; +} + +std::string UmountDirectoryResult::getErrorCode()const +{ + return errorCode_; +} + +std::string UmountDirectoryResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool UmountDirectoryResult::getSuccess()const +{ + return success_; +} + diff --git a/dataworks-public/src/model/UpdateBaselineRequest.cc b/dataworks-public/src/model/UpdateBaselineRequest.cc index e2bdd49c6..bd9f0720a 100644 --- a/dataworks-public/src/model/UpdateBaselineRequest.cc +++ b/dataworks-public/src/model/UpdateBaselineRequest.cc @@ -34,6 +34,15 @@ void UpdateBaselineRequest::setOwner(const std::string &owner) { setBodyParameter(std::string("Owner"), owner); } +std::string UpdateBaselineRequest::getRemoveNodeIds() const { + return removeNodeIds_; +} + +void UpdateBaselineRequest::setRemoveNodeIds(const std::string &removeNodeIds) { + removeNodeIds_ = removeNodeIds; + setBodyParameter(std::string("RemoveNodeIds"), removeNodeIds); +} + int UpdateBaselineRequest::getAlertMarginThreshold() const { return alertMarginThreshold_; } @@ -43,15 +52,6 @@ void UpdateBaselineRequest::setAlertMarginThreshold(int alertMarginThreshold) { setBodyParameter(std::string("AlertMarginThreshold"), std::to_string(alertMarginThreshold)); } -std::string UpdateBaselineRequest::getRemoveTaskIds() const { - return removeTaskIds_; -} - -void UpdateBaselineRequest::setRemoveTaskIds(const std::string &removeTaskIds) { - removeTaskIds_ = removeTaskIds; - setBodyParameter(std::string("RemoveTaskIds"), removeTaskIds); -} - std::vector UpdateBaselineRequest::getOvertimeSettings() const { return overtimeSettings_; } @@ -73,15 +73,6 @@ void UpdateBaselineRequest::setPriority(int priority) { setBodyParameter(std::string("Priority"), std::to_string(priority)); } -std::string UpdateBaselineRequest::getTaskIds() const { - return taskIds_; -} - -void UpdateBaselineRequest::setTaskIds(const std::string &taskIds) { - taskIds_ = taskIds; - setBodyParameter(std::string("TaskIds"), taskIds); -} - long UpdateBaselineRequest::getBaselineId() const { return baselineId_; } @@ -167,3 +158,12 @@ void UpdateBaselineRequest::setProjectId(long projectId) { setBodyParameter(std::string("ProjectId"), std::to_string(projectId)); } +std::string UpdateBaselineRequest::getNodeIds() const { + return nodeIds_; +} + +void UpdateBaselineRequest::setNodeIds(const std::string &nodeIds) { + nodeIds_ = nodeIds; + setBodyParameter(std::string("NodeIds"), nodeIds); +} + diff --git a/dataworks-public/src/model/UpdateBusinessRequest.cc b/dataworks-public/src/model/UpdateBusinessRequest.cc index ae07adb99..4c39642ed 100644 --- a/dataworks-public/src/model/UpdateBusinessRequest.cc +++ b/dataworks-public/src/model/UpdateBusinessRequest.cc @@ -43,15 +43,6 @@ void UpdateBusinessRequest::setBusinessId(long businessId) { setBodyParameter(std::string("BusinessId"), std::to_string(businessId)); } -std::string UpdateBusinessRequest::getBusinessName() const { - return businessName_; -} - -void UpdateBusinessRequest::setBusinessName(const std::string &businessName) { - businessName_ = businessName; - setBodyParameter(std::string("BusinessName"), businessName); -} - std::string UpdateBusinessRequest::getDescription() const { return description_; } @@ -61,15 +52,6 @@ void UpdateBusinessRequest::setDescription(const std::string &description) { setBodyParameter(std::string("Description"), description); } -long UpdateBusinessRequest::getProjectId() const { - return projectId_; -} - -void UpdateBusinessRequest::setProjectId(long projectId) { - projectId_ = projectId; - setBodyParameter(std::string("ProjectId"), std::to_string(projectId)); -} - std::string UpdateBusinessRequest::getProjectIdentifier() const { return projectIdentifier_; } @@ -79,3 +61,21 @@ void UpdateBusinessRequest::setProjectIdentifier(const std::string &projectIdent setBodyParameter(std::string("ProjectIdentifier"), projectIdentifier); } +std::string UpdateBusinessRequest::getBusinessName() const { + return businessName_; +} + +void UpdateBusinessRequest::setBusinessName(const std::string &businessName) { + businessName_ = businessName; + setBodyParameter(std::string("BusinessName"), businessName); +} + +long UpdateBusinessRequest::getProjectId() const { + return projectId_; +} + +void UpdateBusinessRequest::setProjectId(long projectId) { + projectId_ = projectId; + setBodyParameter(std::string("ProjectId"), std::to_string(projectId)); +} +