public final OperationFuture<NetworkPolicy, OperationMetadata> createNetworkPolicyAsync(
      LocationName parent, NetworkPolicy networkPolicy, String networkPolicyId) {
    CreateNetworkPolicyRequest request =
        CreateNetworkPolicyRequest.newBuilder()
            .setParent(parent == null ? null : parent.toString())
            .setNetworkPolicy(networkPolicy)
            .setNetworkPolicyId(networkPolicyId)
            .build();
    return createNetworkPolicyAsync(request);
  }
Creates a new network policy in a given VMware Engine network of a project and location
(region). A new network policy cannot be created if another network policy already exists in
the same scope.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
  LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  NetworkPolicy networkPolicy = NetworkPolicy.newBuilder().build();
  String networkPolicyId = "networkPolicyId-727262661";
  NetworkPolicy response =
      vmwareEngineClient.createNetworkPolicyAsync(parent, networkPolicy, networkPolicyId).get();
}
}</pre>

@param parent Required. The resource name of the location (region) to create the new network
    policy in. Resource names are schemeless URIs that follow the conventions in
    https://cloud.google.com/apis/design/resource_names. For example:
    `projects/my-project/locations/us-central1`
@param networkPolicy Required. The network policy configuration to use in the request.
@param networkPolicyId Required. The user-provided identifier of the network policy to be
    created. This identifier must be unique within parent
    `projects/{my-project}/locations/{us-central1}/networkPolicies` and becomes the final token
    in the name URI. The identifier must meet the following requirements:
    <ul>
      <li>Only contains 1-63 alphanumeric characters and hyphens
      <li>Begins with an alphabetical character
      <li>Ends with a non-hyphen character
      <li>Not formatted as a UUID
      <li>Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
    </ul>

@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineClient.java