Add new fields to ContainerMount
@@ -28,29 +28,51 @@ import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;
+import javax.annotation.Nullable;
+
@AutoValue
@JsonAutoDetect(fieldVisibility = ANY, getterVisibility = NONE, setterVisibility = NONE)
public abstract class ContainerMount {
+ @Nullable
+ @JsonProperty("Type")
+ public abstract String type();
+
+ @Nullable
+ @JsonProperty("Name")
+ public abstract String name();
+
@JsonProperty("Source")
public abstract String source();
@JsonProperty("Destination")
public abstract String destination();
+ @Nullable
+ @JsonProperty("Driver")
+ public abstract String driver();
+
@JsonProperty("Mode")
public abstract String mode();
@JsonProperty("RW")
public abstract Boolean rw();
+ @Nullable
+ @JsonProperty("Propagation")
+ public abstract String propagation();
+
@JsonCreator
static ContainerMount create(
+ @JsonProperty("Type") final String type,
+ @JsonProperty("Name") final String name,
@JsonProperty("Source") final String source,
@JsonProperty("Destination") final String destination,
+ @JsonProperty("Driver") final String driver,
@JsonProperty("Mode") final String mode,
- @JsonProperty("RW") final Boolean rw) {
- return new AutoValue_ContainerMount(source, destination, mode, rw);
+ @JsonProperty("RW") final Boolean rw,
+ @JsonProperty("Propagation") final String propagation) {
+ return new AutoValue_ContainerMount(type, name, source, destination, driver, mode, rw, propagation);
}
}
