use of io.etcd.jetcd.api.AuthRoleGetRequest in project jetcd by coreos.
the class AuthImpl method roleGet.
@Override
public CompletableFuture<AuthRoleGetResponse> roleGet(ByteSequence role) {
checkNotNull(role, "role can't be null");
AuthRoleGetRequest roleGetRequest = AuthRoleGetRequest.newBuilder().setRoleBytes(ByteString.copyFrom(role.getBytes())).build();
return completable(this.stub.roleGet(roleGetRequest), AuthRoleGetResponse::new);
}
Aggregations