Skip to content

Commit 059a2c9

Browse files
committed
API generation
1 parent f150872 commit 059a2c9

Some content is hidden

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

74 files changed

+1170
-1019
lines changed

api/api/async_search.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ AsyncSearchApi.prototype.delete = function asyncSearchDeleteApi (params, options
3535
;[params, options, callback] = normalizeArguments(params, options, callback)
3636

3737
// check required parameters
38-
if (params['id'] == null) {
38+
if (params.id == null) {
3939
const err = new this[kConfigurationError]('Missing required parameter: id')
4040
return handleError(err, callback)
4141
}
4242

43-
var { method, body, id, ...querystring } = params
43+
let { method, body, id, ...querystring } = params
4444
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
4545

46-
var path = ''
46+
let path = ''
4747
if (method == null) method = 'DELETE'
4848
path = '/' + '_async_search' + '/' + encodeURIComponent(id)
4949

@@ -62,15 +62,15 @@ AsyncSearchApi.prototype.get = function asyncSearchGetApi (params, options, call
6262
;[params, options, callback] = normalizeArguments(params, options, callback)
6363

6464
// check required parameters
65-
if (params['id'] == null) {
65+
if (params.id == null) {
6666
const err = new this[kConfigurationError]('Missing required parameter: id')
6767
return handleError(err, callback)
6868
}
6969

70-
var { method, body, id, ...querystring } = params
70+
let { method, body, id, ...querystring } = params
7171
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
7272

73-
var path = ''
73+
let path = ''
7474
if (method == null) method = 'GET'
7575
path = '/' + '_async_search' + '/' + encodeURIComponent(id)
7676

@@ -89,15 +89,15 @@ AsyncSearchApi.prototype.status = function asyncSearchStatusApi (params, options
8989
;[params, options, callback] = normalizeArguments(params, options, callback)
9090

9191
// check required parameters
92-
if (params['id'] == null) {
92+
if (params.id == null) {
9393
const err = new this[kConfigurationError]('Missing required parameter: id')
9494
return handleError(err, callback)
9595
}
9696

97-
var { method, body, id, ...querystring } = params
97+
let { method, body, id, ...querystring } = params
9898
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
9999

100-
var path = ''
100+
let path = ''
101101
if (method == null) method = 'GET'
102102
path = '/' + '_async_search' + '/' + 'status' + '/' + encodeURIComponent(id)
103103

@@ -115,10 +115,10 @@ AsyncSearchApi.prototype.status = function asyncSearchStatusApi (params, options
115115
AsyncSearchApi.prototype.submit = function asyncSearchSubmitApi (params, options, callback) {
116116
;[params, options, callback] = normalizeArguments(params, options, callback)
117117

118-
var { method, body, index, ...querystring } = params
118+
let { method, body, index, ...querystring } = params
119119
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
120120

121-
var path = ''
121+
let path = ''
122122
if ((index) != null) {
123123
if (method == null) method = 'POST'
124124
path = '/' + encodeURIComponent(index) + '/' + '_async_search'

api/api/autoscaling.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ AutoscalingApi.prototype.deleteAutoscalingPolicy = function autoscalingDeleteAut
3535
;[params, options, callback] = normalizeArguments(params, options, callback)
3636

3737
// check required parameters
38-
if (params['name'] == null) {
38+
if (params.name == null) {
3939
const err = new this[kConfigurationError]('Missing required parameter: name')
4040
return handleError(err, callback)
4141
}
4242

43-
var { method, body, name, ...querystring } = params
43+
let { method, body, name, ...querystring } = params
4444
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
4545

46-
var path = ''
46+
let path = ''
4747
if (method == null) method = 'DELETE'
4848
path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name)
4949

@@ -61,10 +61,10 @@ AutoscalingApi.prototype.deleteAutoscalingPolicy = function autoscalingDeleteAut
6161
AutoscalingApi.prototype.getAutoscalingCapacity = function autoscalingGetAutoscalingCapacityApi (params, options, callback) {
6262
;[params, options, callback] = normalizeArguments(params, options, callback)
6363

64-
var { method, body, ...querystring } = params
64+
let { method, body, ...querystring } = params
6565
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
6666

67-
var path = ''
67+
let path = ''
6868
if (method == null) method = 'GET'
6969
path = '/' + '_autoscaling' + '/' + 'capacity'
7070

@@ -83,15 +83,15 @@ AutoscalingApi.prototype.getAutoscalingPolicy = function autoscalingGetAutoscali
8383
;[params, options, callback] = normalizeArguments(params, options, callback)
8484

8585
// check required parameters
86-
if (params['name'] == null) {
86+
if (params.name == null) {
8787
const err = new this[kConfigurationError]('Missing required parameter: name')
8888
return handleError(err, callback)
8989
}
9090

91-
var { method, body, name, ...querystring } = params
91+
let { method, body, name, ...querystring } = params
9292
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
9393

94-
var path = ''
94+
let path = ''
9595
if (method == null) method = 'GET'
9696
path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name)
9797

@@ -110,19 +110,19 @@ AutoscalingApi.prototype.putAutoscalingPolicy = function autoscalingPutAutoscali
110110
;[params, options, callback] = normalizeArguments(params, options, callback)
111111

112112
// check required parameters
113-
if (params['name'] == null) {
113+
if (params.name == null) {
114114
const err = new this[kConfigurationError]('Missing required parameter: name')
115115
return handleError(err, callback)
116116
}
117-
if (params['body'] == null) {
117+
if (params.body == null) {
118118
const err = new this[kConfigurationError]('Missing required parameter: body')
119119
return handleError(err, callback)
120120
}
121121

122-
var { method, body, name, ...querystring } = params
122+
let { method, body, name, ...querystring } = params
123123
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
124124

125-
var path = ''
125+
let path = ''
126126
if (method == null) method = 'PUT'
127127
path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name)
128128

api/api/bulk.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ function bulkApi (params, options, callback) {
3030
;[params, options, callback] = normalizeArguments(params, options, callback)
3131

3232
// check required parameters
33-
if (params['body'] == null) {
33+
if (params.body == null) {
3434
const err = new this[kConfigurationError]('Missing required parameter: body')
3535
return handleError(err, callback)
3636
}
3737

3838
// check required url components
39-
if (params['type'] != null && (params['index'] == null)) {
39+
if (params.type != null && (params.index == null)) {
4040
const err = new this[kConfigurationError]('Missing required parameter of the url: index')
4141
return handleError(err, callback)
4242
}
4343

44-
var { method, body, index, type, ...querystring } = params
44+
let { method, body, index, type, ...querystring } = params
4545
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
4646

47-
var path = ''
47+
let path = ''
4848
if ((index) != null && (type) != null) {
4949
if (method == null) method = 'POST'
5050
path = '/' + encodeURIComponent(index) + '/' + encodeURIComponent(type) + '/' + '_bulk'

0 commit comments

Comments
 (0)