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.
  const { ComputeManagementClient } = require("@azure/arm-compute");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  /**
   * This sample demonstrates how to The operation to update the restore point collection.
   *
   * @summary The operation to update the restore point collection.
   * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/stable/2022-03-01/ComputeRP/examples/restorePointExamples/RestorePointCollections_Update_MaximumSet_Gen.json
   */
  async function restorePointCollectionsUpdateMaximumSetGen() {
    const subscriptionId = "{subscription-id}";
    const resourceGroupName = "rgcompute";
    const restorePointCollectionName = "aaaaaaaaaaaaaaaaaaaa";
    const parameters = {
      source: {
        id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM",
      },
      tags: { key8536: "aaaaaaaaaaaaaaaaaaa" },
    };
    const credential = new DefaultAzureCredential();
    const client = new ComputeManagementClient(credential, subscriptionId);
    const result = await client.restorePointCollections.update(
      resourceGroupName,
      restorePointCollectionName,
      parameters
    );
    console.log(result);
  }
  
  restorePointCollectionsUpdateMaximumSetGen().catch(console.error);
  
  /**
   * This sample demonstrates how to The operation to update the restore point collection.
   *
   * @summary The operation to update the restore point collection.
   * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/stable/2022-03-01/ComputeRP/examples/restorePointExamples/RestorePointCollections_Update_MinimumSet_Gen.json
   */
  async function restorePointCollectionsUpdateMinimumSetGen() {
    const subscriptionId = "{subscription-id}";
    const resourceGroupName = "rgcompute";
    const restorePointCollectionName = "aaaaaaaaaaaaaaaaaa";
    const parameters = {};
    const credential = new DefaultAzureCredential();
    const client = new ComputeManagementClient(credential, subscriptionId);
    const result = await client.restorePointCollections.update(
      resourceGroupName,
      restorePointCollectionName,
      parameters
    );
    console.log(result);
  }
  
  restorePointCollectionsUpdateMinimumSetGen().catch(console.error);
  