Add update task api.
This commit is contained in:
@@ -118,6 +118,8 @@
|
||||
#include "model/ListDevopsScenarioFieldConfigResult.h"
|
||||
#include "model/ListPipelinesRequest.h"
|
||||
#include "model/ListPipelinesResult.h"
|
||||
#include "model/ListProjectCustomFieldsRequest.h"
|
||||
#include "model/ListProjectCustomFieldsResult.h"
|
||||
#include "model/ListServiceConnectionsRequest.h"
|
||||
#include "model/ListServiceConnectionsResult.h"
|
||||
#include "model/ListSmartGroupRequest.h"
|
||||
@@ -136,6 +138,8 @@
|
||||
#include "model/UpdateDevopsProjectTaskResult.h"
|
||||
#include "model/UpdatePipelineMemberRequest.h"
|
||||
#include "model/UpdatePipelineMemberResult.h"
|
||||
#include "model/UpdateTaskDetailRequest.h"
|
||||
#include "model/UpdateTaskDetailResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -289,6 +293,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListPipelinesResult> ListPipelinesOutcome;
|
||||
typedef std::future<ListPipelinesOutcome> ListPipelinesOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::ListPipelinesRequest&, const ListPipelinesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPipelinesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListProjectCustomFieldsResult> ListProjectCustomFieldsOutcome;
|
||||
typedef std::future<ListProjectCustomFieldsOutcome> ListProjectCustomFieldsOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::ListProjectCustomFieldsRequest&, const ListProjectCustomFieldsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProjectCustomFieldsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListServiceConnectionsResult> ListServiceConnectionsOutcome;
|
||||
typedef std::future<ListServiceConnectionsOutcome> ListServiceConnectionsOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::ListServiceConnectionsRequest&, const ListServiceConnectionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListServiceConnectionsAsyncHandler;
|
||||
@@ -316,6 +323,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdatePipelineMemberResult> UpdatePipelineMemberOutcome;
|
||||
typedef std::future<UpdatePipelineMemberOutcome> UpdatePipelineMemberOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::UpdatePipelineMemberRequest&, const UpdatePipelineMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePipelineMemberAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateTaskDetailResult> UpdateTaskDetailOutcome;
|
||||
typedef std::future<UpdateTaskDetailOutcome> UpdateTaskDetailOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::UpdateTaskDetailRequest&, const UpdateTaskDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateTaskDetailAsyncHandler;
|
||||
|
||||
Devops_rdcClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
Devops_rdcClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -465,6 +475,9 @@ namespace AlibabaCloud
|
||||
ListPipelinesOutcome listPipelines(const Model::ListPipelinesRequest &request)const;
|
||||
void listPipelinesAsync(const Model::ListPipelinesRequest& request, const ListPipelinesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPipelinesOutcomeCallable listPipelinesCallable(const Model::ListPipelinesRequest& request) const;
|
||||
ListProjectCustomFieldsOutcome listProjectCustomFields(const Model::ListProjectCustomFieldsRequest &request)const;
|
||||
void listProjectCustomFieldsAsync(const Model::ListProjectCustomFieldsRequest& request, const ListProjectCustomFieldsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProjectCustomFieldsOutcomeCallable listProjectCustomFieldsCallable(const Model::ListProjectCustomFieldsRequest& request) const;
|
||||
ListServiceConnectionsOutcome listServiceConnections(const Model::ListServiceConnectionsRequest &request)const;
|
||||
void listServiceConnectionsAsync(const Model::ListServiceConnectionsRequest& request, const ListServiceConnectionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListServiceConnectionsOutcomeCallable listServiceConnectionsCallable(const Model::ListServiceConnectionsRequest& request) const;
|
||||
@@ -492,6 +505,9 @@ namespace AlibabaCloud
|
||||
UpdatePipelineMemberOutcome updatePipelineMember(const Model::UpdatePipelineMemberRequest &request)const;
|
||||
void updatePipelineMemberAsync(const Model::UpdatePipelineMemberRequest& request, const UpdatePipelineMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdatePipelineMemberOutcomeCallable updatePipelineMemberCallable(const Model::UpdatePipelineMemberRequest& request) const;
|
||||
UpdateTaskDetailOutcome updateTaskDetail(const Model::UpdateTaskDetailRequest &request)const;
|
||||
void updateTaskDetailAsync(const Model::UpdateTaskDetailRequest& request, const UpdateTaskDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateTaskDetailOutcomeCallable updateTaskDetailCallable(const Model::UpdateTaskDetailRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -128,6 +128,7 @@ namespace AlibabaCloud
|
||||
std::string accomplished;
|
||||
std::string taskId;
|
||||
std::string parent;
|
||||
std::string taskUniqueId;
|
||||
std::string sourceId;
|
||||
int rating;
|
||||
std::string taskListId;
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTPROJECTCUSTOMFIELDSREQUEST_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTPROJECTCUSTOMFIELDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListProjectCustomFieldsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListProjectCustomFieldsRequest();
|
||||
~ListProjectCustomFieldsRequest();
|
||||
|
||||
std::string getProjectId()const;
|
||||
void setProjectId(const std::string& projectId);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
|
||||
private:
|
||||
std::string projectId_;
|
||||
std::string orgId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTPROJECTCUSTOMFIELDSREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTPROJECTCUSTOMFIELDSRESULT_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTPROJECTCUSTOMFIELDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT ListProjectCustomFieldsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct CustomField
|
||||
{
|
||||
struct Value
|
||||
{
|
||||
std::string value;
|
||||
std::string id;
|
||||
};
|
||||
std::string type;
|
||||
std::vector<CustomField::Value> values;
|
||||
std::string customFieldId;
|
||||
std::string subtype;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
ListProjectCustomFieldsResult();
|
||||
explicit ListProjectCustomFieldsResult(const std::string &payload);
|
||||
~ListProjectCustomFieldsResult();
|
||||
std::string getErrorMsg()const;
|
||||
std::vector<CustomField> getObject()const;
|
||||
std::string getErrorCode()const;
|
||||
bool getSuccessful()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMsg_;
|
||||
std::vector<CustomField> object_;
|
||||
std::string errorCode_;
|
||||
bool successful_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_LISTPROJECTCUSTOMFIELDSRESULT_H_
|
||||
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATETASKDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATETASKDETAILREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT UpdateTaskDetailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateTaskDetailRequest();
|
||||
~UpdateTaskDetailRequest();
|
||||
|
||||
std::string getNote()const;
|
||||
void setNote(const std::string& note);
|
||||
std::string getExecutorId()const;
|
||||
void setExecutorId(const std::string& executorId);
|
||||
std::string getStartDate()const;
|
||||
void setStartDate(const std::string& startDate);
|
||||
std::string getDelInvolvers()const;
|
||||
void setDelInvolvers(const std::string& delInvolvers);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getSprintId()const;
|
||||
void setSprintId(const std::string& sprintId);
|
||||
std::string getCustomFieldId()const;
|
||||
void setCustomFieldId(const std::string& customFieldId);
|
||||
std::string getProjectId()const;
|
||||
void setProjectId(const std::string& projectId);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
std::string getTaskFlowStatusId()const;
|
||||
void setTaskFlowStatusId(const std::string& taskFlowStatusId);
|
||||
std::string getTagIds()const;
|
||||
void setTagIds(const std::string& tagIds);
|
||||
std::string getAddInvolvers()const;
|
||||
void setAddInvolvers(const std::string& addInvolvers);
|
||||
long getPriority()const;
|
||||
void setPriority(long priority);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
std::string getDueDate()const;
|
||||
void setDueDate(const std::string& dueDate);
|
||||
long getWorkTimes()const;
|
||||
void setWorkTimes(long workTimes);
|
||||
std::string getStoryPoint()const;
|
||||
void setStoryPoint(const std::string& storyPoint);
|
||||
std::string getCustomFieldValues()const;
|
||||
void setCustomFieldValues(const std::string& customFieldValues);
|
||||
|
||||
private:
|
||||
std::string note_;
|
||||
std::string executorId_;
|
||||
std::string startDate_;
|
||||
std::string delInvolvers_;
|
||||
std::string content_;
|
||||
std::string sprintId_;
|
||||
std::string customFieldId_;
|
||||
std::string projectId_;
|
||||
std::string taskId_;
|
||||
std::string taskFlowStatusId_;
|
||||
std::string tagIds_;
|
||||
std::string addInvolvers_;
|
||||
long priority_;
|
||||
std::string orgId_;
|
||||
std::string dueDate_;
|
||||
long workTimes_;
|
||||
std::string storyPoint_;
|
||||
std::string customFieldValues_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATETASKDETAILREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATETASKDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATETASKDETAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/devops-rdc/Devops_rdcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Devops_rdc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DEVOPS_RDC_EXPORT UpdateTaskDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateTaskDetailResult();
|
||||
explicit UpdateTaskDetailResult(const std::string &payload);
|
||||
~UpdateTaskDetailResult();
|
||||
std::string getErrorMsg()const;
|
||||
bool getObject()const;
|
||||
std::string getErrorCode()const;
|
||||
bool getSuccessful()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorMsg_;
|
||||
bool object_;
|
||||
std::string errorCode_;
|
||||
bool successful_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_UPDATETASKDETAILRESULT_H_
|
||||
Reference in New Issue
Block a user