code: @BetaApi
    public final Operation addPeeringNetwork(
        ProjectGlobalNetworkName network,
        NetworksAddPeeringRequest networksAddPeeringRequestResource) {
  
      AddPeeringNetworkHttpRequest request =
          AddPeeringNetworkHttpRequest.newBuilder()
              .setNetwork(network == null ? null : network.toString())
              .setNetworksAddPeeringRequestResource(networksAddPeeringRequestResource)
              .build();
      return addPeeringNetwork(request);
    }
docs: Adds a peering to the specified network.
  
  <p>Sample code:
  
  <pre><code>
  try (NetworkClient networkClient = NetworkClient.create()) {
  ProjectGlobalNetworkName network = ProjectGlobalNetworkName.of("[PROJECT]", "[NETWORK]");
  NetworksAddPeeringRequest networksAddPeeringRequestResource = NetworksAddPeeringRequest.newBuilder().build();
  Operation response = networkClient.addPeeringNetwork(network, networksAddPeeringRequestResource);
  }
  </code></pre>
  
  @param network Name of the network resource to add peering to.
  @param networksAddPeeringRequestResource
  @throws com.google.api.gax.rpc.ApiException if the remote call fails