Skip to content

Commit

Permalink
adding grpc to NewService.Check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinto Thomas committed Jan 5, 2020
1 parent 5a55fc8 commit 8ec48fb
Showing 1 changed file with 30 additions and 14 deletions.
44 changes: 30 additions & 14 deletions src/main/java/com/ecwid/consul/v1/agent/model/NewService.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ public static class Check {
@SerializedName("Status")
private String status;

@SerializedName("GRPC")
private String grpc;

@SerializedName("GRPCUseTLS")
private Boolean grpcUseTLS;

public String getScript() {
return script;
}
Expand Down Expand Up @@ -156,23 +162,33 @@ public void setStatus(String status) {
this.status = status;
}

public String getGrpc() { return grpc; }

public void setGrpc(String grpc) { this.grpc = grpc; }

public Boolean getGrpcUseTLS() { return grpcUseTLS; }

public void setGrpcUseTLS(Boolean grpcUseTLS) { this.grpcUseTLS = grpcUseTLS; }

@Override
public String toString() {
return "Check{" +
"script='" + script + '\'' +
", interval='" + interval + '\'' +
", ttl='" + ttl + '\'' +
", http='" + http + '\'' +
", method='" + method + '\'' +
", header=" + header +
", tcp='" + tcp + '\'' +
", timeout='" + timeout + '\'' +
", dockerContainerID='" + dockerContainerID + '\'' +
", shell='" + shell + '\'' +
", deregisterCriticalServiceAfter='" + deregisterCriticalServiceAfter + '\'' +
", tlsSkipVerify=" + tlsSkipVerify +
", status='" + status + '\'' +
'}';
"script='" + script + '\'' +
", dockerContainerID='" + dockerContainerID + '\'' +
", shell='" + shell + '\'' +
", interval='" + interval + '\'' +
", ttl='" + ttl + '\'' +
", http='" + http + '\'' +
", method='" + method + '\'' +
", header=" + header +
", tcp='" + tcp + '\'' +
", timeout='" + timeout + '\'' +
", deregisterCriticalServiceAfter='" + deregisterCriticalServiceAfter + '\'' +
", tlsSkipVerify=" + tlsSkipVerify +
", status='" + status + '\'' +
", grpc='" + grpc + '\'' +
", grpcUseTLS=" + grpcUseTLS +
'}';
}
}

Expand Down

0 comments on commit 8ec48fb

Please sign in to comment.