|
1 | 1 | package com.github.dockerjava.api.model; |
2 | 2 |
|
3 | | -import java.io.Serializable; |
4 | | - |
5 | | -import javax.annotation.CheckForNull; |
6 | | - |
7 | | -import org.apache.commons.lang.builder.ToStringBuilder; |
8 | | -import org.apache.commons.lang.builder.ToStringStyle; |
9 | | - |
10 | 3 | import com.fasterxml.jackson.annotation.JsonIgnore; |
11 | 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
12 | 5 | import com.fasterxml.jackson.annotation.JsonProperty; |
| 6 | +import org.apache.commons.lang.builder.ToStringBuilder; |
| 7 | +import org.apache.commons.lang.builder.ToStringStyle; |
| 8 | + |
| 9 | +import javax.annotation.CheckForNull; |
| 10 | +import java.io.Serializable; |
13 | 11 |
|
14 | 12 | /** |
15 | 13 | * Represents a pull response stream item |
@@ -48,6 +46,9 @@ public class ResponseItem implements Serializable { |
48 | 46 | @JsonProperty("error") |
49 | 47 | private String error; |
50 | 48 |
|
| 49 | + @JsonProperty("aux") |
| 50 | + private AuxDetail aux; |
| 51 | + |
51 | 52 | @CheckForNull |
52 | 53 | public String getStream() { |
53 | 54 | return stream; |
@@ -94,6 +95,11 @@ public String getError() { |
94 | 95 | return error; |
95 | 96 | } |
96 | 97 |
|
| 98 | + @CheckForNull |
| 99 | + public AuxDetail getAux() { |
| 100 | + return aux; |
| 101 | + } |
| 102 | + |
97 | 103 | /** |
98 | 104 | * Returns whether the error field indicates an error |
99 | 105 | * |
@@ -165,6 +171,40 @@ public String toString() { |
165 | 171 | } |
166 | 172 | } |
167 | 173 |
|
| 174 | + @JsonIgnoreProperties(ignoreUnknown = true) |
| 175 | + public static class AuxDetail implements Serializable { |
| 176 | + private static final long serialVersionUID = -9136704865403084084L; |
| 177 | + |
| 178 | + @JsonProperty("Size") |
| 179 | + Integer size; |
| 180 | + |
| 181 | + @JsonProperty("Tag") |
| 182 | + String tag; |
| 183 | + |
| 184 | + @JsonProperty("Digest") |
| 185 | + String digest; |
| 186 | + |
| 187 | + @CheckForNull |
| 188 | + public Integer getSize() { |
| 189 | + return size; |
| 190 | + } |
| 191 | + |
| 192 | + @CheckForNull |
| 193 | + public String getTag() { |
| 194 | + return tag; |
| 195 | + } |
| 196 | + |
| 197 | + @CheckForNull |
| 198 | + public String getDigest() { |
| 199 | + return digest; |
| 200 | + } |
| 201 | + |
| 202 | + @Override |
| 203 | + public String toString() { |
| 204 | + return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE).toString(); |
| 205 | + } |
| 206 | + } |
| 207 | + |
168 | 208 | @Override |
169 | 209 | public String toString() { |
170 | 210 | return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE).toString(); |
|
0 commit comments