Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db508d8

Browse files
alberseddumelendez
andauthored
Add Name to ContainerNetworkConfig (#2052)
Signed-off-by: Harald Albers <[email protected]> Co-authored-by: Eddú Meléndez Gonzales <[email protected]>
1 parent 0867f5b commit db508d8

File tree

1 file changed

+10
-0
lines changed
  • docker-java-api/src/main/java/com/github/dockerjava/api/model

1 file changed

+10
-0
lines changed

docker-java-api/src/main/java/com/github/dockerjava/api/model/Network.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ public Map<String, String> getLabels() {
9797
public static class ContainerNetworkConfig extends DockerObject implements Serializable {
9898
private static final long serialVersionUID = 1L;
9999

100+
/**
101+
* @since {@link RemoteApiVersion#VERSION_1_22}
102+
*/
103+
@JsonProperty("Name")
104+
private String name;
105+
100106
@JsonProperty("EndpointID")
101107
private String endpointId;
102108

@@ -109,6 +115,10 @@ public static class ContainerNetworkConfig extends DockerObject implements Seria
109115
@JsonProperty("IPv6Address")
110116
private String ipv6Address;
111117

118+
public String getName() {
119+
return name;
120+
}
121+
112122
public String getEndpointId() {
113123
return endpointId;
114124
}

0 commit comments

Comments
 (0)