code: @BetaApi
    public final Operation insertSubnetwork(String region, Subnetwork subnetworkResource) {
  
      InsertSubnetworkHttpRequest request =
          InsertSubnetworkHttpRequest.newBuilder()
              .setRegion(region)
              .setSubnetworkResource(subnetworkResource)
              .build();
      return insertSubnetwork(request);
    }
docs: Creates a subnetwork in the specified project using the data included in the request.
  
  <p>Sample code:
  
  <pre><code>
  try (SubnetworkClient subnetworkClient = SubnetworkClient.create()) {
  ProjectRegionName region = ProjectRegionName.of("[PROJECT]", "[REGION]");
  Subnetwork subnetworkResource = Subnetwork.newBuilder().build();
  Operation response = subnetworkClient.insertSubnetwork(region.toString(), subnetworkResource);
  }
  </code></pre>
  
  @param region Name of the region scoping this request.
  @param subnetworkResource A Subnetwork resource. (== resource_for beta.subnetworks ==) (==
  resource_for v1.subnetworks ==)
  @throws com.google.api.gax.rpc.ApiException if the remote call fails