Skip to content

Commit

Permalink
Add deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
dmandalidis committed Feb 1, 2024
1 parent 7c6416a commit 72ac885
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public interface ContainerConfig {
@JsonProperty("Labels")
Map<String, String> labels();

@Deprecated
@Deprecated // as of v1.44
@Nullable
@JsonProperty("MacAddress")
String macAddress();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/mandas/docker/client/messages/Image.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public interface Image {
@JsonProperty("Size")
Long size();

@Deprecated
@Deprecated // as of v1.44
@Default
@JsonProperty("VirtualSize")
default Long virtualSize() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ public interface ImageInfo {
@JsonProperty("Created")
Date created();

@Deprecated // as of v1.44
@JsonProperty("Container")
String container();

@Deprecated // as of v1.44
@JsonProperty("ContainerConfig")
ContainerConfig containerConfig();

Expand All @@ -70,7 +72,7 @@ public interface ImageInfo {
@JsonProperty("Size")
Long size();

@Deprecated
@Deprecated // as of v1.43
@Default
@JsonProperty("VirtualSize")
default Long virtualSize() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@
@Immutable
public interface NetworkSettings {

@Deprecated // as of v1.44
@Nullable
@JsonProperty("IPAddress")
String ipAddress();

@Deprecated // as of v1.44
@Nullable
@JsonProperty("IPPrefixLen")
Integer ipPrefixLen();
Expand Down Expand Up @@ -79,6 +81,7 @@ default Map<String, List<PortBinding>> ports() {
@JsonProperty("Ports")
Map<String, List<PortBinding>> nullValuedPorts();

@Deprecated // as of v1.44
@Nullable
@JsonProperty("MacAddress")
String macAddress();
Expand All @@ -99,14 +102,17 @@ default Map<String, List<PortBinding>> ports() {
@JsonProperty("SandboxKey")
String sandboxKey();

@Deprecated // as of v1.44
@Nullable
@JsonProperty("HairpinMode")
Boolean hairpinMode();

@Deprecated // as of v1.44
@Nullable
@JsonProperty("LinkLocalIPv6Address")
String linkLocalIPv6Address();

@Deprecated // as of v1.44
@Nullable
@JsonProperty("LinkLocalIPv6PrefixLen")
Integer linkLocalIPv6PrefixLen();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public interface ServiceSpec {
@JsonProperty("UpdateConfig")
UpdateConfig updateConfig();

@Deprecated // as of v1.44
@Nullable
@JsonProperty("Networks")
List<NetworkAttachmentConfig> networks();
Expand Down

0 comments on commit 72ac885

Please sign in to comment.