Remove "Stats" from "networks" field in statistics · docker-java/docker-java@ee1b8cf

File tree

1 file changed

lines changed

  • src/main/java/com/github/dockerjava/api/model

1 file changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -23,10 +23,10 @@ public class Statistics {

2323

*/

2424

@CheckForNull

2525

@JsonProperty("networks")

26-

private Map<String, Object> networksStats;

26+

private Map<String, Object> networks;

2727
2828

/**

29-

* @deprecated as of Docker Remote API 1.21, replaced by {@link #networksStats}

29+

* @deprecated as of Docker Remote API 1.21, replaced by {@link #networks}

3030

*/

3131

@Deprecated

3232

@JsonProperty("network")

@@ -45,12 +45,12 @@ public class Statistics {

4545

* @since Docker Remote API 1.21

4646

*/

4747

@CheckForNull

48-

public Map<String, Object> getNetworksStats() {

49-

return networksStats;

48+

public Map<String, Object> getNetworks() {

49+

return networks;

5050

}

5151
5252

/**

53-

* @deprecated as of Docker Remote API 1.21, replaced by {@link #getNetworksStats()}

53+

* @deprecated as of Docker Remote API 1.21, replaced by {@link #getNetworks()}

5454

*/

5555

@Deprecated

5656

public Map<String, Object> getNetworkStats() {