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')

0 commit comments

Comments
 (0)