Skip to content

Commit bf97b20

Browse files
committed
API generation
1 parent 00e3941 commit bf97b20

File tree

125 files changed

+0
-1125
lines changed

Some content is hidden

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

125 files changed

+0
-1125
lines changed

api/api/bulk.js

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

84-
// promises support
85-
if (callback == null) {
86-
return new Promise((resolve, reject) => {
87-
bulk(params, options, (err, body) => {
88-
err ? reject(err) : resolve(body)
89-
})
90-
})
91-
}
92-
9384
// check required parameters
9485
if (params['body'] == null) {
9586
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['repository'] == null) {
8677
const err = new ConfigurationError('Missing required parameter: repository')

api/api/cat.tasks.js

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

81-
// promises support
82-
if (callback == null) {
83-
return new Promise((resolve, reject) => {
84-
catTasks(params, options, (err, body) => {
85-
err ? reject(err) : resolve(body)
86-
})
87-
})
88-
}
89-
9081
// check required parameters
9182
if (params.body != null) {
9283
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/clear_scroll.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,6 @@ function buildClearScroll (opts) {
5757
options = {}
5858
}
5959

60-
// promises support
61-
if (callback == null) {
62-
return new Promise((resolve, reject) => {
63-
clearScroll(params, options, (err, body) => {
64-
err ? reject(err) : resolve(body)
65-
})
66-
})
67-
}
68-
6960
// validate headers object
7061
if (options.headers != null && typeof options.headers !== 'object') {
7162
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

api/api/cluster.allocation_explain.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,6 @@ function buildClusterAllocationExplain (opts) {
6262
options = {}
6363
}
6464

65-
// promises support
66-
if (callback == null) {
67-
return new Promise((resolve, reject) => {
68-
clusterAllocationExplain(params, options, (err, body) => {
69-
err ? reject(err) : resolve(body)
70-
})
71-
})
72-
}
73-
7465
// validate headers object
7566
if (options.headers != null && typeof options.headers !== 'object') {
7667
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)

api/api/cluster.get_settings.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,6 @@ function buildClusterGetSettings (opts) {
6666
options = {}
6767
}
6868

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

api/api/cluster.health.js

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

83-
// promises support
84-
if (callback == null) {
85-
return new Promise((resolve, reject) => {
86-
clusterHealth(params, options, (err, body) => {
87-
err ? reject(err) : resolve(body)
88-
})
89-
})
90-
}
91-
9283
// check required parameters
9384
if (params.body != null) {
9485
const err = new ConfigurationError('This API does not require a body')

0 commit comments

Comments
 (0)