Skip to content

Support for Elasticsearch 7.5 #1015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/test-matrix.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
ELASTICSEARCH_VERSION:
- 7.4.0
- 7.5.0

NODE_JS_VERSION:
- 12
Expand Down
2 changes: 0 additions & 2 deletions api/api/cat.aliases.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ function buildCatAliases (opts) {
const acceptedQuerystring = [
'format',
'local',
'master_timeout',
'h',
'help',
's',
Expand All @@ -27,7 +26,6 @@ function buildCatAliases (opts) {
]

const snakeCase = {
masterTimeout: 'master_timeout',
errorTrace: 'error_trace',
filterPath: 'filter_path'
}
Expand Down
3 changes: 0 additions & 3 deletions api/api/cat.count.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ function buildCatCount (opts) {

const acceptedQuerystring = [
'format',
'local',
'master_timeout',
'h',
'help',
's',
Expand All @@ -27,7 +25,6 @@ function buildCatCount (opts) {
]

const snakeCase = {
masterTimeout: 'master_timeout',
errorTrace: 'error_trace',
filterPath: 'filter_path'
}
Expand Down
3 changes: 0 additions & 3 deletions api/api/cat.fielddata.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ function buildCatFielddata (opts) {
const acceptedQuerystring = [
'format',
'bytes',
'local',
'master_timeout',
'h',
'help',
's',
Expand All @@ -29,7 +27,6 @@ function buildCatFielddata (opts) {
]

const snakeCase = {
masterTimeout: 'master_timeout',
errorTrace: 'error_trace',
filterPath: 'filter_path'
}
Expand Down
4 changes: 1 addition & 3 deletions api/api/cat.health.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ function buildCatHealth (opts) {

const acceptedQuerystring = [
'format',
'local',
'master_timeout',
'h',
'help',
's',
'time',
'ts',
'v',
'pretty',
Expand All @@ -28,7 +27,6 @@ function buildCatHealth (opts) {
]

const snakeCase = {
masterTimeout: 'master_timeout',
errorTrace: 'error_trace',
filterPath: 'filter_path'
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.indices.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function buildCatIndices (opts) {
'help',
'pri',
's',
'time',
'v',
'include_unloaded_segments',
'pretty',
Expand Down
2 changes: 2 additions & 0 deletions api/api/cat.nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ function buildCatNodes (opts) {
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts

const acceptedQuerystring = [
'bytes',
'format',
'full_id',
'local',
'master_timeout',
'h',
'help',
's',
'time',
'v',
'pretty',
'human',
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.pending_tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function buildCatPendingTasks (opts) {
'h',
'help',
's',
'time',
'v',
'pretty',
'human',
Expand Down
7 changes: 5 additions & 2 deletions api/api/cat.recovery.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ function buildCatRecovery (opts) {

const acceptedQuerystring = [
'format',
'active_only',
'bytes',
'master_timeout',
'detailed',
'h',
'help',
'index',
's',
'time',
'v',
'pretty',
'human',
Expand All @@ -27,7 +30,7 @@ function buildCatRecovery (opts) {
]

const snakeCase = {
masterTimeout: 'master_timeout',
activeOnly: 'active_only',
errorTrace: 'error_trace',
filterPath: 'filter_path'
}
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.shards.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function buildCatShards (opts) {
'h',
'help',
's',
'time',
'v',
'pretty',
'human',
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.snapshots.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function buildCatSnapshots (opts) {
'h',
'help',
's',
'time',
'v',
'pretty',
'human',
Expand Down
1 change: 1 addition & 0 deletions api/api/cat.tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function buildCatTasks (opts) {
'h',
'help',
's',
'time',
'v',
'pretty',
'human',
Expand Down
77 changes: 77 additions & 0 deletions api/api/ccr.pause_auto_follow_pattern.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

'use strict'

/* eslint camelcase: 0 */
/* eslint no-unused-vars: 0 */

function buildCcrPauseAutoFollowPattern (opts) {
// eslint-disable-next-line no-unused-vars
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts

const acceptedQuerystring = [

]

const snakeCase = {

}

/**
* Perform a ccr.pause_auto_follow_pattern request
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-pause-auto-follow-pattern.html
*/
return function ccrPauseAutoFollowPattern (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['name'] == null) {
const err = new ConfigurationError('Missing required parameter: name')
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, name, ...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 = 'POST'
path = '/' + '_ccr' + '/' + 'auto_follow' + '/' + encodeURIComponent(name) + '/' + 'pause'

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

options.warnings = warnings.length === 0 ? null : warnings
return makeRequest(request, options, callback)
}
}

module.exports = buildCcrPauseAutoFollowPattern
77 changes: 77 additions & 0 deletions api/api/ccr.resume_auto_follow_pattern.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

'use strict'

/* eslint camelcase: 0 */
/* eslint no-unused-vars: 0 */

function buildCcrResumeAutoFollowPattern (opts) {
// eslint-disable-next-line no-unused-vars
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts

const acceptedQuerystring = [

]

const snakeCase = {

}

/**
* Perform a ccr.resume_auto_follow_pattern request
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-resume-auto-follow-pattern.html
*/
return function ccrResumeAutoFollowPattern (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['name'] == null) {
const err = new ConfigurationError('Missing required parameter: name')
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, name, ...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 = 'POST'
path = '/' + '_ccr' + '/' + 'auto_follow' + '/' + encodeURIComponent(name) + '/' + 'resume'

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

options.warnings = warnings.length === 0 ? null : warnings
return makeRequest(request, options, callback)
}
}

module.exports = buildCcrResumeAutoFollowPattern
76 changes: 76 additions & 0 deletions api/api/enrich.delete_policy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information

'use strict'

/* eslint camelcase: 0 */
/* eslint no-unused-vars: 0 */

function buildEnrichDeletePolicy (opts) {
// eslint-disable-next-line no-unused-vars
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts

const acceptedQuerystring = [

]

const snakeCase = {

}

/**
* Perform a enrich.delete_policy request
*/
return function enrichDeletePolicy (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['name'] == null) {
const err = new ConfigurationError('Missing required parameter: name')
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, name, ...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 = 'DELETE'
path = '/' + '_enrich' + '/' + 'policy' + '/' + encodeURIComponent(name)

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

options.warnings = warnings.length === 0 ? null : warnings
return makeRequest(request, options, callback)
}
}

module.exports = buildEnrichDeletePolicy
Loading