code: public GatewayRouteListResultInner getAdvertisedRoutes(String resourceGroupName, String virtualNetworkGatewayName, String peer) {
          return getAdvertisedRoutesWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayName, peer).toBlocking().last().body();
      }
docs: This operation retrieves a list of routes the virtual network gateway is advertising to the specified peer.
  
  @param resourceGroupName The name of the resource group.
  @param virtualNetworkGatewayName The name of the virtual network gateway.
  @param peer The IP address of the peer
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the GatewayRouteListResultInner object if successful.