diff --git a/src/main/java/com/ecwid/consul/v1/agent/model/NewCheck.java b/src/main/java/com/ecwid/consul/v1/agent/model/NewCheck.java index 01a97b7f..424bf35d 100644 --- a/src/main/java/com/ecwid/consul/v1/agent/model/NewCheck.java +++ b/src/main/java/com/ecwid/consul/v1/agent/model/NewCheck.java @@ -74,6 +74,12 @@ public class NewCheck { @SerializedName("GRPCUseTLS") private Boolean grpcUseTLS; + @SerializedName("AliasNode") + private String aliasNode; + + @SerializedName("AliasService") + private String aliasService; + public String getId() { return id; } @@ -242,6 +248,22 @@ public void setGrpcUseTLS(Boolean grpcUseTLS) { this.grpcUseTLS = grpcUseTLS; } + public String getAliasNode() { + return aliasNode; + } + + public void setAliasNode(String aliasNode) { + this.aliasNode = aliasNode; + } + + public String getAliasService() { + return aliasService; + } + + public void setAliasService(String aliasService) { + this.aliasService = aliasService; + } + @Override public String toString() { return "NewCheck{" + @@ -265,6 +287,8 @@ public String toString() { ", status='" + status + '\'' + ", grpc='" + grpc + '\'' + ", grpcUseTLS=" + grpcUseTLS + + ", aliasNode='" + aliasNode + '\'' + + ", aliasService='" + aliasService + '\'' + '}'; } } diff --git a/src/main/java/com/ecwid/consul/v1/agent/model/NewService.java b/src/main/java/com/ecwid/consul/v1/agent/model/NewService.java index 353586bf..ff211455 100644 --- a/src/main/java/com/ecwid/consul/v1/agent/model/NewService.java +++ b/src/main/java/com/ecwid/consul/v1/agent/model/NewService.java @@ -58,6 +58,12 @@ public static class Check { @SerializedName("GRPCUseTLS") private Boolean grpcUseTLS; + @SerializedName("AliasNode") + private String aliasNode; + + @SerializedName("AliasService") + private String aliasService; + public String getScript() { return script; } @@ -170,6 +176,22 @@ public void setStatus(String status) { public void setGrpcUseTLS(Boolean grpcUseTLS) { this.grpcUseTLS = grpcUseTLS; } + public String getAliasNode() { + return aliasNode; + } + + public void setAliasNode(String aliasNode) { + this.aliasNode = aliasNode; + } + + public String getAliasService() { + return aliasService; + } + + public void setAliasService(String aliasService) { + this.aliasService = aliasService; + } + @Override public String toString() { return "Check{" + @@ -188,6 +210,8 @@ public String toString() { ", status='" + status + '\'' + ", grpc='" + grpc + '\'' + ", grpcUseTLS=" + grpcUseTLS + + ", aliasNode='" + aliasNode + '\'' + + ", aliasService='" + aliasService + '\'' + '}'; } }