text: /*
   * Copyright (c) Microsoft Corporation.
   * Licensed under the MIT License.
   *
   * Code generated by Microsoft (R) AutoRest Code Generator.
   * Changes may cause incorrect behavior and will be lost if the code is regenerated.
   */
  
  // Copyright (c) Microsoft Corporation.
  // Licensed under the MIT License.
  /**
   * This sample demonstrates how to Updates an inbound endpoint for a DNS resolver.
   *
   * @summary Updates an inbound endpoint for a DNS resolver.
   * x-ms-original-file: specification/dnsresolver/resource-manager/Microsoft.Network/preview/2020-04-01-preview/examples/InboundEndpoint_Patch.json
   */
  const { DnsResolverManagementClient } = require("@azure/arm-dnsresolver");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  async function updateInboundEndpointForDnsResolver() {
    const subscriptionId = "abdd4249-9f34-4cc6-8e42-c2e32110603e";
    const resourceGroupName = "sampleResourceGroup";
    const dnsResolverName = "sampleDnsResolver";
    const inboundEndpointName = "sampleInboundEndpoint";
    const parameters = { tags: { key1: "value1" } };
    const credential = new DefaultAzureCredential();
    const client = new DnsResolverManagementClient(credential, subscriptionId);
    const result = await client.inboundEndpoints.beginUpdateAndWait(
      resourceGroupName,
      dnsResolverName,
      inboundEndpointName,
      parameters
    );
    console.log(result);
  }
  
  updateInboundEndpointForDnsResolver().catch(console.error);
  