function catTasks (params, options, callback) {
    options = options || {}
    if (typeof options === 'function') {
      callback = options
      options = {}
    }
    if (typeof params === 'function' || params == null) {
      callback = params
      params = {}
      options = {}
    }

    // validate headers object
    if (options.headers != null && typeof options.headers !== 'object') {
      const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)
      return handleError(err, callback)
    }

    var warnings = []
    var { method, body, ...querystring } = params
    querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings)

    var ignore = options.ignore
    if (typeof ignore === 'number') {
      options.ignore = [ignore]
    }

    var path = ''

    if (method == null) method = 'GET'
    path = '/' + '_cat' + '/' + 'tasks'

    // build request object
    const request = {
      method,
      path,
      body: null,
      querystring
    }

    options.warnings = warnings.length === 0 ? null : warnings
    return makeRequest(request, options, callback)
  }
/**
   * Perform a cat.tasks request
   * Returns information about the tasks currently executing on one or more nodes in the cluster.
   * https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html
   */
Perform a cat.tasks request
Returns information about the tasks currently executing on one or more nodes in the cluster.
Perform a cat . tasks request Returns information about the tasks currently executing on one or more nodes in the cluster .
function catTasks (params, options, callback) {
    options = options || {}
    if (typeof options === 'function') {
      callback = options
      options = {}
    }
    if (typeof params === 'function' || params == null) {
      callback = params
      params = {}
      options = {}
    }
    if (options.headers != null && typeof options.headers !== 'object') {
      const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)
      return handleError(err, callback)
    }
    var warnings = []
    var { method, body, ...querystring } = params
    querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings)
    var ignore = options.ignore
    if (typeof ignore === 'number') {
      options.ignore = [ignore]
    }
    var path = ''
    if (method == null) method = 'GET'
    path = '/' + '_cat' + '/' + 'tasks'
    const request = {
      method,
      path,
      body: null,
      querystring
    }
    options.warnings = warnings.length === 0 ? null : warnings
    return makeRequest(request, options, callback)
  }
function catTasks ( params , options , callback ) { options = options || { } if ( typeof options === 'function' ) { callback = options options = { } } if ( typeof params === 'function' || params == null ) { callback = params params = { } options = { } } if ( options . headers != null && typeof options . headers !== 'object' ) { const err = new ConfigurationError ( ` ${ typeof options . headers } ` ) return handleError ( err , callback ) } var warnings = [ ] var { method , body , ... querystring } = params querystring = snakeCaseKeys ( acceptedQuerystring , snakeCase , querystring , warnings ) var ignore = options . ignore if ( typeof ignore === 'number' ) { options . ignore = [ ignore ] } var path = '' if ( method == null ) method = 'GET' path = '/' + '_cat' + '/' + 'tasks' const request = { method , path , body : null , querystring } options . warnings = warnings . length === 0 ? null : warnings return makeRequest ( request , options , callback ) }
Perform a cat.tasks request
 Returns information about the tasks currently executing on one or more nodes in the cluster.
Perform a cat . tasks request Returns information about the tasks currently executing on one or more nodes in the cluster .
// validate headers object // build request object