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 { OpenEnergyPlatformManagementServiceAPIs } = require("@azure/arm-oep");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  /**
   * This sample demonstrates how to Lists the available operations of Microsoft.OpenEnergyPlatform resource provider.
   *
   * @summary Lists the available operations of Microsoft.OpenEnergyPlatform resource provider.
   * x-ms-original-file: specification/oep/resource-manager/Microsoft.OpenEnergyPlatform/preview/2021-06-01-preview/examples/Operations_List.json
   */
  async function operationsList() {
    const subscriptionId = "00000000-0000-0000-0000-000000000000";
    const credential = new DefaultAzureCredential();
    const client = new OpenEnergyPlatformManagementServiceAPIs(credential, subscriptionId);
    const result = await client.operations.list();
    console.log(result);
  }
  
  operationsList().catch(console.error);
  