-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for bridges in pipeline API (#1069)
--------- Co-authored-by: Salamon <[email protected]>
- Loading branch information
Showing
7 changed files
with
374 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
package org.gitlab4j.api.models; | ||
|
||
import org.gitlab4j.api.utils.JacksonJson; | ||
|
||
import java.util.Date; | ||
|
||
public class Bridge { | ||
private Commit commit; | ||
private boolean allowFailure; | ||
private Date createdAt; | ||
private Date startedAt; | ||
private Date finishedAt; | ||
private Date erasedAt; | ||
private Double duration; | ||
private Double queuedDuration; | ||
private int id; | ||
private String name; | ||
private String coverage; | ||
private Pipeline pipeline; | ||
private String ref; | ||
private String stage; | ||
private String status; | ||
private boolean tag; | ||
private String webUrl; | ||
private User user; | ||
private DownstreamPipeline downstreamPipeline; | ||
|
||
public Commit getCommit() { | ||
return commit; | ||
} | ||
|
||
public void setCommit(Commit commit) { | ||
this.commit = commit; | ||
} | ||
|
||
public boolean isAllowFailure() { | ||
return allowFailure; | ||
} | ||
|
||
public void setAllowFailure(boolean allowFailure) { | ||
this.allowFailure = allowFailure; | ||
} | ||
|
||
public Date getCreatedAt() { | ||
return createdAt; | ||
} | ||
|
||
public void setCreatedAt(Date createdAt) { | ||
this.createdAt = createdAt; | ||
} | ||
|
||
public Date getStartedAt() { | ||
return startedAt; | ||
} | ||
|
||
public void setStartedAt(Date startedAt) { | ||
this.startedAt = startedAt; | ||
} | ||
|
||
public Date getFinishedAt() { | ||
return finishedAt; | ||
} | ||
|
||
public void setFinishedAt(Date finishedAt) { | ||
this.finishedAt = finishedAt; | ||
} | ||
|
||
public Date getErasedAt() { | ||
return erasedAt; | ||
} | ||
|
||
public void setErasedAt(Date erasedAt) { | ||
this.erasedAt = erasedAt; | ||
} | ||
|
||
public Double getDuration() { | ||
return duration; | ||
} | ||
|
||
public void setDuration(Double duration) { | ||
this.duration = duration; | ||
} | ||
|
||
public Double getQueuedDuration() { | ||
return queuedDuration; | ||
} | ||
|
||
public void setQueuedDuration(Double queuedDuration) { | ||
this.queuedDuration = queuedDuration; | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getCoverage() { | ||
return coverage; | ||
} | ||
|
||
public void setCoverage(String coverage) { | ||
this.coverage = coverage; | ||
} | ||
|
||
public Pipeline getPipeline() { | ||
return pipeline; | ||
} | ||
|
||
public void setPipeline(Pipeline pipeline) { | ||
this.pipeline = pipeline; | ||
} | ||
|
||
public String getRef() { | ||
return ref; | ||
} | ||
|
||
public void setRef(String ref) { | ||
this.ref = ref; | ||
} | ||
|
||
public String getStage() { | ||
return stage; | ||
} | ||
|
||
public void setStage(String stage) { | ||
this.stage = stage; | ||
} | ||
|
||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
} | ||
|
||
public boolean isTag() { | ||
return tag; | ||
} | ||
|
||
public void setTag(boolean tag) { | ||
this.tag = tag; | ||
} | ||
|
||
public String getWebUrl() { | ||
return webUrl; | ||
} | ||
|
||
public void setWebUrl(String webUrl) { | ||
this.webUrl = webUrl; | ||
} | ||
|
||
public User getUser() { | ||
return user; | ||
} | ||
|
||
public void setUser(User user) { | ||
this.user = user; | ||
} | ||
|
||
public DownstreamPipeline getDownstreamPipeline() { | ||
return downstreamPipeline; | ||
} | ||
|
||
public void setDownstreamPipeline(DownstreamPipeline downstreamPipeline) { | ||
this.downstreamPipeline = downstreamPipeline; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return (JacksonJson.toJsonString(this)); | ||
} | ||
|
||
} |
76 changes: 76 additions & 0 deletions
76
src/main/java/org/gitlab4j/api/models/DownstreamPipeline.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
package org.gitlab4j.api.models; | ||
|
||
import org.gitlab4j.api.utils.JacksonJson; | ||
|
||
import java.util.Date; | ||
|
||
public class DownstreamPipeline { | ||
private int id; | ||
private String sha; | ||
private String ref; | ||
private String status; | ||
private Date createdAt; | ||
private Date updatedAt; | ||
private String webUrl; | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public String getSha() { | ||
return sha; | ||
} | ||
|
||
public void setSha(String sha) { | ||
this.sha = sha; | ||
} | ||
|
||
public String getRef() { | ||
return ref; | ||
} | ||
|
||
public void setRef(String ref) { | ||
this.ref = ref; | ||
} | ||
|
||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
} | ||
|
||
public Date getCreatedAt() { | ||
return createdAt; | ||
} | ||
|
||
public void setCreatedAt(Date createdAt) { | ||
this.createdAt = createdAt; | ||
} | ||
|
||
public Date getUpdatedAt() { | ||
return updatedAt; | ||
} | ||
|
||
public void setUpdatedAt(Date updatedAt) { | ||
this.updatedAt = updatedAt; | ||
} | ||
|
||
public String getWebUrl() { | ||
return webUrl; | ||
} | ||
|
||
public void setWebUrl(String webUrl) { | ||
this.webUrl = webUrl; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return (JacksonJson.toJsonString(this)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.