|
| 1 | +package org.azd.git.types; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 4 | +import org.azd.abstractions.serializer.SerializableEntity; |
| 5 | +import org.azd.common.types.ReferenceLinks; |
| 6 | +import org.azd.test.types.IdentityRef; |
| 7 | + |
| 8 | +public class GitPullRequestIteration extends SerializableEntity { |
| 9 | + |
| 10 | + /** |
| 11 | + * A collection of related REST reference links.. |
| 12 | + **/ |
| 13 | + @JsonProperty("_links") |
| 14 | + private ReferenceLinks links; |
| 15 | + |
| 16 | + /** |
| 17 | + * Author of the pull request iteration. |
| 18 | + **/ |
| 19 | + @JsonProperty("author") |
| 20 | + private IdentityRef author; |
| 21 | + |
| 22 | + /** |
| 23 | + * Changes included with the pull request iteration. |
| 24 | + */ |
| 25 | + @JsonProperty("changeList") |
| 26 | + private GitPullRequestChange changeList; |
| 27 | + |
| 28 | + /** |
| 29 | + * The commits included with the pull request iteration. |
| 30 | + */ |
| 31 | + @JsonProperty("commits") |
| 32 | + private GitCommitRef[] commits; |
| 33 | + |
| 34 | + /** |
| 35 | + * The first common Git commit of the source and target refs. |
| 36 | + */ |
| 37 | + @JsonProperty("commonRefCommit") |
| 38 | + private GitCommitRef commonRefCommit; |
| 39 | + |
| 40 | + /** |
| 41 | + * The creation date of the pull request iteration. |
| 42 | + **/ |
| 43 | + @JsonProperty("createdDate") |
| 44 | + private String createdDate; |
| 45 | + |
| 46 | + /** |
| 47 | + * Description of the pull request iteration. |
| 48 | + **/ |
| 49 | + @JsonProperty("description") |
| 50 | + private String description; |
| 51 | + |
| 52 | + /** |
| 53 | + * Indicates if the Commits property contains a truncated list of commits in this pull request iteration. |
| 54 | + **/ |
| 55 | + @JsonProperty("hasMoreCommits") |
| 56 | + private boolean hasMoreCommits; |
| 57 | + |
| 58 | + /** |
| 59 | + * ID of the pull request iteration. Iterations are created as a result of creating and pushing updates to a pull request. |
| 60 | + **/ |
| 61 | + @JsonProperty("id") |
| 62 | + private int id; |
| 63 | + |
| 64 | + /** |
| 65 | + * If the iteration reason is Retarget, this is the refName of the new target |
| 66 | + **/ |
| 67 | + @JsonProperty("newTargetRefName") |
| 68 | + private String newTargetRefName; |
| 69 | + |
| 70 | + /** |
| 71 | + * If the iteration reason is Retarget, this is the original target refName |
| 72 | + **/ |
| 73 | + @JsonProperty("oldTargetRefName") |
| 74 | + private String oldTargetRefName; |
| 75 | + |
| 76 | + /** |
| 77 | + * The Git push information associated with this pull request iteration. |
| 78 | + */ |
| 79 | + @JsonProperty("push") |
| 80 | + private GitPushRef push; |
| 81 | + |
| 82 | + /** |
| 83 | + * The reason for which the pull request iteration was created. |
| 84 | + */ |
| 85 | + @JsonProperty("reason") |
| 86 | + private IterationReason reason; |
| 87 | + |
| 88 | + /** |
| 89 | + * The source Git commit of this iteration. |
| 90 | + */ |
| 91 | + @JsonProperty("sourceRefCommit") |
| 92 | + private GitCommitRef sourceRefCommit; |
| 93 | + |
| 94 | + /** |
| 95 | + * The target Git commit of this iteration. |
| 96 | + */ |
| 97 | + @JsonProperty("targetRefCommit") |
| 98 | + private GitCommitRef targetRefCommit; |
| 99 | + |
| 100 | + /** |
| 101 | + * The updated date of the pull request iteration. |
| 102 | + */ |
| 103 | + @JsonProperty("updatedDate") |
| 104 | + private String updatedDate; |
| 105 | + |
| 106 | + public ReferenceLinks getLinks() { |
| 107 | + return links; |
| 108 | + } |
| 109 | + |
| 110 | + public void setLinks(ReferenceLinks links) { |
| 111 | + this.links = links; |
| 112 | + } |
| 113 | + |
| 114 | + public IdentityRef getAuthor() { |
| 115 | + return author; |
| 116 | + } |
| 117 | + |
| 118 | + public void setAuthor(IdentityRef author) { |
| 119 | + this.author = author; |
| 120 | + } |
| 121 | + |
| 122 | + public GitPullRequestChange getChangeList() { |
| 123 | + return changeList; |
| 124 | + } |
| 125 | + |
| 126 | + public void setChangeList(GitPullRequestChange changeList) { |
| 127 | + this.changeList = changeList; |
| 128 | + } |
| 129 | + |
| 130 | + public GitCommitRef[] getCommits() { |
| 131 | + return commits; |
| 132 | + } |
| 133 | + |
| 134 | + public void setCommits(GitCommitRef[] commits) { |
| 135 | + this.commits = commits; |
| 136 | + } |
| 137 | + |
| 138 | + public GitCommitRef getCommonRefCommit() { |
| 139 | + return commonRefCommit; |
| 140 | + } |
| 141 | + |
| 142 | + public void setCommonRefCommit(GitCommitRef commonRefCommit) { |
| 143 | + this.commonRefCommit = commonRefCommit; |
| 144 | + } |
| 145 | + |
| 146 | + public String getCreatedDate() { |
| 147 | + return createdDate; |
| 148 | + } |
| 149 | + |
| 150 | + public void setCreatedDate(String createdDate) { |
| 151 | + this.createdDate = createdDate; |
| 152 | + } |
| 153 | + |
| 154 | + public String getDescription() { |
| 155 | + return description; |
| 156 | + } |
| 157 | + |
| 158 | + public void setDescription(String description) { |
| 159 | + this.description = description; |
| 160 | + } |
| 161 | + |
| 162 | + public boolean isHasMoreCommits() { |
| 163 | + return hasMoreCommits; |
| 164 | + } |
| 165 | + |
| 166 | + public void setHasMoreCommits(boolean hasMoreCommits) { |
| 167 | + this.hasMoreCommits = hasMoreCommits; |
| 168 | + } |
| 169 | + |
| 170 | + public int getId() { |
| 171 | + return id; |
| 172 | + } |
| 173 | + |
| 174 | + public void setId(int id) { |
| 175 | + this.id = id; |
| 176 | + } |
| 177 | + |
| 178 | + public String getNewTargetRefName() { |
| 179 | + return newTargetRefName; |
| 180 | + } |
| 181 | + |
| 182 | + public void setNewTargetRefName(String newTargetRefName) { |
| 183 | + this.newTargetRefName = newTargetRefName; |
| 184 | + } |
| 185 | + |
| 186 | + public String getOldTargetRefName() { |
| 187 | + return oldTargetRefName; |
| 188 | + } |
| 189 | + |
| 190 | + public void setOldTargetRefName(String oldTargetRefName) { |
| 191 | + this.oldTargetRefName = oldTargetRefName; |
| 192 | + } |
| 193 | + |
| 194 | + public GitPushRef getPush() { |
| 195 | + return push; |
| 196 | + } |
| 197 | + |
| 198 | + public void setPush(GitPushRef push) { |
| 199 | + this.push = push; |
| 200 | + } |
| 201 | + |
| 202 | + public IterationReason getReason() { |
| 203 | + return reason; |
| 204 | + } |
| 205 | + |
| 206 | + public void setReason(IterationReason reason) { |
| 207 | + this.reason = reason; |
| 208 | + } |
| 209 | + |
| 210 | + public GitCommitRef getSourceRefCommit() { |
| 211 | + return sourceRefCommit; |
| 212 | + } |
| 213 | + |
| 214 | + public void setSourceRefCommit(GitCommitRef sourceRefCommit) { |
| 215 | + this.sourceRefCommit = sourceRefCommit; |
| 216 | + } |
| 217 | + |
| 218 | + public GitCommitRef getTargetRefCommit() { |
| 219 | + return targetRefCommit; |
| 220 | + } |
| 221 | + |
| 222 | + public void setTargetRefCommit(GitCommitRef targetRefCommit) { |
| 223 | + this.targetRefCommit = targetRefCommit; |
| 224 | + } |
| 225 | + |
| 226 | + public String getUpdatedDate() { |
| 227 | + return updatedDate; |
| 228 | + } |
| 229 | + |
| 230 | + public void setUpdatedDate(String updatedDate) { |
| 231 | + this.updatedDate = updatedDate; |
| 232 | + } |
| 233 | +} |
0 commit comments