Support show pipeline history.
This commit is contained in:
@@ -70,6 +70,8 @@
|
||||
#include "model/GetDevopsProjectSprintInfoResult.h"
|
||||
#include "model/GetDevopsProjectTaskInfoRequest.h"
|
||||
#include "model/GetDevopsProjectTaskInfoResult.h"
|
||||
#include "model/GetPipelineInstHistoryRequest.h"
|
||||
#include "model/GetPipelineInstHistoryResult.h"
|
||||
#include "model/GetPipelineInstanceBuildNumberStatusRequest.h"
|
||||
#include "model/GetPipelineInstanceBuildNumberStatusResult.h"
|
||||
#include "model/GetPipelineInstanceGroupStatusRequest.h"
|
||||
@@ -80,6 +82,8 @@
|
||||
#include "model/GetPipelineInstanceStatusResult.h"
|
||||
#include "model/GetPipelineLogRequest.h"
|
||||
#include "model/GetPipelineLogResult.h"
|
||||
#include "model/GetPipelineStepLogRequest.h"
|
||||
#include "model/GetPipelineStepLogResult.h"
|
||||
#include "model/GetPipleineLatestInstanceStatusRequest.h"
|
||||
#include "model/GetPipleineLatestInstanceStatusResult.h"
|
||||
#include "model/GetProjectOptionRequest.h"
|
||||
@@ -221,6 +225,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetDevopsProjectTaskInfoResult> GetDevopsProjectTaskInfoOutcome;
|
||||
typedef std::future<GetDevopsProjectTaskInfoOutcome> GetDevopsProjectTaskInfoOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::GetDevopsProjectTaskInfoRequest&, const GetDevopsProjectTaskInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDevopsProjectTaskInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPipelineInstHistoryResult> GetPipelineInstHistoryOutcome;
|
||||
typedef std::future<GetPipelineInstHistoryOutcome> GetPipelineInstHistoryOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineInstHistoryRequest&, const GetPipelineInstHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineInstHistoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPipelineInstanceBuildNumberStatusResult> GetPipelineInstanceBuildNumberStatusOutcome;
|
||||
typedef std::future<GetPipelineInstanceBuildNumberStatusOutcome> GetPipelineInstanceBuildNumberStatusOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineInstanceBuildNumberStatusRequest&, const GetPipelineInstanceBuildNumberStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineInstanceBuildNumberStatusAsyncHandler;
|
||||
@@ -236,6 +243,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetPipelineLogResult> GetPipelineLogOutcome;
|
||||
typedef std::future<GetPipelineLogOutcome> GetPipelineLogOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineLogRequest&, const GetPipelineLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPipelineStepLogResult> GetPipelineStepLogOutcome;
|
||||
typedef std::future<GetPipelineStepLogOutcome> GetPipelineStepLogOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipelineStepLogRequest&, const GetPipelineStepLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipelineStepLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPipleineLatestInstanceStatusResult> GetPipleineLatestInstanceStatusOutcome;
|
||||
typedef std::future<GetPipleineLatestInstanceStatusOutcome> GetPipleineLatestInstanceStatusOutcomeCallable;
|
||||
typedef std::function<void(const Devops_rdcClient*, const Model::GetPipleineLatestInstanceStatusRequest&, const GetPipleineLatestInstanceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPipleineLatestInstanceStatusAsyncHandler;
|
||||
@@ -403,6 +413,9 @@ namespace AlibabaCloud
|
||||
GetDevopsProjectTaskInfoOutcome getDevopsProjectTaskInfo(const Model::GetDevopsProjectTaskInfoRequest &request)const;
|
||||
void getDevopsProjectTaskInfoAsync(const Model::GetDevopsProjectTaskInfoRequest& request, const GetDevopsProjectTaskInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDevopsProjectTaskInfoOutcomeCallable getDevopsProjectTaskInfoCallable(const Model::GetDevopsProjectTaskInfoRequest& request) const;
|
||||
GetPipelineInstHistoryOutcome getPipelineInstHistory(const Model::GetPipelineInstHistoryRequest &request)const;
|
||||
void getPipelineInstHistoryAsync(const Model::GetPipelineInstHistoryRequest& request, const GetPipelineInstHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPipelineInstHistoryOutcomeCallable getPipelineInstHistoryCallable(const Model::GetPipelineInstHistoryRequest& request) const;
|
||||
GetPipelineInstanceBuildNumberStatusOutcome getPipelineInstanceBuildNumberStatus(const Model::GetPipelineInstanceBuildNumberStatusRequest &request)const;
|
||||
void getPipelineInstanceBuildNumberStatusAsync(const Model::GetPipelineInstanceBuildNumberStatusRequest& request, const GetPipelineInstanceBuildNumberStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPipelineInstanceBuildNumberStatusOutcomeCallable getPipelineInstanceBuildNumberStatusCallable(const Model::GetPipelineInstanceBuildNumberStatusRequest& request) const;
|
||||
@@ -418,6 +431,9 @@ namespace AlibabaCloud
|
||||
GetPipelineLogOutcome getPipelineLog(const Model::GetPipelineLogRequest &request)const;
|
||||
void getPipelineLogAsync(const Model::GetPipelineLogRequest& request, const GetPipelineLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPipelineLogOutcomeCallable getPipelineLogCallable(const Model::GetPipelineLogRequest& request) const;
|
||||
GetPipelineStepLogOutcome getPipelineStepLog(const Model::GetPipelineStepLogRequest &request)const;
|
||||
void getPipelineStepLogAsync(const Model::GetPipelineStepLogRequest& request, const GetPipelineStepLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPipelineStepLogOutcomeCallable getPipelineStepLogCallable(const Model::GetPipelineStepLogRequest& request) const;
|
||||
GetPipleineLatestInstanceStatusOutcome getPipleineLatestInstanceStatus(const Model::GetPipleineLatestInstanceStatusRequest &request)const;
|
||||
void getPipleineLatestInstanceStatusAsync(const Model::GetPipleineLatestInstanceStatusRequest& request, const GetPipleineLatestInstanceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPipleineLatestInstanceStatusOutcomeCallable getPipleineLatestInstanceStatusCallable(const Model::GetPipleineLatestInstanceStatusRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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_GETPIPELINEINSTHISTORYREQUEST_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTHISTORYREQUEST_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 GetPipelineInstHistoryRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetPipelineInstHistoryRequest();
|
||||
~GetPipelineInstHistoryRequest();
|
||||
|
||||
std::string getEndTime()const;
|
||||
void setEndTime(const std::string& endTime);
|
||||
std::string getStartTime()const;
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getUserPk()const;
|
||||
void setUserPk(const std::string& userPk);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
long getPipelineId()const;
|
||||
void setPipelineId(long pipelineId);
|
||||
long getPageSize()const;
|
||||
void setPageSize(long pageSize);
|
||||
long getPageStart()const;
|
||||
void setPageStart(long pageStart);
|
||||
|
||||
private:
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string userPk_;
|
||||
std::string orgId_;
|
||||
long pipelineId_;
|
||||
long pageSize_;
|
||||
long pageStart_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTHISTORYREQUEST_H_
|
||||
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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_GETPIPELINEINSTHISTORYRESULT_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTHISTORYRESULT_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 GetPipelineInstHistoryResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct PipelineInst
|
||||
{
|
||||
struct FlowInstance
|
||||
{
|
||||
struct Result
|
||||
{
|
||||
std::string mixFlowInstId;
|
||||
int enginePipelineId;
|
||||
std::string enginePipelineName;
|
||||
std::string caches;
|
||||
std::string triggerMode;
|
||||
std::string sources;
|
||||
std::string dateTime;
|
||||
std::string timeStamp;
|
||||
int enginePipelineNumber;
|
||||
int enginePipelineInstId;
|
||||
};
|
||||
struct Group
|
||||
{
|
||||
std::string status;
|
||||
long modifyTime;
|
||||
long endTime;
|
||||
std::string resultStatus;
|
||||
long createTime;
|
||||
long startTime;
|
||||
std::string creator;
|
||||
std::string deleteStatus;
|
||||
std::string name;
|
||||
int idExtent;
|
||||
int id;
|
||||
std::string modifier;
|
||||
int flowInstId;
|
||||
};
|
||||
std::string status;
|
||||
long modifyTime;
|
||||
std::string resultStatus;
|
||||
long createTime;
|
||||
std::string systemCode;
|
||||
std::string stages;
|
||||
std::string systemId;
|
||||
std::string statusName;
|
||||
std::string creator;
|
||||
bool autoDrivenStatus;
|
||||
Result result;
|
||||
std::string runningStatus;
|
||||
std::vector<Group> groups;
|
||||
std::string stageTopo;
|
||||
int id;
|
||||
std::string modifier;
|
||||
};
|
||||
std::string status;
|
||||
long modifyTime;
|
||||
FlowInstance flowInstance;
|
||||
long createTime;
|
||||
std::string statusName;
|
||||
std::string creator;
|
||||
int triggerMode;
|
||||
std::string packages;
|
||||
std::string deletion;
|
||||
int pipelineId;
|
||||
int id;
|
||||
std::string modifier;
|
||||
int pipelineConfigId;
|
||||
int flowInstId;
|
||||
int instNumber;
|
||||
};
|
||||
std::vector<PipelineInst> dataList;
|
||||
int total;
|
||||
};
|
||||
|
||||
|
||||
GetPipelineInstHistoryResult();
|
||||
explicit GetPipelineInstHistoryResult(const std::string &payload);
|
||||
~GetPipelineInstHistoryResult();
|
||||
Data getData()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINEINSTHISTORYRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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_GETPIPELINESTEPLOGREQUEST_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINESTEPLOGREQUEST_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 GetPipelineStepLogRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetPipelineStepLogRequest();
|
||||
~GetPipelineStepLogRequest();
|
||||
|
||||
long getOffset()const;
|
||||
void setOffset(long offset);
|
||||
std::string getUserPk()const;
|
||||
void setUserPk(const std::string& userPk);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
long getPipelineId()const;
|
||||
void setPipelineId(long pipelineId);
|
||||
long getJobId()const;
|
||||
void setJobId(long jobId);
|
||||
std::string getStepIndex()const;
|
||||
void setStepIndex(const std::string& stepIndex);
|
||||
long getLimit()const;
|
||||
void setLimit(long limit);
|
||||
|
||||
private:
|
||||
long offset_;
|
||||
std::string userPk_;
|
||||
std::string orgId_;
|
||||
long pipelineId_;
|
||||
long jobId_;
|
||||
std::string stepIndex_;
|
||||
long limit_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINESTEPLOGREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINESTEPLOGRESULT_H_
|
||||
#define ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINESTEPLOGRESULT_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 GetPipelineStepLogResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Object
|
||||
{
|
||||
bool more;
|
||||
int last;
|
||||
std::string logs;
|
||||
};
|
||||
|
||||
|
||||
GetPipelineStepLogResult();
|
||||
explicit GetPipelineStepLogResult(const std::string &payload);
|
||||
~GetPipelineStepLogResult();
|
||||
Object getObject()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Object object_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DEVOPS_RDC_MODEL_GETPIPELINESTEPLOGRESULT_H_
|
||||
Reference in New Issue
Block a user