use of com.cloudera.thunderhead.service.clusterconnectivitymanagementv2.ClusterConnectivityManagementV2Proto.CreateOrGetInvertingProxyResponse in project cloudbreak by hortonworks.
the class GrpcCcmV2Client method getOrCreateInvertingProxy.
public InvertingProxy getOrCreateInvertingProxy(String requestId, String accountId, String actorCrn) {
try (ManagedChannelWrapper channelWrapper = makeWrapper()) {
ClusterConnectivityManagementV2BlockingStub client = makeClient(channelWrapper.getChannel(), requestId, actorCrn);
CreateOrGetInvertingProxyRequest invertingProxyRequest = CreateOrGetInvertingProxyRequest.newBuilder().setAccountId(accountId).build();
LOGGER.debug("Calling getOrCreateInvertingProxy with params accountId: '{}'", accountId);
CreateOrGetInvertingProxyResponse invertingProxyRequestResponse = client.createOrGetInvertingProxy(invertingProxyRequest);
return invertingProxyRequestResponse.getInvertingProxy();
}
}
Aggregations