code: public Observable<Page<VirtualNetworkGatewayConnectionListEntityInner>> listConnectionsAsync(final String resourceGroupName, final String virtualNetworkGatewayName) {
          return listConnectionsWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName)
              .map(new Func1<ServiceResponse<Page<VirtualNetworkGatewayConnectionListEntityInner>>, Page<VirtualNetworkGatewayConnectionListEntityInner>>() {
                  @Override
                  public Page<VirtualNetworkGatewayConnectionListEntityInner> call(ServiceResponse<Page<VirtualNetworkGatewayConnectionListEntityInner>> response) {
                      return response.body();
                  }
              });
      }
docs: Gets all the connections in a virtual network gateway.
  
  @param resourceGroupName The name of the resource group.
  @param virtualNetworkGatewayName The name of the virtual network gateway.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the PagedList&lt;VirtualNetworkGatewayConnectionListEntityInner&gt; object