@BetaApi
  public final Operation insertNetwork(String project, Network networkResource) {

    InsertNetworkHttpRequest request =
        InsertNetworkHttpRequest.newBuilder()
            .setProject(project)
            .setNetworkResource(networkResource)
            .build();
    return insertNetwork(request);
  }
@ BetaApi public final Operation insertNetwork ( String project , Network networkResource ) { InsertNetworkHttpRequest request = InsertNetworkHttpRequest . newBuilder ( ) . setProject ( project ) . setNetworkResource ( networkResource ) . build ( ) ; return insertNetwork ( request ) ; }
Creates a network in the specified project using the data included in the request.

<p>Sample code:

<pre><code>
try (NetworkClient networkClient = NetworkClient.create()) {
ProjectName project = ProjectName.of("[PROJECT]");
Network networkResource = Network.newBuilder().build();
Operation response = networkClient.insertNetwork(project.toString(), networkResource);
}
</code></pre>

@param project Project ID for this request.
@param networkResource Represents a Network resource. Read Virtual Private Cloud (VPC) Network
Overview for more information. (== resource_for v1.networks ==) (== resource_for
beta.networks ==)
@throws com.google.api.gax.rpc.ApiException if the remote call fails