@BetaApi
  public final Operation insertRouter(ProjectRegionName region, Router routerResource) {

    InsertRouterHttpRequest request =
        InsertRouterHttpRequest.newBuilder()
            .setRegion(region == null ? null : region.toString())
            .setRouterResource(routerResource)
            .build();
    return insertRouter(request);
  }
@ BetaApi public final Operation insertRouter ( ProjectRegionName region , Router routerResource ) { InsertRouterHttpRequest request = InsertRouterHttpRequest . newBuilder ( ) . setRegion ( region == null ? null : region . toString ( ) ) . setRouterResource ( routerResource ) . build ( ) ; return insertRouter ( request ) ; }
Creates a Router resource in the specified project and region using the data included in the
request.

<p>Sample code:

<pre><code>
try (RouterClient routerClient = RouterClient.create()) {
ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
Router routerResource = Router.newBuilder().build();
Operation response = routerClient.insertRouter(region, routerResource);
}
</code></pre>

@param region Name of the region for this request.
@param routerResource Router resource.
@throws com.google.api.gax.rpc.ApiException if the remote call fails