Skip to content

Commit 3b4867e

Browse files
committed
Add DiskQuota to HostConfig
The DiskQuota field in HostConfig first appears in the Docker API v1.25 but is not explicitely listed as API change in https://docs.docker.com/engine/api/version-history/#v125-api-changes
1 parent b637e28 commit 3b4867e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/main/java/com/github/dockerjava/api/model/HostConfig.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ public class HostConfig implements Serializable {
9999
@JsonProperty("Devices")
100100
private Device[] devices;
101101

102+
/**
103+
* @since {@link RemoteApiVersion#VERSION_1_25}
104+
*/
105+
@JsonProperty("DiskQuota")
106+
private Long diskQuota;
107+
102108
@JsonProperty("Dns")
103109
private String[] dns;
104110

@@ -254,6 +260,10 @@ public Device[] getDevices() {
254260
return devices;
255261
}
256262

263+
public Long getDiskQuota() {
264+
return diskQuota;
265+
}
266+
257267
public String[] getDns() {
258268
return dns;
259269
}
@@ -609,6 +619,14 @@ public HostConfig withDevices(Device[] devices) {
609619
return this;
610620
}
611621

622+
/**
623+
* @see #diskQuota
624+
*/
625+
public HostConfig withDiskQuota(Long diskQuota) {
626+
this.diskQuota = diskQuota;
627+
return this;
628+
}
629+
612630
/**
613631
* @see #dns
614632
*/

0 commit comments

Comments
 (0)