Generated 2020-05-18 for dataworks-public.
This commit is contained in:
@@ -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<const AsyncCallerContext>& 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<std::packaged_task<MountDirectoryOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<UmountDirectoryOutcome()>>(
|
||||
[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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
45
dataworks-public/src/model/MountDirectoryRequest.cc
Normal file
45
dataworks-public/src/model/MountDirectoryRequest.cc
Normal file
@@ -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 <alibabacloud/dataworks-public/model/MountDirectoryRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
79
dataworks-public/src/model/MountDirectoryResult.cc
Normal file
79
dataworks-public/src/model/MountDirectoryResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/MountDirectoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
45
dataworks-public/src/model/UmountDirectoryRequest.cc
Normal file
45
dataworks-public/src/model/UmountDirectoryRequest.cc
Normal file
@@ -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 <alibabacloud/dataworks-public/model/UmountDirectoryRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
79
dataworks-public/src/model/UmountDirectoryResult.cc
Normal file
79
dataworks-public/src/model/UmountDirectoryResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dataworks-public/model/UmountDirectoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -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::OvertimeSettings> 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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user