Fix ListPIpelineTemplates.
This commit is contained in:
@@ -51,6 +51,42 @@ Devops_rdcClient::Devops_rdcClient(const std::string & accessKeyId, const std::s
|
||||
Devops_rdcClient::~Devops_rdcClient()
|
||||
{}
|
||||
|
||||
Devops_rdcClient::AddCodeupSourceToPipelineOutcome Devops_rdcClient::addCodeupSourceToPipeline(const AddCodeupSourceToPipelineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddCodeupSourceToPipelineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddCodeupSourceToPipelineOutcome(AddCodeupSourceToPipelineResult(outcome.result()));
|
||||
else
|
||||
return AddCodeupSourceToPipelineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::addCodeupSourceToPipelineAsync(const AddCodeupSourceToPipelineRequest& request, const AddCodeupSourceToPipelineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addCodeupSourceToPipeline(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::AddCodeupSourceToPipelineOutcomeCallable Devops_rdcClient::addCodeupSourceToPipelineCallable(const AddCodeupSourceToPipelineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddCodeupSourceToPipelineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addCodeupSourceToPipeline(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::BatchInsertMembersOutcome Devops_rdcClient::batchInsertMembers(const BatchInsertMembersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -411,6 +447,42 @@ Devops_rdcClient::CreatePipelineOutcomeCallable Devops_rdcClient::createPipeline
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::CreatePipelineFromTemplateOutcome Devops_rdcClient::createPipelineFromTemplate(const CreatePipelineFromTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreatePipelineFromTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreatePipelineFromTemplateOutcome(CreatePipelineFromTemplateResult(outcome.result()));
|
||||
else
|
||||
return CreatePipelineFromTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::createPipelineFromTemplateAsync(const CreatePipelineFromTemplateRequest& request, const CreatePipelineFromTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createPipelineFromTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::CreatePipelineFromTemplateOutcomeCallable Devops_rdcClient::createPipelineFromTemplateCallable(const CreatePipelineFromTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreatePipelineFromTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createPipelineFromTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::CreateServiceConnectionOutcome Devops_rdcClient::createServiceConnection(const CreateServiceConnectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1923,6 +1995,42 @@ Devops_rdcClient::ListDevopsScenarioFieldConfigOutcomeCallable Devops_rdcClient:
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::ListPipelineTemplatesOutcome Devops_rdcClient::listPipelineTemplates(const ListPipelineTemplatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPipelineTemplatesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListPipelineTemplatesOutcome(ListPipelineTemplatesResult(outcome.result()));
|
||||
else
|
||||
return ListPipelineTemplatesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::listPipelineTemplatesAsync(const ListPipelineTemplatesRequest& request, const ListPipelineTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listPipelineTemplates(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::ListPipelineTemplatesOutcomeCallable Devops_rdcClient::listPipelineTemplatesCallable(const ListPipelineTemplatesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListPipelineTemplatesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listPipelineTemplates(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::ListPipelinesOutcome Devops_rdcClient::listPipelines(const ListPipelinesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2283,6 +2391,42 @@ Devops_rdcClient::UpdateDevopsProjectTaskOutcomeCallable Devops_rdcClient::updat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::UpdatePipelineEnvVarsOutcome Devops_rdcClient::updatePipelineEnvVars(const UpdatePipelineEnvVarsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdatePipelineEnvVarsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdatePipelineEnvVarsOutcome(UpdatePipelineEnvVarsResult(outcome.result()));
|
||||
else
|
||||
return UpdatePipelineEnvVarsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Devops_rdcClient::updatePipelineEnvVarsAsync(const UpdatePipelineEnvVarsRequest& request, const UpdatePipelineEnvVarsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updatePipelineEnvVars(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Devops_rdcClient::UpdatePipelineEnvVarsOutcomeCallable Devops_rdcClient::updatePipelineEnvVarsCallable(const UpdatePipelineEnvVarsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdatePipelineEnvVarsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updatePipelineEnvVars(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Devops_rdcClient::UpdatePipelineMemberOutcome Devops_rdcClient::updatePipelineMember(const UpdatePipelineMemberRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
63
devops-rdc/src/model/AddCodeupSourceToPipelineRequest.cc
Normal file
63
devops-rdc/src/model/AddCodeupSourceToPipelineRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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/AddCodeupSourceToPipelineRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::AddCodeupSourceToPipelineRequest;
|
||||
|
||||
AddCodeupSourceToPipelineRequest::AddCodeupSourceToPipelineRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "AddCodeupSourceToPipeline") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddCodeupSourceToPipelineRequest::~AddCodeupSourceToPipelineRequest() {}
|
||||
|
||||
std::string AddCodeupSourceToPipelineRequest::getCodePath() const {
|
||||
return codePath_;
|
||||
}
|
||||
|
||||
void AddCodeupSourceToPipelineRequest::setCodePath(const std::string &codePath) {
|
||||
codePath_ = codePath;
|
||||
setParameter(std::string("CodePath"), codePath);
|
||||
}
|
||||
|
||||
std::string AddCodeupSourceToPipelineRequest::getCodeBranch() const {
|
||||
return codeBranch_;
|
||||
}
|
||||
|
||||
void AddCodeupSourceToPipelineRequest::setCodeBranch(const std::string &codeBranch) {
|
||||
codeBranch_ = codeBranch;
|
||||
setParameter(std::string("CodeBranch"), codeBranch);
|
||||
}
|
||||
|
||||
std::string AddCodeupSourceToPipelineRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void AddCodeupSourceToPipelineRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
long AddCodeupSourceToPipelineRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void AddCodeupSourceToPipelineRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
51
devops-rdc/src/model/AddCodeupSourceToPipelineResult.cc
Normal file
51
devops-rdc/src/model/AddCodeupSourceToPipelineResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/AddCodeupSourceToPipelineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Devops_rdc;
|
||||
using namespace AlibabaCloud::Devops_rdc::Model;
|
||||
|
||||
AddCodeupSourceToPipelineResult::AddCodeupSourceToPipelineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddCodeupSourceToPipelineResult::AddCodeupSourceToPipelineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddCodeupSourceToPipelineResult::~AddCodeupSourceToPipelineResult()
|
||||
{}
|
||||
|
||||
void AddCodeupSourceToPipelineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PipelineId"].isNull())
|
||||
pipelineId_ = std::stol(value["PipelineId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long AddCodeupSourceToPipelineResult::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/BatchInsertMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::BatchInsertMembersRequest;
|
||||
|
||||
BatchInsertMembersRequest::BatchInsertMembersRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "BatchInsertMembers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BatchInsertMembersRequest::~BatchInsertMembersRequest()
|
||||
{}
|
||||
|
||||
std::string BatchInsertMembersRequest::getMembers()const
|
||||
{
|
||||
return members_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/BatchInsertMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::BatchInsertMembersRequest;
|
||||
|
||||
BatchInsertMembersRequest::BatchInsertMembersRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "BatchInsertMembers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void BatchInsertMembersRequest::setMembers(const std::string& members)
|
||||
{
|
||||
members_ = members;
|
||||
setBodyParameter("Members", members);
|
||||
BatchInsertMembersRequest::~BatchInsertMembersRequest() {}
|
||||
|
||||
std::string BatchInsertMembersRequest::getMembers() const {
|
||||
return members_;
|
||||
}
|
||||
|
||||
std::string BatchInsertMembersRequest::getRealPk()const
|
||||
{
|
||||
return realPk_;
|
||||
void BatchInsertMembersRequest::setMembers(const std::string &members) {
|
||||
members_ = members;
|
||||
setBodyParameter(std::string("Members"), members);
|
||||
}
|
||||
|
||||
void BatchInsertMembersRequest::setRealPk(const std::string& realPk)
|
||||
{
|
||||
realPk_ = realPk;
|
||||
setBodyParameter("RealPk", realPk);
|
||||
std::string BatchInsertMembersRequest::getRealPk() const {
|
||||
return realPk_;
|
||||
}
|
||||
|
||||
std::string BatchInsertMembersRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void BatchInsertMembersRequest::setRealPk(const std::string &realPk) {
|
||||
realPk_ = realPk;
|
||||
setBodyParameter(std::string("RealPk"), realPk);
|
||||
}
|
||||
|
||||
void BatchInsertMembersRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string BatchInsertMembersRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void BatchInsertMembersRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void BatchInsertMembersResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/CancelPipelineRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CancelPipelineRequest;
|
||||
|
||||
CancelPipelineRequest::CancelPipelineRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "CancelPipeline")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelPipelineRequest::~CancelPipelineRequest()
|
||||
{}
|
||||
|
||||
long CancelPipelineRequest::getFlowInstanceId()const
|
||||
{
|
||||
return flowInstanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CancelPipelineRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CancelPipelineRequest;
|
||||
|
||||
CancelPipelineRequest::CancelPipelineRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "CancelPipeline") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CancelPipelineRequest::setFlowInstanceId(long flowInstanceId)
|
||||
{
|
||||
flowInstanceId_ = flowInstanceId;
|
||||
setBodyParameter("FlowInstanceId", std::to_string(flowInstanceId));
|
||||
CancelPipelineRequest::~CancelPipelineRequest() {}
|
||||
|
||||
long CancelPipelineRequest::getFlowInstanceId() const {
|
||||
return flowInstanceId_;
|
||||
}
|
||||
|
||||
std::string CancelPipelineRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void CancelPipelineRequest::setFlowInstanceId(long flowInstanceId) {
|
||||
flowInstanceId_ = flowInstanceId;
|
||||
setBodyParameter(std::string("FlowInstanceId"), std::to_string(flowInstanceId));
|
||||
}
|
||||
|
||||
void CancelPipelineRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string CancelPipelineRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string CancelPipelineRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void CancelPipelineRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void CancelPipelineRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string CancelPipelineRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
long CancelPipelineRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void CancelPipelineRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void CancelPipelineRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setBodyParameter("PipelineId", std::to_string(pipelineId));
|
||||
long CancelPipelineRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void CancelPipelineRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setBodyParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CancelPipelineResult::parse(const std::string &payload)
|
||||
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";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/CheckAliyunAccountExistsRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CheckAliyunAccountExistsRequest;
|
||||
|
||||
CheckAliyunAccountExistsRequest::CheckAliyunAccountExistsRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "CheckAliyunAccountExists")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckAliyunAccountExistsRequest::~CheckAliyunAccountExistsRequest()
|
||||
{}
|
||||
|
||||
std::string CheckAliyunAccountExistsRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CheckAliyunAccountExistsRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CheckAliyunAccountExistsRequest;
|
||||
|
||||
CheckAliyunAccountExistsRequest::CheckAliyunAccountExistsRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "CheckAliyunAccountExists") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CheckAliyunAccountExistsRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
CheckAliyunAccountExistsRequest::~CheckAliyunAccountExistsRequest() {}
|
||||
|
||||
std::string CheckAliyunAccountExistsRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
void CheckAliyunAccountExistsRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CheckAliyunAccountExistsResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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/CreateCommonGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateCommonGroupRequest;
|
||||
|
||||
CreateCommonGroupRequest::CreateCommonGroupRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "CreateCommonGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCommonGroupRequest::~CreateCommonGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCommonGroupRequest::getSmartGroupId()const
|
||||
{
|
||||
return smartGroupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreateCommonGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateCommonGroupRequest;
|
||||
|
||||
CreateCommonGroupRequest::CreateCommonGroupRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "CreateCommonGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateCommonGroupRequest::setSmartGroupId(const std::string& smartGroupId)
|
||||
{
|
||||
smartGroupId_ = smartGroupId;
|
||||
setBodyParameter("SmartGroupId", smartGroupId);
|
||||
CreateCommonGroupRequest::~CreateCommonGroupRequest() {}
|
||||
|
||||
std::string CreateCommonGroupRequest::getSmartGroupId() const {
|
||||
return smartGroupId_;
|
||||
}
|
||||
|
||||
std::string CreateCommonGroupRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void CreateCommonGroupRequest::setSmartGroupId(const std::string &smartGroupId) {
|
||||
smartGroupId_ = smartGroupId;
|
||||
setBodyParameter(std::string("SmartGroupId"), smartGroupId);
|
||||
}
|
||||
|
||||
void CreateCommonGroupRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
std::string CreateCommonGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string CreateCommonGroupRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateCommonGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void CreateCommonGroupRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
std::string CreateCommonGroupRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateCommonGroupRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
void CreateCommonGroupRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateCommonGroupRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
std::string CreateCommonGroupRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string CreateCommonGroupRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void CreateCommonGroupRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void CreateCommonGroupRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string CreateCommonGroupRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void CreateCommonGroupRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ void CreateCommonGroupResult::parse(const std::string &payload)
|
||||
auto objectNode = value["Object"];
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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/CreateCredentialRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateCredentialRequest;
|
||||
|
||||
CreateCredentialRequest::CreateCredentialRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "CreateCredential")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCredentialRequest::~CreateCredentialRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCredentialRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreateCredentialRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateCredentialRequest;
|
||||
|
||||
CreateCredentialRequest::CreateCredentialRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "CreateCredential") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateCredentialRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
CreateCredentialRequest::~CreateCredentialRequest() {}
|
||||
|
||||
std::string CreateCredentialRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string CreateCredentialRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void CreateCredentialRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setBodyParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
void CreateCredentialRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string CreateCredentialRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string CreateCredentialRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void CreateCredentialRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void CreateCredentialRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string CreateCredentialRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
std::string CreateCredentialRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
void CreateCredentialRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void CreateCredentialRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setBodyParameter("Password", password);
|
||||
std::string CreateCredentialRequest::getPassword() const {
|
||||
return password_;
|
||||
}
|
||||
|
||||
std::string CreateCredentialRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void CreateCredentialRequest::setPassword(const std::string &password) {
|
||||
password_ = password;
|
||||
setBodyParameter(std::string("Password"), password);
|
||||
}
|
||||
|
||||
void CreateCredentialRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
std::string CreateCredentialRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string CreateCredentialRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
void CreateCredentialRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void CreateCredentialRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setBodyParameter("UserName", userName);
|
||||
std::string CreateCredentialRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void CreateCredentialRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setBodyParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateCredentialResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Object"].isNull())
|
||||
object_ = std::stol(value["Object"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/CreateDevopsOrganizationRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateDevopsOrganizationRequest;
|
||||
|
||||
CreateDevopsOrganizationRequest::CreateDevopsOrganizationRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "CreateDevopsOrganization")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDevopsOrganizationRequest::~CreateDevopsOrganizationRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDevopsOrganizationRequest::getOrgName()const
|
||||
{
|
||||
return orgName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreateDevopsOrganizationRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateDevopsOrganizationRequest;
|
||||
|
||||
CreateDevopsOrganizationRequest::CreateDevopsOrganizationRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "CreateDevopsOrganization") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDevopsOrganizationRequest::setOrgName(const std::string& orgName)
|
||||
{
|
||||
orgName_ = orgName;
|
||||
setBodyParameter("OrgName", orgName);
|
||||
CreateDevopsOrganizationRequest::~CreateDevopsOrganizationRequest() {}
|
||||
|
||||
std::string CreateDevopsOrganizationRequest::getOrgName() const {
|
||||
return orgName_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsOrganizationRequest::getSource()const
|
||||
{
|
||||
return source_;
|
||||
void CreateDevopsOrganizationRequest::setOrgName(const std::string &orgName) {
|
||||
orgName_ = orgName;
|
||||
setBodyParameter(std::string("OrgName"), orgName);
|
||||
}
|
||||
|
||||
void CreateDevopsOrganizationRequest::setSource(const std::string& source)
|
||||
{
|
||||
source_ = source;
|
||||
setBodyParameter("Source", source);
|
||||
std::string CreateDevopsOrganizationRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsOrganizationRequest::getRealPk()const
|
||||
{
|
||||
return realPk_;
|
||||
void CreateDevopsOrganizationRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setBodyParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
void CreateDevopsOrganizationRequest::setRealPk(const std::string& realPk)
|
||||
{
|
||||
realPk_ = realPk;
|
||||
setBodyParameter("RealPk", realPk);
|
||||
std::string CreateDevopsOrganizationRequest::getRealPk() const {
|
||||
return realPk_;
|
||||
}
|
||||
|
||||
int CreateDevopsOrganizationRequest::getDesiredMemberCount()const
|
||||
{
|
||||
return desiredMemberCount_;
|
||||
void CreateDevopsOrganizationRequest::setRealPk(const std::string &realPk) {
|
||||
realPk_ = realPk;
|
||||
setBodyParameter(std::string("RealPk"), realPk);
|
||||
}
|
||||
|
||||
void CreateDevopsOrganizationRequest::setDesiredMemberCount(int desiredMemberCount)
|
||||
{
|
||||
desiredMemberCount_ = desiredMemberCount;
|
||||
setBodyParameter("DesiredMemberCount", std::to_string(desiredMemberCount));
|
||||
int CreateDevopsOrganizationRequest::getDesiredMemberCount() const {
|
||||
return desiredMemberCount_;
|
||||
}
|
||||
|
||||
void CreateDevopsOrganizationRequest::setDesiredMemberCount(int desiredMemberCount) {
|
||||
desiredMemberCount_ = desiredMemberCount;
|
||||
setBodyParameter(std::string("DesiredMemberCount"), std::to_string(desiredMemberCount));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateDevopsOrganizationResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreateDevopsProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateDevopsProjectRequest;
|
||||
|
||||
CreateDevopsProjectRequest::CreateDevopsProjectRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "CreateDevopsProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDevopsProjectRequest::~CreateDevopsProjectRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDevopsProjectRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreateDevopsProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateDevopsProjectRequest;
|
||||
|
||||
CreateDevopsProjectRequest::CreateDevopsProjectRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "CreateDevopsProject") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
CreateDevopsProjectRequest::~CreateDevopsProjectRequest() {}
|
||||
|
||||
std::string CreateDevopsProjectRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateDevopsProjectRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
std::string CreateDevopsProjectRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void CreateDevopsProjectRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string CreateDevopsProjectRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void CreateDevopsProjectRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateDevopsProjectResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* 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/CreateDevopsProjectSprintRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateDevopsProjectSprintRequest;
|
||||
|
||||
CreateDevopsProjectSprintRequest::CreateDevopsProjectSprintRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "CreateDevopsProjectSprint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDevopsProjectSprintRequest::~CreateDevopsProjectSprintRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDevopsProjectSprintRequest::getExecutorId()const
|
||||
{
|
||||
return executorId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreateDevopsProjectSprintRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateDevopsProjectSprintRequest;
|
||||
|
||||
CreateDevopsProjectSprintRequest::CreateDevopsProjectSprintRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "CreateDevopsProjectSprint") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectSprintRequest::setExecutorId(const std::string& executorId)
|
||||
{
|
||||
executorId_ = executorId;
|
||||
setBodyParameter("ExecutorId", executorId);
|
||||
CreateDevopsProjectSprintRequest::~CreateDevopsProjectSprintRequest() {}
|
||||
|
||||
std::string CreateDevopsProjectSprintRequest::getExecutorId() const {
|
||||
return executorId_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectSprintRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateDevopsProjectSprintRequest::setExecutorId(const std::string &executorId) {
|
||||
executorId_ = executorId;
|
||||
setBodyParameter(std::string("ExecutorId"), executorId);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectSprintRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
std::string CreateDevopsProjectSprintRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectSprintRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
void CreateDevopsProjectSprintRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setBodyParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectSprintRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setBodyParameter("StartDate", startDate);
|
||||
std::string CreateDevopsProjectSprintRequest::getStartDate() const {
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectSprintRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void CreateDevopsProjectSprintRequest::setStartDate(const std::string &startDate) {
|
||||
startDate_ = startDate;
|
||||
setBodyParameter(std::string("StartDate"), startDate);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectSprintRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string CreateDevopsProjectSprintRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectSprintRequest::getDueDate()const
|
||||
{
|
||||
return dueDate_;
|
||||
void CreateDevopsProjectSprintRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectSprintRequest::setDueDate(const std::string& dueDate)
|
||||
{
|
||||
dueDate_ = dueDate;
|
||||
setBodyParameter("DueDate", dueDate);
|
||||
std::string CreateDevopsProjectSprintRequest::getDueDate() const {
|
||||
return dueDate_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectSprintRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void CreateDevopsProjectSprintRequest::setDueDate(const std::string &dueDate) {
|
||||
dueDate_ = dueDate;
|
||||
setBodyParameter(std::string("DueDate"), dueDate);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectSprintRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
std::string CreateDevopsProjectSprintRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectSprintRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
void CreateDevopsProjectSprintRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectSprintRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
std::string CreateDevopsProjectSprintRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateDevopsProjectSprintRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,45 +40,45 @@ void CreateDevopsProjectSprintResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto objectNode = value["Object"];
|
||||
if(!objectNode["Created"].isNull())
|
||||
object_.created = objectNode["Created"].asString();
|
||||
if(!objectNode["DueDate"].isNull())
|
||||
object_.dueDate = objectNode["DueDate"].asString();
|
||||
if(!objectNode["Status"].isNull())
|
||||
object_.status = objectNode["Status"].asString();
|
||||
if(!objectNode["ProjectId"].isNull())
|
||||
object_.projectId = objectNode["ProjectId"].asString();
|
||||
if(!objectNode["StartDate"].isNull())
|
||||
object_.startDate = objectNode["StartDate"].asString();
|
||||
if(!objectNode["CreatorId"].isNull())
|
||||
object_.creatorId = objectNode["CreatorId"].asString();
|
||||
if(!objectNode["Executor"].isNull())
|
||||
object_.executor = objectNode["Executor"].asString();
|
||||
if(!objectNode["Description"].isNull())
|
||||
object_.description = objectNode["Description"].asString();
|
||||
if(!objectNode["Accomplished"].isNull())
|
||||
object_.accomplished = objectNode["Accomplished"].asString();
|
||||
if(!objectNode["IsDeleted"].isNull())
|
||||
object_.isDeleted = objectNode["IsDeleted"].asString() == "true";
|
||||
if(!objectNode["Executor"].isNull())
|
||||
object_.executor = objectNode["Executor"].asString();
|
||||
if(!objectNode["Name"].isNull())
|
||||
object_.name = objectNode["Name"].asString();
|
||||
if(!objectNode["CreatorId"].isNull())
|
||||
object_.creatorId = objectNode["CreatorId"].asString();
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
if(!objectNode["Updated"].isNull())
|
||||
object_.updated = objectNode["Updated"].asString();
|
||||
if(!objectNode["StartDate"].isNull())
|
||||
object_.startDate = objectNode["StartDate"].asString();
|
||||
if(!objectNode["Status"].isNull())
|
||||
object_.status = objectNode["Status"].asString();
|
||||
if(!objectNode["ProjectId"].isNull())
|
||||
object_.projectId = objectNode["ProjectId"].asString();
|
||||
if(!objectNode["DueDate"].isNull())
|
||||
object_.dueDate = objectNode["DueDate"].asString();
|
||||
if(!objectNode["Created"].isNull())
|
||||
object_.created = objectNode["Created"].asString();
|
||||
if(!objectNode["Name"].isNull())
|
||||
object_.name = objectNode["Name"].asString();
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
auto planToDoNode = objectNode["PlanToDo"];
|
||||
if(!planToDoNode["StoryPoints"].isNull())
|
||||
object_.planToDo.storyPoints = std::stoi(planToDoNode["StoryPoints"].asString());
|
||||
if(!planToDoNode["WorkTimes"].isNull())
|
||||
object_.planToDo.workTimes = std::stoi(planToDoNode["WorkTimes"].asString());
|
||||
if(!planToDoNode["Tasks"].isNull())
|
||||
object_.planToDo.tasks = std::stoi(planToDoNode["Tasks"].asString());
|
||||
if(!planToDoNode["WorkTimes"].isNull())
|
||||
object_.planToDo.workTimes = std::stoi(planToDoNode["WorkTimes"].asString());
|
||||
if(!planToDoNode["StoryPoints"].isNull())
|
||||
object_.planToDo.storyPoints = std::stoi(planToDoNode["StoryPoints"].asString());
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,183 +1,153 @@
|
||||
/*
|
||||
* 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/CreateDevopsProjectTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateDevopsProjectTaskRequest;
|
||||
|
||||
CreateDevopsProjectTaskRequest::CreateDevopsProjectTaskRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "CreateDevopsProjectTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDevopsProjectTaskRequest::~CreateDevopsProjectTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getNote()const
|
||||
{
|
||||
return note_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreateDevopsProjectTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateDevopsProjectTaskRequest;
|
||||
|
||||
CreateDevopsProjectTaskRequest::CreateDevopsProjectTaskRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "CreateDevopsProjectTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setNote(const std::string& note)
|
||||
{
|
||||
note_ = note;
|
||||
setBodyParameter("Note", note);
|
||||
CreateDevopsProjectTaskRequest::~CreateDevopsProjectTaskRequest() {}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getNote() const {
|
||||
return note_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getVisible()const
|
||||
{
|
||||
return visible_;
|
||||
void CreateDevopsProjectTaskRequest::setNote(const std::string ¬e) {
|
||||
note_ = note;
|
||||
setBodyParameter(std::string("Note"), note);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setVisible(const std::string& visible)
|
||||
{
|
||||
visible_ = visible;
|
||||
setBodyParameter("Visible", visible);
|
||||
std::string CreateDevopsProjectTaskRequest::getVisible() const {
|
||||
return visible_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getExecutorId()const
|
||||
{
|
||||
return executorId_;
|
||||
void CreateDevopsProjectTaskRequest::setVisible(const std::string &visible) {
|
||||
visible_ = visible;
|
||||
setBodyParameter(std::string("Visible"), visible);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setExecutorId(const std::string& executorId)
|
||||
{
|
||||
executorId_ = executorId;
|
||||
setBodyParameter("ExecutorId", executorId);
|
||||
std::string CreateDevopsProjectTaskRequest::getExecutorId() const {
|
||||
return executorId_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getTaskFlowStatusId()const
|
||||
{
|
||||
return taskFlowStatusId_;
|
||||
void CreateDevopsProjectTaskRequest::setExecutorId(const std::string &executorId) {
|
||||
executorId_ = executorId;
|
||||
setBodyParameter(std::string("ExecutorId"), executorId);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setTaskFlowStatusId(const std::string& taskFlowStatusId)
|
||||
{
|
||||
taskFlowStatusId_ = taskFlowStatusId;
|
||||
setBodyParameter("TaskFlowStatusId", taskFlowStatusId);
|
||||
std::string CreateDevopsProjectTaskRequest::getTaskFlowStatusId() const {
|
||||
return taskFlowStatusId_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
void CreateDevopsProjectTaskRequest::setTaskFlowStatusId(const std::string &taskFlowStatusId) {
|
||||
taskFlowStatusId_ = taskFlowStatusId;
|
||||
setBodyParameter(std::string("TaskFlowStatusId"), taskFlowStatusId);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setBodyParameter("StartDate", startDate);
|
||||
std::string CreateDevopsProjectTaskRequest::getStartDate() const {
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
int CreateDevopsProjectTaskRequest::getPriority()const
|
||||
{
|
||||
return priority_;
|
||||
void CreateDevopsProjectTaskRequest::setStartDate(const std::string &startDate) {
|
||||
startDate_ = startDate;
|
||||
setBodyParameter(std::string("StartDate"), startDate);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setPriority(int priority)
|
||||
{
|
||||
priority_ = priority;
|
||||
setBodyParameter("Priority", std::to_string(priority));
|
||||
int CreateDevopsProjectTaskRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getParentTaskId()const
|
||||
{
|
||||
return parentTaskId_;
|
||||
void CreateDevopsProjectTaskRequest::setPriority(int priority) {
|
||||
priority_ = priority;
|
||||
setBodyParameter(std::string("Priority"), std::to_string(priority));
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setParentTaskId(const std::string& parentTaskId)
|
||||
{
|
||||
parentTaskId_ = parentTaskId;
|
||||
setBodyParameter("ParentTaskId", parentTaskId);
|
||||
std::string CreateDevopsProjectTaskRequest::getParentTaskId() const {
|
||||
return parentTaskId_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void CreateDevopsProjectTaskRequest::setParentTaskId(const std::string &parentTaskId) {
|
||||
parentTaskId_ = parentTaskId;
|
||||
setBodyParameter(std::string("ParentTaskId"), parentTaskId);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string CreateDevopsProjectTaskRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
void CreateDevopsProjectTaskRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setBodyParameter("Content", content);
|
||||
std::string CreateDevopsProjectTaskRequest::getContent() const {
|
||||
return content_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getSprintId()const
|
||||
{
|
||||
return sprintId_;
|
||||
void CreateDevopsProjectTaskRequest::setContent(const std::string &content) {
|
||||
content_ = content;
|
||||
setBodyParameter(std::string("Content"), content);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setSprintId(const std::string& sprintId)
|
||||
{
|
||||
sprintId_ = sprintId;
|
||||
setBodyParameter("SprintId", sprintId);
|
||||
std::string CreateDevopsProjectTaskRequest::getSprintId() const {
|
||||
return sprintId_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getDueDate()const
|
||||
{
|
||||
return dueDate_;
|
||||
void CreateDevopsProjectTaskRequest::setSprintId(const std::string &sprintId) {
|
||||
sprintId_ = sprintId;
|
||||
setBodyParameter(std::string("SprintId"), sprintId);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setDueDate(const std::string& dueDate)
|
||||
{
|
||||
dueDate_ = dueDate;
|
||||
setBodyParameter("DueDate", dueDate);
|
||||
std::string CreateDevopsProjectTaskRequest::getDueDate() const {
|
||||
return dueDate_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getScenarioFieldConfigId()const
|
||||
{
|
||||
return scenarioFieldConfigId_;
|
||||
void CreateDevopsProjectTaskRequest::setDueDate(const std::string &dueDate) {
|
||||
dueDate_ = dueDate;
|
||||
setBodyParameter(std::string("DueDate"), dueDate);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setScenarioFieldConfigId(const std::string& scenarioFieldConfigId)
|
||||
{
|
||||
scenarioFieldConfigId_ = scenarioFieldConfigId;
|
||||
setBodyParameter("ScenarioFieldConfigId", scenarioFieldConfigId);
|
||||
std::string CreateDevopsProjectTaskRequest::getScenarioFieldConfigId() const {
|
||||
return scenarioFieldConfigId_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
void CreateDevopsProjectTaskRequest::setScenarioFieldConfigId(const std::string &scenarioFieldConfigId) {
|
||||
scenarioFieldConfigId_ = scenarioFieldConfigId;
|
||||
setBodyParameter(std::string("ScenarioFieldConfigId"), scenarioFieldConfigId);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
std::string CreateDevopsProjectTaskRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string CreateDevopsProjectTaskRequest::getTaskListId()const
|
||||
{
|
||||
return taskListId_;
|
||||
void CreateDevopsProjectTaskRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setTaskListId(const std::string& taskListId)
|
||||
{
|
||||
taskListId_ = taskListId;
|
||||
setBodyParameter("TaskListId", taskListId);
|
||||
std::string CreateDevopsProjectTaskRequest::getTaskListId() const {
|
||||
return taskListId_;
|
||||
}
|
||||
|
||||
void CreateDevopsProjectTaskRequest::setTaskListId(const std::string &taskListId) {
|
||||
taskListId_ = taskListId;
|
||||
setBodyParameter(std::string("TaskListId"), taskListId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,62 +40,62 @@ void CreateDevopsProjectTaskResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto objectNode = value["Object"];
|
||||
if(!objectNode["Note"].isNull())
|
||||
object_.note = objectNode["Note"].asString();
|
||||
if(!objectNode["TasklistId"].isNull())
|
||||
object_.tasklistId = objectNode["TasklistId"].asString();
|
||||
if(!objectNode["DueDate"].isNull())
|
||||
object_.dueDate = objectNode["DueDate"].asString();
|
||||
if(!objectNode["Rating"].isNull())
|
||||
object_.rating = std::stoi(objectNode["Rating"].asString());
|
||||
if(!objectNode["Source"].isNull())
|
||||
object_.source = objectNode["Source"].asString();
|
||||
if(!objectNode["Content"].isNull())
|
||||
object_.content = objectNode["Content"].asString();
|
||||
if(!objectNode["TaskflowstatusId"].isNull())
|
||||
object_.taskflowstatusId = objectNode["TaskflowstatusId"].asString();
|
||||
if(!objectNode["TaskType"].isNull())
|
||||
object_.taskType = objectNode["TaskType"].asString();
|
||||
if(!objectNode["ScenarioFieldConfigId"].isNull())
|
||||
object_.scenarioFieldConfigId = objectNode["ScenarioFieldConfigId"].asString();
|
||||
if(!objectNode["Pos"].isNull())
|
||||
object_.pos = std::stoi(objectNode["Pos"].asString());
|
||||
if(!objectNode["AncestorIds"].isNull())
|
||||
object_.ancestorIds = objectNode["AncestorIds"].asString();
|
||||
if(!objectNode["CreatorId"].isNull())
|
||||
object_.creatorId = objectNode["CreatorId"].asString();
|
||||
if(!objectNode["Visible"].isNull())
|
||||
object_.visible = objectNode["Visible"].asString();
|
||||
if(!objectNode["ExecutorId"].isNull())
|
||||
object_.executorId = objectNode["ExecutorId"].asString();
|
||||
if(!objectNode["StoryPoint"].isNull())
|
||||
object_.storyPoint = objectNode["StoryPoint"].asString();
|
||||
if(!objectNode["Created"].isNull())
|
||||
object_.created = objectNode["Created"].asString();
|
||||
if(!objectNode["OrganizationId"].isNull())
|
||||
object_.organizationId = objectNode["OrganizationId"].asString();
|
||||
if(!objectNode["ProjectId"].isNull())
|
||||
object_.projectId = objectNode["ProjectId"].asString();
|
||||
if(!objectNode["Priority"].isNull())
|
||||
object_.priority = std::stoi(objectNode["Priority"].asString());
|
||||
if(!objectNode["IsDone"].isNull())
|
||||
object_.isDone = objectNode["IsDone"].asString() == "true";
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
if(!objectNode["ScenarioFieldConfigId"].isNull())
|
||||
object_.scenarioFieldConfigId = objectNode["ScenarioFieldConfigId"].asString();
|
||||
if(!objectNode["AncestorIds"].isNull())
|
||||
object_.ancestorIds = objectNode["AncestorIds"].asString();
|
||||
if(!objectNode["TaskType"].isNull())
|
||||
object_.taskType = objectNode["TaskType"].asString();
|
||||
if(!objectNode["TasklistId"].isNull())
|
||||
object_.tasklistId = objectNode["TasklistId"].asString();
|
||||
if(!objectNode["TaskflowstatusId"].isNull())
|
||||
object_.taskflowstatusId = objectNode["TaskflowstatusId"].asString();
|
||||
if(!objectNode["Note"].isNull())
|
||||
object_.note = objectNode["Note"].asString();
|
||||
if(!objectNode["Updated"].isNull())
|
||||
object_.updated = objectNode["Updated"].asString();
|
||||
if(!objectNode["UniqueId"].isNull())
|
||||
object_.uniqueId = std::stoi(objectNode["UniqueId"].asString());
|
||||
if(!objectNode["Content"].isNull())
|
||||
object_.content = objectNode["Content"].asString();
|
||||
if(!objectNode["Rating"].isNull())
|
||||
object_.rating = std::stoi(objectNode["Rating"].asString());
|
||||
if(!objectNode["Pos"].isNull())
|
||||
object_.pos = std::stoi(objectNode["Pos"].asString());
|
||||
if(!objectNode["StoryPoint"].isNull())
|
||||
object_.storyPoint = objectNode["StoryPoint"].asString();
|
||||
if(!objectNode["StartDate"].isNull())
|
||||
object_.startDate = objectNode["StartDate"].asString();
|
||||
if(!objectNode["CreatorId"].isNull())
|
||||
object_.creatorId = objectNode["CreatorId"].asString();
|
||||
if(!objectNode["Source"].isNull())
|
||||
object_.source = objectNode["Source"].asString();
|
||||
if(!objectNode["OrganizationId"].isNull())
|
||||
object_.organizationId = objectNode["OrganizationId"].asString();
|
||||
if(!objectNode["Visible"].isNull())
|
||||
object_.visible = objectNode["Visible"].asString();
|
||||
if(!objectNode["IsDone"].isNull())
|
||||
object_.isDone = objectNode["IsDone"].asString() == "true";
|
||||
if(!objectNode["SprintId"].isNull())
|
||||
object_.sprintId = objectNode["SprintId"].asString();
|
||||
if(!objectNode["ProjectId"].isNull())
|
||||
object_.projectId = objectNode["ProjectId"].asString();
|
||||
if(!objectNode["DueDate"].isNull())
|
||||
object_.dueDate = objectNode["DueDate"].asString();
|
||||
if(!objectNode["Created"].isNull())
|
||||
object_.created = objectNode["Created"].asString();
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
54
devops-rdc/src/model/CreatePipelineFromTemplateRequest.cc
Normal file
54
devops-rdc/src/model/CreatePipelineFromTemplateRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreatePipelineFromTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreatePipelineFromTemplateRequest;
|
||||
|
||||
CreatePipelineFromTemplateRequest::CreatePipelineFromTemplateRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "CreatePipelineFromTemplate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePipelineFromTemplateRequest::~CreatePipelineFromTemplateRequest() {}
|
||||
|
||||
std::string CreatePipelineFromTemplateRequest::getPipelineName() const {
|
||||
return pipelineName_;
|
||||
}
|
||||
|
||||
void CreatePipelineFromTemplateRequest::setPipelineName(const std::string &pipelineName) {
|
||||
pipelineName_ = pipelineName;
|
||||
setParameter(std::string("PipelineName"), pipelineName);
|
||||
}
|
||||
|
||||
std::string CreatePipelineFromTemplateRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void CreatePipelineFromTemplateRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
long CreatePipelineFromTemplateRequest::getPipelineTemplateId() const {
|
||||
return pipelineTemplateId_;
|
||||
}
|
||||
|
||||
void CreatePipelineFromTemplateRequest::setPipelineTemplateId(long pipelineTemplateId) {
|
||||
pipelineTemplateId_ = pipelineTemplateId;
|
||||
setParameter(std::string("PipelineTemplateId"), std::to_string(pipelineTemplateId));
|
||||
}
|
||||
|
||||
51
devops-rdc/src/model/CreatePipelineFromTemplateResult.cc
Normal file
51
devops-rdc/src/model/CreatePipelineFromTemplateResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreatePipelineFromTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Devops_rdc;
|
||||
using namespace AlibabaCloud::Devops_rdc::Model;
|
||||
|
||||
CreatePipelineFromTemplateResult::CreatePipelineFromTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePipelineFromTemplateResult::CreatePipelineFromTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePipelineFromTemplateResult::~CreatePipelineFromTemplateResult()
|
||||
{}
|
||||
|
||||
void CreatePipelineFromTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PipelineId"].isNull())
|
||||
pipelineId_ = std::stol(value["PipelineId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreatePipelineFromTemplateResult::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreatePipelineRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreatePipelineRequest;
|
||||
|
||||
CreatePipelineRequest::CreatePipelineRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "CreatePipeline")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePipelineRequest::~CreatePipelineRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePipelineRequest::getPipeline()const
|
||||
{
|
||||
return pipeline_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreatePipelineRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreatePipelineRequest;
|
||||
|
||||
CreatePipelineRequest::CreatePipelineRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "CreatePipeline") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreatePipelineRequest::setPipeline(const std::string& pipeline)
|
||||
{
|
||||
pipeline_ = pipeline;
|
||||
setBodyParameter("Pipeline", pipeline);
|
||||
CreatePipelineRequest::~CreatePipelineRequest() {}
|
||||
|
||||
std::string CreatePipelineRequest::getPipeline() const {
|
||||
return pipeline_;
|
||||
}
|
||||
|
||||
std::string CreatePipelineRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void CreatePipelineRequest::setPipeline(const std::string &pipeline) {
|
||||
pipeline_ = pipeline;
|
||||
setBodyParameter(std::string("Pipeline"), pipeline);
|
||||
}
|
||||
|
||||
void CreatePipelineRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string CreatePipelineRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string CreatePipelineRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void CreatePipelineRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void CreatePipelineRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string CreatePipelineRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void CreatePipelineRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreatePipelineResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Object"].isNull())
|
||||
object_ = std::stol(value["Object"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreateServiceConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateServiceConnectionRequest;
|
||||
|
||||
CreateServiceConnectionRequest::CreateServiceConnectionRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "CreateServiceConnection")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateServiceConnectionRequest::~CreateServiceConnectionRequest()
|
||||
{}
|
||||
|
||||
std::string CreateServiceConnectionRequest::getServiceConnectionType()const
|
||||
{
|
||||
return serviceConnectionType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/CreateServiceConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::CreateServiceConnectionRequest;
|
||||
|
||||
CreateServiceConnectionRequest::CreateServiceConnectionRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "CreateServiceConnection") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateServiceConnectionRequest::setServiceConnectionType(const std::string& serviceConnectionType)
|
||||
{
|
||||
serviceConnectionType_ = serviceConnectionType;
|
||||
setBodyParameter("ServiceConnectionType", serviceConnectionType);
|
||||
CreateServiceConnectionRequest::~CreateServiceConnectionRequest() {}
|
||||
|
||||
std::string CreateServiceConnectionRequest::getServiceConnectionType() const {
|
||||
return serviceConnectionType_;
|
||||
}
|
||||
|
||||
std::string CreateServiceConnectionRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void CreateServiceConnectionRequest::setServiceConnectionType(const std::string &serviceConnectionType) {
|
||||
serviceConnectionType_ = serviceConnectionType;
|
||||
setBodyParameter(std::string("ServiceConnectionType"), serviceConnectionType);
|
||||
}
|
||||
|
||||
void CreateServiceConnectionRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string CreateServiceConnectionRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string CreateServiceConnectionRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void CreateServiceConnectionRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void CreateServiceConnectionRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string CreateServiceConnectionRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void CreateServiceConnectionRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateServiceConnectionResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Object"].isNull())
|
||||
object_ = std::stol(value["Object"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/DeleteCommonGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteCommonGroupRequest;
|
||||
|
||||
DeleteCommonGroupRequest::DeleteCommonGroupRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteCommonGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteCommonGroupRequest::~DeleteCommonGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteCommonGroupRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/DeleteCommonGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteCommonGroupRequest;
|
||||
|
||||
DeleteCommonGroupRequest::DeleteCommonGroupRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteCommonGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteCommonGroupRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
DeleteCommonGroupRequest::~DeleteCommonGroupRequest() {}
|
||||
|
||||
std::string DeleteCommonGroupRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string DeleteCommonGroupRequest::getCommonGroupId()const
|
||||
{
|
||||
return commonGroupId_;
|
||||
void DeleteCommonGroupRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void DeleteCommonGroupRequest::setCommonGroupId(const std::string& commonGroupId)
|
||||
{
|
||||
commonGroupId_ = commonGroupId;
|
||||
setBodyParameter("CommonGroupId", commonGroupId);
|
||||
std::string DeleteCommonGroupRequest::getCommonGroupId() const {
|
||||
return commonGroupId_;
|
||||
}
|
||||
|
||||
std::string DeleteCommonGroupRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void DeleteCommonGroupRequest::setCommonGroupId(const std::string &commonGroupId) {
|
||||
commonGroupId_ = commonGroupId;
|
||||
setBodyParameter(std::string("CommonGroupId"), commonGroupId);
|
||||
}
|
||||
|
||||
void DeleteCommonGroupRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string DeleteCommonGroupRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void DeleteCommonGroupRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ void DeleteCommonGroupResult::parse(const std::string &payload)
|
||||
auto objectNode = value["Object"];
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/DeleteDevopsOrganizationMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteDevopsOrganizationMembersRequest;
|
||||
|
||||
DeleteDevopsOrganizationMembersRequest::DeleteDevopsOrganizationMembersRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteDevopsOrganizationMembers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDevopsOrganizationMembersRequest::~DeleteDevopsOrganizationMembersRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDevopsOrganizationMembersRequest::getRealPk()const
|
||||
{
|
||||
return realPk_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/DeleteDevopsOrganizationMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteDevopsOrganizationMembersRequest;
|
||||
|
||||
DeleteDevopsOrganizationMembersRequest::DeleteDevopsOrganizationMembersRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteDevopsOrganizationMembers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDevopsOrganizationMembersRequest::setRealPk(const std::string& realPk)
|
||||
{
|
||||
realPk_ = realPk;
|
||||
setBodyParameter("RealPk", realPk);
|
||||
DeleteDevopsOrganizationMembersRequest::~DeleteDevopsOrganizationMembersRequest() {}
|
||||
|
||||
std::string DeleteDevopsOrganizationMembersRequest::getRealPk() const {
|
||||
return realPk_;
|
||||
}
|
||||
|
||||
std::string DeleteDevopsOrganizationMembersRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
void DeleteDevopsOrganizationMembersRequest::setRealPk(const std::string &realPk) {
|
||||
realPk_ = realPk;
|
||||
setBodyParameter(std::string("RealPk"), realPk);
|
||||
}
|
||||
|
||||
void DeleteDevopsOrganizationMembersRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
std::string DeleteDevopsOrganizationMembersRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string DeleteDevopsOrganizationMembersRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void DeleteDevopsOrganizationMembersRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void DeleteDevopsOrganizationMembersRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string DeleteDevopsOrganizationMembersRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void DeleteDevopsOrganizationMembersRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteDevopsOrganizationMembersResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/DeleteDevopsOrganizationRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteDevopsOrganizationRequest;
|
||||
|
||||
DeleteDevopsOrganizationRequest::DeleteDevopsOrganizationRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteDevopsOrganization")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDevopsOrganizationRequest::~DeleteDevopsOrganizationRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDevopsOrganizationRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/DeleteDevopsOrganizationRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteDevopsOrganizationRequest;
|
||||
|
||||
DeleteDevopsOrganizationRequest::DeleteDevopsOrganizationRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteDevopsOrganization") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDevopsOrganizationRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
DeleteDevopsOrganizationRequest::~DeleteDevopsOrganizationRequest() {}
|
||||
|
||||
std::string DeleteDevopsOrganizationRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void DeleteDevopsOrganizationRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteDevopsOrganizationResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/DeleteDevopsProjectMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteDevopsProjectMembersRequest;
|
||||
|
||||
DeleteDevopsProjectMembersRequest::DeleteDevopsProjectMembersRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteDevopsProjectMembers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDevopsProjectMembersRequest::~DeleteDevopsProjectMembersRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDevopsProjectMembersRequest::getUserIds()const
|
||||
{
|
||||
return userIds_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/DeleteDevopsProjectMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteDevopsProjectMembersRequest;
|
||||
|
||||
DeleteDevopsProjectMembersRequest::DeleteDevopsProjectMembersRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteDevopsProjectMembers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectMembersRequest::setUserIds(const std::string& userIds)
|
||||
{
|
||||
userIds_ = userIds;
|
||||
setBodyParameter("UserIds", userIds);
|
||||
DeleteDevopsProjectMembersRequest::~DeleteDevopsProjectMembersRequest() {}
|
||||
|
||||
std::string DeleteDevopsProjectMembersRequest::getUserIds() const {
|
||||
return userIds_;
|
||||
}
|
||||
|
||||
std::string DeleteDevopsProjectMembersRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
void DeleteDevopsProjectMembersRequest::setUserIds(const std::string &userIds) {
|
||||
userIds_ = userIds;
|
||||
setBodyParameter(std::string("UserIds"), userIds);
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectMembersRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
std::string DeleteDevopsProjectMembersRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string DeleteDevopsProjectMembersRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void DeleteDevopsProjectMembersRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectMembersRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string DeleteDevopsProjectMembersRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectMembersRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteDevopsProjectMembersResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +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/devops-rdc/model/DeleteDevopsProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteDevopsProjectRequest;
|
||||
|
||||
DeleteDevopsProjectRequest::DeleteDevopsProjectRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteDevopsProject")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDevopsProjectRequest::~DeleteDevopsProjectRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDevopsProjectRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/DeleteDevopsProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteDevopsProjectRequest;
|
||||
|
||||
DeleteDevopsProjectRequest::DeleteDevopsProjectRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteDevopsProject") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
DeleteDevopsProjectRequest::~DeleteDevopsProjectRequest() {}
|
||||
|
||||
std::string DeleteDevopsProjectRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string DeleteDevopsProjectRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void DeleteDevopsProjectRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string DeleteDevopsProjectRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteDevopsProjectResult::parse(const std::string &payload)
|
||||
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["Object"].isNull())
|
||||
object_ = value["Object"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +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/devops-rdc/model/DeleteDevopsProjectSprintRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteDevopsProjectSprintRequest;
|
||||
|
||||
DeleteDevopsProjectSprintRequest::DeleteDevopsProjectSprintRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteDevopsProjectSprint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDevopsProjectSprintRequest::~DeleteDevopsProjectSprintRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDevopsProjectSprintRequest::getSprintId()const
|
||||
{
|
||||
return sprintId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/DeleteDevopsProjectSprintRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteDevopsProjectSprintRequest;
|
||||
|
||||
DeleteDevopsProjectSprintRequest::DeleteDevopsProjectSprintRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteDevopsProjectSprint") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectSprintRequest::setSprintId(const std::string& sprintId)
|
||||
{
|
||||
sprintId_ = sprintId;
|
||||
setBodyParameter("SprintId", sprintId);
|
||||
DeleteDevopsProjectSprintRequest::~DeleteDevopsProjectSprintRequest() {}
|
||||
|
||||
std::string DeleteDevopsProjectSprintRequest::getSprintId() const {
|
||||
return sprintId_;
|
||||
}
|
||||
|
||||
std::string DeleteDevopsProjectSprintRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void DeleteDevopsProjectSprintRequest::setSprintId(const std::string &sprintId) {
|
||||
sprintId_ = sprintId;
|
||||
setBodyParameter(std::string("SprintId"), sprintId);
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectSprintRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string DeleteDevopsProjectSprintRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectSprintRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteDevopsProjectSprintResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +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/devops-rdc/model/DeleteDevopsProjectTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteDevopsProjectTaskRequest;
|
||||
|
||||
DeleteDevopsProjectTaskRequest::DeleteDevopsProjectTaskRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteDevopsProjectTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDevopsProjectTaskRequest::~DeleteDevopsProjectTaskRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDevopsProjectTaskRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/DeleteDevopsProjectTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::DeleteDevopsProjectTaskRequest;
|
||||
|
||||
DeleteDevopsProjectTaskRequest::DeleteDevopsProjectTaskRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "DeleteDevopsProjectTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectTaskRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
DeleteDevopsProjectTaskRequest::~DeleteDevopsProjectTaskRequest() {}
|
||||
|
||||
std::string DeleteDevopsProjectTaskRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
std::string DeleteDevopsProjectTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void DeleteDevopsProjectTaskRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
std::string DeleteDevopsProjectTaskRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DeleteDevopsProjectTaskRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setBodyParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeleteDevopsProjectTaskResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
DeletePipelineMemberRequest::~DeletePipelineMemberRequest() {}
|
||||
|
||||
std::string DeletePipelineMemberRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string DeletePipelineMemberRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
void DeletePipelineMemberRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
std::string DeletePipelineMemberRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string DeletePipelineMemberRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void DeletePipelineMemberRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
std::string DeletePipelineMemberRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
long DeletePipelineMemberRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void DeletePipelineMemberRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
long DeletePipelineMemberRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void DeletePipelineMemberRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void DeletePipelineMemberResult::parse(const std::string &payload)
|
||||
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";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/ExecutePipelineRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ExecutePipelineRequest;
|
||||
|
||||
ExecutePipelineRequest::ExecutePipelineRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "ExecutePipeline")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExecutePipelineRequest::~ExecutePipelineRequest()
|
||||
{}
|
||||
|
||||
std::string ExecutePipelineRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/ExecutePipelineRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ExecutePipelineRequest;
|
||||
|
||||
ExecutePipelineRequest::ExecutePipelineRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "ExecutePipeline") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ExecutePipelineRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setBodyParameter("Parameters", parameters);
|
||||
ExecutePipelineRequest::~ExecutePipelineRequest() {}
|
||||
|
||||
std::string ExecutePipelineRequest::getParameters() const {
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
std::string ExecutePipelineRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void ExecutePipelineRequest::setParameters(const std::string ¶meters) {
|
||||
parameters_ = parameters;
|
||||
setBodyParameter(std::string("Parameters"), parameters);
|
||||
}
|
||||
|
||||
void ExecutePipelineRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string ExecutePipelineRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string ExecutePipelineRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void ExecutePipelineRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void ExecutePipelineRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string ExecutePipelineRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
long ExecutePipelineRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void ExecutePipelineRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void ExecutePipelineRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setBodyParameter("PipelineId", std::to_string(pipelineId));
|
||||
long ExecutePipelineRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void ExecutePipelineRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setBodyParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void ExecutePipelineResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Object"].isNull())
|
||||
object_ = std::stol(value["Object"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/GetDevopsOrganizationMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetDevopsOrganizationMembersRequest;
|
||||
|
||||
GetDevopsOrganizationMembersRequest::GetDevopsOrganizationMembersRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetDevopsOrganizationMembers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDevopsOrganizationMembersRequest::~GetDevopsOrganizationMembersRequest()
|
||||
{}
|
||||
|
||||
std::string GetDevopsOrganizationMembersRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetDevopsOrganizationMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetDevopsOrganizationMembersRequest;
|
||||
|
||||
GetDevopsOrganizationMembersRequest::GetDevopsOrganizationMembersRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetDevopsOrganizationMembers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDevopsOrganizationMembersRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
GetDevopsOrganizationMembersRequest::~GetDevopsOrganizationMembersRequest() {}
|
||||
|
||||
std::string GetDevopsOrganizationMembersRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void GetDevopsOrganizationMembersRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,28 +43,28 @@ void GetDevopsOrganizationMembersResult::parse(const std::string &payload)
|
||||
for (auto valueObjectmember : allObjectNode)
|
||||
{
|
||||
Member objectObject;
|
||||
if(!valueObjectmember["MemberId"].isNull())
|
||||
objectObject.memberId = valueObjectmember["MemberId"].asString();
|
||||
if(!valueObjectmember["Email"].isNull())
|
||||
objectObject.email = valueObjectmember["Email"].asString();
|
||||
if(!valueObjectmember["AvatarUrl"].isNull())
|
||||
objectObject.avatarUrl = valueObjectmember["AvatarUrl"].asString();
|
||||
if(!valueObjectmember["UserId"].isNull())
|
||||
objectObject.userId = valueObjectmember["UserId"].asString();
|
||||
if(!valueObjectmember["MemberId"].isNull())
|
||||
objectObject.memberId = valueObjectmember["MemberId"].asString();
|
||||
if(!valueObjectmember["Role"].isNull())
|
||||
objectObject.role = std::stoi(valueObjectmember["Role"].asString());
|
||||
if(!valueObjectmember["Name"].isNull())
|
||||
objectObject.name = valueObjectmember["Name"].asString();
|
||||
if(!valueObjectmember["AvatarUrl"].isNull())
|
||||
objectObject.avatarUrl = valueObjectmember["AvatarUrl"].asString();
|
||||
if(!valueObjectmember["Email"].isNull())
|
||||
objectObject.email = valueObjectmember["Email"].asString();
|
||||
if(!valueObjectmember["Phone"].isNull())
|
||||
objectObject.phone = valueObjectmember["Phone"].asString();
|
||||
object_.push_back(objectObject);
|
||||
}
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +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/devops-rdc/model/GetDevopsProjectInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetDevopsProjectInfoRequest;
|
||||
|
||||
GetDevopsProjectInfoRequest::GetDevopsProjectInfoRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetDevopsProjectInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDevopsProjectInfoRequest::~GetDevopsProjectInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetDevopsProjectInfoRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetDevopsProjectInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetDevopsProjectInfoRequest;
|
||||
|
||||
GetDevopsProjectInfoRequest::GetDevopsProjectInfoRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetDevopsProjectInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDevopsProjectInfoRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
GetDevopsProjectInfoRequest::~GetDevopsProjectInfoRequest() {}
|
||||
|
||||
std::string GetDevopsProjectInfoRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string GetDevopsProjectInfoRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetDevopsProjectInfoRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void GetDevopsProjectInfoRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetDevopsProjectInfoRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void GetDevopsProjectInfoRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,70 +40,70 @@ void GetDevopsProjectInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto objectNode = value["Object"];
|
||||
if(!objectNode["RootCollectionId"].isNull())
|
||||
object_.rootCollectionId = objectNode["RootCollectionId"].asString();
|
||||
if(!objectNode["EndDate"].isNull())
|
||||
object_.endDate = objectNode["EndDate"].asString();
|
||||
if(!objectNode["IsArchived"].isNull())
|
||||
object_.isArchived = objectNode["IsArchived"].asString() == "true";
|
||||
if(!objectNode["ModifierId"].isNull())
|
||||
object_.modifierId = objectNode["ModifierId"].asString();
|
||||
if(!objectNode["SourceId"].isNull())
|
||||
object_.sourceId = objectNode["SourceId"].asString();
|
||||
if(!objectNode["Description"].isNull())
|
||||
object_.description = objectNode["Description"].asString();
|
||||
if(!objectNode["Py"].isNull())
|
||||
object_.py = objectNode["Py"].asString();
|
||||
if(!objectNode["DefaultRoleId"].isNull())
|
||||
object_.defaultRoleId = objectNode["DefaultRoleId"].asString();
|
||||
if(!objectNode["Customfields"].isNull())
|
||||
object_.customfields = objectNode["Customfields"].asString();
|
||||
if(!objectNode["IsDeleted"].isNull())
|
||||
object_.isDeleted = objectNode["IsDeleted"].asString() == "true";
|
||||
if(!objectNode["UniqueIdPrefix"].isNull())
|
||||
object_.uniqueIdPrefix = objectNode["UniqueIdPrefix"].asString();
|
||||
if(!objectNode["NextTaskUniqueId"].isNull())
|
||||
object_.nextTaskUniqueId = std::stoi(objectNode["NextTaskUniqueId"].asString());
|
||||
if(!objectNode["CreatorId"].isNull())
|
||||
object_.creatorId = objectNode["CreatorId"].asString();
|
||||
if(!objectNode["Logo"].isNull())
|
||||
object_.logo = objectNode["Logo"].asString();
|
||||
if(!objectNode["DefaultCollectionId"].isNull())
|
||||
object_.defaultCollectionId = objectNode["DefaultCollectionId"].asString();
|
||||
if(!objectNode["IsSuspended"].isNull())
|
||||
object_.isSuspended = objectNode["IsSuspended"].asString() == "true";
|
||||
if(!objectNode["Visibility"].isNull())
|
||||
object_.visibility = objectNode["Visibility"].asString();
|
||||
if(!objectNode["NormalType"].isNull())
|
||||
object_.normalType = objectNode["NormalType"].asString();
|
||||
if(!objectNode["Created"].isNull())
|
||||
object_.created = objectNode["Created"].asString();
|
||||
if(!objectNode["OrganizationId"].isNull())
|
||||
object_.organizationId = objectNode["OrganizationId"].asString();
|
||||
if(!objectNode["SortMethod"].isNull())
|
||||
object_.sortMethod = objectNode["SortMethod"].asString();
|
||||
if(!objectNode["Pinyin"].isNull())
|
||||
object_.pinyin = objectNode["Pinyin"].asString();
|
||||
if(!objectNode["UniqueIdPrefix"].isNull())
|
||||
object_.uniqueIdPrefix = objectNode["UniqueIdPrefix"].asString();
|
||||
if(!objectNode["NormalType"].isNull())
|
||||
object_.normalType = objectNode["NormalType"].asString();
|
||||
if(!objectNode["ModifierId"].isNull())
|
||||
object_.modifierId = objectNode["ModifierId"].asString();
|
||||
if(!objectNode["SourceType"].isNull())
|
||||
object_.sourceType = objectNode["SourceType"].asString();
|
||||
if(!objectNode["IsTemplate"].isNull())
|
||||
object_.isTemplate = objectNode["IsTemplate"].asString() == "true";
|
||||
if(!objectNode["Name"].isNull())
|
||||
object_.name = objectNode["Name"].asString();
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
if(!objectNode["Category"].isNull())
|
||||
object_.category = objectNode["Category"].asString();
|
||||
if(!objectNode["Description"].isNull())
|
||||
object_.description = objectNode["Description"].asString();
|
||||
if(!objectNode["DefaultRoleId"].isNull())
|
||||
object_.defaultRoleId = objectNode["DefaultRoleId"].asString();
|
||||
if(!objectNode["RootCollectionId"].isNull())
|
||||
object_.rootCollectionId = objectNode["RootCollectionId"].asString();
|
||||
if(!objectNode["IsDeleted"].isNull())
|
||||
object_.isDeleted = objectNode["IsDeleted"].asString() == "true";
|
||||
if(!objectNode["Updated"].isNull())
|
||||
object_.updated = objectNode["Updated"].asString();
|
||||
if(!objectNode["Name"].isNull())
|
||||
object_.name = objectNode["Name"].asString();
|
||||
if(!objectNode["IsArchived"].isNull())
|
||||
object_.isArchived = objectNode["IsArchived"].asString() == "true";
|
||||
if(!objectNode["EndDate"].isNull())
|
||||
object_.endDate = objectNode["EndDate"].asString();
|
||||
if(!objectNode["Logo"].isNull())
|
||||
object_.logo = objectNode["Logo"].asString();
|
||||
if(!objectNode["StartDate"].isNull())
|
||||
object_.startDate = objectNode["StartDate"].asString();
|
||||
if(!objectNode["Pinyin"].isNull())
|
||||
object_.pinyin = objectNode["Pinyin"].asString();
|
||||
if(!objectNode["CreatorId"].isNull())
|
||||
object_.creatorId = objectNode["CreatorId"].asString();
|
||||
if(!objectNode["SourceId"].isNull())
|
||||
object_.sourceId = objectNode["SourceId"].asString();
|
||||
if(!objectNode["DefaultCollectionId"].isNull())
|
||||
object_.defaultCollectionId = objectNode["DefaultCollectionId"].asString();
|
||||
if(!objectNode["IsSuspended"].isNull())
|
||||
object_.isSuspended = objectNode["IsSuspended"].asString() == "true";
|
||||
if(!objectNode["OrganizationId"].isNull())
|
||||
object_.organizationId = objectNode["OrganizationId"].asString();
|
||||
if(!objectNode["Visibility"].isNull())
|
||||
object_.visibility = objectNode["Visibility"].asString();
|
||||
if(!objectNode["Py"].isNull())
|
||||
object_.py = objectNode["Py"].asString();
|
||||
if(!objectNode["Category"].isNull())
|
||||
object_.category = objectNode["Category"].asString();
|
||||
if(!objectNode["NextTaskUniqueId"].isNull())
|
||||
object_.nextTaskUniqueId = std::stoi(objectNode["NextTaskUniqueId"].asString());
|
||||
if(!objectNode["Customfields"].isNull())
|
||||
object_.customfields = objectNode["Customfields"].asString();
|
||||
if(!objectNode["Created"].isNull())
|
||||
object_.created = objectNode["Created"].asString();
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/GetDevopsProjectMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetDevopsProjectMembersRequest;
|
||||
|
||||
GetDevopsProjectMembersRequest::GetDevopsProjectMembersRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetDevopsProjectMembers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDevopsProjectMembersRequest::~GetDevopsProjectMembersRequest()
|
||||
{}
|
||||
|
||||
int GetDevopsProjectMembersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetDevopsProjectMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetDevopsProjectMembersRequest;
|
||||
|
||||
GetDevopsProjectMembersRequest::GetDevopsProjectMembersRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetDevopsProjectMembers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDevopsProjectMembersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
GetDevopsProjectMembersRequest::~GetDevopsProjectMembersRequest() {}
|
||||
|
||||
int GetDevopsProjectMembersRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string GetDevopsProjectMembersRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
void GetDevopsProjectMembersRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void GetDevopsProjectMembersRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
std::string GetDevopsProjectMembersRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string GetDevopsProjectMembersRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetDevopsProjectMembersRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void GetDevopsProjectMembersRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetDevopsProjectMembersRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
std::string GetDevopsProjectMembersRequest::getPageToken()const
|
||||
{
|
||||
return pageToken_;
|
||||
void GetDevopsProjectMembersRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetDevopsProjectMembersRequest::setPageToken(const std::string& pageToken)
|
||||
{
|
||||
pageToken_ = pageToken;
|
||||
setBodyParameter("PageToken", pageToken);
|
||||
std::string GetDevopsProjectMembersRequest::getPageToken() const {
|
||||
return pageToken_;
|
||||
}
|
||||
|
||||
void GetDevopsProjectMembersRequest::setPageToken(const std::string &pageToken) {
|
||||
pageToken_ = pageToken;
|
||||
setBodyParameter(std::string("PageToken"), pageToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,32 +43,32 @@ void GetDevopsProjectMembersResult::parse(const std::string &payload)
|
||||
for (auto valueObjectMember : allObjectNode)
|
||||
{
|
||||
Member objectObject;
|
||||
if(!valueObjectMember["MemberId"].isNull())
|
||||
objectObject.memberId = valueObjectMember["MemberId"].asString();
|
||||
if(!valueObjectMember["Email"].isNull())
|
||||
objectObject.email = valueObjectMember["Email"].asString();
|
||||
if(!valueObjectMember["AvatarUrl"].isNull())
|
||||
objectObject.avatarUrl = valueObjectMember["AvatarUrl"].asString();
|
||||
if(!valueObjectMember["UserId"].isNull())
|
||||
objectObject.userId = valueObjectMember["UserId"].asString();
|
||||
if(!valueObjectMember["MemberId"].isNull())
|
||||
objectObject.memberId = valueObjectMember["MemberId"].asString();
|
||||
if(!valueObjectMember["Role"].isNull())
|
||||
objectObject.role = std::stoi(valueObjectMember["Role"].asString());
|
||||
if(!valueObjectMember["Name"].isNull())
|
||||
objectObject.name = valueObjectMember["Name"].asString();
|
||||
if(!valueObjectMember["AvatarUrl"].isNull())
|
||||
objectObject.avatarUrl = valueObjectMember["AvatarUrl"].asString();
|
||||
if(!valueObjectMember["Email"].isNull())
|
||||
objectObject.email = valueObjectMember["Email"].asString();
|
||||
if(!valueObjectMember["Phone"].isNull())
|
||||
objectObject.phone = valueObjectMember["Phone"].asString();
|
||||
object_.push_back(objectObject);
|
||||
}
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["NextPageToken"].isNull())
|
||||
nextPageToken_ = value["NextPageToken"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["NextPageToken"].isNull())
|
||||
nextPageToken_ = value["NextPageToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +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/devops-rdc/model/GetDevopsProjectSprintInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetDevopsProjectSprintInfoRequest;
|
||||
|
||||
GetDevopsProjectSprintInfoRequest::GetDevopsProjectSprintInfoRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetDevopsProjectSprintInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDevopsProjectSprintInfoRequest::~GetDevopsProjectSprintInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetDevopsProjectSprintInfoRequest::getSprintId()const
|
||||
{
|
||||
return sprintId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetDevopsProjectSprintInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetDevopsProjectSprintInfoRequest;
|
||||
|
||||
GetDevopsProjectSprintInfoRequest::GetDevopsProjectSprintInfoRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetDevopsProjectSprintInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDevopsProjectSprintInfoRequest::setSprintId(const std::string& sprintId)
|
||||
{
|
||||
sprintId_ = sprintId;
|
||||
setBodyParameter("SprintId", sprintId);
|
||||
GetDevopsProjectSprintInfoRequest::~GetDevopsProjectSprintInfoRequest() {}
|
||||
|
||||
std::string GetDevopsProjectSprintInfoRequest::getSprintId() const {
|
||||
return sprintId_;
|
||||
}
|
||||
|
||||
std::string GetDevopsProjectSprintInfoRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetDevopsProjectSprintInfoRequest::setSprintId(const std::string &sprintId) {
|
||||
sprintId_ = sprintId;
|
||||
setBodyParameter(std::string("SprintId"), sprintId);
|
||||
}
|
||||
|
||||
void GetDevopsProjectSprintInfoRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetDevopsProjectSprintInfoRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void GetDevopsProjectSprintInfoRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,41 +40,41 @@ void GetDevopsProjectSprintInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto objectNode = value["Object"];
|
||||
if(!objectNode["Status"].isNull())
|
||||
object_.status = objectNode["Status"].asString();
|
||||
if(!objectNode["Accomplished"].isNull())
|
||||
object_.accomplished = objectNode["Accomplished"].asString();
|
||||
if(!objectNode["ProjectId"].isNull())
|
||||
object_.projectId = objectNode["ProjectId"].asString();
|
||||
if(!objectNode["IsDeleted"].isNull())
|
||||
object_.isDeleted = objectNode["IsDeleted"].asString() == "true";
|
||||
if(!objectNode["Created"].isNull())
|
||||
object_.created = objectNode["Created"].asString();
|
||||
if(!objectNode["StartDate"].isNull())
|
||||
object_.startDate = objectNode["StartDate"].asString();
|
||||
if(!objectNode["Updated"].isNull())
|
||||
object_.updated = objectNode["Updated"].asString();
|
||||
if(!objectNode["CreatorId"].isNull())
|
||||
object_.creatorId = objectNode["CreatorId"].asString();
|
||||
if(!objectNode["DueDate"].isNull())
|
||||
object_.dueDate = objectNode["DueDate"].asString();
|
||||
if(!objectNode["Name"].isNull())
|
||||
object_.name = objectNode["Name"].asString();
|
||||
if(!objectNode["CreatorId"].isNull())
|
||||
object_.creatorId = objectNode["CreatorId"].asString();
|
||||
if(!objectNode["Created"].isNull())
|
||||
object_.created = objectNode["Created"].asString();
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
if(!objectNode["Updated"].isNull())
|
||||
object_.updated = objectNode["Updated"].asString();
|
||||
if(!objectNode["StartDate"].isNull())
|
||||
object_.startDate = objectNode["StartDate"].asString();
|
||||
if(!objectNode["Status"].isNull())
|
||||
object_.status = objectNode["Status"].asString();
|
||||
if(!objectNode["ProjectId"].isNull())
|
||||
object_.projectId = objectNode["ProjectId"].asString();
|
||||
auto planToDoNode = objectNode["PlanToDo"];
|
||||
if(!planToDoNode["StoryPoints"].isNull())
|
||||
object_.planToDo.storyPoints = std::stoi(planToDoNode["StoryPoints"].asString());
|
||||
if(!planToDoNode["WorkTimes"].isNull())
|
||||
object_.planToDo.workTimes = std::stoi(planToDoNode["WorkTimes"].asString());
|
||||
if(!planToDoNode["Tasks"].isNull())
|
||||
object_.planToDo.tasks = std::stoi(planToDoNode["Tasks"].asString());
|
||||
if(!planToDoNode["WorkTimes"].isNull())
|
||||
object_.planToDo.workTimes = std::stoi(planToDoNode["WorkTimes"].asString());
|
||||
if(!planToDoNode["StoryPoints"].isNull())
|
||||
object_.planToDo.storyPoints = std::stoi(planToDoNode["StoryPoints"].asString());
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +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/devops-rdc/model/GetDevopsProjectTaskInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetDevopsProjectTaskInfoRequest;
|
||||
|
||||
GetDevopsProjectTaskInfoRequest::GetDevopsProjectTaskInfoRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetDevopsProjectTaskInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDevopsProjectTaskInfoRequest::~GetDevopsProjectTaskInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetDevopsProjectTaskInfoRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetDevopsProjectTaskInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetDevopsProjectTaskInfoRequest;
|
||||
|
||||
GetDevopsProjectTaskInfoRequest::GetDevopsProjectTaskInfoRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetDevopsProjectTaskInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDevopsProjectTaskInfoRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
GetDevopsProjectTaskInfoRequest::~GetDevopsProjectTaskInfoRequest() {}
|
||||
|
||||
std::string GetDevopsProjectTaskInfoRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
std::string GetDevopsProjectTaskInfoRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void GetDevopsProjectTaskInfoRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetDevopsProjectTaskInfoRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
std::string GetDevopsProjectTaskInfoRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetDevopsProjectTaskInfoRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setBodyParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,57 +40,57 @@ void GetDevopsProjectTaskInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto objectNode = value["Object"];
|
||||
if(!objectNode["TasklistId"].isNull())
|
||||
object_.tasklistId = objectNode["TasklistId"].asString();
|
||||
if(!objectNode["TaskflowstatusId"].isNull())
|
||||
object_.taskflowstatusId = objectNode["TaskflowstatusId"].asString();
|
||||
if(!objectNode["TaskType"].isNull())
|
||||
object_.taskType = objectNode["TaskType"].asString();
|
||||
if(!objectNode["IsDeleted"].isNull())
|
||||
object_.isDeleted = objectNode["IsDeleted"].asString() == "true";
|
||||
if(!objectNode["CreatorId"].isNull())
|
||||
object_.creatorId = objectNode["CreatorId"].asString();
|
||||
if(!objectNode["IsTopInProject"].isNull())
|
||||
object_.isTopInProject = objectNode["IsTopInProject"].asString() == "true";
|
||||
if(!objectNode["ExecutorId"].isNull())
|
||||
object_.executorId = objectNode["ExecutorId"].asString();
|
||||
if(!objectNode["StoryPoint"].isNull())
|
||||
object_.storyPoint = objectNode["StoryPoint"].asString();
|
||||
if(!objectNode["Created"].isNull())
|
||||
object_.created = objectNode["Created"].asString();
|
||||
if(!objectNode["OrganizationId"].isNull())
|
||||
object_.organizationId = objectNode["OrganizationId"].asString();
|
||||
if(!objectNode["IsDone"].isNull())
|
||||
object_.isDone = objectNode["IsDone"].asString() == "true";
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
if(!objectNode["Updated"].isNull())
|
||||
object_.updated = objectNode["Updated"].asString();
|
||||
if(!objectNode["SprintId"].isNull())
|
||||
object_.sprintId = objectNode["SprintId"].asString();
|
||||
if(!objectNode["ProjectId"].isNull())
|
||||
object_.projectId = objectNode["ProjectId"].asString();
|
||||
if(!objectNode["Content"].isNull())
|
||||
object_.content = objectNode["Content"].asString();
|
||||
if(!objectNode["Note"].isNull())
|
||||
object_.note = objectNode["Note"].asString();
|
||||
if(!objectNode["DueDate"].isNull())
|
||||
object_.dueDate = objectNode["DueDate"].asString();
|
||||
if(!objectNode["StartDate"].isNull())
|
||||
object_.startDate = objectNode["StartDate"].asString();
|
||||
if(!objectNode["Visible"].isNull())
|
||||
object_.visible = objectNode["Visible"].asString();
|
||||
if(!objectNode["StoryPoint"].isNull())
|
||||
object_.storyPoint = objectNode["StoryPoint"].asString();
|
||||
if(!objectNode["Priority"].isNull())
|
||||
object_.priority = objectNode["Priority"].asString();
|
||||
if(!objectNode["IsTopInProject"].isNull())
|
||||
object_.isTopInProject = objectNode["IsTopInProject"].asString() == "true";
|
||||
if(!objectNode["CreatorId"].isNull())
|
||||
object_.creatorId = objectNode["CreatorId"].asString();
|
||||
if(!objectNode["OrganizationId"].isNull())
|
||||
object_.organizationId = objectNode["OrganizationId"].asString();
|
||||
if(!objectNode["TaskType"].isNull())
|
||||
object_.taskType = objectNode["TaskType"].asString();
|
||||
if(!objectNode["Visible"].isNull())
|
||||
object_.visible = objectNode["Visible"].asString();
|
||||
if(!objectNode["TasklistId"].isNull())
|
||||
object_.tasklistId = objectNode["TasklistId"].asString();
|
||||
if(!objectNode["IsDone"].isNull())
|
||||
object_.isDone = objectNode["IsDone"].asString() == "true";
|
||||
if(!objectNode["IsDeleted"].isNull())
|
||||
object_.isDeleted = objectNode["IsDeleted"].asString() == "true";
|
||||
if(!objectNode["TaskflowstatusId"].isNull())
|
||||
object_.taskflowstatusId = objectNode["TaskflowstatusId"].asString();
|
||||
if(!objectNode["Note"].isNull())
|
||||
object_.note = objectNode["Note"].asString();
|
||||
if(!objectNode["SprintId"].isNull())
|
||||
object_.sprintId = objectNode["SprintId"].asString();
|
||||
if(!objectNode["Updated"].isNull())
|
||||
object_.updated = objectNode["Updated"].asString();
|
||||
if(!objectNode["DueDate"].isNull())
|
||||
object_.dueDate = objectNode["DueDate"].asString();
|
||||
if(!objectNode["Created"].isNull())
|
||||
object_.created = objectNode["Created"].asString();
|
||||
if(!objectNode["Content"].isNull())
|
||||
object_.content = objectNode["Content"].asString();
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
auto allInvolveMembers = objectNode["InvolveMembers"]["InvolveMember"];
|
||||
for (auto value : allInvolveMembers)
|
||||
object_.involveMembers.push_back(value.asString());
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +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/devops-rdc/model/GetLastWorkspaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetLastWorkspaceRequest;
|
||||
|
||||
GetLastWorkspaceRequest::GetLastWorkspaceRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetLastWorkspace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetLastWorkspaceRequest::~GetLastWorkspaceRequest()
|
||||
{}
|
||||
|
||||
std::string GetLastWorkspaceRequest::getRealPk()const
|
||||
{
|
||||
return realPk_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetLastWorkspaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetLastWorkspaceRequest;
|
||||
|
||||
GetLastWorkspaceRequest::GetLastWorkspaceRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetLastWorkspace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetLastWorkspaceRequest::setRealPk(const std::string& realPk)
|
||||
{
|
||||
realPk_ = realPk;
|
||||
setBodyParameter("RealPk", realPk);
|
||||
GetLastWorkspaceRequest::~GetLastWorkspaceRequest() {}
|
||||
|
||||
std::string GetLastWorkspaceRequest::getRealPk() const {
|
||||
return realPk_;
|
||||
}
|
||||
|
||||
std::string GetLastWorkspaceRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetLastWorkspaceRequest::setRealPk(const std::string &realPk) {
|
||||
realPk_ = realPk;
|
||||
setBodyParameter(std::string("RealPk"), realPk);
|
||||
}
|
||||
|
||||
void GetLastWorkspaceRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetLastWorkspaceRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void GetLastWorkspaceRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void GetLastWorkspaceResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* 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/GetPipelineInstHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineInstHistoryRequest;
|
||||
|
||||
GetPipelineInstHistoryRequest::GetPipelineInstHistoryRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstHistory")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPipelineInstHistoryRequest::~GetPipelineInstHistoryRequest()
|
||||
{}
|
||||
|
||||
std::string GetPipelineInstHistoryRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetPipelineInstHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineInstHistoryRequest;
|
||||
|
||||
GetPipelineInstHistoryRequest::GetPipelineInstHistoryRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstHistory") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetPipelineInstHistoryRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setBodyParameter("EndTime", endTime);
|
||||
GetPipelineInstHistoryRequest::~GetPipelineInstHistoryRequest() {}
|
||||
|
||||
std::string GetPipelineInstHistoryRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string GetPipelineInstHistoryRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
void GetPipelineInstHistoryRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setBodyParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
void GetPipelineInstHistoryRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setBodyParameter("StartTime", startTime);
|
||||
std::string GetPipelineInstHistoryRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string GetPipelineInstHistoryRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void GetPipelineInstHistoryRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setBodyParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
void GetPipelineInstHistoryRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string GetPipelineInstHistoryRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string GetPipelineInstHistoryRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetPipelineInstHistoryRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void GetPipelineInstHistoryRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetPipelineInstHistoryRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
long GetPipelineInstHistoryRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void GetPipelineInstHistoryRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetPipelineInstHistoryRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setBodyParameter("PipelineId", std::to_string(pipelineId));
|
||||
long GetPipelineInstHistoryRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
long GetPipelineInstHistoryRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void GetPipelineInstHistoryRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setBodyParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
void GetPipelineInstHistoryRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
long GetPipelineInstHistoryRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long GetPipelineInstHistoryRequest::getPageStart()const
|
||||
{
|
||||
return pageStart_;
|
||||
void GetPipelineInstHistoryRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void GetPipelineInstHistoryRequest::setPageStart(long pageStart)
|
||||
{
|
||||
pageStart_ = pageStart;
|
||||
setBodyParameter("PageStart", std::to_string(pageStart));
|
||||
long GetPipelineInstHistoryRequest::getPageStart() const {
|
||||
return pageStart_;
|
||||
}
|
||||
|
||||
void GetPipelineInstHistoryRequest::setPageStart(long pageStart) {
|
||||
pageStart_ = pageStart;
|
||||
setBodyParameter(std::string("PageStart"), std::to_string(pageStart));
|
||||
}
|
||||
|
||||
|
||||
@@ -46,124 +46,124 @@ void GetPipelineInstHistoryResult::parse(const std::string &payload)
|
||||
for (auto dataNodeDataListPipelineInst : allDataListNode)
|
||||
{
|
||||
Data::PipelineInst pipelineInstObject;
|
||||
if(!dataNodeDataListPipelineInst["Creator"].isNull())
|
||||
pipelineInstObject.creator = dataNodeDataListPipelineInst["Creator"].asString();
|
||||
if(!dataNodeDataListPipelineInst["ModifyTime"].isNull())
|
||||
pipelineInstObject.modifyTime = std::stol(dataNodeDataListPipelineInst["ModifyTime"].asString());
|
||||
if(!dataNodeDataListPipelineInst["PipelineConfigId"].isNull())
|
||||
pipelineInstObject.pipelineConfigId = std::stoi(dataNodeDataListPipelineInst["PipelineConfigId"].asString());
|
||||
if(!dataNodeDataListPipelineInst["Modifier"].isNull())
|
||||
pipelineInstObject.modifier = dataNodeDataListPipelineInst["Modifier"].asString();
|
||||
if(!dataNodeDataListPipelineInst["CreateTime"].isNull())
|
||||
pipelineInstObject.createTime = std::stol(dataNodeDataListPipelineInst["CreateTime"].asString());
|
||||
if(!dataNodeDataListPipelineInst["Packages"].isNull())
|
||||
pipelineInstObject.packages = dataNodeDataListPipelineInst["Packages"].asString();
|
||||
if(!dataNodeDataListPipelineInst["PipelineId"].isNull())
|
||||
pipelineInstObject.pipelineId = std::stoi(dataNodeDataListPipelineInst["PipelineId"].asString());
|
||||
if(!dataNodeDataListPipelineInst["FlowInstId"].isNull())
|
||||
pipelineInstObject.flowInstId = std::stoi(dataNodeDataListPipelineInst["FlowInstId"].asString());
|
||||
if(!dataNodeDataListPipelineInst["InstNumber"].isNull())
|
||||
pipelineInstObject.instNumber = std::stoi(dataNodeDataListPipelineInst["InstNumber"].asString());
|
||||
if(!dataNodeDataListPipelineInst["Deletion"].isNull())
|
||||
pipelineInstObject.deletion = dataNodeDataListPipelineInst["Deletion"].asString();
|
||||
if(!dataNodeDataListPipelineInst["StatusName"].isNull())
|
||||
pipelineInstObject.statusName = dataNodeDataListPipelineInst["StatusName"].asString();
|
||||
if(!dataNodeDataListPipelineInst["Id"].isNull())
|
||||
pipelineInstObject.id = std::stoi(dataNodeDataListPipelineInst["Id"].asString());
|
||||
if(!dataNodeDataListPipelineInst["TriggerMode"].isNull())
|
||||
pipelineInstObject.triggerMode = std::stoi(dataNodeDataListPipelineInst["TriggerMode"].asString());
|
||||
if(!dataNodeDataListPipelineInst["Status"].isNull())
|
||||
pipelineInstObject.status = dataNodeDataListPipelineInst["Status"].asString();
|
||||
if(!dataNodeDataListPipelineInst["CreateTime"].isNull())
|
||||
pipelineInstObject.createTime = std::stol(dataNodeDataListPipelineInst["CreateTime"].asString());
|
||||
if(!dataNodeDataListPipelineInst["StatusName"].isNull())
|
||||
pipelineInstObject.statusName = dataNodeDataListPipelineInst["StatusName"].asString();
|
||||
if(!dataNodeDataListPipelineInst["TriggerMode"].isNull())
|
||||
pipelineInstObject.triggerMode = std::stoi(dataNodeDataListPipelineInst["TriggerMode"].asString());
|
||||
if(!dataNodeDataListPipelineInst["PipelineConfigId"].isNull())
|
||||
pipelineInstObject.pipelineConfigId = std::stoi(dataNodeDataListPipelineInst["PipelineConfigId"].asString());
|
||||
if(!dataNodeDataListPipelineInst["Deletion"].isNull())
|
||||
pipelineInstObject.deletion = dataNodeDataListPipelineInst["Deletion"].asString();
|
||||
if(!dataNodeDataListPipelineInst["Creator"].isNull())
|
||||
pipelineInstObject.creator = dataNodeDataListPipelineInst["Creator"].asString();
|
||||
if(!dataNodeDataListPipelineInst["InstNumber"].isNull())
|
||||
pipelineInstObject.instNumber = std::stoi(dataNodeDataListPipelineInst["InstNumber"].asString());
|
||||
if(!dataNodeDataListPipelineInst["Modifier"].isNull())
|
||||
pipelineInstObject.modifier = dataNodeDataListPipelineInst["Modifier"].asString();
|
||||
if(!dataNodeDataListPipelineInst["Packages"].isNull())
|
||||
pipelineInstObject.packages = dataNodeDataListPipelineInst["Packages"].asString();
|
||||
if(!dataNodeDataListPipelineInst["FlowInstId"].isNull())
|
||||
pipelineInstObject.flowInstId = std::stoi(dataNodeDataListPipelineInst["FlowInstId"].asString());
|
||||
if(!dataNodeDataListPipelineInst["PipelineId"].isNull())
|
||||
pipelineInstObject.pipelineId = std::stoi(dataNodeDataListPipelineInst["PipelineId"].asString());
|
||||
if(!dataNodeDataListPipelineInst["Id"].isNull())
|
||||
pipelineInstObject.id = std::stoi(dataNodeDataListPipelineInst["Id"].asString());
|
||||
if(!dataNodeDataListPipelineInst["ModifyTime"].isNull())
|
||||
pipelineInstObject.modifyTime = std::stol(dataNodeDataListPipelineInst["ModifyTime"].asString());
|
||||
auto flowInstanceNode = value["FlowInstance"];
|
||||
if(!flowInstanceNode["Status"].isNull())
|
||||
pipelineInstObject.flowInstance.status = flowInstanceNode["Status"].asString();
|
||||
if(!flowInstanceNode["Stages"].isNull())
|
||||
pipelineInstObject.flowInstance.stages = flowInstanceNode["Stages"].asString();
|
||||
if(!flowInstanceNode["CreateTime"].isNull())
|
||||
pipelineInstObject.flowInstance.createTime = std::stol(flowInstanceNode["CreateTime"].asString());
|
||||
if(!flowInstanceNode["StatusName"].isNull())
|
||||
pipelineInstObject.flowInstance.statusName = flowInstanceNode["StatusName"].asString();
|
||||
if(!flowInstanceNode["RunningStatus"].isNull())
|
||||
pipelineInstObject.flowInstance.runningStatus = flowInstanceNode["RunningStatus"].asString();
|
||||
if(!flowInstanceNode["Creator"].isNull())
|
||||
pipelineInstObject.flowInstance.creator = flowInstanceNode["Creator"].asString();
|
||||
if(!flowInstanceNode["ModifyTime"].isNull())
|
||||
pipelineInstObject.flowInstance.modifyTime = std::stol(flowInstanceNode["ModifyTime"].asString());
|
||||
if(!flowInstanceNode["SystemId"].isNull())
|
||||
pipelineInstObject.flowInstance.systemId = flowInstanceNode["SystemId"].asString();
|
||||
if(!flowInstanceNode["StageTopo"].isNull())
|
||||
pipelineInstObject.flowInstance.stageTopo = flowInstanceNode["StageTopo"].asString();
|
||||
if(!flowInstanceNode["Modifier"].isNull())
|
||||
pipelineInstObject.flowInstance.modifier = flowInstanceNode["Modifier"].asString();
|
||||
if(!flowInstanceNode["AutoDrivenStatus"].isNull())
|
||||
pipelineInstObject.flowInstance.autoDrivenStatus = flowInstanceNode["AutoDrivenStatus"].asString() == "true";
|
||||
if(!flowInstanceNode["CreateTime"].isNull())
|
||||
pipelineInstObject.flowInstance.createTime = std::stol(flowInstanceNode["CreateTime"].asString());
|
||||
if(!flowInstanceNode["ResultStatus"].isNull())
|
||||
pipelineInstObject.flowInstance.resultStatus = flowInstanceNode["ResultStatus"].asString();
|
||||
if(!flowInstanceNode["RunningStatus"].isNull())
|
||||
pipelineInstObject.flowInstance.runningStatus = flowInstanceNode["RunningStatus"].asString();
|
||||
if(!flowInstanceNode["SystemCode"].isNull())
|
||||
pipelineInstObject.flowInstance.systemCode = flowInstanceNode["SystemCode"].asString();
|
||||
if(!flowInstanceNode["Stages"].isNull())
|
||||
pipelineInstObject.flowInstance.stages = flowInstanceNode["Stages"].asString();
|
||||
if(!flowInstanceNode["StatusName"].isNull())
|
||||
pipelineInstObject.flowInstance.statusName = flowInstanceNode["StatusName"].asString();
|
||||
if(!flowInstanceNode["Id"].isNull())
|
||||
pipelineInstObject.flowInstance.id = std::stoi(flowInstanceNode["Id"].asString());
|
||||
if(!flowInstanceNode["Status"].isNull())
|
||||
pipelineInstObject.flowInstance.status = flowInstanceNode["Status"].asString();
|
||||
if(!flowInstanceNode["SystemCode"].isNull())
|
||||
pipelineInstObject.flowInstance.systemCode = flowInstanceNode["SystemCode"].asString();
|
||||
if(!flowInstanceNode["ModifyTime"].isNull())
|
||||
pipelineInstObject.flowInstance.modifyTime = std::stol(flowInstanceNode["ModifyTime"].asString());
|
||||
if(!flowInstanceNode["SystemId"].isNull())
|
||||
pipelineInstObject.flowInstance.systemId = flowInstanceNode["SystemId"].asString();
|
||||
auto allGroupsNode = flowInstanceNode["Groups"]["Group"];
|
||||
for (auto flowInstanceNodeGroupsGroup : allGroupsNode)
|
||||
{
|
||||
Data::PipelineInst::FlowInstance::Group groupObject;
|
||||
if(!flowInstanceNodeGroupsGroup["Creator"].isNull())
|
||||
groupObject.creator = flowInstanceNodeGroupsGroup["Creator"].asString();
|
||||
if(!flowInstanceNodeGroupsGroup["ModifyTime"].isNull())
|
||||
groupObject.modifyTime = std::stol(flowInstanceNodeGroupsGroup["ModifyTime"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["Modifier"].isNull())
|
||||
groupObject.modifier = flowInstanceNodeGroupsGroup["Modifier"].asString();
|
||||
if(!flowInstanceNodeGroupsGroup["CreateTime"].isNull())
|
||||
groupObject.createTime = std::stol(flowInstanceNodeGroupsGroup["CreateTime"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["FlowInstId"].isNull())
|
||||
groupObject.flowInstId = std::stoi(flowInstanceNodeGroupsGroup["FlowInstId"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["ResultStatus"].isNull())
|
||||
groupObject.resultStatus = flowInstanceNodeGroupsGroup["ResultStatus"].asString();
|
||||
if(!flowInstanceNodeGroupsGroup["DeleteStatus"].isNull())
|
||||
groupObject.deleteStatus = flowInstanceNodeGroupsGroup["DeleteStatus"].asString();
|
||||
if(!flowInstanceNodeGroupsGroup["Name"].isNull())
|
||||
groupObject.name = flowInstanceNodeGroupsGroup["Name"].asString();
|
||||
if(!flowInstanceNodeGroupsGroup["StartTime"].isNull())
|
||||
groupObject.startTime = std::stol(flowInstanceNodeGroupsGroup["StartTime"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["EndTime"].isNull())
|
||||
groupObject.endTime = std::stol(flowInstanceNodeGroupsGroup["EndTime"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["Id"].isNull())
|
||||
groupObject.id = std::stoi(flowInstanceNodeGroupsGroup["Id"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["IdExtent"].isNull())
|
||||
groupObject.idExtent = std::stoi(flowInstanceNodeGroupsGroup["IdExtent"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["Status"].isNull())
|
||||
groupObject.status = flowInstanceNodeGroupsGroup["Status"].asString();
|
||||
if(!flowInstanceNodeGroupsGroup["CreateTime"].isNull())
|
||||
groupObject.createTime = std::stol(flowInstanceNodeGroupsGroup["CreateTime"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["DeleteStatus"].isNull())
|
||||
groupObject.deleteStatus = flowInstanceNodeGroupsGroup["DeleteStatus"].asString();
|
||||
if(!flowInstanceNodeGroupsGroup["IdExtent"].isNull())
|
||||
groupObject.idExtent = std::stoi(flowInstanceNodeGroupsGroup["IdExtent"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["Creator"].isNull())
|
||||
groupObject.creator = flowInstanceNodeGroupsGroup["Creator"].asString();
|
||||
if(!flowInstanceNodeGroupsGroup["EndTime"].isNull())
|
||||
groupObject.endTime = std::stol(flowInstanceNodeGroupsGroup["EndTime"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["StartTime"].isNull())
|
||||
groupObject.startTime = std::stol(flowInstanceNodeGroupsGroup["StartTime"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["Modifier"].isNull())
|
||||
groupObject.modifier = flowInstanceNodeGroupsGroup["Modifier"].asString();
|
||||
if(!flowInstanceNodeGroupsGroup["ResultStatus"].isNull())
|
||||
groupObject.resultStatus = flowInstanceNodeGroupsGroup["ResultStatus"].asString();
|
||||
if(!flowInstanceNodeGroupsGroup["FlowInstId"].isNull())
|
||||
groupObject.flowInstId = std::stoi(flowInstanceNodeGroupsGroup["FlowInstId"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["Name"].isNull())
|
||||
groupObject.name = flowInstanceNodeGroupsGroup["Name"].asString();
|
||||
if(!flowInstanceNodeGroupsGroup["Id"].isNull())
|
||||
groupObject.id = std::stoi(flowInstanceNodeGroupsGroup["Id"].asString());
|
||||
if(!flowInstanceNodeGroupsGroup["ModifyTime"].isNull())
|
||||
groupObject.modifyTime = std::stol(flowInstanceNodeGroupsGroup["ModifyTime"].asString());
|
||||
pipelineInstObject.flowInstance.groups.push_back(groupObject);
|
||||
}
|
||||
auto resultNode = flowInstanceNode["Result"];
|
||||
if(!resultNode["Sources"].isNull())
|
||||
pipelineInstObject.flowInstance.result.sources = resultNode["Sources"].asString();
|
||||
if(!resultNode["Caches"].isNull())
|
||||
pipelineInstObject.flowInstance.result.caches = resultNode["Caches"].asString();
|
||||
if(!resultNode["EnginePipelineId"].isNull())
|
||||
pipelineInstObject.flowInstance.result.enginePipelineId = std::stoi(resultNode["EnginePipelineId"].asString());
|
||||
if(!resultNode["EnginePipelineNumber"].isNull())
|
||||
pipelineInstObject.flowInstance.result.enginePipelineNumber = std::stoi(resultNode["EnginePipelineNumber"].asString());
|
||||
if(!resultNode["MixFlowInstId"].isNull())
|
||||
pipelineInstObject.flowInstance.result.mixFlowInstId = resultNode["MixFlowInstId"].asString();
|
||||
if(!resultNode["EnginePipelineName"].isNull())
|
||||
pipelineInstObject.flowInstance.result.enginePipelineName = resultNode["EnginePipelineName"].asString();
|
||||
if(!resultNode["EnginePipelineNumber"].isNull())
|
||||
pipelineInstObject.flowInstance.result.enginePipelineNumber = std::stoi(resultNode["EnginePipelineNumber"].asString());
|
||||
if(!resultNode["DateTime"].isNull())
|
||||
pipelineInstObject.flowInstance.result.dateTime = resultNode["DateTime"].asString();
|
||||
if(!resultNode["EnginePipelineId"].isNull())
|
||||
pipelineInstObject.flowInstance.result.enginePipelineId = std::stoi(resultNode["EnginePipelineId"].asString());
|
||||
if(!resultNode["EnginePipelineInstId"].isNull())
|
||||
pipelineInstObject.flowInstance.result.enginePipelineInstId = std::stoi(resultNode["EnginePipelineInstId"].asString());
|
||||
if(!resultNode["TimeStamp"].isNull())
|
||||
pipelineInstObject.flowInstance.result.timeStamp = resultNode["TimeStamp"].asString();
|
||||
if(!resultNode["TriggerMode"].isNull())
|
||||
pipelineInstObject.flowInstance.result.triggerMode = resultNode["TriggerMode"].asString();
|
||||
if(!resultNode["EnginePipelineInstId"].isNull())
|
||||
pipelineInstObject.flowInstance.result.enginePipelineInstId = std::stoi(resultNode["EnginePipelineInstId"].asString());
|
||||
if(!resultNode["Sources"].isNull())
|
||||
pipelineInstObject.flowInstance.result.sources = resultNode["Sources"].asString();
|
||||
if(!resultNode["Caches"].isNull())
|
||||
pipelineInstObject.flowInstance.result.caches = resultNode["Caches"].asString();
|
||||
if(!resultNode["DateTime"].isNull())
|
||||
pipelineInstObject.flowInstance.result.dateTime = resultNode["DateTime"].asString();
|
||||
data_.dataList.push_back(pipelineInstObject);
|
||||
}
|
||||
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();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/GetPipelineInstanceBuildNumberStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineInstanceBuildNumberStatusRequest;
|
||||
|
||||
GetPipelineInstanceBuildNumberStatusRequest::GetPipelineInstanceBuildNumberStatusRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstanceBuildNumberStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPipelineInstanceBuildNumberStatusRequest::~GetPipelineInstanceBuildNumberStatusRequest()
|
||||
{}
|
||||
|
||||
long GetPipelineInstanceBuildNumberStatusRequest::getBuildNum()const
|
||||
{
|
||||
return buildNum_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetPipelineInstanceBuildNumberStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineInstanceBuildNumberStatusRequest;
|
||||
|
||||
GetPipelineInstanceBuildNumberStatusRequest::GetPipelineInstanceBuildNumberStatusRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstanceBuildNumberStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceBuildNumberStatusRequest::setBuildNum(long buildNum)
|
||||
{
|
||||
buildNum_ = buildNum;
|
||||
setBodyParameter("BuildNum", std::to_string(buildNum));
|
||||
GetPipelineInstanceBuildNumberStatusRequest::~GetPipelineInstanceBuildNumberStatusRequest() {}
|
||||
|
||||
long GetPipelineInstanceBuildNumberStatusRequest::getBuildNum() const {
|
||||
return buildNum_;
|
||||
}
|
||||
|
||||
std::string GetPipelineInstanceBuildNumberStatusRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void GetPipelineInstanceBuildNumberStatusRequest::setBuildNum(long buildNum) {
|
||||
buildNum_ = buildNum;
|
||||
setBodyParameter(std::string("BuildNum"), std::to_string(buildNum));
|
||||
}
|
||||
|
||||
void GetPipelineInstanceBuildNumberStatusRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string GetPipelineInstanceBuildNumberStatusRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string GetPipelineInstanceBuildNumberStatusRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetPipelineInstanceBuildNumberStatusRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceBuildNumberStatusRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
std::string GetPipelineInstanceBuildNumberStatusRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
long GetPipelineInstanceBuildNumberStatusRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void GetPipelineInstanceBuildNumberStatusRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceBuildNumberStatusRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
long GetPipelineInstanceBuildNumberStatusRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void GetPipelineInstanceBuildNumberStatusRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
|
||||
@@ -46,10 +46,10 @@ void GetPipelineInstanceBuildNumberStatusResult::parse(const std::string &payloa
|
||||
for (auto objectNodeGroupsgroup : allGroupsNode)
|
||||
{
|
||||
Object::Group groupObject;
|
||||
if(!objectNodeGroupsgroup["Name"].isNull())
|
||||
groupObject.name = objectNodeGroupsgroup["Name"].asString();
|
||||
if(!objectNodeGroupsgroup["Status"].isNull())
|
||||
groupObject.status = objectNodeGroupsgroup["Status"].asString();
|
||||
if(!objectNodeGroupsgroup["Name"].isNull())
|
||||
groupObject.name = objectNodeGroupsgroup["Name"].asString();
|
||||
auto allStagesNode = objectNodeGroupsgroup["Stages"]["stage"];
|
||||
for (auto objectNodeGroupsgroupStagesstage : allStagesNode)
|
||||
{
|
||||
@@ -62,10 +62,10 @@ void GetPipelineInstanceBuildNumberStatusResult::parse(const std::string &payloa
|
||||
for (auto objectNodeGroupsgroupStagesstageComponentscomponent : allComponentsNode)
|
||||
{
|
||||
Object::Group::Stage::Component componentsObject;
|
||||
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Name"].isNull())
|
||||
componentsObject.name = objectNodeGroupsgroupStagesstageComponentscomponent["Name"].asString();
|
||||
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Status"].isNull())
|
||||
componentsObject.status = objectNodeGroupsgroupStagesstageComponentscomponent["Status"].asString();
|
||||
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Name"].isNull())
|
||||
componentsObject.name = objectNodeGroupsgroupStagesstageComponentscomponent["Name"].asString();
|
||||
if(!objectNodeGroupsgroupStagesstageComponentscomponent["JobId"].isNull())
|
||||
componentsObject.jobId = std::stol(objectNodeGroupsgroupStagesstageComponentscomponent["JobId"].asString());
|
||||
stagesObject.components.push_back(componentsObject);
|
||||
@@ -74,12 +74,12 @@ void GetPipelineInstanceBuildNumberStatusResult::parse(const std::string &payloa
|
||||
}
|
||||
object_.groups.push_back(groupObject);
|
||||
}
|
||||
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();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/GetPipelineInstanceGroupStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineInstanceGroupStatusRequest;
|
||||
|
||||
GetPipelineInstanceGroupStatusRequest::GetPipelineInstanceGroupStatusRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstanceGroupStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPipelineInstanceGroupStatusRequest::~GetPipelineInstanceGroupStatusRequest()
|
||||
{}
|
||||
|
||||
long GetPipelineInstanceGroupStatusRequest::getFlowInstanceId()const
|
||||
{
|
||||
return flowInstanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetPipelineInstanceGroupStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineInstanceGroupStatusRequest;
|
||||
|
||||
GetPipelineInstanceGroupStatusRequest::GetPipelineInstanceGroupStatusRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstanceGroupStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceGroupStatusRequest::setFlowInstanceId(long flowInstanceId)
|
||||
{
|
||||
flowInstanceId_ = flowInstanceId;
|
||||
setBodyParameter("FlowInstanceId", std::to_string(flowInstanceId));
|
||||
GetPipelineInstanceGroupStatusRequest::~GetPipelineInstanceGroupStatusRequest() {}
|
||||
|
||||
long GetPipelineInstanceGroupStatusRequest::getFlowInstanceId() const {
|
||||
return flowInstanceId_;
|
||||
}
|
||||
|
||||
std::string GetPipelineInstanceGroupStatusRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void GetPipelineInstanceGroupStatusRequest::setFlowInstanceId(long flowInstanceId) {
|
||||
flowInstanceId_ = flowInstanceId;
|
||||
setBodyParameter(std::string("FlowInstanceId"), std::to_string(flowInstanceId));
|
||||
}
|
||||
|
||||
void GetPipelineInstanceGroupStatusRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string GetPipelineInstanceGroupStatusRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string GetPipelineInstanceGroupStatusRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetPipelineInstanceGroupStatusRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceGroupStatusRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
std::string GetPipelineInstanceGroupStatusRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
long GetPipelineInstanceGroupStatusRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void GetPipelineInstanceGroupStatusRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceGroupStatusRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
long GetPipelineInstanceGroupStatusRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void GetPipelineInstanceGroupStatusRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
|
||||
@@ -46,10 +46,10 @@ void GetPipelineInstanceGroupStatusResult::parse(const std::string &payload)
|
||||
for (auto objectNodeGroupsgroup : allGroupsNode)
|
||||
{
|
||||
Object::Group groupObject;
|
||||
if(!objectNodeGroupsgroup["Name"].isNull())
|
||||
groupObject.name = objectNodeGroupsgroup["Name"].asString();
|
||||
if(!objectNodeGroupsgroup["Status"].isNull())
|
||||
groupObject.status = objectNodeGroupsgroup["Status"].asString();
|
||||
if(!objectNodeGroupsgroup["Name"].isNull())
|
||||
groupObject.name = objectNodeGroupsgroup["Name"].asString();
|
||||
auto allStagesNode = objectNodeGroupsgroup["Stages"]["stage"];
|
||||
for (auto objectNodeGroupsgroupStagesstage : allStagesNode)
|
||||
{
|
||||
@@ -62,10 +62,10 @@ void GetPipelineInstanceGroupStatusResult::parse(const std::string &payload)
|
||||
for (auto objectNodeGroupsgroupStagesstageComponentscomponent : allComponentsNode)
|
||||
{
|
||||
Object::Group::Stage::Component componentsObject;
|
||||
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Name"].isNull())
|
||||
componentsObject.name = objectNodeGroupsgroupStagesstageComponentscomponent["Name"].asString();
|
||||
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Status"].isNull())
|
||||
componentsObject.status = objectNodeGroupsgroupStagesstageComponentscomponent["Status"].asString();
|
||||
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Name"].isNull())
|
||||
componentsObject.name = objectNodeGroupsgroupStagesstageComponentscomponent["Name"].asString();
|
||||
if(!objectNodeGroupsgroupStagesstageComponentscomponent["JobId"].isNull())
|
||||
componentsObject.jobId = objectNodeGroupsgroupStagesstageComponentscomponent["JobId"].asString();
|
||||
stagesObject.components.push_back(componentsObject);
|
||||
@@ -74,12 +74,12 @@ void GetPipelineInstanceGroupStatusResult::parse(const std::string &payload)
|
||||
}
|
||||
object_.groups.push_back(groupObject);
|
||||
}
|
||||
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();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/GetPipelineInstanceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineInstanceInfoRequest;
|
||||
|
||||
GetPipelineInstanceInfoRequest::GetPipelineInstanceInfoRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstanceInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPipelineInstanceInfoRequest::~GetPipelineInstanceInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetPipelineInstanceInfoRequest::getFlowInstanceId()const
|
||||
{
|
||||
return flowInstanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetPipelineInstanceInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineInstanceInfoRequest;
|
||||
|
||||
GetPipelineInstanceInfoRequest::GetPipelineInstanceInfoRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstanceInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceInfoRequest::setFlowInstanceId(const std::string& flowInstanceId)
|
||||
{
|
||||
flowInstanceId_ = flowInstanceId;
|
||||
setBodyParameter("FlowInstanceId", flowInstanceId);
|
||||
GetPipelineInstanceInfoRequest::~GetPipelineInstanceInfoRequest() {}
|
||||
|
||||
std::string GetPipelineInstanceInfoRequest::getFlowInstanceId() const {
|
||||
return flowInstanceId_;
|
||||
}
|
||||
|
||||
std::string GetPipelineInstanceInfoRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void GetPipelineInstanceInfoRequest::setFlowInstanceId(const std::string &flowInstanceId) {
|
||||
flowInstanceId_ = flowInstanceId;
|
||||
setBodyParameter(std::string("FlowInstanceId"), flowInstanceId);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceInfoRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string GetPipelineInstanceInfoRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string GetPipelineInstanceInfoRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetPipelineInstanceInfoRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceInfoRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetPipelineInstanceInfoRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
long GetPipelineInstanceInfoRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void GetPipelineInstanceInfoRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceInfoRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setBodyParameter("PipelineId", std::to_string(pipelineId));
|
||||
long GetPipelineInstanceInfoRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void GetPipelineInstanceInfoRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setBodyParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void GetPipelineInstanceInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto objectNode = value["Object"];
|
||||
if(!objectNode["EmployeeId"].isNull())
|
||||
object_.employeeId = objectNode["EmployeeId"].asString();
|
||||
if(!objectNode["EndTime"].isNull())
|
||||
object_.endTime = std::stol(objectNode["EndTime"].asString());
|
||||
if(!objectNode["Status"].isNull())
|
||||
object_.status = objectNode["Status"].asString();
|
||||
if(!objectNode["StartTime"].isNull())
|
||||
object_.startTime = std::stol(objectNode["StartTime"].asString());
|
||||
if(!objectNode["EndTime"].isNull())
|
||||
object_.endTime = std::stol(objectNode["EndTime"].asString());
|
||||
if(!objectNode["Sources"].isNull())
|
||||
object_.sources = objectNode["Sources"].asString();
|
||||
if(!objectNode["EmployeeId"].isNull())
|
||||
object_.employeeId = objectNode["EmployeeId"].asString();
|
||||
auto allPackageDownloadUrls = objectNode["PackageDownloadUrls"]["PackageDownloadUrls"];
|
||||
for (auto value : allPackageDownloadUrls)
|
||||
object_.packageDownloadUrls.push_back(value.asString());
|
||||
auto allDockerImages = objectNode["DockerImages"]["DockerImages"];
|
||||
for (auto value : allDockerImages)
|
||||
object_.dockerImages.push_back(value.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
auto allPackageDownloadUrls = objectNode["PackageDownloadUrls"]["PackageDownloadUrls"];
|
||||
for (auto value : allPackageDownloadUrls)
|
||||
object_.packageDownloadUrls.push_back(value.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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/GetPipelineInstanceStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineInstanceStatusRequest;
|
||||
|
||||
GetPipelineInstanceStatusRequest::GetPipelineInstanceStatusRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstanceStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPipelineInstanceStatusRequest::~GetPipelineInstanceStatusRequest()
|
||||
{}
|
||||
|
||||
long GetPipelineInstanceStatusRequest::getFlowInstanceId()const
|
||||
{
|
||||
return flowInstanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetPipelineInstanceStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineInstanceStatusRequest;
|
||||
|
||||
GetPipelineInstanceStatusRequest::GetPipelineInstanceStatusRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineInstanceStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceStatusRequest::setFlowInstanceId(long flowInstanceId)
|
||||
{
|
||||
flowInstanceId_ = flowInstanceId;
|
||||
setParameter("FlowInstanceId", std::to_string(flowInstanceId));
|
||||
GetPipelineInstanceStatusRequest::~GetPipelineInstanceStatusRequest() {}
|
||||
|
||||
long GetPipelineInstanceStatusRequest::getFlowInstanceId() const {
|
||||
return flowInstanceId_;
|
||||
}
|
||||
|
||||
std::string GetPipelineInstanceStatusRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void GetPipelineInstanceStatusRequest::setFlowInstanceId(long flowInstanceId) {
|
||||
flowInstanceId_ = flowInstanceId;
|
||||
setParameter(std::string("FlowInstanceId"), std::to_string(flowInstanceId));
|
||||
}
|
||||
|
||||
void GetPipelineInstanceStatusRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string GetPipelineInstanceStatusRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string GetPipelineInstanceStatusRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetPipelineInstanceStatusRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceStatusRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
std::string GetPipelineInstanceStatusRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
long GetPipelineInstanceStatusRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void GetPipelineInstanceStatusRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetPipelineInstanceStatusRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
long GetPipelineInstanceStatusRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void GetPipelineInstanceStatusRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void GetPipelineInstanceStatusResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/GetPipelineLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineLogRequest;
|
||||
|
||||
GetPipelineLogRequest::GetPipelineLogRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineLog")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPipelineLogRequest::~GetPipelineLogRequest()
|
||||
{}
|
||||
|
||||
std::string GetPipelineLogRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetPipelineLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineLogRequest;
|
||||
|
||||
GetPipelineLogRequest::GetPipelineLogRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineLog") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetPipelineLogRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
GetPipelineLogRequest::~GetPipelineLogRequest() {}
|
||||
|
||||
std::string GetPipelineLogRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string GetPipelineLogRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetPipelineLogRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void GetPipelineLogRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetPipelineLogRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
long GetPipelineLogRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void GetPipelineLogRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetPipelineLogRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setBodyParameter("PipelineId", std::to_string(pipelineId));
|
||||
long GetPipelineLogRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
long GetPipelineLogRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
void GetPipelineLogRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setBodyParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
void GetPipelineLogRequest::setJobId(long jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setBodyParameter("JobId", std::to_string(jobId));
|
||||
long GetPipelineLogRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void GetPipelineLogRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setBodyParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,32 +43,32 @@ void GetPipelineLogResult::parse(const std::string &payload)
|
||||
for (auto valueObjectjob : allObjectNode)
|
||||
{
|
||||
Job objectObject;
|
||||
if(!valueObjectjob["JobId"].isNull())
|
||||
objectObject.jobId = std::stol(valueObjectjob["JobId"].asString());
|
||||
if(!valueObjectjob["ActionName"].isNull())
|
||||
objectObject.actionName = valueObjectjob["ActionName"].asString();
|
||||
if(!valueObjectjob["StartTime"].isNull())
|
||||
objectObject.startTime = valueObjectjob["StartTime"].asString();
|
||||
if(!valueObjectjob["JobId"].isNull())
|
||||
objectObject.jobId = std::stol(valueObjectjob["JobId"].asString());
|
||||
auto allBuildProcessNodesNode = valueObjectjob["BuildProcessNodes"]["buildProcessNode"];
|
||||
for (auto valueObjectjobBuildProcessNodesbuildProcessNode : allBuildProcessNodesNode)
|
||||
{
|
||||
Job::BuildProcessNode buildProcessNodesObject;
|
||||
if(!valueObjectjobBuildProcessNodesbuildProcessNode["NodeName"].isNull())
|
||||
buildProcessNodesObject.nodeName = valueObjectjobBuildProcessNodesbuildProcessNode["NodeName"].asString();
|
||||
if(!valueObjectjobBuildProcessNodesbuildProcessNode["NodeIndex"].isNull())
|
||||
buildProcessNodesObject.nodeIndex = std::stoi(valueObjectjobBuildProcessNodesbuildProcessNode["NodeIndex"].asString());
|
||||
if(!valueObjectjobBuildProcessNodesbuildProcessNode["Status"].isNull())
|
||||
buildProcessNodesObject.status = valueObjectjobBuildProcessNodesbuildProcessNode["Status"].asString();
|
||||
if(!valueObjectjobBuildProcessNodesbuildProcessNode["NodeIndex"].isNull())
|
||||
buildProcessNodesObject.nodeIndex = std::stoi(valueObjectjobBuildProcessNodesbuildProcessNode["NodeIndex"].asString());
|
||||
if(!valueObjectjobBuildProcessNodesbuildProcessNode["NodeName"].isNull())
|
||||
buildProcessNodesObject.nodeName = valueObjectjobBuildProcessNodesbuildProcessNode["NodeName"].asString();
|
||||
objectObject.buildProcessNodes.push_back(buildProcessNodesObject);
|
||||
}
|
||||
object_.push_back(objectObject);
|
||||
}
|
||||
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();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* 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/GetPipelineStepLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineStepLogRequest;
|
||||
|
||||
GetPipelineStepLogRequest::GetPipelineStepLogRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineStepLog")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPipelineStepLogRequest::~GetPipelineStepLogRequest()
|
||||
{}
|
||||
|
||||
long GetPipelineStepLogRequest::getOffset()const
|
||||
{
|
||||
return offset_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetPipelineStepLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipelineStepLogRequest;
|
||||
|
||||
GetPipelineStepLogRequest::GetPipelineStepLogRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipelineStepLog") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetPipelineStepLogRequest::setOffset(long offset)
|
||||
{
|
||||
offset_ = offset;
|
||||
setBodyParameter("Offset", std::to_string(offset));
|
||||
GetPipelineStepLogRequest::~GetPipelineStepLogRequest() {}
|
||||
|
||||
long GetPipelineStepLogRequest::getOffset() const {
|
||||
return offset_;
|
||||
}
|
||||
|
||||
std::string GetPipelineStepLogRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void GetPipelineStepLogRequest::setOffset(long offset) {
|
||||
offset_ = offset;
|
||||
setBodyParameter(std::string("Offset"), std::to_string(offset));
|
||||
}
|
||||
|
||||
void GetPipelineStepLogRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string GetPipelineStepLogRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string GetPipelineStepLogRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetPipelineStepLogRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void GetPipelineStepLogRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetPipelineStepLogRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
long GetPipelineStepLogRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void GetPipelineStepLogRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetPipelineStepLogRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setBodyParameter("PipelineId", std::to_string(pipelineId));
|
||||
long GetPipelineStepLogRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
long GetPipelineStepLogRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
void GetPipelineStepLogRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setBodyParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
void GetPipelineStepLogRequest::setJobId(long jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setBodyParameter("JobId", std::to_string(jobId));
|
||||
long GetPipelineStepLogRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
std::string GetPipelineStepLogRequest::getStepIndex()const
|
||||
{
|
||||
return stepIndex_;
|
||||
void GetPipelineStepLogRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setBodyParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
void GetPipelineStepLogRequest::setStepIndex(const std::string& stepIndex)
|
||||
{
|
||||
stepIndex_ = stepIndex;
|
||||
setBodyParameter("StepIndex", stepIndex);
|
||||
std::string GetPipelineStepLogRequest::getStepIndex() const {
|
||||
return stepIndex_;
|
||||
}
|
||||
|
||||
long GetPipelineStepLogRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
void GetPipelineStepLogRequest::setStepIndex(const std::string &stepIndex) {
|
||||
stepIndex_ = stepIndex;
|
||||
setBodyParameter(std::string("StepIndex"), stepIndex);
|
||||
}
|
||||
|
||||
void GetPipelineStepLogRequest::setLimit(long limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setBodyParameter("Limit", std::to_string(limit));
|
||||
long GetPipelineStepLogRequest::getLimit() const {
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void GetPipelineStepLogRequest::setLimit(long limit) {
|
||||
limit_ = limit;
|
||||
setBodyParameter(std::string("Limit"), std::to_string(limit));
|
||||
}
|
||||
|
||||
|
||||
@@ -46,12 +46,12 @@ void GetPipelineStepLogResult::parse(const std::string &payload)
|
||||
object_.more = objectNode["More"].asString() == "true";
|
||||
if(!objectNode["Logs"].isNull())
|
||||
object_.logs = objectNode["Logs"].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();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipleineLatestInstanceStatusRequest;
|
||||
|
||||
GetPipleineLatestInstanceStatusRequest::GetPipleineLatestInstanceStatusRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipleineLatestInstanceStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPipleineLatestInstanceStatusRequest::~GetPipleineLatestInstanceStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetPipleineLatestInstanceStatusRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetPipleineLatestInstanceStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetPipleineLatestInstanceStatusRequest;
|
||||
|
||||
GetPipleineLatestInstanceStatusRequest::GetPipleineLatestInstanceStatusRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetPipleineLatestInstanceStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetPipleineLatestInstanceStatusRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
GetPipleineLatestInstanceStatusRequest::~GetPipleineLatestInstanceStatusRequest() {}
|
||||
|
||||
std::string GetPipleineLatestInstanceStatusRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string GetPipleineLatestInstanceStatusRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetPipleineLatestInstanceStatusRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void GetPipleineLatestInstanceStatusRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
std::string GetPipleineLatestInstanceStatusRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
long GetPipleineLatestInstanceStatusRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void GetPipleineLatestInstanceStatusRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetPipleineLatestInstanceStatusRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
long GetPipleineLatestInstanceStatusRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void GetPipleineLatestInstanceStatusRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
|
||||
@@ -46,10 +46,10 @@ void GetPipleineLatestInstanceStatusResult::parse(const std::string &payload)
|
||||
for (auto objectNodeGroupsgroup : allGroupsNode)
|
||||
{
|
||||
Object::Group groupObject;
|
||||
if(!objectNodeGroupsgroup["Name"].isNull())
|
||||
groupObject.name = objectNodeGroupsgroup["Name"].asString();
|
||||
if(!objectNodeGroupsgroup["Status"].isNull())
|
||||
groupObject.status = objectNodeGroupsgroup["Status"].asString();
|
||||
if(!objectNodeGroupsgroup["Name"].isNull())
|
||||
groupObject.name = objectNodeGroupsgroup["Name"].asString();
|
||||
auto allStagesNode = objectNodeGroupsgroup["Stages"]["stage"];
|
||||
for (auto objectNodeGroupsgroupStagesstage : allStagesNode)
|
||||
{
|
||||
@@ -62,10 +62,10 @@ void GetPipleineLatestInstanceStatusResult::parse(const std::string &payload)
|
||||
for (auto objectNodeGroupsgroupStagesstageComponentscomponent : allComponentsNode)
|
||||
{
|
||||
Object::Group::Stage::Component componentsObject;
|
||||
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Name"].isNull())
|
||||
componentsObject.name = objectNodeGroupsgroupStagesstageComponentscomponent["Name"].asString();
|
||||
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Status"].isNull())
|
||||
componentsObject.status = objectNodeGroupsgroupStagesstageComponentscomponent["Status"].asString();
|
||||
if(!objectNodeGroupsgroupStagesstageComponentscomponent["Name"].isNull())
|
||||
componentsObject.name = objectNodeGroupsgroupStagesstageComponentscomponent["Name"].asString();
|
||||
if(!objectNodeGroupsgroupStagesstageComponentscomponent["JobId"].isNull())
|
||||
componentsObject.jobId = std::stol(objectNodeGroupsgroupStagesstageComponentscomponent["JobId"].asString());
|
||||
stagesObject.components.push_back(componentsObject);
|
||||
@@ -74,12 +74,12 @@ void GetPipleineLatestInstanceStatusResult::parse(const std::string &payload)
|
||||
}
|
||||
object_.groups.push_back(groupObject);
|
||||
}
|
||||
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();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/GetProjectOptionRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetProjectOptionRequest;
|
||||
|
||||
GetProjectOptionRequest::GetProjectOptionRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetProjectOption")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetProjectOptionRequest::~GetProjectOptionRequest()
|
||||
{}
|
||||
|
||||
std::string GetProjectOptionRequest::getQuery()const
|
||||
{
|
||||
return query_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetProjectOptionRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetProjectOptionRequest;
|
||||
|
||||
GetProjectOptionRequest::GetProjectOptionRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetProjectOption") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetProjectOptionRequest::setQuery(const std::string& query)
|
||||
{
|
||||
query_ = query;
|
||||
setBodyParameter("Query", query);
|
||||
GetProjectOptionRequest::~GetProjectOptionRequest() {}
|
||||
|
||||
std::string GetProjectOptionRequest::getQuery() const {
|
||||
return query_;
|
||||
}
|
||||
|
||||
std::string GetProjectOptionRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
void GetProjectOptionRequest::setQuery(const std::string &query) {
|
||||
query_ = query;
|
||||
setBodyParameter(std::string("Query"), query);
|
||||
}
|
||||
|
||||
void GetProjectOptionRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
std::string GetProjectOptionRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string GetProjectOptionRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
void GetProjectOptionRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setBodyParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
void GetProjectOptionRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
std::string GetProjectOptionRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string GetProjectOptionRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetProjectOptionRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void GetProjectOptionRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetProjectOptionRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void GetProjectOptionRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,22 +43,22 @@ void GetProjectOptionResult::parse(const std::string &payload)
|
||||
for (auto valueObjectOption : allObjectNode)
|
||||
{
|
||||
Option objectObject;
|
||||
if(!valueObjectOption["Name"].isNull())
|
||||
objectObject.name = valueObjectOption["Name"].asString();
|
||||
if(!valueObjectOption["Value"].isNull())
|
||||
objectObject.value = valueObjectOption["Value"].asString();
|
||||
if(!valueObjectOption["Kind"].isNull())
|
||||
objectObject.kind = valueObjectOption["Kind"].asString();
|
||||
if(!valueObjectOption["Name"].isNull())
|
||||
objectObject.name = valueObjectOption["Name"].asString();
|
||||
if(!valueObjectOption["ScopeName"].isNull())
|
||||
objectObject.scopeName = valueObjectOption["ScopeName"].asString();
|
||||
if(!valueObjectOption["Kind"].isNull())
|
||||
objectObject.kind = valueObjectOption["Kind"].asString();
|
||||
object_.push_back(objectObject);
|
||||
}
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetTaskDetailActivityRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetTaskDetailActivityRequest;
|
||||
|
||||
GetTaskDetailActivityRequest::GetTaskDetailActivityRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetTaskDetailActivity")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTaskDetailActivityRequest::~GetTaskDetailActivityRequest()
|
||||
{}
|
||||
|
||||
std::string GetTaskDetailActivityRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetTaskDetailActivityRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetTaskDetailActivityRequest;
|
||||
|
||||
GetTaskDetailActivityRequest::GetTaskDetailActivityRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetTaskDetailActivity") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetTaskDetailActivityRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
GetTaskDetailActivityRequest::~GetTaskDetailActivityRequest() {}
|
||||
|
||||
std::string GetTaskDetailActivityRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string GetTaskDetailActivityRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetTaskDetailActivityRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void GetTaskDetailActivityRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetTaskDetailActivityRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
std::string GetTaskDetailActivityRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void GetTaskDetailActivityRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetTaskDetailActivityRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
std::string GetTaskDetailActivityRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetTaskDetailActivityRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setBodyParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,39 +43,39 @@ void GetTaskDetailActivityResult::parse(const std::string &payload)
|
||||
for (auto valueObjectActivity : allObjectNode)
|
||||
{
|
||||
Activity objectObject;
|
||||
if(!valueObjectActivity["Created"].isNull())
|
||||
objectObject.created = valueObjectActivity["Created"].asString();
|
||||
if(!valueObjectActivity["Title"].isNull())
|
||||
objectObject.title = valueObjectActivity["Title"].asString();
|
||||
if(!valueObjectActivity["Action"].isNull())
|
||||
objectObject.action = valueObjectActivity["Action"].asString();
|
||||
if(!valueObjectActivity["Updated"].isNull())
|
||||
objectObject.updated = valueObjectActivity["Updated"].asString();
|
||||
if(!valueObjectActivity["Action"].isNull())
|
||||
objectObject.action = valueObjectActivity["Action"].asString();
|
||||
if(!valueObjectActivity["Title"].isNull())
|
||||
objectObject.title = valueObjectActivity["Title"].asString();
|
||||
if(!valueObjectActivity["Created"].isNull())
|
||||
objectObject.created = valueObjectActivity["Created"].asString();
|
||||
if(!valueObjectActivity["Content"].isNull())
|
||||
objectObject.content = valueObjectActivity["Content"].asString();
|
||||
object_.push_back(objectObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GetTaskDetailActivityResult::getErrorMsg()const
|
||||
{
|
||||
return errorMsg_;
|
||||
}
|
||||
|
||||
int GetTaskDetailActivityResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string GetTaskDetailActivityResult::getErrorMsg()const
|
||||
{
|
||||
return errorMsg_;
|
||||
}
|
||||
|
||||
std::vector<GetTaskDetailActivityResult::Activity> GetTaskDetailActivityResult::getObject()const
|
||||
{
|
||||
return object_;
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetTaskDetailBaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetTaskDetailBaseRequest;
|
||||
|
||||
GetTaskDetailBaseRequest::GetTaskDetailBaseRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetTaskDetailBase")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTaskDetailBaseRequest::~GetTaskDetailBaseRequest()
|
||||
{}
|
||||
|
||||
std::string GetTaskDetailBaseRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetTaskDetailBaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetTaskDetailBaseRequest;
|
||||
|
||||
GetTaskDetailBaseRequest::GetTaskDetailBaseRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetTaskDetailBase") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetTaskDetailBaseRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
GetTaskDetailBaseRequest::~GetTaskDetailBaseRequest() {}
|
||||
|
||||
std::string GetTaskDetailBaseRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string GetTaskDetailBaseRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetTaskDetailBaseRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void GetTaskDetailBaseRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetTaskDetailBaseRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
std::string GetTaskDetailBaseRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void GetTaskDetailBaseRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetTaskDetailBaseRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setBodyParameter("TaskId", taskId);
|
||||
std::string GetTaskDetailBaseRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetTaskDetailBaseRequest::setTaskId(const std::string &taskId) {
|
||||
taskId_ = taskId;
|
||||
setBodyParameter(std::string("TaskId"), taskId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,96 +40,96 @@ void GetTaskDetailBaseResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto objectNode = value["Object"];
|
||||
if(!objectNode["Parent"].isNull())
|
||||
object_.parent = objectNode["Parent"].asString();
|
||||
if(!objectNode["DueDate"].isNull())
|
||||
object_.dueDate = objectNode["DueDate"].asString();
|
||||
if(!objectNode["Sprint"].isNull())
|
||||
object_.sprint = objectNode["Sprint"].asString();
|
||||
if(!objectNode["Rating"].isNull())
|
||||
object_.rating = std::stoi(objectNode["Rating"].asString());
|
||||
if(!objectNode["SourceId"].isNull())
|
||||
object_.sourceId = objectNode["SourceId"].asString();
|
||||
if(!objectNode["Source"].isNull())
|
||||
object_.source = objectNode["Source"].asString();
|
||||
if(!objectNode["StageId"].isNull())
|
||||
object_.stageId = objectNode["StageId"].asString();
|
||||
if(!objectNode["ObjectType"].isNull())
|
||||
object_.objectType = objectNode["ObjectType"].asString();
|
||||
if(!objectNode["TaskflowstatusId"].isNull())
|
||||
object_.taskflowstatusId = objectNode["TaskflowstatusId"].asString();
|
||||
if(!objectNode["LikesCount"].isNull())
|
||||
object_.likesCount = std::stoi(objectNode["LikesCount"].asString());
|
||||
if(!objectNode["Accomplished"].isNull())
|
||||
object_.accomplished = objectNode["Accomplished"].asString();
|
||||
if(!objectNode["ObjectlinksCount"].isNull())
|
||||
object_.objectlinksCount = std::stoi(objectNode["ObjectlinksCount"].asString());
|
||||
if(!objectNode["CreatorId"].isNull())
|
||||
object_.creatorId = objectNode["CreatorId"].asString();
|
||||
if(!objectNode["Visible"].isNull())
|
||||
object_.visible = objectNode["Visible"].asString();
|
||||
if(!objectNode["StoryPoint"].isNull())
|
||||
object_.storyPoint = objectNode["StoryPoint"].asString();
|
||||
if(!objectNode["Created"].isNull())
|
||||
object_.created = objectNode["Created"].asString();
|
||||
if(!objectNode["Priority"].isNull())
|
||||
object_.priority = std::stoi(objectNode["Priority"].asString());
|
||||
if(!objectNode["Recurrence"].isNull())
|
||||
object_.recurrence = objectNode["Recurrence"].asString();
|
||||
if(!objectNode["UntilDate"].isNull())
|
||||
object_.untilDate = objectNode["UntilDate"].asString();
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
if(!objectNode["Updated"].isNull())
|
||||
object_.updated = objectNode["Updated"].asString();
|
||||
if(!objectNode["StartDate"].isNull())
|
||||
object_.startDate = objectNode["StartDate"].asString();
|
||||
if(!objectNode["UniqueId"].isNull())
|
||||
object_.uniqueId = std::stoi(objectNode["UniqueId"].asString());
|
||||
if(!objectNode["IsFavorite"].isNull())
|
||||
object_.isFavorite = objectNode["IsFavorite"].asString() == "true";
|
||||
if(!objectNode["Organization"].isNull())
|
||||
object_.organization = objectNode["Organization"].asString();
|
||||
if(!objectNode["ExecutorId"].isNull())
|
||||
object_.executorId = objectNode["ExecutorId"].asString();
|
||||
if(!objectNode["ScenariofieldconfigId"].isNull())
|
||||
object_.scenariofieldconfigId = objectNode["ScenariofieldconfigId"].asString();
|
||||
if(!objectNode["ProjectId"].isNull())
|
||||
object_.projectId = objectNode["ProjectId"].asString();
|
||||
if(!objectNode["IsTopInProject"].isNull())
|
||||
object_.isTopInProject = objectNode["IsTopInProject"].asString() == "true";
|
||||
if(!objectNode["Priority"].isNull())
|
||||
object_.priority = std::stoi(objectNode["Priority"].asString());
|
||||
if(!objectNode["ShareStatus"].isNull())
|
||||
object_.shareStatus = std::stoi(objectNode["ShareStatus"].asString());
|
||||
if(!objectNode["Accomplished"].isNull())
|
||||
object_.accomplished = objectNode["Accomplished"].asString();
|
||||
if(!objectNode["TaskflowstatusId"].isNull())
|
||||
object_.taskflowstatusId = objectNode["TaskflowstatusId"].asString();
|
||||
if(!objectNode["Note"].isNull())
|
||||
object_.note = objectNode["Note"].asString();
|
||||
if(!objectNode["Updated"].isNull())
|
||||
object_.updated = objectNode["Updated"].asString();
|
||||
if(!objectNode["UniqueId"].isNull())
|
||||
object_.uniqueId = std::stoi(objectNode["UniqueId"].asString());
|
||||
if(!objectNode["IsArchived"].isNull())
|
||||
object_.isArchived = objectNode["IsArchived"].asString() == "true";
|
||||
if(!objectNode["Content"].isNull())
|
||||
object_.content = objectNode["Content"].asString();
|
||||
if(!objectNode["SourceDate"].isNull())
|
||||
object_.sourceDate = objectNode["SourceDate"].asString();
|
||||
if(!objectNode["AttachmentsCount"].isNull())
|
||||
object_.attachmentsCount = std::stoi(objectNode["AttachmentsCount"].asString());
|
||||
if(!objectNode["ScenariofieldconfigId"].isNull())
|
||||
object_.scenariofieldconfigId = objectNode["ScenariofieldconfigId"].asString();
|
||||
if(!objectNode["IsTopInProject"].isNull())
|
||||
object_.isTopInProject = objectNode["IsTopInProject"].asString() == "true";
|
||||
if(!objectNode["ExecutorId"].isNull())
|
||||
object_.executorId = objectNode["ExecutorId"].asString();
|
||||
if(!objectNode["OrganizationId"].isNull())
|
||||
object_.organizationId = objectNode["OrganizationId"].asString();
|
||||
if(!objectNode["IsDone"].isNull())
|
||||
object_.isDone = objectNode["IsDone"].asString() == "true";
|
||||
if(!objectNode["TaskId"].isNull())
|
||||
object_.taskId = objectNode["TaskId"].asString();
|
||||
if(!objectNode["CommentsCount"].isNull())
|
||||
object_.commentsCount = std::stoi(objectNode["CommentsCount"].asString());
|
||||
if(!objectNode["Organization"].isNull())
|
||||
object_.organization = objectNode["Organization"].asString();
|
||||
if(!objectNode["Rating"].isNull())
|
||||
object_.rating = std::stoi(objectNode["Rating"].asString());
|
||||
if(!objectNode["Recurrence"].isNull())
|
||||
object_.recurrence = objectNode["Recurrence"].asString();
|
||||
if(!objectNode["ObjectType"].isNull())
|
||||
object_.objectType = objectNode["ObjectType"].asString();
|
||||
if(!objectNode["Progress"].isNull())
|
||||
object_.progress = std::stoi(objectNode["Progress"].asString());
|
||||
if(!objectNode["UntilDate"].isNull())
|
||||
object_.untilDate = objectNode["UntilDate"].asString();
|
||||
if(!objectNode["StartDate"].isNull())
|
||||
object_.startDate = objectNode["StartDate"].asString();
|
||||
if(!objectNode["StoryPoint"].isNull())
|
||||
object_.storyPoint = objectNode["StoryPoint"].asString();
|
||||
if(!objectNode["ObjectlinksCount"].isNull())
|
||||
object_.objectlinksCount = std::stoi(objectNode["ObjectlinksCount"].asString());
|
||||
if(!objectNode["Sprint"].isNull())
|
||||
object_.sprint = objectNode["Sprint"].asString();
|
||||
if(!objectNode["CreatorId"].isNull())
|
||||
object_.creatorId = objectNode["CreatorId"].asString();
|
||||
if(!objectNode["Source"].isNull())
|
||||
object_.source = objectNode["Source"].asString();
|
||||
if(!objectNode["SourceId"].isNull())
|
||||
object_.sourceId = objectNode["SourceId"].asString();
|
||||
if(!objectNode["OrganizationId"].isNull())
|
||||
object_.organizationId = objectNode["OrganizationId"].asString();
|
||||
if(!objectNode["SourceDate"].isNull())
|
||||
object_.sourceDate = objectNode["SourceDate"].asString();
|
||||
if(!objectNode["LikesCount"].isNull())
|
||||
object_.likesCount = std::stoi(objectNode["LikesCount"].asString());
|
||||
if(!objectNode["StageId"].isNull())
|
||||
object_.stageId = objectNode["StageId"].asString();
|
||||
if(!objectNode["Visible"].isNull())
|
||||
object_.visible = objectNode["Visible"].asString();
|
||||
if(!objectNode["IsDone"].isNull())
|
||||
object_.isDone = objectNode["IsDone"].asString() == "true";
|
||||
if(!objectNode["Parent"].isNull())
|
||||
object_.parent = objectNode["Parent"].asString();
|
||||
if(!objectNode["SprintId"].isNull())
|
||||
object_.sprintId = objectNode["SprintId"].asString();
|
||||
if(!objectNode["ProjectId"].isNull())
|
||||
object_.projectId = objectNode["ProjectId"].asString();
|
||||
if(!objectNode["ShareStatus"].isNull())
|
||||
object_.shareStatus = std::stoi(objectNode["ShareStatus"].asString());
|
||||
if(!objectNode["AttachmentsCount"].isNull())
|
||||
object_.attachmentsCount = std::stoi(objectNode["AttachmentsCount"].asString());
|
||||
if(!objectNode["DueDate"].isNull())
|
||||
object_.dueDate = objectNode["DueDate"].asString();
|
||||
if(!objectNode["Created"].isNull())
|
||||
object_.created = objectNode["Created"].asString();
|
||||
if(!objectNode["TaskId"].isNull())
|
||||
object_.taskId = objectNode["TaskId"].asString();
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
auto allCustomfieldsNode = objectNode["Customfields"]["Customfield"];
|
||||
for (auto objectNodeCustomfieldsCustomfield : allCustomfieldsNode)
|
||||
{
|
||||
Object::Customfield customfieldObject;
|
||||
if(!objectNodeCustomfieldsCustomfield["CustomfieldId"].isNull())
|
||||
customfieldObject.customfieldId = objectNodeCustomfieldsCustomfield["CustomfieldId"].asString();
|
||||
if(!objectNodeCustomfieldsCustomfield["Type"].isNull())
|
||||
customfieldObject.type = objectNodeCustomfieldsCustomfield["Type"].asString();
|
||||
if(!objectNodeCustomfieldsCustomfield["CustomfieldId"].isNull())
|
||||
customfieldObject.customfieldId = objectNodeCustomfieldsCustomfield["CustomfieldId"].asString();
|
||||
auto allValueNode = objectNodeCustomfieldsCustomfield["Value"]["ValueInfo"];
|
||||
for (auto objectNodeCustomfieldsCustomfieldValueValueInfo : allValueNode)
|
||||
{
|
||||
@@ -149,10 +149,10 @@ void GetTaskDetailBaseResult::parse(const std::string &payload)
|
||||
for (auto objectNodeSubtasksSubtask : allSubtasksNode)
|
||||
{
|
||||
Object::Subtask subtaskObject;
|
||||
if(!objectNodeSubtasksSubtask["Id"].isNull())
|
||||
subtaskObject.id = objectNodeSubtasksSubtask["Id"].asString();
|
||||
if(!objectNodeSubtasksSubtask["Content"].isNull())
|
||||
subtaskObject.content = objectNodeSubtasksSubtask["Content"].asString();
|
||||
if(!objectNodeSubtasksSubtask["Id"].isNull())
|
||||
subtaskObject.id = objectNodeSubtasksSubtask["Id"].asString();
|
||||
object_.subtasks.push_back(subtaskObject);
|
||||
}
|
||||
auto allInvolversNode = objectNode["Involvers"]["Involver"];
|
||||
@@ -166,12 +166,12 @@ void GetTaskDetailBaseResult::parse(const std::string &payload)
|
||||
object_.involvers.push_back(involverObject);
|
||||
}
|
||||
auto scenariofieldconfigNode = objectNode["Scenariofieldconfig"];
|
||||
if(!scenariofieldconfigNode["Name"].isNull())
|
||||
object_.scenariofieldconfig.name = scenariofieldconfigNode["Name"].asString();
|
||||
if(!scenariofieldconfigNode["Icon"].isNull())
|
||||
object_.scenariofieldconfig.icon = scenariofieldconfigNode["Icon"].asString();
|
||||
if(!scenariofieldconfigNode["ProTemplateConfigType"].isNull())
|
||||
object_.scenariofieldconfig.proTemplateConfigType = scenariofieldconfigNode["ProTemplateConfigType"].asString();
|
||||
if(!scenariofieldconfigNode["Name"].isNull())
|
||||
object_.scenariofieldconfig.name = scenariofieldconfigNode["Name"].asString();
|
||||
if(!scenariofieldconfigNode["Id"].isNull())
|
||||
object_.scenariofieldconfig.id = scenariofieldconfigNode["Id"].asString();
|
||||
auto executorNode = objectNode["Executor"];
|
||||
@@ -187,28 +187,28 @@ void GetTaskDetailBaseResult::parse(const std::string &payload)
|
||||
if(!tasklistNode["Title"].isNull())
|
||||
object_.tasklist.title = tasklistNode["Title"].asString();
|
||||
auto taskflowstatusNode = objectNode["Taskflowstatus"];
|
||||
if(!taskflowstatusNode["Kind"].isNull())
|
||||
object_.taskflowstatus.kind = taskflowstatusNode["Kind"].asString();
|
||||
if(!taskflowstatusNode["TaskflowId"].isNull())
|
||||
object_.taskflowstatus.taskflowId = taskflowstatusNode["TaskflowId"].asString();
|
||||
if(!taskflowstatusNode["Name"].isNull())
|
||||
object_.taskflowstatus.name = taskflowstatusNode["Name"].asString();
|
||||
if(!taskflowstatusNode["Id"].isNull())
|
||||
object_.taskflowstatus.id = taskflowstatusNode["Id"].asString();
|
||||
if(!taskflowstatusNode["Kind"].isNull())
|
||||
object_.taskflowstatus.kind = taskflowstatusNode["Kind"].asString();
|
||||
auto creatorNode = objectNode["Creator"];
|
||||
if(!creatorNode["Name"].isNull())
|
||||
object_.creator.name = creatorNode["Name"].asString();
|
||||
if(!creatorNode["Id"].isNull())
|
||||
object_.creator.id = creatorNode["Id"].asString();
|
||||
auto reminderNode = objectNode["Reminder"];
|
||||
if(!reminderNode["Type"].isNull())
|
||||
object_.reminder.type = reminderNode["Type"].asString();
|
||||
if(!reminderNode["Date"].isNull())
|
||||
object_.reminder.date = reminderNode["Date"].asString();
|
||||
if(!reminderNode["Method"].isNull())
|
||||
object_.reminder.method = reminderNode["Method"].asString();
|
||||
if(!reminderNode["CreatorId"].isNull())
|
||||
object_.reminder.creatorId = reminderNode["CreatorId"].asString();
|
||||
if(!reminderNode["Type"].isNull())
|
||||
object_.reminder.type = reminderNode["Type"].asString();
|
||||
auto allMemberRoles = reminderNode["MemberRoles"]["MemberRole"];
|
||||
for (auto value : allMemberRoles)
|
||||
object_.reminder.memberRoles.push_back(value.asString());
|
||||
@@ -219,55 +219,55 @@ void GetTaskDetailBaseResult::parse(const std::string &payload)
|
||||
for (auto value : allRules)
|
||||
object_.reminder.rules.push_back(value.asString());
|
||||
auto subtaskCountNode = objectNode["SubtaskCount"];
|
||||
if(!subtaskCountNode["Total"].isNull())
|
||||
object_.subtaskCount.total = std::stoi(subtaskCountNode["Total"].asString());
|
||||
if(!subtaskCountNode["Done"].isNull())
|
||||
object_.subtaskCount.done = std::stoi(subtaskCountNode["Done"].asString());
|
||||
if(!subtaskCountNode["Total"].isNull())
|
||||
object_.subtaskCount.total = std::stoi(subtaskCountNode["Total"].asString());
|
||||
auto workTimeNode = objectNode["WorkTime"];
|
||||
if(!workTimeNode["UsedTime"].isNull())
|
||||
object_.workTime.usedTime = std::stoi(workTimeNode["UsedTime"].asString());
|
||||
if(!workTimeNode["Unit"].isNull())
|
||||
object_.workTime.unit = workTimeNode["Unit"].asString();
|
||||
if(!workTimeNode["TotalTime"].isNull())
|
||||
object_.workTime.totalTime = std::stoi(workTimeNode["TotalTime"].asString());
|
||||
if(!workTimeNode["Unit"].isNull())
|
||||
object_.workTime.unit = workTimeNode["Unit"].asString();
|
||||
auto badgesNode = objectNode["Badges"];
|
||||
if(!badgesNode["LikesCount"].isNull())
|
||||
object_.badges.likesCount = std::stoi(badgesNode["LikesCount"].asString());
|
||||
if(!badgesNode["ObjectlinksCount"].isNull())
|
||||
object_.badges.objectlinksCount = std::stoi(badgesNode["ObjectlinksCount"].asString());
|
||||
if(!badgesNode["AttachmentsCount"].isNull())
|
||||
object_.badges.attachmentsCount = std::stoi(badgesNode["AttachmentsCount"].asString());
|
||||
if(!badgesNode["CommentsCount"].isNull())
|
||||
object_.badges.commentsCount = std::stoi(badgesNode["CommentsCount"].asString());
|
||||
if(!badgesNode["ObjectlinksCount"].isNull())
|
||||
object_.badges.objectlinksCount = std::stoi(badgesNode["ObjectlinksCount"].asString());
|
||||
auto stageNode = objectNode["Stage"];
|
||||
if(!stageNode["Name"].isNull())
|
||||
object_.stage.name = stageNode["Name"].asString();
|
||||
if(!stageNode["Id"].isNull())
|
||||
object_.stage.id = stageNode["Id"].asString();
|
||||
auto allLabels = objectNode["Labels"]["Label"];
|
||||
for (auto value : allLabels)
|
||||
object_.labels.push_back(value.asString());
|
||||
auto allDivisions = objectNode["Divisions"]["Division"];
|
||||
for (auto value : allDivisions)
|
||||
object_.divisions.push_back(value.asString());
|
||||
auto allAncestors = objectNode["Ancestors"]["Ancestor"];
|
||||
for (auto value : allAncestors)
|
||||
object_.ancestors.push_back(value.asString());
|
||||
auto allLabels = objectNode["Labels"]["Label"];
|
||||
for (auto value : allLabels)
|
||||
object_.labels.push_back(value.asString());
|
||||
auto allInvolveMembers = objectNode["InvolveMembers"]["InvolveMember"];
|
||||
for (auto value : allInvolveMembers)
|
||||
object_.involveMembers.push_back(value.asString());
|
||||
auto allTagIds = objectNode["TagIds"]["TagId"];
|
||||
for (auto value : allTagIds)
|
||||
object_.tagIds.push_back(value.asString());
|
||||
auto allAncestorIds = objectNode["AncestorIds"]["AncestorId"];
|
||||
for (auto value : allAncestorIds)
|
||||
object_.ancestorIds.push_back(value.asString());
|
||||
auto allInvolveMembers = objectNode["InvolveMembers"]["InvolveMember"];
|
||||
for (auto value : allInvolveMembers)
|
||||
object_.involveMembers.push_back(value.asString());
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,249 +1,207 @@
|
||||
/*
|
||||
* 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/GetTaskListFilterRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetTaskListFilterRequest;
|
||||
|
||||
GetTaskListFilterRequest::GetTaskListFilterRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetTaskListFilter")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTaskListFilterRequest::~GetTaskListFilterRequest()
|
||||
{}
|
||||
|
||||
std::string GetTaskListFilterRequest::getInvolveMembers()const
|
||||
{
|
||||
return involveMembers_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetTaskListFilterRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetTaskListFilterRequest;
|
||||
|
||||
GetTaskListFilterRequest::GetTaskListFilterRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetTaskListFilter") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setInvolveMembers(const std::string& involveMembers)
|
||||
{
|
||||
involveMembers_ = involveMembers;
|
||||
setBodyParameter("InvolveMembers", involveMembers);
|
||||
GetTaskListFilterRequest::~GetTaskListFilterRequest() {}
|
||||
|
||||
std::string GetTaskListFilterRequest::getInvolveMembers() const {
|
||||
return involveMembers_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getExecutorId()const
|
||||
{
|
||||
return executorId_;
|
||||
void GetTaskListFilterRequest::setInvolveMembers(const std::string &involveMembers) {
|
||||
involveMembers_ = involveMembers;
|
||||
setBodyParameter(std::string("InvolveMembers"), involveMembers);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setExecutorId(const std::string& executorId)
|
||||
{
|
||||
executorId_ = executorId;
|
||||
setBodyParameter("ExecutorId", executorId);
|
||||
std::string GetTaskListFilterRequest::getExecutorId() const {
|
||||
return executorId_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getOrderCondition()const
|
||||
{
|
||||
return orderCondition_;
|
||||
void GetTaskListFilterRequest::setExecutorId(const std::string &executorId) {
|
||||
executorId_ = executorId;
|
||||
setBodyParameter(std::string("ExecutorId"), executorId);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setOrderCondition(const std::string& orderCondition)
|
||||
{
|
||||
orderCondition_ = orderCondition;
|
||||
setBodyParameter("OrderCondition", orderCondition);
|
||||
std::string GetTaskListFilterRequest::getOrderCondition() const {
|
||||
return orderCondition_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getSprintId()const
|
||||
{
|
||||
return sprintId_;
|
||||
void GetTaskListFilterRequest::setOrderCondition(const std::string &orderCondition) {
|
||||
orderCondition_ = orderCondition;
|
||||
setBodyParameter(std::string("OrderCondition"), orderCondition);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setSprintId(const std::string& sprintId)
|
||||
{
|
||||
sprintId_ = sprintId;
|
||||
setBodyParameter("SprintId", sprintId);
|
||||
std::string GetTaskListFilterRequest::getSprintId() const {
|
||||
return sprintId_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
void GetTaskListFilterRequest::setSprintId(const std::string &sprintId) {
|
||||
sprintId_ = sprintId;
|
||||
setBodyParameter(std::string("SprintId"), sprintId);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
std::string GetTaskListFilterRequest::getExtra() const {
|
||||
return extra_;
|
||||
}
|
||||
|
||||
int GetTaskListFilterRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void GetTaskListFilterRequest::setExtra(const std::string &extra) {
|
||||
extra_ = extra;
|
||||
setBodyParameter(std::string("Extra"), extra);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter("PageSize", std::to_string(pageSize));
|
||||
int GetTaskListFilterRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getScenarioFieldConfigId()const
|
||||
{
|
||||
return scenarioFieldConfigId_;
|
||||
void GetTaskListFilterRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setScenarioFieldConfigId(const std::string& scenarioFieldConfigId)
|
||||
{
|
||||
scenarioFieldConfigId_ = scenarioFieldConfigId;
|
||||
setBodyParameter("ScenarioFieldConfigId", scenarioFieldConfigId);
|
||||
std::string GetTaskListFilterRequest::getScenarioFieldConfigId() const {
|
||||
return scenarioFieldConfigId_;
|
||||
}
|
||||
|
||||
bool GetTaskListFilterRequest::getIsDone()const
|
||||
{
|
||||
return isDone_;
|
||||
void GetTaskListFilterRequest::setScenarioFieldConfigId(const std::string &scenarioFieldConfigId) {
|
||||
scenarioFieldConfigId_ = scenarioFieldConfigId;
|
||||
setBodyParameter(std::string("ScenarioFieldConfigId"), scenarioFieldConfigId);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setIsDone(bool isDone)
|
||||
{
|
||||
isDone_ = isDone;
|
||||
setBodyParameter("IsDone", isDone ? "true" : "false");
|
||||
bool GetTaskListFilterRequest::getIsDone() const {
|
||||
return isDone_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getObjectType()const
|
||||
{
|
||||
return objectType_;
|
||||
void GetTaskListFilterRequest::setIsDone(bool isDone) {
|
||||
isDone_ = isDone;
|
||||
setBodyParameter(std::string("IsDone"), isDone ? "true" : "false");
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setObjectType(const std::string& objectType)
|
||||
{
|
||||
objectType_ = objectType;
|
||||
setBodyParameter("ObjectType", objectType);
|
||||
std::string GetTaskListFilterRequest::getObjectType() const {
|
||||
return objectType_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
void GetTaskListFilterRequest::setObjectType(const std::string &objectType) {
|
||||
objectType_ = objectType;
|
||||
setBodyParameter(std::string("ObjectType"), objectType);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
std::string GetTaskListFilterRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getPageToken()const
|
||||
{
|
||||
return pageToken_;
|
||||
void GetTaskListFilterRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setPageToken(const std::string& pageToken)
|
||||
{
|
||||
pageToken_ = pageToken;
|
||||
setBodyParameter("PageToken", pageToken);
|
||||
std::string GetTaskListFilterRequest::getPageToken() const {
|
||||
return pageToken_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
void GetTaskListFilterRequest::setPageToken(const std::string &pageToken) {
|
||||
pageToken_ = pageToken;
|
||||
setBodyParameter(std::string("PageToken"), pageToken);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setBodyParameter("Order", order);
|
||||
std::string GetTaskListFilterRequest::getOrder() const {
|
||||
return order_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getTagId()const
|
||||
{
|
||||
return tagId_;
|
||||
void GetTaskListFilterRequest::setOrder(const std::string &order) {
|
||||
order_ = order;
|
||||
setBodyParameter(std::string("Order"), order);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setTagId(const std::string& tagId)
|
||||
{
|
||||
tagId_ = tagId;
|
||||
setBodyParameter("TagId", tagId);
|
||||
std::string GetTaskListFilterRequest::getTagId() const {
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getTaskFlowStatusId()const
|
||||
{
|
||||
return taskFlowStatusId_;
|
||||
void GetTaskListFilterRequest::setTagId(const std::string &tagId) {
|
||||
tagId_ = tagId;
|
||||
setBodyParameter(std::string("TagId"), tagId);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setTaskFlowStatusId(const std::string& taskFlowStatusId)
|
||||
{
|
||||
taskFlowStatusId_ = taskFlowStatusId;
|
||||
setBodyParameter("TaskFlowStatusId", taskFlowStatusId);
|
||||
std::string GetTaskListFilterRequest::getTaskFlowStatusId() const {
|
||||
return taskFlowStatusId_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getDueDateStart()const
|
||||
{
|
||||
return dueDateStart_;
|
||||
void GetTaskListFilterRequest::setTaskFlowStatusId(const std::string &taskFlowStatusId) {
|
||||
taskFlowStatusId_ = taskFlowStatusId;
|
||||
setBodyParameter(std::string("TaskFlowStatusId"), taskFlowStatusId);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setDueDateStart(const std::string& dueDateStart)
|
||||
{
|
||||
dueDateStart_ = dueDateStart;
|
||||
setBodyParameter("DueDateStart", dueDateStart);
|
||||
std::string GetTaskListFilterRequest::getDueDateStart() const {
|
||||
return dueDateStart_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getCreatorId()const
|
||||
{
|
||||
return creatorId_;
|
||||
void GetTaskListFilterRequest::setDueDateStart(const std::string &dueDateStart) {
|
||||
dueDateStart_ = dueDateStart;
|
||||
setBodyParameter(std::string("DueDateStart"), dueDateStart);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setCreatorId(const std::string& creatorId)
|
||||
{
|
||||
creatorId_ = creatorId;
|
||||
setBodyParameter("CreatorId", creatorId);
|
||||
std::string GetTaskListFilterRequest::getCreatorId() const {
|
||||
return creatorId_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getPriority()const
|
||||
{
|
||||
return priority_;
|
||||
void GetTaskListFilterRequest::setCreatorId(const std::string &creatorId) {
|
||||
creatorId_ = creatorId;
|
||||
setBodyParameter(std::string("CreatorId"), creatorId);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setPriority(const std::string& priority)
|
||||
{
|
||||
priority_ = priority;
|
||||
setBodyParameter("Priority", priority);
|
||||
std::string GetTaskListFilterRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getDueDateEnd()const
|
||||
{
|
||||
return dueDateEnd_;
|
||||
void GetTaskListFilterRequest::setPriority(const std::string &priority) {
|
||||
priority_ = priority;
|
||||
setBodyParameter(std::string("Priority"), priority);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setDueDateEnd(const std::string& dueDateEnd)
|
||||
{
|
||||
dueDateEnd_ = dueDateEnd;
|
||||
setBodyParameter("DueDateEnd", dueDateEnd);
|
||||
std::string GetTaskListFilterRequest::getDueDateEnd() const {
|
||||
return dueDateEnd_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetTaskListFilterRequest::setDueDateEnd(const std::string &dueDateEnd) {
|
||||
dueDateEnd_ = dueDateEnd;
|
||||
setBodyParameter(std::string("DueDateEnd"), dueDateEnd);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetTaskListFilterRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
std::string GetTaskListFilterRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void GetTaskListFilterRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
std::string GetTaskListFilterRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void GetTaskListFilterRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setBodyParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
|
||||
@@ -48,100 +48,98 @@ void GetTaskListFilterResult::parse(const std::string &payload)
|
||||
for (auto objectNodeResultTask : allResultNode)
|
||||
{
|
||||
Object::Task taskObject;
|
||||
if(!objectNodeResultTask["Id"].isNull())
|
||||
taskObject.id = objectNodeResultTask["Id"].asString();
|
||||
if(!objectNodeResultTask["CreatorId"].isNull())
|
||||
taskObject.creatorId = objectNodeResultTask["CreatorId"].asString();
|
||||
if(!objectNodeResultTask["IsFavorite"].isNull())
|
||||
taskObject.isFavorite = objectNodeResultTask["IsFavorite"].asString() == "true";
|
||||
if(!objectNodeResultTask["ExecutorId"].isNull())
|
||||
taskObject.executorId = objectNodeResultTask["ExecutorId"].asString();
|
||||
if(!objectNodeResultTask["ProjectId"].isNull())
|
||||
taskObject.projectId = objectNodeResultTask["ProjectId"].asString();
|
||||
if(!objectNodeResultTask["TaskListId"].isNull())
|
||||
taskObject.taskListId = objectNodeResultTask["TaskListId"].asString();
|
||||
if(!objectNodeResultTask["OrganizationId"].isNull())
|
||||
taskObject.organizationId = objectNodeResultTask["OrganizationId"].asString();
|
||||
if(!objectNodeResultTask["StageId"].isNull())
|
||||
taskObject.stageId = objectNodeResultTask["StageId"].asString();
|
||||
if(!objectNodeResultTask["Visible"].isNull())
|
||||
taskObject.visible = objectNodeResultTask["Visible"].asString();
|
||||
if(!objectNodeResultTask["Updated"].isNull())
|
||||
taskObject.updated = objectNodeResultTask["Updated"].asString();
|
||||
if(!objectNodeResultTask["Created"].isNull())
|
||||
taskObject.created = objectNodeResultTask["Created"].asString();
|
||||
if(!objectNodeResultTask["IsArchived"].isNull())
|
||||
taskObject.isArchived = objectNodeResultTask["IsArchived"].asString() == "true";
|
||||
if(!objectNodeResultTask["IsDone"].isNull())
|
||||
taskObject.isDone = objectNodeResultTask["IsDone"].asString() == "true";
|
||||
if(!objectNodeResultTask["IsTopInProject"].isNull())
|
||||
taskObject.isTopInProject = objectNodeResultTask["IsTopInProject"].asString() == "true";
|
||||
if(!objectNodeResultTask["Priority"].isNull())
|
||||
taskObject.priority = std::stoi(objectNodeResultTask["Priority"].asString());
|
||||
if(!objectNodeResultTask["Pos"].isNull())
|
||||
taskObject.pos = std::stoi(objectNodeResultTask["Pos"].asString());
|
||||
if(!objectNodeResultTask["StartDate"].isNull())
|
||||
taskObject.startDate = objectNodeResultTask["StartDate"].asString();
|
||||
if(!objectNodeResultTask["DueDate"].isNull())
|
||||
taskObject.dueDate = objectNodeResultTask["DueDate"].asString();
|
||||
if(!objectNodeResultTask["Accomplished"].isNull())
|
||||
taskObject.accomplished = objectNodeResultTask["Accomplished"].asString();
|
||||
if(!objectNodeResultTask["Note"].isNull())
|
||||
taskObject.note = objectNodeResultTask["Note"].asString();
|
||||
if(!objectNodeResultTask["Content"].isNull())
|
||||
taskObject.content = objectNodeResultTask["Content"].asString();
|
||||
if(!objectNodeResultTask["Recurrence"].isNull())
|
||||
taskObject.recurrence = objectNodeResultTask["Recurrence"].asString();
|
||||
if(!objectNodeResultTask["SourceId"].isNull())
|
||||
taskObject.sourceId = objectNodeResultTask["SourceId"].asString();
|
||||
if(!objectNodeResultTask["SourceDate"].isNull())
|
||||
taskObject.sourceDate = objectNodeResultTask["SourceDate"].asString();
|
||||
if(!objectNodeResultTask["CommentsCount"].isNull())
|
||||
taskObject.commentsCount = std::stoi(objectNodeResultTask["CommentsCount"].asString());
|
||||
if(!objectNodeResultTask["AttachmentsCount"].isNull())
|
||||
taskObject.attachmentsCount = std::stoi(objectNodeResultTask["AttachmentsCount"].asString());
|
||||
if(!objectNodeResultTask["LikesCount"].isNull())
|
||||
taskObject.likesCount = std::stoi(objectNodeResultTask["LikesCount"].asString());
|
||||
if(!objectNodeResultTask["ObjectlinksCount"].isNull())
|
||||
taskObject.objectlinksCount = std::stoi(objectNodeResultTask["ObjectlinksCount"].asString());
|
||||
if(!objectNodeResultTask["UniqueId"].isNull())
|
||||
taskObject.uniqueId = std::stoi(objectNodeResultTask["UniqueId"].asString());
|
||||
if(!objectNodeResultTask["StoryPoint"].isNull())
|
||||
taskObject.storyPoint = objectNodeResultTask["StoryPoint"].asString();
|
||||
if(!objectNodeResultTask["Progress"].isNull())
|
||||
taskObject.progress = std::stoi(objectNodeResultTask["Progress"].asString());
|
||||
if(!objectNodeResultTask["Rating"].isNull())
|
||||
taskObject.rating = std::stoi(objectNodeResultTask["Rating"].asString());
|
||||
if(!objectNodeResultTask["IsFavorite"].isNull())
|
||||
taskObject.isFavorite = objectNodeResultTask["IsFavorite"].asString() == "true";
|
||||
if(!objectNodeResultTask["IsTopInProject"].isNull())
|
||||
taskObject.isTopInProject = objectNodeResultTask["IsTopInProject"].asString() == "true";
|
||||
if(!objectNodeResultTask["ScenariofFeldConfigId"].isNull())
|
||||
taskObject.scenariofFeldConfigId = objectNodeResultTask["ScenariofFeldConfigId"].asString();
|
||||
if(!objectNodeResultTask["ShareStatus"].isNull())
|
||||
taskObject.shareStatus = std::stoi(objectNodeResultTask["ShareStatus"].asString());
|
||||
if(!objectNodeResultTask["SprintId"].isNull())
|
||||
taskObject.sprintId = objectNodeResultTask["SprintId"].asString();
|
||||
if(!objectNodeResultTask["Accomplished"].isNull())
|
||||
taskObject.accomplished = objectNodeResultTask["Accomplished"].asString();
|
||||
if(!objectNodeResultTask["TaskListId"].isNull())
|
||||
taskObject.taskListId = objectNodeResultTask["TaskListId"].asString();
|
||||
if(!objectNodeResultTask["Note"].isNull())
|
||||
taskObject.note = objectNodeResultTask["Note"].asString();
|
||||
if(!objectNodeResultTask["Updated"].isNull())
|
||||
taskObject.updated = objectNodeResultTask["Updated"].asString();
|
||||
if(!objectNodeResultTask["UniqueId"].isNull())
|
||||
taskObject.uniqueId = std::stoi(objectNodeResultTask["UniqueId"].asString());
|
||||
if(!objectNodeResultTask["IsArchived"].isNull())
|
||||
taskObject.isArchived = objectNodeResultTask["IsArchived"].asString() == "true";
|
||||
if(!objectNodeResultTask["Content"].isNull())
|
||||
taskObject.content = objectNodeResultTask["Content"].asString();
|
||||
if(!objectNodeResultTask["Rating"].isNull())
|
||||
taskObject.rating = std::stoi(objectNodeResultTask["Rating"].asString());
|
||||
if(!objectNodeResultTask["CommentsCount"].isNull())
|
||||
taskObject.commentsCount = std::stoi(objectNodeResultTask["CommentsCount"].asString());
|
||||
if(!objectNodeResultTask["TaskFlowStatusId"].isNull())
|
||||
taskObject.taskFlowStatusId = objectNodeResultTask["TaskFlowStatusId"].asString();
|
||||
if(!objectNodeResultTask["Recurrence"].isNull())
|
||||
taskObject.recurrence = objectNodeResultTask["Recurrence"].asString();
|
||||
if(!objectNodeResultTask["ObjectType"].isNull())
|
||||
taskObject.objectType = objectNodeResultTask["ObjectType"].asString();
|
||||
if(!objectNodeResultTask["Source"].isNull())
|
||||
taskObject.source = objectNodeResultTask["Source"].asString();
|
||||
if(!objectNodeResultTask["Progress"].isNull())
|
||||
taskObject.progress = std::stoi(objectNodeResultTask["Progress"].asString());
|
||||
if(!objectNodeResultTask["UntilDate"].isNull())
|
||||
taskObject.untilDate = objectNodeResultTask["UntilDate"].asString();
|
||||
if(!objectNodeResultTask["TaskId"].isNull())
|
||||
taskObject.taskId = objectNodeResultTask["TaskId"].asString();
|
||||
if(!objectNodeResultTask["StoryPoint"].isNull())
|
||||
taskObject.storyPoint = objectNodeResultTask["StoryPoint"].asString();
|
||||
if(!objectNodeResultTask["ObjectlinksCount"].isNull())
|
||||
taskObject.objectlinksCount = std::stoi(objectNodeResultTask["ObjectlinksCount"].asString());
|
||||
if(!objectNodeResultTask["StartDate"].isNull())
|
||||
taskObject.startDate = objectNodeResultTask["StartDate"].asString();
|
||||
if(!objectNodeResultTask["Sprint"].isNull())
|
||||
taskObject.sprint = objectNodeResultTask["Sprint"].asString();
|
||||
if(!objectNodeResultTask["CreatorId"].isNull())
|
||||
taskObject.creatorId = objectNodeResultTask["CreatorId"].asString();
|
||||
if(!objectNodeResultTask["Source"].isNull())
|
||||
taskObject.source = objectNodeResultTask["Source"].asString();
|
||||
if(!objectNodeResultTask["SourceId"].isNull())
|
||||
taskObject.sourceId = objectNodeResultTask["SourceId"].asString();
|
||||
if(!objectNodeResultTask["SourceDate"].isNull())
|
||||
taskObject.sourceDate = objectNodeResultTask["SourceDate"].asString();
|
||||
if(!objectNodeResultTask["OrganizationId"].isNull())
|
||||
taskObject.organizationId = objectNodeResultTask["OrganizationId"].asString();
|
||||
if(!objectNodeResultTask["LikesCount"].isNull())
|
||||
taskObject.likesCount = std::stoi(objectNodeResultTask["LikesCount"].asString());
|
||||
if(!objectNodeResultTask["StageId"].isNull())
|
||||
taskObject.stageId = objectNodeResultTask["StageId"].asString();
|
||||
if(!objectNodeResultTask["Visible"].isNull())
|
||||
taskObject.visible = objectNodeResultTask["Visible"].asString();
|
||||
if(!objectNodeResultTask["IsDone"].isNull())
|
||||
taskObject.isDone = objectNodeResultTask["IsDone"].asString() == "true";
|
||||
if(!objectNodeResultTask["Parent"].isNull())
|
||||
taskObject.parent = objectNodeResultTask["Parent"].asString();
|
||||
if(!objectNodeResultTask["SprintId"].isNull())
|
||||
taskObject.sprintId = objectNodeResultTask["SprintId"].asString();
|
||||
if(!objectNodeResultTask["AttachmentsCount"].isNull())
|
||||
taskObject.attachmentsCount = std::stoi(objectNodeResultTask["AttachmentsCount"].asString());
|
||||
if(!objectNodeResultTask["DueDate"].isNull())
|
||||
taskObject.dueDate = objectNodeResultTask["DueDate"].asString();
|
||||
if(!objectNodeResultTask["TaskUniqueId"].isNull())
|
||||
taskObject.taskUniqueId = objectNodeResultTask["TaskUniqueId"].asString();
|
||||
if(!objectNodeResultTask["Created"].isNull())
|
||||
taskObject.created = objectNodeResultTask["Created"].asString();
|
||||
if(!objectNodeResultTask["TaskId"].isNull())
|
||||
taskObject.taskId = objectNodeResultTask["TaskId"].asString();
|
||||
if(!objectNodeResultTask["Id"].isNull())
|
||||
taskObject.id = objectNodeResultTask["Id"].asString();
|
||||
auto allCustomfieldsNode = objectNodeResultTask["Customfields"]["Customfield"];
|
||||
for (auto objectNodeResultTaskCustomfieldsCustomfield : allCustomfieldsNode)
|
||||
{
|
||||
Object::Task::Customfield customfieldsObject;
|
||||
if(!objectNodeResultTaskCustomfieldsCustomfield["CustomfieldId"].isNull())
|
||||
customfieldsObject.customfieldId = objectNodeResultTaskCustomfieldsCustomfield["CustomfieldId"].asString();
|
||||
if(!objectNodeResultTaskCustomfieldsCustomfield["Type"].isNull())
|
||||
customfieldsObject.type = objectNodeResultTaskCustomfieldsCustomfield["Type"].asString();
|
||||
if(!objectNodeResultTaskCustomfieldsCustomfield["CustomfieldId"].isNull())
|
||||
customfieldsObject.customfieldId = objectNodeResultTaskCustomfieldsCustomfield["CustomfieldId"].asString();
|
||||
if(!objectNodeResultTaskCustomfieldsCustomfield["Values"].isNull())
|
||||
customfieldsObject.values = objectNodeResultTaskCustomfieldsCustomfield["Values"].asString();
|
||||
auto allValueNode = objectNodeResultTaskCustomfieldsCustomfield["Value"]["ValueItem"];
|
||||
@@ -157,26 +155,26 @@ void GetTaskListFilterResult::parse(const std::string &payload)
|
||||
taskObject.customfields.push_back(customfieldsObject);
|
||||
}
|
||||
auto workTimeNode = value["WorkTime"];
|
||||
if(!workTimeNode["TotalTime"].isNull())
|
||||
taskObject.workTime.totalTime = std::stoi(workTimeNode["TotalTime"].asString());
|
||||
if(!workTimeNode["UsedTime"].isNull())
|
||||
taskObject.workTime.usedTime = std::stoi(workTimeNode["UsedTime"].asString());
|
||||
if(!workTimeNode["TotalTime"].isNull())
|
||||
taskObject.workTime.totalTime = std::stoi(workTimeNode["TotalTime"].asString());
|
||||
if(!workTimeNode["Unit"].isNull())
|
||||
taskObject.workTime.unit = workTimeNode["Unit"].asString();
|
||||
auto badgesNode = value["Badges"];
|
||||
if(!badgesNode["ObjectlinksCount"].isNull())
|
||||
taskObject.badges.objectlinksCount = std::stoi(badgesNode["ObjectlinksCount"].asString());
|
||||
if(!badgesNode["CommentsCount"].isNull())
|
||||
taskObject.badges.commentsCount = std::stoi(badgesNode["CommentsCount"].asString());
|
||||
if(!badgesNode["AttachmentsCount"].isNull())
|
||||
taskObject.badges.attachmentsCount = std::stoi(badgesNode["AttachmentsCount"].asString());
|
||||
if(!badgesNode["LikesCount"].isNull())
|
||||
taskObject.badges.likesCount = std::stoi(badgesNode["LikesCount"].asString());
|
||||
if(!badgesNode["ObjectlinksCount"].isNull())
|
||||
taskObject.badges.objectlinksCount = std::stoi(badgesNode["ObjectlinksCount"].asString());
|
||||
if(!badgesNode["AttachmentsCount"].isNull())
|
||||
taskObject.badges.attachmentsCount = std::stoi(badgesNode["AttachmentsCount"].asString());
|
||||
if(!badgesNode["CommentsCount"].isNull())
|
||||
taskObject.badges.commentsCount = std::stoi(badgesNode["CommentsCount"].asString());
|
||||
auto subtaskCountNode = value["SubtaskCount"];
|
||||
if(!subtaskCountNode["Total"].isNull())
|
||||
taskObject.subtaskCount.total = std::stoi(subtaskCountNode["Total"].asString());
|
||||
if(!subtaskCountNode["Done"].isNull())
|
||||
taskObject.subtaskCount.done = std::stoi(subtaskCountNode["Done"].asString());
|
||||
if(!subtaskCountNode["Total"].isNull())
|
||||
taskObject.subtaskCount.total = std::stoi(subtaskCountNode["Total"].asString());
|
||||
auto reminderNode = value["Reminder"];
|
||||
if(!reminderNode["Type"].isNull())
|
||||
taskObject.reminder.type = reminderNode["Type"].asString();
|
||||
@@ -191,58 +189,58 @@ void GetTaskListFilterResult::parse(const std::string &payload)
|
||||
for (auto value : allRules)
|
||||
taskObject.reminder.rules.push_back(value.asString());
|
||||
auto creatorNode = value["Creator"];
|
||||
if(!creatorNode["Id"].isNull())
|
||||
taskObject.creator.id = creatorNode["Id"].asString();
|
||||
if(!creatorNode["Name"].isNull())
|
||||
taskObject.creator.name = creatorNode["Name"].asString();
|
||||
if(!creatorNode["AvatarUrl"].isNull())
|
||||
taskObject.creator.avatarUrl = creatorNode["AvatarUrl"].asString();
|
||||
if(!creatorNode["Id"].isNull())
|
||||
taskObject.creator.id = creatorNode["Id"].asString();
|
||||
auto stageNode = value["Stage"];
|
||||
if(!stageNode["Id"].isNull())
|
||||
taskObject.stage.id = stageNode["Id"].asString();
|
||||
if(!stageNode["Name"].isNull())
|
||||
taskObject.stage.name = stageNode["Name"].asString();
|
||||
if(!stageNode["Id"].isNull())
|
||||
taskObject.stage.id = stageNode["Id"].asString();
|
||||
auto executorNode = value["Executor"];
|
||||
if(!executorNode["Id"].isNull())
|
||||
taskObject.executor.id = executorNode["Id"].asString();
|
||||
if(!executorNode["Name"].isNull())
|
||||
taskObject.executor.name = executorNode["Name"].asString();
|
||||
if(!executorNode["AvatarUrl"].isNull())
|
||||
taskObject.executor.avatarUrl = executorNode["AvatarUrl"].asString();
|
||||
if(!executorNode["Id"].isNull())
|
||||
taskObject.executor.id = executorNode["Id"].asString();
|
||||
auto taskFlowStatusNode = value["TaskFlowStatus"];
|
||||
if(!taskFlowStatusNode["Id"].isNull())
|
||||
taskObject.taskFlowStatus.id = taskFlowStatusNode["Id"].asString();
|
||||
if(!taskFlowStatusNode["Name"].isNull())
|
||||
taskObject.taskFlowStatus.name = taskFlowStatusNode["Name"].asString();
|
||||
if(!taskFlowStatusNode["Kind"].isNull())
|
||||
taskObject.taskFlowStatus.kind = taskFlowStatusNode["Kind"].asString();
|
||||
if(!taskFlowStatusNode["Pos"].isNull())
|
||||
taskObject.taskFlowStatus.pos = std::stoi(taskFlowStatusNode["Pos"].asString());
|
||||
if(!taskFlowStatusNode["TaskFlowId"].isNull())
|
||||
taskObject.taskFlowStatus.taskFlowId = taskFlowStatusNode["TaskFlowId"].asString();
|
||||
auto allAncestorIds = value["AncestorIds"]["AncestorId"];
|
||||
for (auto value : allAncestorIds)
|
||||
taskObject.ancestorIds.push_back(value.asString());
|
||||
auto allLabels = value["Labels"]["Label"];
|
||||
for (auto value : allLabels)
|
||||
taskObject.labels.push_back(value.asString());
|
||||
auto allTagIds = value["TagIds"]["TagId"];
|
||||
for (auto value : allTagIds)
|
||||
taskObject.tagIds.push_back(value.asString());
|
||||
if(!taskFlowStatusNode["Name"].isNull())
|
||||
taskObject.taskFlowStatus.name = taskFlowStatusNode["Name"].asString();
|
||||
if(!taskFlowStatusNode["Pos"].isNull())
|
||||
taskObject.taskFlowStatus.pos = std::stoi(taskFlowStatusNode["Pos"].asString());
|
||||
if(!taskFlowStatusNode["Kind"].isNull())
|
||||
taskObject.taskFlowStatus.kind = taskFlowStatusNode["Kind"].asString();
|
||||
if(!taskFlowStatusNode["Id"].isNull())
|
||||
taskObject.taskFlowStatus.id = taskFlowStatusNode["Id"].asString();
|
||||
auto allInvolveMembers = value["InvolveMembers"]["InvolveMember"];
|
||||
for (auto value : allInvolveMembers)
|
||||
taskObject.involveMembers.push_back(value.asString());
|
||||
auto allTagIds = value["TagIds"]["TagId"];
|
||||
for (auto value : allTagIds)
|
||||
taskObject.tagIds.push_back(value.asString());
|
||||
auto allLabels = value["Labels"]["Label"];
|
||||
for (auto value : allLabels)
|
||||
taskObject.labels.push_back(value.asString());
|
||||
auto allDivisions = value["Divisions"]["Division"];
|
||||
for (auto value : allDivisions)
|
||||
taskObject.divisions.push_back(value.asString());
|
||||
auto allAncestorIds = value["AncestorIds"]["AncestorId"];
|
||||
for (auto value : allAncestorIds)
|
||||
taskObject.ancestorIds.push_back(value.asString());
|
||||
object_.result.push_back(taskObject);
|
||||
}
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +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/devops-rdc/model/GetUserByAliyunUidRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetUserByAliyunUidRequest;
|
||||
|
||||
GetUserByAliyunUidRequest::GetUserByAliyunUidRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetUserByAliyunUid")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserByAliyunUidRequest::~GetUserByAliyunUidRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserByAliyunUidRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetUserByAliyunUidRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetUserByAliyunUidRequest;
|
||||
|
||||
GetUserByAliyunUidRequest::GetUserByAliyunUidRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetUserByAliyunUid") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetUserByAliyunUidRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
GetUserByAliyunUidRequest::~GetUserByAliyunUidRequest() {}
|
||||
|
||||
std::string GetUserByAliyunUidRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string GetUserByAliyunUidRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetUserByAliyunUidRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void GetUserByAliyunUidRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetUserByAliyunUidRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void GetUserByAliyunUidRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void GetUserByAliyunUidResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto objectNode = value["Object"];
|
||||
if(!objectNode["AliyunPk"].isNull())
|
||||
object_.aliyunPk = objectNode["AliyunPk"].asString();
|
||||
if(!objectNode["Email"].isNull())
|
||||
object_.email = objectNode["Email"].asString();
|
||||
if(!objectNode["AvatarUrl"].isNull())
|
||||
object_.avatarUrl = objectNode["AvatarUrl"].asString();
|
||||
if(!objectNode["Name"].isNull())
|
||||
object_.name = objectNode["Name"].asString();
|
||||
if(!objectNode["Id"].isNull())
|
||||
object_.id = objectNode["Id"].asString();
|
||||
if(!objectNode["AliyunPk"].isNull())
|
||||
object_.aliyunPk = objectNode["AliyunPk"].asString();
|
||||
if(!objectNode["AvatarUrl"].isNull())
|
||||
object_.avatarUrl = objectNode["AvatarUrl"].asString();
|
||||
if(!objectNode["Email"].isNull())
|
||||
object_.email = objectNode["Email"].asString();
|
||||
if(!objectNode["Phone"].isNull())
|
||||
object_.phone = objectNode["Phone"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +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/devops-rdc/model/GetUserNameRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetUserNameRequest;
|
||||
|
||||
GetUserNameRequest::GetUserNameRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "GetUserName")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserNameRequest::~GetUserNameRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserNameRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/GetUserNameRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::GetUserNameRequest;
|
||||
|
||||
GetUserNameRequest::GetUserNameRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "GetUserName") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetUserNameRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
GetUserNameRequest::~GetUserNameRequest() {}
|
||||
|
||||
std::string GetUserNameRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string GetUserNameRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void GetUserNameRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void GetUserNameRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string GetUserNameRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void GetUserNameRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void GetUserNameResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/InsertDevopsUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::InsertDevopsUserRequest;
|
||||
|
||||
InsertDevopsUserRequest::InsertDevopsUserRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "InsertDevopsUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InsertDevopsUserRequest::~InsertDevopsUserRequest()
|
||||
{}
|
||||
|
||||
std::string InsertDevopsUserRequest::getPhone()const
|
||||
{
|
||||
return phone_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/InsertDevopsUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::InsertDevopsUserRequest;
|
||||
|
||||
InsertDevopsUserRequest::InsertDevopsUserRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "InsertDevopsUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void InsertDevopsUserRequest::setPhone(const std::string& phone)
|
||||
{
|
||||
phone_ = phone;
|
||||
setBodyParameter("Phone", phone);
|
||||
InsertDevopsUserRequest::~InsertDevopsUserRequest() {}
|
||||
|
||||
std::string InsertDevopsUserRequest::getPhone() const {
|
||||
return phone_;
|
||||
}
|
||||
|
||||
std::string InsertDevopsUserRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void InsertDevopsUserRequest::setPhone(const std::string &phone) {
|
||||
phone_ = phone;
|
||||
setBodyParameter(std::string("Phone"), phone);
|
||||
}
|
||||
|
||||
void InsertDevopsUserRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string InsertDevopsUserRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string InsertDevopsUserRequest::getEmail()const
|
||||
{
|
||||
return email_;
|
||||
void InsertDevopsUserRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void InsertDevopsUserRequest::setEmail(const std::string& email)
|
||||
{
|
||||
email_ = email;
|
||||
setBodyParameter("Email", email);
|
||||
std::string InsertDevopsUserRequest::getEmail() const {
|
||||
return email_;
|
||||
}
|
||||
|
||||
std::string InsertDevopsUserRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
void InsertDevopsUserRequest::setEmail(const std::string &email) {
|
||||
email_ = email;
|
||||
setBodyParameter(std::string("Email"), email);
|
||||
}
|
||||
|
||||
void InsertDevopsUserRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setBodyParameter("UserName", userName);
|
||||
std::string InsertDevopsUserRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void InsertDevopsUserRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setBodyParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void InsertDevopsUserResult::parse(const std::string &payload)
|
||||
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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +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/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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setRoleName(const std::string& roleName)
|
||||
{
|
||||
roleName_ = roleName;
|
||||
setBodyParameter("RoleName", roleName);
|
||||
InsertPipelineMemberRequest::~InsertPipelineMemberRequest() {}
|
||||
|
||||
std::string InsertPipelineMemberRequest::getRoleName() const {
|
||||
return roleName_;
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
void InsertPipelineMemberRequest::setRoleName(const std::string &roleName) {
|
||||
roleName_ = roleName;
|
||||
setBodyParameter(std::string("RoleName"), roleName);
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
std::string InsertPipelineMemberRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
void InsertPipelineMemberRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
std::string InsertPipelineMemberRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
std::string InsertPipelineMemberRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void InsertPipelineMemberRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setBodyParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setParameter("OrgId", orgId);
|
||||
std::string InsertPipelineMemberRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
long InsertPipelineMemberRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void InsertPipelineMemberRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setPipelineId(long pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", std::to_string(pipelineId));
|
||||
long InsertPipelineMemberRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void InsertPipelineMemberRequest::setPipelineId(long pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void InsertPipelineMemberResult::parse(const std::string &payload)
|
||||
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";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/InsertProjectMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::InsertProjectMembersRequest;
|
||||
|
||||
InsertProjectMembersRequest::InsertProjectMembersRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "InsertProjectMembers")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InsertProjectMembersRequest::~InsertProjectMembersRequest()
|
||||
{}
|
||||
|
||||
std::string InsertProjectMembersRequest::getMembers()const
|
||||
{
|
||||
return members_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/InsertProjectMembersRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::InsertProjectMembersRequest;
|
||||
|
||||
InsertProjectMembersRequest::InsertProjectMembersRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "InsertProjectMembers") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void InsertProjectMembersRequest::setMembers(const std::string& members)
|
||||
{
|
||||
members_ = members;
|
||||
setBodyParameter("Members", members);
|
||||
InsertProjectMembersRequest::~InsertProjectMembersRequest() {}
|
||||
|
||||
std::string InsertProjectMembersRequest::getMembers() const {
|
||||
return members_;
|
||||
}
|
||||
|
||||
std::string InsertProjectMembersRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
void InsertProjectMembersRequest::setMembers(const std::string &members) {
|
||||
members_ = members;
|
||||
setBodyParameter(std::string("Members"), members);
|
||||
}
|
||||
|
||||
void InsertProjectMembersRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
std::string InsertProjectMembersRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string InsertProjectMembersRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void InsertProjectMembersRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void InsertProjectMembersRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string InsertProjectMembersRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void InsertProjectMembersRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void InsertProjectMembersResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Object"].isNull())
|
||||
object_ = value["Object"].asString() == "true";
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +1,63 @@
|
||||
/*
|
||||
* 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/ListCommonGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ListCommonGroupRequest;
|
||||
|
||||
ListCommonGroupRequest::ListCommonGroupRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "ListCommonGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCommonGroupRequest::~ListCommonGroupRequest()
|
||||
{}
|
||||
|
||||
bool ListCommonGroupRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/ListCommonGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ListCommonGroupRequest;
|
||||
|
||||
ListCommonGroupRequest::ListCommonGroupRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "ListCommonGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListCommonGroupRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setBodyParameter("All", all ? "true" : "false");
|
||||
ListCommonGroupRequest::~ListCommonGroupRequest() {}
|
||||
|
||||
bool ListCommonGroupRequest::getAll() const {
|
||||
return all_;
|
||||
}
|
||||
|
||||
std::string ListCommonGroupRequest::getSmartGroupId()const
|
||||
{
|
||||
return smartGroupId_;
|
||||
void ListCommonGroupRequest::setAll(bool all) {
|
||||
all_ = all;
|
||||
setBodyParameter(std::string("All"), all ? "true" : "false");
|
||||
}
|
||||
|
||||
void ListCommonGroupRequest::setSmartGroupId(const std::string& smartGroupId)
|
||||
{
|
||||
smartGroupId_ = smartGroupId;
|
||||
setBodyParameter("SmartGroupId", smartGroupId);
|
||||
std::string ListCommonGroupRequest::getSmartGroupId() const {
|
||||
return smartGroupId_;
|
||||
}
|
||||
|
||||
std::string ListCommonGroupRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
void ListCommonGroupRequest::setSmartGroupId(const std::string &smartGroupId) {
|
||||
smartGroupId_ = smartGroupId;
|
||||
setBodyParameter(std::string("SmartGroupId"), smartGroupId);
|
||||
}
|
||||
|
||||
void ListCommonGroupRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
std::string ListCommonGroupRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string ListCommonGroupRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void ListCommonGroupRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void ListCommonGroupRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string ListCommonGroupRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void ListCommonGroupRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,32 +43,32 @@ void ListCommonGroupResult::parse(const std::string &payload)
|
||||
for (auto valueObjectCommonGroup : allObjectNode)
|
||||
{
|
||||
CommonGroup objectObject;
|
||||
if(!valueObjectCommonGroup["Pinyin"].isNull())
|
||||
objectObject.pinyin = valueObjectCommonGroup["Pinyin"].asString();
|
||||
if(!valueObjectCommonGroup["IsRoot"].isNull())
|
||||
objectObject.isRoot = valueObjectCommonGroup["IsRoot"].asString() == "true";
|
||||
if(!valueObjectCommonGroup["Pos"].isNull())
|
||||
objectObject.pos = std::stoi(valueObjectCommonGroup["Pos"].asString());
|
||||
if(!valueObjectCommonGroup["ResourceCount"].isNull())
|
||||
objectObject.resourceCount = std::stoi(valueObjectCommonGroup["ResourceCount"].asString());
|
||||
if(!valueObjectCommonGroup["Name"].isNull())
|
||||
objectObject.name = valueObjectCommonGroup["Name"].asString();
|
||||
if(!valueObjectCommonGroup["CreatorId"].isNull())
|
||||
objectObject.creatorId = valueObjectCommonGroup["CreatorId"].asString();
|
||||
if(!valueObjectCommonGroup["SmartGroupId"].isNull())
|
||||
objectObject.smartGroupId = valueObjectCommonGroup["SmartGroupId"].asString();
|
||||
if(!valueObjectCommonGroup["Pos"].isNull())
|
||||
objectObject.pos = std::stoi(valueObjectCommonGroup["Pos"].asString());
|
||||
if(!valueObjectCommonGroup["ProjectId"].isNull())
|
||||
objectObject.projectId = valueObjectCommonGroup["ProjectId"].asString();
|
||||
if(!valueObjectCommonGroup["IsRoot"].isNull())
|
||||
objectObject.isRoot = valueObjectCommonGroup["IsRoot"].asString() == "true";
|
||||
if(!valueObjectCommonGroup["Pinyin"].isNull())
|
||||
objectObject.pinyin = valueObjectCommonGroup["Pinyin"].asString();
|
||||
if(!valueObjectCommonGroup["CreatorId"].isNull())
|
||||
objectObject.creatorId = valueObjectCommonGroup["CreatorId"].asString();
|
||||
if(!valueObjectCommonGroup["Name"].isNull())
|
||||
objectObject.name = valueObjectCommonGroup["Name"].asString();
|
||||
if(!valueObjectCommonGroup["id"].isNull())
|
||||
objectObject.id = valueObjectCommonGroup["id"].asString();
|
||||
object_.push_back(objectObject);
|
||||
}
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +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/devops-rdc/model/ListCredentialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ListCredentialsRequest;
|
||||
|
||||
ListCredentialsRequest::ListCredentialsRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "ListCredentials")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListCredentialsRequest::~ListCredentialsRequest()
|
||||
{}
|
||||
|
||||
std::string ListCredentialsRequest::getUserPk()const
|
||||
{
|
||||
return userPk_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/ListCredentialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ListCredentialsRequest;
|
||||
|
||||
ListCredentialsRequest::ListCredentialsRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "ListCredentials") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListCredentialsRequest::setUserPk(const std::string& userPk)
|
||||
{
|
||||
userPk_ = userPk;
|
||||
setBodyParameter("UserPk", userPk);
|
||||
ListCredentialsRequest::~ListCredentialsRequest() {}
|
||||
|
||||
std::string ListCredentialsRequest::getUserPk() const {
|
||||
return userPk_;
|
||||
}
|
||||
|
||||
std::string ListCredentialsRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void ListCredentialsRequest::setUserPk(const std::string &userPk) {
|
||||
userPk_ = userPk;
|
||||
setBodyParameter(std::string("UserPk"), userPk);
|
||||
}
|
||||
|
||||
void ListCredentialsRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string ListCredentialsRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void ListCredentialsRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ void ListCredentialsResult::parse(const std::string &payload)
|
||||
auto allObject = value["Object"]["Object"];
|
||||
for (const auto &item : allObject)
|
||||
object_.push_back(item.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,63 @@
|
||||
/*
|
||||
* 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/ListDevopsProjectSprintsRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ListDevopsProjectSprintsRequest;
|
||||
|
||||
ListDevopsProjectSprintsRequest::ListDevopsProjectSprintsRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "ListDevopsProjectSprints")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDevopsProjectSprintsRequest::~ListDevopsProjectSprintsRequest()
|
||||
{}
|
||||
|
||||
std::string ListDevopsProjectSprintsRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/ListDevopsProjectSprintsRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ListDevopsProjectSprintsRequest;
|
||||
|
||||
ListDevopsProjectSprintsRequest::ListDevopsProjectSprintsRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "ListDevopsProjectSprints") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListDevopsProjectSprintsRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
ListDevopsProjectSprintsRequest::~ListDevopsProjectSprintsRequest() {}
|
||||
|
||||
long ListDevopsProjectSprintsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string ListDevopsProjectSprintsRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void ListDevopsProjectSprintsRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setBodyParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void ListDevopsProjectSprintsRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string ListDevopsProjectSprintsRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ListDevopsProjectSprintsRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
std::string ListDevopsProjectSprintsRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void ListDevopsProjectSprintsRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
std::string ListDevopsProjectSprintsRequest::getPageToken() const {
|
||||
return pageToken_;
|
||||
}
|
||||
|
||||
void ListDevopsProjectSprintsRequest::setPageToken(const std::string &pageToken) {
|
||||
pageToken_ = pageToken;
|
||||
setBodyParameter(std::string("PageToken"), pageToken);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,46 +43,53 @@ void ListDevopsProjectSprintsResult::parse(const std::string &payload)
|
||||
for (auto valueObjectSprint : allObjectNode)
|
||||
{
|
||||
Sprint objectObject;
|
||||
if(!valueObjectSprint["Status"].isNull())
|
||||
objectObject.status = valueObjectSprint["Status"].asString();
|
||||
if(!valueObjectSprint["Accomplished"].isNull())
|
||||
objectObject.accomplished = valueObjectSprint["Accomplished"].asString();
|
||||
if(!valueObjectSprint["ProjectId"].isNull())
|
||||
objectObject.projectId = valueObjectSprint["ProjectId"].asString();
|
||||
if(!valueObjectSprint["IsDeleted"].isNull())
|
||||
objectObject.isDeleted = valueObjectSprint["IsDeleted"].asString() == "true";
|
||||
if(!valueObjectSprint["Created"].isNull())
|
||||
objectObject.created = valueObjectSprint["Created"].asString();
|
||||
if(!valueObjectSprint["StartDate"].isNull())
|
||||
objectObject.startDate = valueObjectSprint["StartDate"].asString();
|
||||
if(!valueObjectSprint["Updated"].isNull())
|
||||
objectObject.updated = valueObjectSprint["Updated"].asString();
|
||||
if(!valueObjectSprint["CreatorId"].isNull())
|
||||
objectObject.creatorId = valueObjectSprint["CreatorId"].asString();
|
||||
if(!valueObjectSprint["DueDate"].isNull())
|
||||
objectObject.dueDate = valueObjectSprint["DueDate"].asString();
|
||||
if(!valueObjectSprint["Name"].isNull())
|
||||
objectObject.name = valueObjectSprint["Name"].asString();
|
||||
if(!valueObjectSprint["CreatorId"].isNull())
|
||||
objectObject.creatorId = valueObjectSprint["CreatorId"].asString();
|
||||
if(!valueObjectSprint["Created"].isNull())
|
||||
objectObject.created = valueObjectSprint["Created"].asString();
|
||||
if(!valueObjectSprint["Id"].isNull())
|
||||
objectObject.id = valueObjectSprint["Id"].asString();
|
||||
if(!valueObjectSprint["Updated"].isNull())
|
||||
objectObject.updated = valueObjectSprint["Updated"].asString();
|
||||
if(!valueObjectSprint["StartDate"].isNull())
|
||||
objectObject.startDate = valueObjectSprint["StartDate"].asString();
|
||||
if(!valueObjectSprint["Status"].isNull())
|
||||
objectObject.status = valueObjectSprint["Status"].asString();
|
||||
if(!valueObjectSprint["ProjectId"].isNull())
|
||||
objectObject.projectId = valueObjectSprint["ProjectId"].asString();
|
||||
auto planToDoNode = value["PlanToDo"];
|
||||
if(!planToDoNode["StoryPoints"].isNull())
|
||||
objectObject.planToDo.storyPoints = std::stoi(planToDoNode["StoryPoints"].asString());
|
||||
if(!planToDoNode["WorkTimes"].isNull())
|
||||
objectObject.planToDo.workTimes = std::stoi(planToDoNode["WorkTimes"].asString());
|
||||
if(!planToDoNode["Tasks"].isNull())
|
||||
objectObject.planToDo.tasks = std::stoi(planToDoNode["Tasks"].asString());
|
||||
if(!planToDoNode["WorkTimes"].isNull())
|
||||
objectObject.planToDo.workTimes = std::stoi(planToDoNode["WorkTimes"].asString());
|
||||
if(!planToDoNode["StoryPoints"].isNull())
|
||||
objectObject.planToDo.storyPoints = std::stoi(planToDoNode["StoryPoints"].asString());
|
||||
object_.push_back(objectObject);
|
||||
}
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["NextPageToken"].isNull())
|
||||
nextPageToken_ = value["NextPageToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListDevopsProjectSprintsResult::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
std::string ListDevopsProjectSprintsResult::getErrorMsg()const
|
||||
{
|
||||
return errorMsg_;
|
||||
|
||||
@@ -1,51 +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/devops-rdc/model/ListDevopsProjectTaskFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ListDevopsProjectTaskFlowRequest;
|
||||
|
||||
ListDevopsProjectTaskFlowRequest::ListDevopsProjectTaskFlowRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "ListDevopsProjectTaskFlow")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDevopsProjectTaskFlowRequest::~ListDevopsProjectTaskFlowRequest()
|
||||
{}
|
||||
|
||||
std::string ListDevopsProjectTaskFlowRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/ListDevopsProjectTaskFlowRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ListDevopsProjectTaskFlowRequest;
|
||||
|
||||
ListDevopsProjectTaskFlowRequest::ListDevopsProjectTaskFlowRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "ListDevopsProjectTaskFlow") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListDevopsProjectTaskFlowRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setBodyParameter("ProjectId", projectId);
|
||||
ListDevopsProjectTaskFlowRequest::~ListDevopsProjectTaskFlowRequest() {}
|
||||
|
||||
std::string ListDevopsProjectTaskFlowRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
std::string ListDevopsProjectTaskFlowRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void ListDevopsProjectTaskFlowRequest::setProjectId(const std::string &projectId) {
|
||||
projectId_ = projectId;
|
||||
setBodyParameter(std::string("ProjectId"), projectId);
|
||||
}
|
||||
|
||||
void ListDevopsProjectTaskFlowRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string ListDevopsProjectTaskFlowRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void ListDevopsProjectTaskFlowRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,20 +43,20 @@ void ListDevopsProjectTaskFlowResult::parse(const std::string &payload)
|
||||
for (auto valueObjectTaskflow : allObjectNode)
|
||||
{
|
||||
Taskflow objectObject;
|
||||
if(!valueObjectTaskflow["Id"].isNull())
|
||||
objectObject.id = valueObjectTaskflow["Id"].asString();
|
||||
if(!valueObjectTaskflow["Type"].isNull())
|
||||
objectObject.type = valueObjectTaskflow["Type"].asString();
|
||||
if(!valueObjectTaskflow["Name"].isNull())
|
||||
objectObject.name = valueObjectTaskflow["Name"].asString();
|
||||
if(!valueObjectTaskflow["Id"].isNull())
|
||||
objectObject.id = valueObjectTaskflow["Id"].asString();
|
||||
object_.push_back(objectObject);
|
||||
}
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
if(!value["Successful"].isNull())
|
||||
successful_ = value["Successful"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMsg"].isNull())
|
||||
errorMsg_ = value["ErrorMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +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/devops-rdc/model/ListDevopsProjectTaskFlowStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ListDevopsProjectTaskFlowStatusRequest;
|
||||
|
||||
ListDevopsProjectTaskFlowStatusRequest::ListDevopsProjectTaskFlowStatusRequest() :
|
||||
RpcServiceRequest("devops-rdc", "2020-03-03", "ListDevopsProjectTaskFlowStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDevopsProjectTaskFlowStatusRequest::~ListDevopsProjectTaskFlowStatusRequest()
|
||||
{}
|
||||
|
||||
std::string ListDevopsProjectTaskFlowStatusRequest::getTaskFlowId()const
|
||||
{
|
||||
return taskFlowId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/devops-rdc/model/ListDevopsProjectTaskFlowStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Devops_rdc::Model::ListDevopsProjectTaskFlowStatusRequest;
|
||||
|
||||
ListDevopsProjectTaskFlowStatusRequest::ListDevopsProjectTaskFlowStatusRequest()
|
||||
: RpcServiceRequest("devops-rdc", "2020-03-03", "ListDevopsProjectTaskFlowStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListDevopsProjectTaskFlowStatusRequest::setTaskFlowId(const std::string& taskFlowId)
|
||||
{
|
||||
taskFlowId_ = taskFlowId;
|
||||
setBodyParameter("TaskFlowId", taskFlowId);
|
||||
ListDevopsProjectTaskFlowStatusRequest::~ListDevopsProjectTaskFlowStatusRequest() {}
|
||||
|
||||
std::string ListDevopsProjectTaskFlowStatusRequest::getTaskFlowId() const {
|
||||
return taskFlowId_;
|
||||
}
|
||||
|
||||
std::string ListDevopsProjectTaskFlowStatusRequest::getOrgId()const
|
||||
{
|
||||
return orgId_;
|
||||
void ListDevopsProjectTaskFlowStatusRequest::setTaskFlowId(const std::string &taskFlowId) {
|
||||
taskFlowId_ = taskFlowId;
|
||||
setBodyParameter(std::string("TaskFlowId"), taskFlowId);
|
||||
}
|
||||
|
||||
void ListDevopsProjectTaskFlowStatusRequest::setOrgId(const std::string& orgId)
|
||||
{
|
||||
orgId_ = orgId;
|
||||
setBodyParameter("OrgId", orgId);
|
||||
std::string ListDevopsProjectTaskFlowStatusRequest::getOrgId() const {
|
||||
return orgId_;
|
||||
}
|
||||
|
||||
void ListDevopsProjectTaskFlowStatusRequest::setOrgId(const std::string &orgId) {
|
||||
orgId_ = orgId;
|
||||
setBodyParameter(std::string("OrgId"), orgId);
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user