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 Retrieves all the jobs in a manager.
   *
   * @summary Retrieves all the jobs in a manager.
   * x-ms-original-file: specification/storSimple1200Series/resource-manager/Microsoft.StorSimple/stable/2016-10-01/examples/JobsListByManager.json
   */
  const { StorSimpleManagementClient } = require("@azure/arm-storsimple1200series");
  const { DefaultAzureCredential } = require("@azure/identity");
  
  async function jobsListByManager() {
    const subscriptionId = "9eb689cd-7243-43b4-b6f6-5c65cb296641";
    const resourceGroupName = "ResourceGroupForSDKTest";
    const managerName = "hAzureSDKOperations";
    const filter = "jobType eq 'Backup'";
    const options = { filter: filter };
    const credential = new DefaultAzureCredential();
    const client = new StorSimpleManagementClient(credential, subscriptionId);
    const resArray = new Array();
    for await (let item of client.jobs.listByManager(resourceGroupName, managerName, options)) {
      resArray.push(item);
    }
    console.log(resArray);
  }
  
  jobsListByManager().catch(console.error);
  