Add project api.

This commit is contained in:
sdk-team
2020-08-24 16:16:02 +08:00
parent 8ac065c14f
commit 8c27cbdc14
113 changed files with 8721 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <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_;
}
void BatchInsertMembersRequest::setMembers(const std::string& members)
{
members_ = members;
setBodyParameter("Members", members);
}
std::string BatchInsertMembersRequest::getRealPk()const
{
return realPk_;
}
void BatchInsertMembersRequest::setRealPk(const std::string& realPk)
{
realPk_ = realPk;
setBodyParameter("RealPk", realPk);
}
std::string BatchInsertMembersRequest::getOrgId()const
{
return orgId_;
}
void BatchInsertMembersRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/BatchInsertMembersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
BatchInsertMembersResult::BatchInsertMembersResult() :
ServiceResult()
{}
BatchInsertMembersResult::BatchInsertMembersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BatchInsertMembersResult::~BatchInsertMembersResult()
{}
void BatchInsertMembersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Object"].isNull())
object_ = value["Object"].asString() == "true";
}
bool BatchInsertMembersResult::getObject()const
{
return object_;
}
std::string BatchInsertMembersResult::getErrorCode()const
{
return errorCode_;
}
std::string BatchInsertMembersResult::getErrorMessage()const
{
return errorMessage_;
}
bool BatchInsertMembersResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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_;
}
void CheckAliyunAccountExistsRequest::setUserPk(const std::string& userPk)
{
userPk_ = userPk;
setBodyParameter("UserPk", userPk);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/CheckAliyunAccountExistsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
CheckAliyunAccountExistsResult::CheckAliyunAccountExistsResult() :
ServiceResult()
{}
CheckAliyunAccountExistsResult::CheckAliyunAccountExistsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckAliyunAccountExistsResult::~CheckAliyunAccountExistsResult()
{}
void CheckAliyunAccountExistsResult::parse(const std::string &payload)
{
Json::Reader reader;
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";
}
std::string CheckAliyunAccountExistsResult::getErrorMsg()const
{
return errorMsg_;
}
bool CheckAliyunAccountExistsResult::getObject()const
{
return object_;
}
std::string CheckAliyunAccountExistsResult::getErrorCode()const
{
return errorCode_;
}
bool CheckAliyunAccountExistsResult::getSuccessful()const
{
return successful_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/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_;
}
void CreateDevopsOrganizationRequest::setOrgName(const std::string& orgName)
{
orgName_ = orgName;
setBodyParameter("OrgName", orgName);
}
std::string CreateDevopsOrganizationRequest::getSource()const
{
return source_;
}
void CreateDevopsOrganizationRequest::setSource(const std::string& source)
{
source_ = source;
setBodyParameter("Source", source);
}
std::string CreateDevopsOrganizationRequest::getRealPk()const
{
return realPk_;
}
void CreateDevopsOrganizationRequest::setRealPk(const std::string& realPk)
{
realPk_ = realPk;
setBodyParameter("RealPk", realPk);
}
int CreateDevopsOrganizationRequest::getDesiredMemberCount()const
{
return desiredMemberCount_;
}
void CreateDevopsOrganizationRequest::setDesiredMemberCount(int desiredMemberCount)
{
desiredMemberCount_ = desiredMemberCount;
setBodyParameter("DesiredMemberCount", std::to_string(desiredMemberCount));
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/CreateDevopsOrganizationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
CreateDevopsOrganizationResult::CreateDevopsOrganizationResult() :
ServiceResult()
{}
CreateDevopsOrganizationResult::CreateDevopsOrganizationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDevopsOrganizationResult::~CreateDevopsOrganizationResult()
{}
void CreateDevopsOrganizationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Object"].isNull())
object_ = value["Object"].asString();
}
std::string CreateDevopsOrganizationResult::getObject()const
{
return object_;
}
std::string CreateDevopsOrganizationResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateDevopsOrganizationResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateDevopsOrganizationResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <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_;
}
void CreateDevopsProjectRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string CreateDevopsProjectRequest::getDescription()const
{
return description_;
}
void CreateDevopsProjectRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
std::string CreateDevopsProjectRequest::getOrgId()const
{
return orgId_;
}
void CreateDevopsProjectRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/CreateDevopsProjectResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
CreateDevopsProjectResult::CreateDevopsProjectResult() :
ServiceResult()
{}
CreateDevopsProjectResult::CreateDevopsProjectResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDevopsProjectResult::~CreateDevopsProjectResult()
{}
void CreateDevopsProjectResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Object"].isNull())
object_ = value["Object"].asString();
}
std::string CreateDevopsProjectResult::getObject()const
{
return object_;
}
std::string CreateDevopsProjectResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateDevopsProjectResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateDevopsProjectResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <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_;
}
void CreateDevopsProjectSprintRequest::setExecutorId(const std::string& executorId)
{
executorId_ = executorId;
setBodyParameter("ExecutorId", executorId);
}
std::string CreateDevopsProjectSprintRequest::getDescription()const
{
return description_;
}
void CreateDevopsProjectSprintRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
std::string CreateDevopsProjectSprintRequest::getStartDate()const
{
return startDate_;
}
void CreateDevopsProjectSprintRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setBodyParameter("StartDate", startDate);
}
std::string CreateDevopsProjectSprintRequest::getOrgId()const
{
return orgId_;
}
void CreateDevopsProjectSprintRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
std::string CreateDevopsProjectSprintRequest::getDueDate()const
{
return dueDate_;
}
void CreateDevopsProjectSprintRequest::setDueDate(const std::string& dueDate)
{
dueDate_ = dueDate;
setBodyParameter("DueDate", dueDate);
}
std::string CreateDevopsProjectSprintRequest::getName()const
{
return name_;
}
void CreateDevopsProjectSprintRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string CreateDevopsProjectSprintRequest::getProjectId()const
{
return projectId_;
}
void CreateDevopsProjectSprintRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}

View File

