lib/services/eventgridManagement/lib/operations/eventSubscriptions.js
/**
   * @summary List all regional event subscriptions under an Azure subscription
   * and resource group
   *
   * List all event subscriptions from the given location under a specific Azure
   * subscription and resource group
   *
   * @param {string} resourceGroupName The name of the resource group within the
   * user's subscription.
   *
   * @param {string} location Name of the location
   *
   * @param {object} [options] Optional Parameters.
   *
   * @param {object} [options.customHeaders] Headers that will be added to the
   * request
   *
   * @returns {Promise} A promise is returned
   *
   * @resolve {HttpOperationResponse<EventSubscriptionsListResult>} - The deserialized result object.
   *
   * @reject {Error} - The error object.
   */
@summary List all regional event subscriptions under an Azure subscription
and resource group

List all event subscriptions from the given location under a specific Azure
subscription and resource group

@param {string} resourceGroupName The name of the resource group within the
user's subscription.

@param {string} location Name of the location

@param {object} [options] Optional Parameters.

@param {object} [options.customHeaders] Headers that will be added to the
request

@returns {Promise} A promise is returned

@resolve {HttpOperationResponse} - The deserialized result object.

@reject {Error} - The error object.
@summary List all regional event subscriptions under an Azure subscription and resource group List all event subscriptions from the given location under a specific Azure subscription and resource group @param { string } resourceGroupName The name of the resource group within the user ' s subscription . @param { string } location Name of the location @param { object } [ options ] Optional Parameters . @param { object } [ options . customHeaders ] Headers that will be added to the request @returns { Promise } A promise is returned @resolve { HttpOperationResponse } - The deserialized result object . @reject { Error } - The error object .
listRegionalByResourceGroupWithHttpOperationResponse(resourceGroupName, location, options) {
    let client = this.client;
    let self = this;
    return new Promise((resolve, reject) => {
      self._listRegionalByResourceGroup(resourceGroupName, location, options, (err, result, request, response) => {
        let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
        httpOperationResponse.body = result;
        if (err) { reject(err); }
        else { resolve(httpOperationResponse); }
        return;
      });
    });
  }
listRegionalByResourceGroupWithHttpOperationResponse ( resourceGroupName , location , options ) { let client = this . client ; let self = this ; return new Promise ( ( resolve , reject ) => { self . _listRegionalByResourceGroup ( resourceGroupName , location , options , ( err , result , request , response ) => { let httpOperationResponse = new msRest . HttpOperationResponse ( request , response ) ; httpOperationResponse . body = result ; if ( err ) { reject ( err ) ; } else { resolve ( httpOperationResponse ) ; } return ; } ) ; } ) ; }
@summary List all regional event subscriptions under an Azure subscription
 and resource group
@summary List all regional event subscriptions under an Azure subscription and resource group