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

    // check required parameters
    if (params['alias'] == null) {
      const err = new ConfigurationError('Missing required parameter: alias')
      return handleError(err, callback)
    }

    // check required url components
    if ((params['new_index'] != null || params['newIndex'] != null) && (params['alias'] == null)) {
      const err = new ConfigurationError('Missing required parameter of the url: alias')
      return handleError(err, callback)
    }

    // 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, alias, newIndex, new_index, ...querystring } = params
    querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings)

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

    var path = ''

    if ((alias) != null && (new_index || newIndex) != null) {
      if (method == null) method = 'POST'
      path = '/' + encodeURIComponent(alias) + '/' + '_rollover' + '/' + encodeURIComponent(new_index || newIndex)
    } else {
      if (method == null) method = 'POST'
      path = '/' + encodeURIComponent(alias) + '/' + '_rollover'
    }

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

    options.warnings = warnings.length === 0 ? null : warnings
    return makeRequest(request, options, callback)
  }
/**
   * Perform a indices.rollover request
   * Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
   * https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html
   */
Perform a indices.rollover request
Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
Perform a indices . rollover request Updates an alias to point to a new index when the existing index is considered to be too large or too old .
function indicesRollover (params, options, callback) {
    options = options || {}
    if (typeof options === 'function') {
      callback = options
      options = {}
    }
    if (typeof params === 'function' || params == null) {
      callback = params
      params = {}
      options = {}
    }
    if (params['alias'] == null) {
      const err = new ConfigurationError('Missing required parameter: alias')
      return handleError(err, callback)
    }
    if ((params['new_index'] != null || params['newIndex'] != null) && (params['alias'] == null)) {
      const err = new ConfigurationError('Missing required parameter of the url: alias')
      return handleError(err, callback)
    }
    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, alias, newIndex, new_index, ...querystring } = params
    querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings)
    var ignore = options.ignore
    if (typeof ignore === 'number') {
      options.ignore = [ignore]
    }
    var path = ''
    if ((alias) != null && (new_index || newIndex) != null) {
      if (method == null) method = 'POST'
      path = '/' + encodeURIComponent(alias) + '/' + '_rollover' + '/' + encodeURIComponent(new_index || newIndex)
    } else {
      if (method == null) method = 'POST'
      path = '/' + encodeURIComponent(alias) + '/' + '_rollover'
    }
    const request = {
      method,
      path,
      body: body || '',
      querystring
    }
    options.warnings = warnings.length === 0 ? null : warnings
    return makeRequest(request, options, callback)
  }
function indicesRollover ( params , options , callback ) { options = options || { } if ( typeof options === 'function' ) { callback = options options = { } } if ( typeof params === 'function' || params == null ) { callback = params params = { } options = { } } if ( params [ 'alias' ] == null ) { const err = new ConfigurationError ( 'Missing required parameter: alias' ) return handleError ( err , callback ) } if ( ( params [ 'new_index' ] != null || params [ 'newIndex' ] != null ) && ( params [ 'alias' ] == null ) ) { const err = new ConfigurationError ( 'Missing required parameter of the url: alias' ) return handleError ( err , callback ) } if ( options . headers != null && typeof options . headers !== 'object' ) { const err = new ConfigurationError ( ` ${ typeof options . headers } ` ) return handleError ( err , callback ) } var warnings = [ ] var { method , body , alias , newIndex , new_index , ... querystring } = params querystring = snakeCaseKeys ( acceptedQuerystring , snakeCase , querystring , warnings ) var ignore = options . ignore if ( typeof ignore === 'number' ) { options . ignore = [ ignore ] } var path = '' if ( ( alias ) != null && ( new_index || newIndex ) != null ) { if ( method == null ) method = 'POST' path = '/' + encodeURIComponent ( alias ) + '/' + '_rollover' + '/' + encodeURIComponent ( new_index || newIndex ) } else { if ( method == null ) method = 'POST' path = '/' + encodeURIComponent ( alias ) + '/' + '_rollover' } const request = { method , path , body : body || '' , querystring } options . warnings = warnings . length === 0 ? null : warnings return makeRequest ( request , options , callback ) }
Perform a indices.rollover request
 Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
Perform a indices . rollover request Updates an alias to point to a new index when the existing index is considered to be too large or too old .
// check required parameters // check required url components // validate headers object // build request object