Add Pipeline Member api.
This commit is contained in:
@@ -591,6 +591,42 @@ Devops_rdcClient::DeleteDevopsProjectTaskOutcomeCallable Devops_rdcClient::delet
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::DeletePipelineMemberOutcome Devops_rdcClient::deletePipelineMember(const DeletePipelineMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeletePipelineMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeletePipelineMemberOutcome(DeletePipelineMemberResult(outcome.result()));
|
||||
else
|
||||
return DeletePipelineMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::deletePipelineMemberAsync(const DeletePipelineMemberRequest& request, const DeletePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deletePipelineMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::DeletePipelineMemberOutcomeCallable Devops_rdcClient::deletePipelineMemberCallable(const DeletePipelineMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeletePipelineMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deletePipelineMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::ExecutePipelineOutcome Devops_rdcClient::executePipeline(const ExecutePipelineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1095,6 +1131,42 @@ Devops_rdcClient::InsertDevopsUserOutcomeCallable Devops_rdcClient::insertDevops
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::InsertPipelineMemberOutcome Devops_rdcClient::insertPipelineMember(const InsertPipelineMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InsertPipelineMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InsertPipelineMemberOutcome(InsertPipelineMemberResult(outcome.result()));
|
||||
else
|
||||
return InsertPipelineMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::insertPipelineMemberAsync(const InsertPipelineMemberRequest& request, const InsertPipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, insertPipelineMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::InsertPipelineMemberOutcomeCallable Devops_rdcClient::insertPipelineMemberCallable(const InsertPipelineMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InsertPipelineMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->insertPipelineMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::InsertProjectMembersOutcome Devops_rdcClient::insertProjectMembers(const InsertProjectMembersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1455,6 +1527,42 @@ Devops_rdcClient::ListUserOrganizationOutcomeCallable Devops_rdcClient::listUser
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::TransferPipelineOwnerOutcome Devops_rdcClient::transferPipelineOwner(const TransferPipelineOwnerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TransferPipelineOwnerOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TransferPipelineOwnerOutcome(TransferPipelineOwnerResult(outcome.result()));
|
||||
else
|
||||
return TransferPipelineOwnerOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::transferPipelineOwnerAsync(const TransferPipelineOwnerRequest& request, const TransferPipelineOwnerAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, transferPipelineOwner(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::TransferPipelineOwnerOutcomeCallable Devops_rdcClient::transferPipelineOwnerCallable(const TransferPipelineOwnerRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TransferPipelineOwnerOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->transferPipelineOwner(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::UpdateDevopsProjectOutcome Devops_rdcClient::updateDevopsProject(const UpdateDevopsProjectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1563,3 +1671,39 @@ Devops_rdcClient::UpdateDevopsProjectTaskOutcomeCallable Devops_rdcClient::updat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::UpdatePipelineMemberOutcome Devops_rdcClient::updatePipelineMember(const UpdatePipelineMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdatePipelineMemberOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdatePipelineMemberOutcome(UpdatePipelineMemberResult(outcome.result()));
|
||||
else
|
||||
return UpdatePipelineMemberOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::updatePipelineMemberAsync(const UpdatePipelineMemberRequest& request, const UpdatePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updatePipelineMember(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::UpdatePipelineMemberOutcomeCallable Devops_rdcClient::updatePipelineMemberCallable(const UpdatePipelineMemberRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdatePipelineMemberOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updatePipelineMember(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
73
devops-rdc/src/model/DeletePipelineMemberRequest.cc
Normal file
73
devops-rdc/src/model/DeletePipelineMemberRequest.cc
Normal file
@@ -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 <alibabacloud/devops-rdc/model/DeletePipelineMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeletePipelineMemberRequest;
|
||||
|
||||
DeletePipelineMemberRequest::DeletePipelineMemberRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "DeletePipelineMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePipelineMemberRequest::~DeletePipelineMemberRequest()
|
||||
{}
|
||||
|
||||
std::string DeletePipelineMemberRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
}
|
||||
|
||||
std::string DeletePipelineMemberRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string DeletePipelineMemberRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
}
|
||||
|
||||
long DeletePipelineMemberRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
72
devops-rdc/src/model/DeletePipelineMemberResult.cc
Normal file
72
devops-rdc/src/model/DeletePipelineMemberResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/devops-rdc/model/DeletePipelineMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Devops_rdc;
|
||||
using namespace AlibabaCloud::Devops_rdc::Model;
|
||||
|
||||
DeletePipelineMemberResult::DeletePipelineMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePipelineMemberResult::DeletePipelineMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePipelineMemberResult::~DeletePipelineMemberResult()
|
||||
{}
|
||||
|
||||
void DeletePipelineMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeletePipelineMemberResult::getObject()const
|
||||
{
|
||||
return object_;
|
||||
}
|
||||
|
||||
std::string DeletePipelineMemberResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeletePipelineMemberResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DeletePipelineMemberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
devops-rdc/src/model/InsertPipelineMemberRequest.cc
Normal file
84
devops-rdc/src/model/InsertPipelineMemberRequest.cc
Normal file
@@ -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 <alibabacloud/devops-rdc/model/InsertPipelineMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::InsertPipelineMemberRequest;
|
||||
|
||||
InsertPipelineMemberRequest::InsertPipelineMemberRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "InsertPipelineMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InsertPipelineMemberRequest::~InsertPipelineMemberRequest()
|
||||
{}
|
||||
|
||||
std::string InsertPipelineMemberRequest::getRoleName()const
|
||||
{
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setRoleName(const std::string& roleName)
|
||||
{
|
||||
roleName_ = roleName;
|
||||
setBodyParameter("RoleName", roleName);
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
}
|
||||
|
||||
long InsertPipelineMemberRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
72
devops-rdc/src/model/InsertPipelineMemberResult.cc
Normal file
72
devops-rdc/src/model/InsertPipelineMemberResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/devops-rdc/model/InsertPipelineMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Devops_rdc;
|
||||
using namespace AlibabaCloud::Devops_rdc::Model;
|
||||
|
||||
InsertPipelineMemberResult::InsertPipelineMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InsertPipelineMemberResult::InsertPipelineMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InsertPipelineMemberResult::~InsertPipelineMemberResult()
|
||||
{}
|
||||
|
||||
void InsertPipelineMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool InsertPipelineMemberResult::getObject()const
|
||||
{
|
||||
return object_;
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool InsertPipelineMemberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
devops-rdc/src/model/TransferPipelineOwnerRequest.cc
Normal file
73
devops-rdc/src/model/TransferPipelineOwnerRequest.cc
Normal file
@@ -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 <alibabacloud/devops-rdc/model/TransferPipelineOwnerRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::TransferPipelineOwnerRequest;
|
||||
|
||||
TransferPipelineOwnerRequest::TransferPipelineOwnerRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "TransferPipelineOwner")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TransferPipelineOwnerRequest::~TransferPipelineOwnerRequest()
|
||||
{}
|
||||
|
||||
std::string TransferPipelineOwnerRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
void TransferPipelineOwnerRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
}
|
||||
|
||||
std::string TransferPipelineOwnerRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void TransferPipelineOwnerRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
}
|
||||
|
||||
long TransferPipelineOwnerRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void TransferPipelineOwnerRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
std::string TransferPipelineOwnerRequest::getNewOwnerId()const
|
||||
{
|
||||
return newOwnerId_;
|
||||
}
|
||||
|
||||
void TransferPipelineOwnerRequest::setNewOwnerId(const std::string& newOwnerId)
|
||||
{
|
||||
newOwnerId_ = newOwnerId;
|
||||
setBodyParameter("NewOwnerId", newOwnerId);
|
||||
}
|
||||
|
||||
72
devops-rdc/src/model/TransferPipelineOwnerResult.cc
Normal file
72
devops-rdc/src/model/TransferPipelineOwnerResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/devops-rdc/model/TransferPipelineOwnerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Devops_rdc;
|
||||
using namespace AlibabaCloud::Devops_rdc::Model;
|
||||
|
||||
TransferPipelineOwnerResult::TransferPipelineOwnerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TransferPipelineOwnerResult::TransferPipelineOwnerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TransferPipelineOwnerResult::~TransferPipelineOwnerResult()
|
||||
{}
|
||||
|
||||
void TransferPipelineOwnerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string TransferPipelineOwnerResult::getObject()const
|
||||
{
|
||||
return object_;
|
||||
}
|
||||
|
||||
std::string TransferPipelineOwnerResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string TransferPipelineOwnerResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool TransferPipelineOwnerResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
84
devops-rdc/src/model/UpdatePipelineMemberRequest.cc
Normal file
84
devops-rdc/src/model/UpdatePipelineMemberRequest.cc
Normal file
@@ -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 <alibabacloud/devops-rdc/model/UpdatePipelineMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::UpdatePipelineMemberRequest;
|
||||
|
||||
UpdatePipelineMemberRequest::UpdatePipelineMemberRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "UpdatePipelineMember")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdatePipelineMemberRequest::~UpdatePipelineMemberRequest()
|
||||
{}
|
||||
|
||||
std::string UpdatePipelineMemberRequest::getRoleName()const
|
||||
{
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
void UpdatePipelineMemberRequest::setRoleName(const std::string& roleName)
|
||||
{
|
||||
roleName_ = roleName;
|
||||
setBodyParameter("RoleName", roleName);
|
||||
}
|
||||
|
||||
std::string UpdatePipelineMemberRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
void UpdatePipelineMemberRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
}
|
||||
|
||||
std::string UpdatePipelineMemberRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void UpdatePipelineMemberRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string UpdatePipelineMemberRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void UpdatePipelineMemberRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
}
|
||||
|
||||
long UpdatePipelineMemberRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void UpdatePipelineMemberRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
72
devops-rdc/src/model/UpdatePipelineMemberResult.cc
Normal file
72
devops-rdc/src/model/UpdatePipelineMemberResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/devops-rdc/model/UpdatePipelineMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Devops_rdc;
|
||||
using namespace AlibabaCloud::Devops_rdc::Model;
|
||||
|
||||
UpdatePipelineMemberResult::UpdatePipelineMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdatePipelineMemberResult::UpdatePipelineMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdatePipelineMemberResult::~UpdatePipelineMemberResult()
|
||||
{}
|
||||
|
||||
void UpdatePipelineMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool UpdatePipelineMemberResult::getObject()const
|
||||
{
|
||||
return object_;
|
||||
}
|
||||
|
||||
std::string UpdatePipelineMemberResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdatePipelineMemberResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool UpdatePipelineMemberResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user