Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AliasNode and AliasService to NewCheck and NewService.Check #229

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/main/java/com/ecwid/consul/v1/agent/model/NewCheck.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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{" +
Expand All @@ -265,6 +287,8 @@ public String toString() {
", status='" + status + '\'' +
", grpc='" + grpc + '\'' +
", grpcUseTLS=" + grpcUseTLS +
", aliasNode='" + aliasNode + '\'' +
", aliasService='" + aliasService + '\'' +
'}';
}
}
24 changes: 24 additions & 0 deletions src/main/java/com/ecwid/consul/v1/agent/model/NewService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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{" +
Expand All @@ -188,6 +210,8 @@ public String toString() {
", status='" + status + '\'' +
", grpc='" + grpc + '\'' +
", grpcUseTLS=" + grpcUseTLS +
", aliasNode='" + aliasNode + '\'' +
", aliasService='" + aliasService + '\'' +
'}';
}
}
Expand Down