public UpdateResult updateByKey(ClusterRequest request) {
        Preconditions.expectNotBlank(request.getName(), ErrorCodeEnum.INVALID_PARAMETER,
                "cluster name should not be null");
        Preconditions.expectNotBlank(request.getType(), ErrorCodeEnum.INVALID_PARAMETER,
                "cluster type should not be null");
        Response<UpdateResult> response = ClientUtils.executeHttpCall(inlongClusterApi.updateByKey(request));
        ClientUtils.assertRespSuccess(response);
        return response.getData();
    }
Update cluster information by unique key.
Cluster name and type should not be null.

@param request cluster to be modified
@return update result
inlong-manager/manager-client/src/main/java/org/apache/inlong/manager/client/api/inner/client/InlongClusterClient.java