@@ -0,0 +1,104 @@
/*
* 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/CreateDevopsProjectSprintResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
CreateDevopsProjectSprintResult::CreateDevopsProjectSprintResult() :
ServiceResult()
{}
CreateDevopsProjectSprintResult::CreateDevopsProjectSprintResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDevopsProjectSprintResult::~CreateDevopsProjectSprintResult()
{}
void CreateDevopsProjectSprintResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
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["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();
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(!value["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string CreateDevopsProjectSprintResult::getErrorMsg()const
{
return errorMsg_;
}
CreateDevopsProjectSprintResult::Object CreateDevopsProjectSprintResult::getObject()const
{
return object_;
}
std::string CreateDevopsProjectSprintResult::getErrorCode()const
{
return errorCode_;
}
bool CreateDevopsProjectSprintResult::getSuccessful()const
{
return successful_;
}

View File

@@ -0,0 +1,183 @@
/*
* 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_;
}
void CreateDevopsProjectTaskRequest::setNote(const std::string& note)
{
note_ = note;
setBodyParameter("Note", note);
}
std::string CreateDevopsProjectTaskRequest::getVisible()const
{
return visible_;
}
void CreateDevopsProjectTaskRequest::setVisible(const std::string& visible)
{
visible_ = visible;
setBodyParameter("Visible", visible);
}
std::string CreateDevopsProjectTaskRequest::getExecutorId()const
{
return executorId_;
}
void CreateDevopsProjectTaskRequest::setExecutorId(const std::string& executorId)
{
executorId_ = executorId;
setBodyParameter("ExecutorId", executorId);
}
std::string CreateDevopsProjectTaskRequest::getTaskFlowStatusId()const
{
return taskFlowStatusId_;
}
void CreateDevopsProjectTaskRequest::setTaskFlowStatusId(const std::string& taskFlowStatusId)
{
taskFlowStatusId_ = taskFlowStatusId;
setBodyParameter("TaskFlowStatusId", taskFlowStatusId);
}
std::string CreateDevopsProjectTaskRequest::getStartDate()const
{
return startDate_;
}
void CreateDevopsProjectTaskRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setBodyParameter("StartDate", startDate);
}
int CreateDevopsProjectTaskRequest::getPriority()const
{
return priority_;
}
void CreateDevopsProjectTaskRequest::setPriority(int priority)
{
priority_ = priority;
setBodyParameter("Priority", std::to_string(priority));
}
std::string CreateDevopsProjectTaskRequest::getParentTaskId()const
{
return parentTaskId_;
}
void CreateDevopsProjectTaskRequest::setParentTaskId(const std::string& parentTaskId)
{
parentTaskId_ = parentTaskId;
setBodyParameter("ParentTaskId", parentTaskId);
}
std::string CreateDevopsProjectTaskRequest::getOrgId()const
{
return orgId_;
}
void CreateDevopsProjectTaskRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
std::string CreateDevopsProjectTaskRequest::getContent()const
{
return content_;
}
void CreateDevopsProjectTaskRequest::setContent(const std::string& content)
{
content_ = content;
setBodyParameter("Content", content);
}
std::string CreateDevopsProjectTaskRequest::getSprintId()const
{
return sprintId_;
}
void CreateDevopsProjectTaskRequest::setSprintId(const std::string& sprintId)
{
sprintId_ = sprintId;
setBodyParameter("SprintId", sprintId);
}
std::string CreateDevopsProjectTaskRequest::getDueDate()const
{
return dueDate_;
}
void CreateDevopsProjectTaskRequest::setDueDate(const std::string& dueDate)
{
dueDate_ = dueDate;
setBodyParameter("DueDate", dueDate);
}
std::string CreateDevopsProjectTaskRequest::getScenarioFieldConfigId()const
{
return scenarioFieldConfigId_;
}
void CreateDevopsProjectTaskRequest::setScenarioFieldConfigId(const std::string& scenarioFieldConfigId)
{
scenarioFieldConfigId_ = scenarioFieldConfigId;
setBodyParameter("ScenarioFieldConfigId", scenarioFieldConfigId);
}
std::string CreateDevopsProjectTaskRequest::getProjectId()const
{
return projectId_;
}
void CreateDevopsProjectTaskRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string CreateDevopsProjectTaskRequest::getTaskListId()const
{
return taskListId_;
}
void CreateDevopsProjectTaskRequest::setTaskListId(const std::string& taskListId)
{
taskListId_ = taskListId;
setBodyParameter("TaskListId", taskListId);
}

View File

@@ -0,0 +1,121 @@
/*
* 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/CreateDevopsProjectTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
CreateDevopsProjectTaskResult::CreateDevopsProjectTaskResult() :
ServiceResult()
{}
CreateDevopsProjectTaskResult::CreateDevopsProjectTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDevopsProjectTaskResult::~CreateDevopsProjectTaskResult()
{}
void CreateDevopsProjectTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
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["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["Updated"].isNull())
object_.updated = objectNode["Updated"].asString();
if(!objectNode["UniqueId"].isNull())
object_.uniqueId = std::stoi(objectNode["UniqueId"].asString());
if(!objectNode["StartDate"].isNull())
object_.startDate = objectNode["StartDate"].asString();
if(!objectNode["SprintId"].isNull())
object_.sprintId = objectNode["SprintId"].asString();
if(!objectNode["ProjectId"].isNull())
object_.projectId = objectNode["ProjectId"].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();
}
std::string CreateDevopsProjectTaskResult::getErrorMsg()const
{
return errorMsg_;
}
CreateDevopsProjectTaskResult::Object CreateDevopsProjectTaskResult::getObject()const
{
return object_;
}
std::string CreateDevopsProjectTaskResult::getErrorCode()const
{
return errorCode_;
}
bool CreateDevopsProjectTaskResult::getSuccessful()const
{
return successful_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <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_;
}
void DeleteDevopsOrganizationMembersRequest::setRealPk(const std::string& realPk)
{
realPk_ = realPk;
setBodyParameter("RealPk", realPk);
}
std::string DeleteDevopsOrganizationMembersRequest::getUserId()const
{
return userId_;
}
void DeleteDevopsOrganizationMembersRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setBodyParameter("UserId", userId);
}
std::string DeleteDevopsOrganizationMembersRequest::getOrgId()const
{
return orgId_;
}
void DeleteDevopsOrganizationMembersRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/DeleteDevopsOrganizationMembersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
DeleteDevopsOrganizationMembersResult::DeleteDevopsOrganizationMembersResult() :
ServiceResult()
{}
DeleteDevopsOrganizationMembersResult::DeleteDevopsOrganizationMembersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDevopsOrganizationMembersResult::~DeleteDevopsOrganizationMembersResult()
{}
void DeleteDevopsOrganizationMembersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Object"].isNull())
object_ = value["Object"].asString() == "true";
}
bool DeleteDevopsOrganizationMembersResult::getObject()const
{
return object_;
}
std::string DeleteDevopsOrganizationMembersResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteDevopsOrganizationMembersResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteDevopsOrganizationMembersResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <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_;
}
void DeleteDevopsProjectMembersRequest::setUserIds(const std::string& userIds)
{
userIds_ = userIds;
setBodyParameter("UserIds", userIds);
}
std::string DeleteDevopsProjectMembersRequest::getProjectId()const
{
return projectId_;
}
void DeleteDevopsProjectMembersRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string DeleteDevopsProjectMembersRequest::getOrgId()const
{
return orgId_;
}
void DeleteDevopsProjectMembersRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/DeleteDevopsProjectMembersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
DeleteDevopsProjectMembersResult::DeleteDevopsProjectMembersResult() :
ServiceResult()
{}
DeleteDevopsProjectMembersResult::DeleteDevopsProjectMembersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDevopsProjectMembersResult::~DeleteDevopsProjectMembersResult()
{}
void DeleteDevopsProjectMembersResult::parse(const std::string &payload)
{
Json::Reader reader;
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";
}
std::string DeleteDevopsProjectMembersResult::getErrorMsg()const
{
return errorMsg_;
}
bool DeleteDevopsProjectMembersResult::getObject()const
{
return object_;
}
std::string DeleteDevopsProjectMembersResult::getErrorCode()const
{
return errorCode_;
}
bool DeleteDevopsProjectMembersResult::getSuccessful()const
{
return successful_;
}

View 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/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_;
}
void DeleteDevopsProjectRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string DeleteDevopsProjectRequest::getOrgId()const
{
return orgId_;
}
void DeleteDevopsProjectRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/DeleteDevopsProjectResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
DeleteDevopsProjectResult::DeleteDevopsProjectResult() :
ServiceResult()
{}
DeleteDevopsProjectResult::DeleteDevopsProjectResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDevopsProjectResult::~DeleteDevopsProjectResult()
{}
void DeleteDevopsProjectResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Object"].isNull())
object_ = value["Object"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteDevopsProjectResult::getObject()const
{
return object_;
}
std::string DeleteDevopsProjectResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteDevopsProjectResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteDevopsProjectResult::getSuccess()const
{
return success_;
}

View 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/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_;
}
void DeleteDevopsProjectSprintRequest::setSprintId(const std::string& sprintId)
{
sprintId_ = sprintId;
setBodyParameter("SprintId", sprintId);
}
std::string DeleteDevopsProjectSprintRequest::getOrgId()const
{
return orgId_;
}
void DeleteDevopsProjectSprintRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/DeleteDevopsProjectSprintResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
DeleteDevopsProjectSprintResult::DeleteDevopsProjectSprintResult() :
ServiceResult()
{}
DeleteDevopsProjectSprintResult::DeleteDevopsProjectSprintResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDevopsProjectSprintResult::~DeleteDevopsProjectSprintResult()
{}
void DeleteDevopsProjectSprintResult::parse(const std::string &payload)
{
Json::Reader reader;
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";
}
std::string DeleteDevopsProjectSprintResult::getErrorMsg()const
{
return errorMsg_;
}
bool DeleteDevopsProjectSprintResult::getObject()const
{
return object_;
}
std::string DeleteDevopsProjectSprintResult::getErrorCode()const
{
return errorCode_;
}
bool DeleteDevopsProjectSprintResult::getSuccessful()const
{
return successful_;
}

View 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/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_;
}
void DeleteDevopsProjectTaskRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
std::string DeleteDevopsProjectTaskRequest::getTaskId()const
{
return taskId_;
}
void DeleteDevopsProjectTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setBodyParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/DeleteDevopsProjectTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
DeleteDevopsProjectTaskResult::DeleteDevopsProjectTaskResult() :
ServiceResult()
{}
DeleteDevopsProjectTaskResult::DeleteDevopsProjectTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDevopsProjectTaskResult::~DeleteDevopsProjectTaskResult()
{}
void DeleteDevopsProjectTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
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";
}
std::string DeleteDevopsProjectTaskResult::getErrorMsg()const
{
return errorMsg_;
}
bool DeleteDevopsProjectTaskResult::getObject()const
{
return object_;
}
std::string DeleteDevopsProjectTaskResult::getErrorCode()const
{
return errorCode_;
}
bool DeleteDevopsProjectTaskResult::getSuccessful()const
{
return successful_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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_;
}
void GetDevopsOrganizationMembersRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +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/GetDevopsOrganizationMembersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
GetDevopsOrganizationMembersResult::GetDevopsOrganizationMembersResult() :
ServiceResult()
{}
GetDevopsOrganizationMembersResult::GetDevopsOrganizationMembersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDevopsOrganizationMembersResult::~GetDevopsOrganizationMembersResult()
{}
void GetDevopsOrganizationMembersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allObjectNode = value["Object"]["member"];
for (auto valueObjectmember : allObjectNode)
{
Member objectObject;
if(!valueObjectmember["MemberId"].isNull())
objectObject.memberId = valueObjectmember["MemberId"].asString();
if(!valueObjectmember["UserId"].isNull())
objectObject.userId = valueObjectmember["UserId"].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["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string GetDevopsOrganizationMembersResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<GetDevopsOrganizationMembersResult::Member> GetDevopsOrganizationMembersResult::getObject()const
{
return object_;
}
std::string GetDevopsOrganizationMembersResult::getErrorCode()const
{
return errorCode_;
}
bool GetDevopsOrganizationMembersResult::getSuccessful()const
{
return successful_;
}

View 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/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_;
}
void GetDevopsProjectInfoRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string GetDevopsProjectInfoRequest::getOrgId()const
{
return orgId_;
}
void GetDevopsProjectInfoRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,129 @@
/*
* 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/GetDevopsProjectInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
GetDevopsProjectInfoResult::GetDevopsProjectInfoResult() :
ServiceResult()
{}
GetDevopsProjectInfoResult::GetDevopsProjectInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDevopsProjectInfoResult::~GetDevopsProjectInfoResult()
{}
void GetDevopsProjectInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
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["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["Updated"].isNull())
object_.updated = objectNode["Updated"].asString();
if(!objectNode["StartDate"].isNull())
object_.startDate = objectNode["StartDate"].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();
}
std::string GetDevopsProjectInfoResult::getErrorMsg()const
{
return errorMsg_;
}
GetDevopsProjectInfoResult::Object GetDevopsProjectInfoResult::getObject()const
{
return object_;
}
std::string GetDevopsProjectInfoResult::getErrorCode()const
{
return errorCode_;
}
bool GetDevopsProjectInfoResult::getSuccessful()const
{
return successful_;
}

View 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/GetDevopsProjectMembersRequest.h>
using AlibabaCloud::Devops_rdc::Model::GetDevopsProjectMembersRequest;
GetDevopsProjectMembersRequest::GetDevopsProjectMembersRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "GetDevopsProjectMembers")
{
setMethod(HttpRequest::Method::Post);
}
GetDevopsProjectMembersRequest::~GetDevopsProjectMembersRequest()
{}
std::string GetDevopsProjectMembersRequest::getProjectId()const
{
return projectId_;
}
void GetDevopsProjectMembersRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string GetDevopsProjectMembersRequest::getOrgId()const
{
return orgId_;
}
void GetDevopsProjectMembersRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +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/GetDevopsProjectMembersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
GetDevopsProjectMembersResult::GetDevopsProjectMembersResult() :
ServiceResult()
{}
GetDevopsProjectMembersResult::GetDevopsProjectMembersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDevopsProjectMembersResult::~GetDevopsProjectMembersResult()
{}
void GetDevopsProjectMembersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allObjectNode = value["Object"]["Member"];
for (auto valueObjectMember : allObjectNode)
{
Member objectObject;
if(!valueObjectMember["MemberId"].isNull())
objectObject.memberId = valueObjectMember["MemberId"].asString();
if(!valueObjectMember["UserId"].isNull())
objectObject.userId = valueObjectMember["UserId"].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["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string GetDevopsProjectMembersResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<GetDevopsProjectMembersResult::Member> GetDevopsProjectMembersResult::getObject()const
{
return object_;
}
std::string GetDevopsProjectMembersResult::getErrorCode()const
{
return errorCode_;
}
bool GetDevopsProjectMembersResult::getSuccessful()const
{
return successful_;
}

View 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/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_;
}
void GetDevopsProjectSprintInfoRequest::setSprintId(const std::string& sprintId)
{
sprintId_ = sprintId;
setBodyParameter("SprintId", sprintId);
}
std::string GetDevopsProjectSprintInfoRequest::getOrgId()const
{
return orgId_;
}
void GetDevopsProjectSprintInfoRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,100 @@
/*
* 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/GetDevopsProjectSprintInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
GetDevopsProjectSprintInfoResult::GetDevopsProjectSprintInfoResult() :
ServiceResult()
{}
GetDevopsProjectSprintInfoResult::GetDevopsProjectSprintInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDevopsProjectSprintInfoResult::~GetDevopsProjectSprintInfoResult()
{}
void GetDevopsProjectSprintInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto objectNode = value["Object"];
if(!objectNode["Accomplished"].isNull())
object_.accomplished = objectNode["Accomplished"].asString();
if(!objectNode["IsDeleted"].isNull())
object_.isDeleted = objectNode["IsDeleted"].asString() == "true";
if(!objectNode["Created"].isNull())
object_.created = objectNode["Created"].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["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(!value["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string GetDevopsProjectSprintInfoResult::getErrorMsg()const
{
return errorMsg_;
}
GetDevopsProjectSprintInfoResult::Object GetDevopsProjectSprintInfoResult::getObject()const
{
return object_;
}
std::string GetDevopsProjectSprintInfoResult::getErrorCode()const
{
return errorCode_;
}
bool GetDevopsProjectSprintInfoResult::getSuccessful()const
{
return successful_;
}

View 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/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_;
}
void GetDevopsProjectTaskInfoRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
std::string GetDevopsProjectTaskInfoRequest::getTaskId()const
{
return taskId_;
}
void GetDevopsProjectTaskInfoRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setBodyParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,116 @@
/*
* 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/GetDevopsProjectTaskInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
GetDevopsProjectTaskInfoResult::GetDevopsProjectTaskInfoResult() :
ServiceResult()
{}
GetDevopsProjectTaskInfoResult::GetDevopsProjectTaskInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDevopsProjectTaskInfoResult::~GetDevopsProjectTaskInfoResult()
{}
void GetDevopsProjectTaskInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
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["Priority"].isNull())
object_.priority = objectNode["Priority"].asString();
auto allInvolveMembers = objectNode["InvolveMembers"]["InvolveMember"];
for (auto value : allInvolveMembers)
object_.involveMembers.push_back(value.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();
}
std::string GetDevopsProjectTaskInfoResult::getErrorMsg()const
{
return errorMsg_;
}
GetDevopsProjectTaskInfoResult::Object GetDevopsProjectTaskInfoResult::getObject()const
{
return object_;
}
std::string GetDevopsProjectTaskInfoResult::getErrorCode()const
{
return errorCode_;
}
bool GetDevopsProjectTaskInfoResult::getSuccessful()const
{
return successful_;
}

View 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/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_;
}
void GetUserByAliyunUidRequest::setUserPk(const std::string& userPk)
{
userPk_ = userPk;
setBodyParameter("UserPk", userPk);
}
std::string GetUserByAliyunUidRequest::getOrgId()const
{
return orgId_;
}
void GetUserByAliyunUidRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,83 @@
/*
* 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/GetUserByAliyunUidResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
GetUserByAliyunUidResult::GetUserByAliyunUidResult() :
ServiceResult()
{}
GetUserByAliyunUidResult::GetUserByAliyunUidResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserByAliyunUidResult::~GetUserByAliyunUidResult()
{}
void GetUserByAliyunUidResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto objectNode = value["Object"];
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["Successful"].isNull())
successful_ = value["Successful"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
std::string GetUserByAliyunUidResult::getErrorMsg()const
{
return errorMsg_;
}
GetUserByAliyunUidResult::Object GetUserByAliyunUidResult::getObject()const
{
return object_;
}
std::string GetUserByAliyunUidResult::getErrorCode()const
{
return errorCode_;
}
bool GetUserByAliyunUidResult::getSuccessful()const
{
return successful_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/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_;
}
void InsertDevopsUserRequest::setPhone(const std::string& phone)
{
phone_ = phone;
setBodyParameter("Phone", phone);
}
std::string InsertDevopsUserRequest::getUserPk()const
{
return userPk_;
}
void InsertDevopsUserRequest::setUserPk(const std::string& userPk)
{
userPk_ = userPk;
setBodyParameter("UserPk", userPk);
}
std::string InsertDevopsUserRequest::getEmail()const
{
return email_;
}
void InsertDevopsUserRequest::setEmail(const std::string& email)
{
email_ = email;
setBodyParameter("Email", email);
}
std::string InsertDevopsUserRequest::getUserName()const
{
return userName_;
}
void InsertDevopsUserRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setBodyParameter("UserName", userName);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/InsertDevopsUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
InsertDevopsUserResult::InsertDevopsUserResult() :
ServiceResult()
{}
InsertDevopsUserResult::InsertDevopsUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InsertDevopsUserResult::~InsertDevopsUserResult()
{}
void InsertDevopsUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Object"].isNull())
object_ = value["Object"].asString();
}
std::string InsertDevopsUserResult::getObject()const
{
return object_;
}
std::string InsertDevopsUserResult::getErrorCode()const
{
return errorCode_;
}
std::string InsertDevopsUserResult::getErrorMessage()const
{
return errorMessage_;
}
bool InsertDevopsUserResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <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_;
}
void InsertProjectMembersRequest::setMembers(const std::string& members)
{
members_ = members;
setBodyParameter("Members", members);
}
std::string InsertProjectMembersRequest::getProjectId()const
{
return projectId_;
}
void InsertProjectMembersRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string InsertProjectMembersRequest::getOrgId()const
{
return orgId_;
}
void InsertProjectMembersRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/InsertProjectMembersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
InsertProjectMembersResult::InsertProjectMembersResult() :
ServiceResult()
{}
InsertProjectMembersResult::InsertProjectMembersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InsertProjectMembersResult::~InsertProjectMembersResult()
{}
void InsertProjectMembersResult::parse(const std::string &payload)
{
Json::Reader reader;
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";
}
std::string InsertProjectMembersResult::getErrorMsg()const
{
return errorMsg_;
}
bool InsertProjectMembersResult::getObject()const
{
return object_;
}
std::string InsertProjectMembersResult::getErrorCode()const
{
return errorCode_;
}
bool InsertProjectMembersResult::getSuccessful()const
{
return successful_;
}

View 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/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_;
}
void ListDevopsProjectSprintsRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string ListDevopsProjectSprintsRequest::getOrgId()const
{
return orgId_;
}
void ListDevopsProjectSprintsRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,105 @@
/*
* 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/ListDevopsProjectSprintsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
ListDevopsProjectSprintsResult::ListDevopsProjectSprintsResult() :
ServiceResult()
{}
ListDevopsProjectSprintsResult::ListDevopsProjectSprintsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDevopsProjectSprintsResult::~ListDevopsProjectSprintsResult()
{}
void ListDevopsProjectSprintsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allObjectNode = value["Object"]["Sprint"];
for (auto valueObjectSprint : allObjectNode)
{
Sprint objectObject;
if(!valueObjectSprint["Accomplished"].isNull())
objectObject.accomplished = valueObjectSprint["Accomplished"].asString();
if(!valueObjectSprint["IsDeleted"].isNull())
objectObject.isDeleted = valueObjectSprint["IsDeleted"].asString() == "true";
if(!valueObjectSprint["Created"].isNull())
objectObject.created = valueObjectSprint["Created"].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["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());
object_.push_back(objectObject);
}
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();
}
std::string ListDevopsProjectSprintsResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListDevopsProjectSprintsResult::Sprint> ListDevopsProjectSprintsResult::getObject()const
{
return object_;
}
std::string ListDevopsProjectSprintsResult::getErrorCode()const
{
return errorCode_;
}
bool ListDevopsProjectSprintsResult::getSuccessful()const
{
return successful_;
}

View 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/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_;
}
void ListDevopsProjectTaskFlowRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string ListDevopsProjectTaskFlowRequest::getOrgId()const
{
return orgId_;
}
void ListDevopsProjectTaskFlowRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/ListDevopsProjectTaskFlowResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
ListDevopsProjectTaskFlowResult::ListDevopsProjectTaskFlowResult() :
ServiceResult()
{}
ListDevopsProjectTaskFlowResult::ListDevopsProjectTaskFlowResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDevopsProjectTaskFlowResult::~ListDevopsProjectTaskFlowResult()
{}
void ListDevopsProjectTaskFlowResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allObjectNode = value["Object"]["Taskflow"];
for (auto valueObjectTaskflow : allObjectNode)
{
Taskflow objectObject;
if(!valueObjectTaskflow["Id"].isNull())
objectObject.id = valueObjectTaskflow["Id"].asString();
if(!valueObjectTaskflow["Type"].isNull())
objectObject.type = valueObjectTaskflow["Type"].asString();
object_.push_back(objectObject);
}
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();
}
std::string ListDevopsProjectTaskFlowResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListDevopsProjectTaskFlowResult::Taskflow> ListDevopsProjectTaskFlowResult::getObject()const
{
return object_;
}
std::string ListDevopsProjectTaskFlowResult::getErrorCode()const
{
return errorCode_;
}
bool ListDevopsProjectTaskFlowResult::getSuccessful()const
{
return successful_;
}

View 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/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_;
}
void ListDevopsProjectTaskFlowStatusRequest::setTaskFlowId(const std::string& taskFlowId)
{
taskFlowId_ = taskFlowId;
setBodyParameter("TaskFlowId", taskFlowId);
}
std::string ListDevopsProjectTaskFlowStatusRequest::getOrgId()const
{
return orgId_;
}
void ListDevopsProjectTaskFlowStatusRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,96 @@
/*
* 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/ListDevopsProjectTaskFlowStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
ListDevopsProjectTaskFlowStatusResult::ListDevopsProjectTaskFlowStatusResult() :
ServiceResult()
{}
ListDevopsProjectTaskFlowStatusResult::ListDevopsProjectTaskFlowStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDevopsProjectTaskFlowStatusResult::~ListDevopsProjectTaskFlowStatusResult()
{}
void ListDevopsProjectTaskFlowStatusResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allObjectNode = value["Object"]["taskflowStatus"];
for (auto valueObjecttaskflowStatus : allObjectNode)
{
TaskflowStatus objectObject;
if(!valueObjecttaskflowStatus["IsDeleted"].isNull())
objectObject.isDeleted = valueObjecttaskflowStatus["IsDeleted"].asString() == "true";
if(!valueObjecttaskflowStatus["RejectStatusIds"].isNull())
objectObject.rejectStatusIds = valueObjecttaskflowStatus["RejectStatusIds"].asString();
if(!valueObjecttaskflowStatus["Pos"].isNull())
objectObject.pos = std::stoi(valueObjecttaskflowStatus["Pos"].asString());
if(!valueObjecttaskflowStatus["Kind"].isNull())
objectObject.kind = valueObjecttaskflowStatus["Kind"].asString();
if(!valueObjecttaskflowStatus["Created"].isNull())
objectObject.created = valueObjecttaskflowStatus["Created"].asString();
if(!valueObjecttaskflowStatus["TaskflowId"].isNull())
objectObject.taskflowId = valueObjecttaskflowStatus["TaskflowId"].asString();
if(!valueObjecttaskflowStatus["Name"].isNull())
objectObject.name = valueObjecttaskflowStatus["Name"].asString();
if(!valueObjecttaskflowStatus["CreatorId"].isNull())
objectObject.creatorId = valueObjecttaskflowStatus["CreatorId"].asString();
if(!valueObjecttaskflowStatus["Id"].isNull())
objectObject.id = valueObjecttaskflowStatus["Id"].asString();
if(!valueObjecttaskflowStatus["Updated"].isNull())
objectObject.updated = valueObjecttaskflowStatus["Updated"].asString();
object_.push_back(objectObject);
}
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();
}
std::string ListDevopsProjectTaskFlowStatusResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListDevopsProjectTaskFlowStatusResult::TaskflowStatus> ListDevopsProjectTaskFlowStatusResult::getObject()const
{
return object_;
}
std::string ListDevopsProjectTaskFlowStatusResult::getErrorCode()const
{
return errorCode_;
}
bool ListDevopsProjectTaskFlowStatusResult::getSuccessful()const
{
return successful_;
}

View 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/ListDevopsProjectTasksRequest.h>
using AlibabaCloud::Devops_rdc::Model::ListDevopsProjectTasksRequest;
ListDevopsProjectTasksRequest::ListDevopsProjectTasksRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "ListDevopsProjectTasks")
{
setMethod(HttpRequest::Method::Post);
}
ListDevopsProjectTasksRequest::~ListDevopsProjectTasksRequest()
{}
std::string ListDevopsProjectTasksRequest::getProjectIds()const
{
return projectIds_;
}
void ListDevopsProjectTasksRequest::setProjectIds(const std::string& projectIds)
{
projectIds_ = projectIds;
setBodyParameter("ProjectIds", projectIds);
}
std::string ListDevopsProjectTasksRequest::getOrgId()const
{
return orgId_;
}
void ListDevopsProjectTasksRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,94 @@
/*
* 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/ListDevopsProjectTasksResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
ListDevopsProjectTasksResult::ListDevopsProjectTasksResult() :
ServiceResult()
{}
ListDevopsProjectTasksResult::ListDevopsProjectTasksResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDevopsProjectTasksResult::~ListDevopsProjectTasksResult()
{}
void ListDevopsProjectTasksResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allObjectNode = value["Object"]["Task"];
for (auto valueObjectTask : allObjectNode)
{
Task objectObject;
if(!valueObjectTask["TasklistId"].isNull())
objectObject.tasklistId = valueObjectTask["TasklistId"].asString();
if(!valueObjectTask["ProjectId"].isNull())
objectObject.projectId = valueObjectTask["ProjectId"].asString();
if(!valueObjectTask["TaskgroupId"].isNull())
objectObject.taskgroupId = valueObjectTask["TaskgroupId"].asString();
if(!valueObjectTask["Name"].isNull())
objectObject.name = valueObjectTask["Name"].asString();
if(!valueObjectTask["CreatorId"].isNull())
objectObject.creatorId = valueObjectTask["CreatorId"].asString();
if(!valueObjectTask["Created"].isNull())
objectObject.created = valueObjectTask["Created"].asString();
if(!valueObjectTask["ModifierId"].isNull())
objectObject.modifierId = valueObjectTask["ModifierId"].asString();
if(!valueObjectTask["Updated"].isNull())
objectObject.updated = valueObjectTask["Updated"].asString();
if(!valueObjectTask["Id"].isNull())
objectObject.id = valueObjectTask["Id"].asString();
object_.push_back(objectObject);
}
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();
}
std::string ListDevopsProjectTasksResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListDevopsProjectTasksResult::Task> ListDevopsProjectTasksResult::getObject()const
{
return object_;
}
std::string ListDevopsProjectTasksResult::getErrorCode()const
{
return errorCode_;
}
bool ListDevopsProjectTasksResult::getSuccessful()const
{
return successful_;
}

View 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/ListDevopsScenarioFieldConfigRequest.h>
using AlibabaCloud::Devops_rdc::Model::ListDevopsScenarioFieldConfigRequest;
ListDevopsScenarioFieldConfigRequest::ListDevopsScenarioFieldConfigRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "ListDevopsScenarioFieldConfig")
{
setMethod(HttpRequest::Method::Post);
}
ListDevopsScenarioFieldConfigRequest::~ListDevopsScenarioFieldConfigRequest()
{}
std::string ListDevopsScenarioFieldConfigRequest::getProjectId()const
{
return projectId_;
}
void ListDevopsScenarioFieldConfigRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string ListDevopsScenarioFieldConfigRequest::getOrgId()const
{
return orgId_;
}
void ListDevopsScenarioFieldConfigRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,80 @@
/*
* 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/ListDevopsScenarioFieldConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
ListDevopsScenarioFieldConfigResult::ListDevopsScenarioFieldConfigResult() :
ServiceResult()
{}
ListDevopsScenarioFieldConfigResult::ListDevopsScenarioFieldConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDevopsScenarioFieldConfigResult::~ListDevopsScenarioFieldConfigResult()
{}
void ListDevopsScenarioFieldConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allObjectNode = value["Object"]["ScenarioFieldConfig"];
for (auto valueObjectScenarioFieldConfig : allObjectNode)
{
ScenarioFieldConfig objectObject;
if(!valueObjectScenarioFieldConfig["Id"].isNull())
objectObject.id = valueObjectScenarioFieldConfig["Id"].asString();
if(!valueObjectScenarioFieldConfig["Type"].isNull())
objectObject.type = valueObjectScenarioFieldConfig["Type"].asString();
object_.push_back(objectObject);
}
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();
}
std::string ListDevopsScenarioFieldConfigResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListDevopsScenarioFieldConfigResult::ScenarioFieldConfig> ListDevopsScenarioFieldConfigResult::getObject()const
{
return object_;
}
std::string ListDevopsScenarioFieldConfigResult::getErrorCode()const
{
return errorCode_;
}
bool ListDevopsScenarioFieldConfigResult::getSuccessful()const
{
return successful_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/UpdateDevopsProjectRequest.h>
using AlibabaCloud::Devops_rdc::Model::UpdateDevopsProjectRequest;
UpdateDevopsProjectRequest::UpdateDevopsProjectRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "UpdateDevopsProject")
{
setMethod(HttpRequest::Method::Post);
}
UpdateDevopsProjectRequest::~UpdateDevopsProjectRequest()
{}
std::string UpdateDevopsProjectRequest::getName()const
{
return name_;
}
void UpdateDevopsProjectRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string UpdateDevopsProjectRequest::getDescription()const
{
return description_;
}
void UpdateDevopsProjectRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
std::string UpdateDevopsProjectRequest::getProjectId()const
{
return projectId_;
}
void UpdateDevopsProjectRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string UpdateDevopsProjectRequest::getOrgId()const
{
return orgId_;
}
void UpdateDevopsProjectRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/UpdateDevopsProjectResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
UpdateDevopsProjectResult::UpdateDevopsProjectResult() :
ServiceResult()
{}
UpdateDevopsProjectResult::UpdateDevopsProjectResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateDevopsProjectResult::~UpdateDevopsProjectResult()
{}
void UpdateDevopsProjectResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Object"].isNull())
object_ = value["Object"].asString();
}
std::string UpdateDevopsProjectResult::getObject()const
{
return object_;
}
std::string UpdateDevopsProjectResult::getErrorCode()const
{
return errorCode_;
}
std::string UpdateDevopsProjectResult::getErrorMessage()const
{
return errorMessage_;
}
bool UpdateDevopsProjectResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/UpdateDevopsProjectSprintRequest.h>
using AlibabaCloud::Devops_rdc::Model::UpdateDevopsProjectSprintRequest;
UpdateDevopsProjectSprintRequest::UpdateDevopsProjectSprintRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "UpdateDevopsProjectSprint")
{
setMethod(HttpRequest::Method::Post);
}
UpdateDevopsProjectSprintRequest::~UpdateDevopsProjectSprintRequest()
{}
std::string UpdateDevopsProjectSprintRequest::getExecutorId()const
{
return executorId_;
}
void UpdateDevopsProjectSprintRequest::setExecutorId(const std::string& executorId)
{
executorId_ = executorId;
setBodyParameter("ExecutorId", executorId);
}
std::string UpdateDevopsProjectSprintRequest::getDescription()const
{
return description_;
}
void UpdateDevopsProjectSprintRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
std::string UpdateDevopsProjectSprintRequest::getStartDate()const
{
return startDate_;
}
void UpdateDevopsProjectSprintRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setBodyParameter("StartDate", startDate);
}
std::string UpdateDevopsProjectSprintRequest::getOrgId()const
{
return orgId_;
}
void UpdateDevopsProjectSprintRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
std::string UpdateDevopsProjectSprintRequest::getSprintId()const
{
return sprintId_;
}
void UpdateDevopsProjectSprintRequest::setSprintId(const std::string& sprintId)
{
sprintId_ = sprintId;
setBodyParameter("SprintId", sprintId);
}
std::string UpdateDevopsProjectSprintRequest::getDueDate()const
{
return dueDate_;
}
void UpdateDevopsProjectSprintRequest::setDueDate(const std::string& dueDate)
{
dueDate_ = dueDate;
setBodyParameter("DueDate", dueDate);
}
std::string UpdateDevopsProjectSprintRequest::getName()const
{
return name_;
}
void UpdateDevopsProjectSprintRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string UpdateDevopsProjectSprintRequest::getProjectId()const
{
return projectId_;
}
void UpdateDevopsProjectSprintRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/UpdateDevopsProjectSprintResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
UpdateDevopsProjectSprintResult::UpdateDevopsProjectSprintResult() :
ServiceResult()
{}
UpdateDevopsProjectSprintResult::UpdateDevopsProjectSprintResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateDevopsProjectSprintResult::~UpdateDevopsProjectSprintResult()
{}
void UpdateDevopsProjectSprintResult::parse(const std::string &payload)
{
Json::Reader reader;
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";
}
std::string UpdateDevopsProjectSprintResult::getErrorMsg()const
{
return errorMsg_;
}
bool UpdateDevopsProjectSprintResult::getObject()const
{
return object_;
}
std::string UpdateDevopsProjectSprintResult::getErrorCode()const
{
return errorCode_;
}
bool UpdateDevopsProjectSprintResult::getSuccessful()const
{
return successful_;
}

View File

@@ -0,0 +1,183 @@
/*
* 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/UpdateDevopsProjectTaskRequest.h>
using AlibabaCloud::Devops_rdc::Model::UpdateDevopsProjectTaskRequest;
UpdateDevopsProjectTaskRequest::UpdateDevopsProjectTaskRequest() :
RpcServiceRequest("devops-rdc", "2020-03-03", "UpdateDevopsProjectTask")
{
setMethod(HttpRequest::Method::Post);
}
UpdateDevopsProjectTaskRequest::~UpdateDevopsProjectTaskRequest()
{}
std::string UpdateDevopsProjectTaskRequest::getNote()const
{
return note_;
}
void UpdateDevopsProjectTaskRequest::setNote(const std::string& note)
{
note_ = note;
setBodyParameter("Note", note);
}
std::string UpdateDevopsProjectTaskRequest::getVisible()const
{
return visible_;
}
void UpdateDevopsProjectTaskRequest::setVisible(const std::string& visible)
{
visible_ = visible;
setBodyParameter("Visible", visible);
}
std::string UpdateDevopsProjectTaskRequest::getExecutorId()const
{
return executorId_;
}
void UpdateDevopsProjectTaskRequest::setExecutorId(const std::string& executorId)
{
executorId_ = executorId;
setBodyParameter("ExecutorId", executorId);
}
std::string UpdateDevopsProjectTaskRequest::getTaskFlowStatusId()const
{
return taskFlowStatusId_;
}
void UpdateDevopsProjectTaskRequest::setTaskFlowStatusId(const std::string& taskFlowStatusId)
{
taskFlowStatusId_ = taskFlowStatusId;
setBodyParameter("TaskFlowStatusId", taskFlowStatusId);
}
std::string UpdateDevopsProjectTaskRequest::getScenarioFiieldConfigId()const
{
return scenarioFiieldConfigId_;
}
void UpdateDevopsProjectTaskRequest::setScenarioFiieldConfigId(const std::string& scenarioFiieldConfigId)
{
scenarioFiieldConfigId_ = scenarioFiieldConfigId;
setBodyParameter("ScenarioFiieldConfigId", scenarioFiieldConfigId);
}
std::string UpdateDevopsProjectTaskRequest::getStartDate()const
{
return startDate_;
}
void UpdateDevopsProjectTaskRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setBodyParameter("StartDate", startDate);
}
int UpdateDevopsProjectTaskRequest::getPriority()const
{
return priority_;
}
void UpdateDevopsProjectTaskRequest::setPriority(int priority)
{
priority_ = priority;
setBodyParameter("Priority", std::to_string(priority));
}
std::string UpdateDevopsProjectTaskRequest::getParentTaskId()const
{
return parentTaskId_;
}
void UpdateDevopsProjectTaskRequest::setParentTaskId(const std::string& parentTaskId)
{
parentTaskId_ = parentTaskId;
setBodyParameter("ParentTaskId", parentTaskId);
}
std::string UpdateDevopsProjectTaskRequest::getOrgId()const
{
return orgId_;
}
void UpdateDevopsProjectTaskRequest::setOrgId(const std::string& orgId)
{
orgId_ = orgId;
setBodyParameter("OrgId", orgId);
}
std::string UpdateDevopsProjectTaskRequest::getContent()const
{
return content_;
}
void UpdateDevopsProjectTaskRequest::setContent(const std::string& content)
{
content_ = content;
setBodyParameter("Content", content);
}
std::string UpdateDevopsProjectTaskRequest::getSprintId()const
{
return sprintId_;
}
void UpdateDevopsProjectTaskRequest::setSprintId(const std::string& sprintId)
{
sprintId_ = sprintId;
setBodyParameter("SprintId", sprintId);
}
std::string UpdateDevopsProjectTaskRequest::getDueDate()const
{
return dueDate_;
}
void UpdateDevopsProjectTaskRequest::setDueDate(const std::string& dueDate)
{
dueDate_ = dueDate;
setBodyParameter("DueDate", dueDate);
}
std::string UpdateDevopsProjectTaskRequest::getProjectId()const
{
return projectId_;
}
void UpdateDevopsProjectTaskRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setBodyParameter("ProjectId", projectId);
}
std::string UpdateDevopsProjectTaskRequest::getTaskId()const
{
return taskId_;
}
void UpdateDevopsProjectTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setBodyParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/devops-rdc/model/UpdateDevopsProjectTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Devops_rdc;
using namespace AlibabaCloud::Devops_rdc::Model;
UpdateDevopsProjectTaskResult::UpdateDevopsProjectTaskResult() :
ServiceResult()
{}
UpdateDevopsProjectTaskResult::UpdateDevopsProjectTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateDevopsProjectTaskResult::~UpdateDevopsProjectTaskResult()
{}
void UpdateDevopsProjectTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
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";
}
std::string UpdateDevopsProjectTaskResult::getErrorMsg()const
{
return errorMsg_;
}
bool UpdateDevopsProjectTaskResult::getObject()const
{
return object_;
}
std::string UpdateDevopsProjectTaskResult::getErrorCode()const
{
return errorCode_;
}
bool UpdateDevopsProjectTaskResult::getSuccessful()const
{
return successful_;
}