lib/services/consumptionManagement/lib/operations/marketplaces.js
/**
   * Lists the marketplaces for a scope by departmentId and current billing
   * period. Marketplaces are available via this API only for May 1, 2014 or
   * later.
   *
   * @param {string} departmentId Department ID
   *
   * @param {object} [options] Optional Parameters.
   *
   * @param {string} [options.filter] May be used to filter marketplaces by
   * properties/usageEnd (Utc time), properties/usageStart (Utc time),
   * properties/resourceGroup, properties/instanceName or properties/instanceId.
   * The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not
   * currently support 'ne', 'or', or 'not'.
   *
   * @param {number} [options.top] May be used to limit the number of results to
   * the most recent N marketplaces.
   *
   * @param {string} [options.skiptoken] Skiptoken is only used if a previous
   * operation returned a partial result. If a previous response contains a
   * nextLink element, the value of the nextLink element will include a skiptoken
   * parameter that specifies a starting point to use for subsequent calls.
   *
   * @param {object} [options.customHeaders] Headers that will be added to the
   * request
   *
   * @returns {Promise} A promise is returned
   *
   * @resolve {HttpOperationResponse<MarketplacesListResult>} - The deserialized result object.
   *
   * @reject {Error} - The error object.
   */
Lists the marketplaces for a scope by departmentId and current billing
period. Marketplaces are available via this API only for May 1, 2014 or
later.

@param {string} departmentId Department ID

@param {object} [options] Optional Parameters.



@param {number} [options.top] May be used to limit the number of results to
the most recent N marketplaces.

@param {string} [options.skiptoken] Skiptoken is only used if a previous
operation returned a partial result. If a previous response contains a
nextLink element, the value of the nextLink element will include a skiptoken
parameter that specifies a starting point to use for subsequent calls.

@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.
Lists the marketplaces for a scope by departmentId and current billing period . Marketplaces are available via this API only for May 1 2014 or later . @param { string } departmentId Department ID @param { object } [ options ] Optional Parameters . @param { number } [ options . top ] May be used to limit the number of results to the most recent N marketplaces . @param { string } [ options . skiptoken ] Skiptoken is only used if a previous operation returned a partial result . If a previous response contains a nextLink element the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls . @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 .
listByDepartmentWithHttpOperationResponse(departmentId, options) {
    let client = this.client;
    let self = this;
    return new Promise((resolve, reject) => {
      self._listByDepartment(departmentId, options, (err, result, request, response) => {
        let httpOperationResponse = new msRest.HttpOperationResponse(request, response);
        httpOperationResponse.body = result;
        if (err) { reject(err); }
        else { resolve(httpOperationResponse); }
        return;
      });
    });
  }
listByDepartmentWithHttpOperationResponse ( departmentId , options ) { let client = this . client ; let self = this ; return new Promise ( ( resolve , reject ) => { self . _listByDepartment ( departmentId , options , ( err , result , request , response ) => { let httpOperationResponse = new msRest . HttpOperationResponse ( request , response ) ; httpOperationResponse . body = result ; if ( err ) { reject ( err ) ; } else { resolve ( httpOperationResponse ) ; } return ; } ) ; } ) ; }
Lists the marketplaces for a scope by departmentId and current billing
 period.
Lists the marketplaces for a scope by departmentId and current billing period .