Skip to content

Commit 1f6c68d

Browse files
authored
v7.0.0-rc1 support 🚀 (#792)
Support for Elasticsearch `v7.0.0-rc1`
1 parent c767570 commit 1f6c68d

File tree

264 files changed

+743
-3166
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

264 files changed

+743
-3166
lines changed

‎.ci/test-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
ELASTICSEARCH_VERSION:
3-
- 7.0.0-beta1
3+
- 7.0.0-rc1
44

55
NODE_JS_VERSION:
66
- 11

‎.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ node_js:
1111

1212
env:
1313
global:
14-
- ELASTICSEARCH_VERSION=7.0.0-beta1
14+
- ELASTICSEARCH_VERSION=7.0.0-rc1
1515
- QUIET=true
1616

1717
before_install:

‎api/api/bulk.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,6 @@ function buildBulk (opts) {
7979
options = {}
8080
}
8181

82-
// promises support
83-
if (callback == null) {
84-
return new Promise((resolve, reject) => {
85-
bulk(params, options, (err, body) => {
86-
err ? reject(err) : resolve(body)
87-
})
88-
})
89-
}
90-
9182
// check required parameters
9283
if (params['body'] == null) {
9384
const err = new ConfigurationError('Missing required parameter: body')

‎api/api/cat.aliases.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,6 @@ function buildCatAliases (opts) {
7171
options = {}
7272
}
7373

74-
// promises support
75-
if (callback == null) {
76-
return new Promise((resolve, reject) => {
77-
catAliases(params, options, (err, body) => {
78-
err ? reject(err) : resolve(body)
79-
})
80-
})
81-
}
82-
8374
// check required parameters
8475
if (params.body != null) {
8576
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.allocation.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,6 @@ function buildCatAllocation (opts) {
7373
options = {}
7474
}
7575

76-
// promises support
77-
if (callback == null) {
78-
return new Promise((resolve, reject) => {
79-
catAllocation(params, options, (err, body) => {
80-
err ? reject(err) : resolve(body)
81-
})
82-
})
83-
}
84-
8576
// check required parameters
8677
if (params.body != null) {
8778
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.count.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,6 @@ function buildCatCount (opts) {
7171
options = {}
7272
}
7373

74-
// promises support
75-
if (callback == null) {
76-
return new Promise((resolve, reject) => {
77-
catCount(params, options, (err, body) => {
78-
err ? reject(err) : resolve(body)
79-
})
80-
})
81-
}
82-
8374
// check required parameters
8475
if (params.body != null) {
8576
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.fielddata.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,6 @@ function buildCatFielddata (opts) {
7575
options = {}
7676
}
7777

78-
// promises support
79-
if (callback == null) {
80-
return new Promise((resolve, reject) => {
81-
catFielddata(params, options, (err, body) => {
82-
err ? reject(err) : resolve(body)
83-
})
84-
})
85-
}
86-
8778
// check required parameters
8879
if (params.body != null) {
8980
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.health.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,6 @@ function buildCatHealth (opts) {
7272
options = {}
7373
}
7474

75-
// promises support
76-
if (callback == null) {
77-
return new Promise((resolve, reject) => {
78-
catHealth(params, options, (err, body) => {
79-
err ? reject(err) : resolve(body)
80-
})
81-
})
82-
}
83-
8475
// check required parameters
8576
if (params.body != null) {
8677
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.help.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@ function buildCatHelp (opts) {
5959
options = {}
6060
}
6161

62-
// promises support
63-
if (callback == null) {
64-
return new Promise((resolve, reject) => {
65-
catHelp(params, options, (err, body) => {
66-
err ? reject(err) : resolve(body)
67-
})
68-
})
69-
}
70-
7162
// check required parameters
7263
if (params.body != null) {
7364
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.indices.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ function buildCatIndices (opts) {
7777
options = {}
7878
}
7979

80-
// promises support
81-
if (callback == null) {
82-
return new Promise((resolve, reject) => {
83-
catIndices(params, options, (err, body) => {
84-
err ? reject(err) : resolve(body)
85-
})
86-
})
87-
}
88-
8980
// check required parameters
9081
if (params.body != null) {
9182
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.master.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,6 @@ function buildCatMaster (opts) {
7070
options = {}
7171
}
7272

73-
// promises support
74-
if (callback == null) {
75-
return new Promise((resolve, reject) => {
76-
catMaster(params, options, (err, body) => {
77-
err ? reject(err) : resolve(body)
78-
})
79-
})
80-
}
81-
8273
// check required parameters
8374
if (params.body != null) {
8475
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.nodeattrs.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,6 @@ function buildCatNodeattrs (opts) {
7070
options = {}
7171
}
7272

73-
// promises support
74-
if (callback == null) {
75-
return new Promise((resolve, reject) => {
76-
catNodeattrs(params, options, (err, body) => {
77-
err ? reject(err) : resolve(body)
78-
})
79-
})
80-
}
81-
8273
// check required parameters
8374
if (params.body != null) {
8475
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.nodes.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,6 @@ function buildCatNodes (opts) {
7373
options = {}
7474
}
7575

76-
// promises support
77-
if (callback == null) {
78-
return new Promise((resolve, reject) => {
79-
catNodes(params, options, (err, body) => {
80-
err ? reject(err) : resolve(body)
81-
})
82-
})
83-
}
84-
8576
// check required parameters
8677
if (params.body != null) {
8778
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.pending_tasks.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,6 @@ function buildCatPendingTasks (opts) {
7070
options = {}
7171
}
7272

73-
// promises support
74-
if (callback == null) {
75-
return new Promise((resolve, reject) => {
76-
catPendingTasks(params, options, (err, body) => {
77-
err ? reject(err) : resolve(body)
78-
})
79-
})
80-
}
81-
8273
// check required parameters
8374
if (params.body != null) {
8475
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.plugins.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,6 @@ function buildCatPlugins (opts) {
7070
options = {}
7171
}
7272

73-
// promises support
74-
if (callback == null) {
75-
return new Promise((resolve, reject) => {
76-
catPlugins(params, options, (err, body) => {
77-
err ? reject(err) : resolve(body)
78-
})
79-
})
80-
}
81-
8273
// check required parameters
8374
if (params.body != null) {
8475
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.recovery.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,6 @@ function buildCatRecovery (opts) {
7171
options = {}
7272
}
7373

74-
// promises support
75-
if (callback == null) {
76-
return new Promise((resolve, reject) => {
77-
catRecovery(params, options, (err, body) => {
78-
err ? reject(err) : resolve(body)
79-
})
80-
})
81-
}
82-
8374
// check required parameters
8475
if (params.body != null) {
8576
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.repositories.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,6 @@ function buildCatRepositories (opts) {
7070
options = {}
7171
}
7272

73-
// promises support
74-
if (callback == null) {
75-
return new Promise((resolve, reject) => {
76-
catRepositories(params, options, (err, body) => {
77-
err ? reject(err) : resolve(body)
78-
})
79-
})
80-
}
81-
8273
// check required parameters
8374
if (params.body != null) {
8475
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.segments.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,6 @@ function buildCatSegments (opts) {
6868
options = {}
6969
}
7070

71-
// promises support
72-
if (callback == null) {
73-
return new Promise((resolve, reject) => {
74-
catSegments(params, options, (err, body) => {
75-
err ? reject(err) : resolve(body)
76-
})
77-
})
78-
}
79-
8071
// check required parameters
8172
if (params.body != null) {
8273
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.shards.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,6 @@ function buildCatShards (opts) {
7373
options = {}
7474
}
7575

76-
// promises support
77-
if (callback == null) {
78-
return new Promise((resolve, reject) => {
79-
catShards(params, options, (err, body) => {
80-
err ? reject(err) : resolve(body)
81-
})
82-
})
83-
}
84-
8576
// check required parameters
8677
if (params.body != null) {
8778
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.snapshots.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,6 @@ function buildCatSnapshots (opts) {
7272
options = {}
7373
}
7474

75-
// promises support
76-
if (callback == null) {
77-
return new Promise((resolve, reject) => {
78-
catSnapshots(params, options, (err, body) => {
79-
err ? reject(err) : resolve(body)
80-
})
81-
})
82-
}
83-
8475
// check required parameters
8576
if (params.body != null) {
8677
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.tasks.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,6 @@ function buildCatTasks (opts) {
7575
options = {}
7676
}
7777

78-
// promises support
79-
if (callback == null) {
80-
return new Promise((resolve, reject) => {
81-
catTasks(params, options, (err, body) => {
82-
err ? reject(err) : resolve(body)
83-
})
84-
})
85-
}
86-
8778
// check required parameters
8879
if (params.body != null) {
8980
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.templates.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,6 @@ function buildCatTemplates (opts) {
7171
options = {}
7272
}
7373

74-
// promises support
75-
if (callback == null) {
76-
return new Promise((resolve, reject) => {
77-
catTemplates(params, options, (err, body) => {
78-
err ? reject(err) : resolve(body)
79-
})
80-
})
81-
}
82-
8374
// check required parameters
8475
if (params.body != null) {
8576
const err = new ConfigurationError('This API does not require a body')

‎api/api/cat.thread_pool.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,6 @@ function buildCatThreadPool (opts) {
7373
options = {}
7474
}
7575

76-
// promises support
77-
if (callback == null) {
78-
return new Promise((resolve, reject) => {
79-
catThreadPool(params, options, (err, body) => {
80-
err ? reject(err) : resolve(body)
81-
})
82-
})
83-
}
84-
8576
// check required parameters
8677
if (params.body != null) {
8778
const err = new ConfigurationError('This API does not require a body')

‎api/api/ccr.delete_auto_follow_pattern.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ function buildCcrDeleteAutoFollowPattern (opts) {
5151
options = {}
5252
}
5353

54-
// promises support
55-
if (callback == null) {
56-
return new Promise((resolve, reject) => {
57-
ccrDeleteAutoFollowPattern(params, options, (err, body) => {
58-
err ? reject(err) : resolve(body)
59-
})
60-
})
61-
}
62-
6354
// check required parameters
6455
if (params['name'] == null) {
6556
const err = new ConfigurationError('Missing required parameter: name')

‎api/api/ccr.follow.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,6 @@ function buildCcrFollow (opts) {
5353
options = {}
5454
}
5555

56-
// promises support
57-
if (callback == null) {
58-
return new Promise((resolve, reject) => {
59-
ccrFollow(params, options, (err, body) => {
60-
err ? reject(err) : resolve(body)
61-
})
62-
})
63-
}
64-
6556
// check required parameters
6657
if (params['index'] == null) {
6758
const err = new ConfigurationError('Missing required parameter: index')

0 commit comments

Comments
 (0)