@elastic/elasticsearch 7.11.0 → 7.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/api/api/async_search.js +11 -11
- package/api/api/autoscaling.js +12 -12
- package/api/api/bulk.js +4 -4
- package/api/api/cat.js +127 -127
- package/api/api/ccr.js +40 -40
- package/api/api/clear_scroll.js +2 -2
- package/api/api/close_point_in_time.js +2 -2
- package/api/api/cluster.js +36 -36
- package/api/api/count.js +3 -3
- package/api/api/create.js +5 -5
- package/api/api/dangling_indices.js +8 -8
- package/api/api/delete.js +4 -4
- package/api/api/delete_by_query.js +5 -5
- package/api/api/delete_by_query_rethrottle.js +4 -4
- package/api/api/delete_script.js +3 -3
- package/api/api/enrich.js +14 -14
- package/api/api/eql.js +41 -10
- package/api/api/exists.js +4 -4
- package/api/api/exists_source.js +6 -6
- package/api/api/explain.js +4 -4
- package/api/api/features.js +81 -0
- package/api/api/field_caps.js +2 -2
- package/api/api/fleet.js +65 -0
- package/api/api/get.js +4 -4
- package/api/api/get_script.js +3 -3
- package/api/api/get_script_context.js +2 -2
- package/api/api/get_script_languages.js +2 -2
- package/api/api/get_source.js +4 -4
- package/api/api/graph.js +4 -4
- package/api/api/ilm.js +50 -28
- package/api/api/index.js +4 -4
- package/api/api/indices.js +381 -381
- package/api/api/info.js +2 -2
- package/api/api/ingest.js +37 -15
- package/api/api/license.js +14 -14
- package/api/api/logstash.js +125 -0
- package/api/api/mget.js +4 -4
- package/api/api/migration.js +2 -2
- package/api/api/ml.js +338 -208
- package/api/api/monitoring.js +3 -3
- package/api/api/msearch.js +4 -4
- package/api/api/msearch_template.js +4 -4
- package/api/api/mtermvectors.js +3 -3
- package/api/api/nodes.js +12 -12
- package/api/api/open_point_in_time.js +2 -2
- package/api/api/ping.js +2 -2
- package/api/api/put_script.js +5 -5
- package/api/api/rank_eval.js +3 -3
- package/api/api/reindex.js +3 -3
- package/api/api/reindex_rethrottle.js +4 -4
- package/api/api/render_search_template.js +2 -2
- package/api/api/rollup.js +31 -31
- package/api/api/scripts_painless_execute.js +2 -2
- package/api/api/scroll.js +2 -2
- package/api/api/search.js +5 -5
- package/api/api/search_shards.js +2 -2
- package/api/api/search_template.js +4 -4
- package/api/api/searchable_snapshots.js +42 -15
- package/api/api/security.js +464 -86
- package/api/api/shutdown.js +124 -0
- package/api/api/slm.js +21 -21
- package/api/api/snapshot.js +76 -48
- package/api/api/sql.js +96 -12
- package/api/api/ssl.js +2 -2
- package/api/api/tasks.js +7 -7
- package/api/api/terms_enum.js +56 -0
- package/api/api/termvectors.js +3 -3
- package/api/api/text_structure.js +65 -0
- package/api/api/transform.js +25 -25
- package/api/api/update.js +5 -5
- package/api/api/update_by_query.js +4 -4
- package/api/api/update_by_query_rethrottle.js +4 -4
- package/api/api/watcher.js +29 -29
- package/api/api/xpack.js +4 -4
- package/api/index.js +179 -120
- package/api/new.d.ts +1584 -0
- package/api/requestParams.d.ts +203 -7
- package/api/types.d.ts +15455 -0
- package/api/utils.js +4 -4
- package/free-report-junit.xml +3410 -0
- package/index.d.ts +326 -23
- package/index.js +28 -36
- package/lib/Connection.js +6 -4
- package/lib/Helpers.d.ts +4 -2
- package/lib/Helpers.js +31 -17
- package/lib/Serializer.d.ts +5 -0
- package/lib/Serializer.js +17 -6
- package/lib/Transport.d.ts +4 -2
- package/lib/Transport.js +194 -79
- package/lib/errors.d.ts +7 -0
- package/lib/errors.js +26 -2
- package/lib/pool/BaseConnectionPool.js +3 -3
- package/lib/pool/ConnectionPool.js +4 -5
- package/lib/pool/index.d.ts +5 -0
- package/package.json +26 -26
- package/api/kibana.d.ts +0 -485
package/api/api/security.js
CHANGED
|
@@ -34,10 +34,10 @@ function SecurityApi (transport, ConfigurationError) {
|
|
|
34
34
|
SecurityApi.prototype.authenticate = function securityAuthenticateApi (params, options, callback) {
|
|
35
35
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
let { method, body, ...querystring } = params
|
|
38
38
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
let path = ''
|
|
41
41
|
if (method == null) method = 'GET'
|
|
42
42
|
path = '/' + '_security' + '/' + '_authenticate'
|
|
43
43
|
|
|
@@ -56,15 +56,15 @@ SecurityApi.prototype.changePassword = function securityChangePasswordApi (param
|
|
|
56
56
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
57
57
|
|
|
58
58
|
// check required parameters
|
|
59
|
-
if (params
|
|
59
|
+
if (params.body == null) {
|
|
60
60
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
61
61
|
return handleError(err, callback)
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
let { method, body, username, ...querystring } = params
|
|
65
65
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
let path = ''
|
|
68
68
|
if ((username) != null) {
|
|
69
69
|
if (method == null) method = 'PUT'
|
|
70
70
|
path = '/' + '_security' + '/' + 'user' + '/' + encodeURIComponent(username) + '/' + '_password'
|
|
@@ -88,15 +88,15 @@ SecurityApi.prototype.clearApiKeyCache = function securityClearApiKeyCacheApi (p
|
|
|
88
88
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
89
89
|
|
|
90
90
|
// check required parameters
|
|
91
|
-
if (params
|
|
91
|
+
if (params.ids == null) {
|
|
92
92
|
const err = new this[kConfigurationError]('Missing required parameter: ids')
|
|
93
93
|
return handleError(err, callback)
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
let { method, body, ids, ...querystring } = params
|
|
97
97
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
let path = ''
|
|
100
100
|
if (method == null) method = 'POST'
|
|
101
101
|
path = '/' + '_security' + '/' + 'api_key' + '/' + encodeURIComponent(ids) + '/' + '_clear_cache'
|
|
102
102
|
|
|
@@ -115,15 +115,15 @@ SecurityApi.prototype.clearCachedPrivileges = function securityClearCachedPrivil
|
|
|
115
115
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
116
116
|
|
|
117
117
|
// check required parameters
|
|
118
|
-
if (params
|
|
118
|
+
if (params.application == null) {
|
|
119
119
|
const err = new this[kConfigurationError]('Missing required parameter: application')
|
|
120
120
|
return handleError(err, callback)
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
let { method, body, application, ...querystring } = params
|
|
124
124
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
let path = ''
|
|
127
127
|
if (method == null) method = 'POST'
|
|
128
128
|
path = '/' + '_security' + '/' + 'privilege' + '/' + encodeURIComponent(application) + '/' + '_clear_cache'
|
|
129
129
|
|
|
@@ -142,15 +142,15 @@ SecurityApi.prototype.clearCachedRealms = function securityClearCachedRealmsApi
|
|
|
142
142
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
143
143
|
|
|
144
144
|
// check required parameters
|
|
145
|
-
if (params
|
|
145
|
+
if (params.realms == null) {
|
|
146
146
|
const err = new this[kConfigurationError]('Missing required parameter: realms')
|
|
147
147
|
return handleError(err, callback)
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
|
|
150
|
+
let { method, body, realms, ...querystring } = params
|
|
151
151
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
let path = ''
|
|
154
154
|
if (method == null) method = 'POST'
|
|
155
155
|
path = '/' + '_security' + '/' + 'realm' + '/' + encodeURIComponent(realms) + '/' + '_clear_cache'
|
|
156
156
|
|
|
@@ -169,15 +169,15 @@ SecurityApi.prototype.clearCachedRoles = function securityClearCachedRolesApi (p
|
|
|
169
169
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
170
170
|
|
|
171
171
|
// check required parameters
|
|
172
|
-
if (params
|
|
172
|
+
if (params.name == null) {
|
|
173
173
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
174
174
|
return handleError(err, callback)
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
let { method, body, name, ...querystring } = params
|
|
178
178
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
179
179
|
|
|
180
|
-
|
|
180
|
+
let path = ''
|
|
181
181
|
if (method == null) method = 'POST'
|
|
182
182
|
path = '/' + '_security' + '/' + 'role' + '/' + encodeURIComponent(name) + '/' + '_clear_cache'
|
|
183
183
|
|
|
@@ -192,19 +192,63 @@ SecurityApi.prototype.clearCachedRoles = function securityClearCachedRolesApi (p
|
|
|
192
192
|
return this.transport.request(request, options, callback)
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
SecurityApi.prototype.clearCachedServiceTokens = function securityClearCachedServiceTokensApi (params, options, callback) {
|
|
196
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
197
|
+
|
|
198
|
+
// check required parameters
|
|
199
|
+
if (params.namespace == null) {
|
|
200
|
+
const err = new this[kConfigurationError]('Missing required parameter: namespace')
|
|
201
|
+
return handleError(err, callback)
|
|
202
|
+
}
|
|
203
|
+
if (params.service == null) {
|
|
204
|
+
const err = new this[kConfigurationError]('Missing required parameter: service')
|
|
205
|
+
return handleError(err, callback)
|
|
206
|
+
}
|
|
207
|
+
if (params.name == null) {
|
|
208
|
+
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
209
|
+
return handleError(err, callback)
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// check required url components
|
|
213
|
+
if (params.name != null && (params.service == null || params.namespace == null)) {
|
|
214
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: service, namespace')
|
|
215
|
+
return handleError(err, callback)
|
|
216
|
+
} else if (params.service != null && (params.namespace == null)) {
|
|
217
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: namespace')
|
|
218
|
+
return handleError(err, callback)
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
let { method, body, namespace, service, name, ...querystring } = params
|
|
222
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
223
|
+
|
|
224
|
+
let path = ''
|
|
225
|
+
if (method == null) method = 'POST'
|
|
226
|
+
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace) + '/' + encodeURIComponent(service) + '/' + 'credential' + '/' + 'token' + '/' + encodeURIComponent(name) + '/' + '_clear_cache'
|
|
227
|
+
|
|
228
|
+
// build request object
|
|
229
|
+
const request = {
|
|
230
|
+
method,
|
|
231
|
+
path,
|
|
232
|
+
body: body || '',
|
|
233
|
+
querystring
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
return this.transport.request(request, options, callback)
|
|
237
|
+
}
|
|
238
|
+
|
|
195
239
|
SecurityApi.prototype.createApiKey = function securityCreateApiKeyApi (params, options, callback) {
|
|
196
240
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
197
241
|
|
|
198
242
|
// check required parameters
|
|
199
|
-
if (params
|
|
243
|
+
if (params.body == null) {
|
|
200
244
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
201
245
|
return handleError(err, callback)
|
|
202
246
|
}
|
|
203
247
|
|
|
204
|
-
|
|
248
|
+
let { method, body, ...querystring } = params
|
|
205
249
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
206
250
|
|
|
207
|
-
|
|
251
|
+
let path = ''
|
|
208
252
|
if (method == null) method = 'PUT'
|
|
209
253
|
path = '/' + '_security' + '/' + 'api_key'
|
|
210
254
|
|
|
@@ -219,29 +263,74 @@ SecurityApi.prototype.createApiKey = function securityCreateApiKeyApi (params, o
|
|
|
219
263
|
return this.transport.request(request, options, callback)
|
|
220
264
|
}
|
|
221
265
|
|
|
266
|
+
SecurityApi.prototype.createServiceToken = function securityCreateServiceTokenApi (params, options, callback) {
|
|
267
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
268
|
+
|
|
269
|
+
// check required parameters
|
|
270
|
+
if (params.namespace == null) {
|
|
271
|
+
const err = new this[kConfigurationError]('Missing required parameter: namespace')
|
|
272
|
+
return handleError(err, callback)
|
|
273
|
+
}
|
|
274
|
+
if (params.service == null) {
|
|
275
|
+
const err = new this[kConfigurationError]('Missing required parameter: service')
|
|
276
|
+
return handleError(err, callback)
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// check required url components
|
|
280
|
+
if (params.name != null && (params.service == null || params.namespace == null)) {
|
|
281
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: service, namespace')
|
|
282
|
+
return handleError(err, callback)
|
|
283
|
+
} else if (params.service != null && (params.namespace == null)) {
|
|
284
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: namespace')
|
|
285
|
+
return handleError(err, callback)
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
let { method, body, namespace, service, name, ...querystring } = params
|
|
289
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
290
|
+
|
|
291
|
+
let path = ''
|
|
292
|
+
if ((namespace) != null && (service) != null && (name) != null) {
|
|
293
|
+
if (method == null) method = 'PUT'
|
|
294
|
+
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace) + '/' + encodeURIComponent(service) + '/' + 'credential' + '/' + 'token' + '/' + encodeURIComponent(name)
|
|
295
|
+
} else {
|
|
296
|
+
if (method == null) method = 'POST'
|
|
297
|
+
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace) + '/' + encodeURIComponent(service) + '/' + 'credential' + '/' + 'token'
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
// build request object
|
|
301
|
+
const request = {
|
|
302
|
+
method,
|
|
303
|
+
path,
|
|
304
|
+
body: body || '',
|
|
305
|
+
querystring
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
return this.transport.request(request, options, callback)
|
|
309
|
+
}
|
|
310
|
+
|
|
222
311
|
SecurityApi.prototype.deletePrivileges = function securityDeletePrivilegesApi (params, options, callback) {
|
|
223
312
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
224
313
|
|
|
225
314
|
// check required parameters
|
|
226
|
-
if (params
|
|
315
|
+
if (params.application == null) {
|
|
227
316
|
const err = new this[kConfigurationError]('Missing required parameter: application')
|
|
228
317
|
return handleError(err, callback)
|
|
229
318
|
}
|
|
230
|
-
if (params
|
|
319
|
+
if (params.name == null) {
|
|
231
320
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
232
321
|
return handleError(err, callback)
|
|
233
322
|
}
|
|
234
323
|
|
|
235
324
|
// check required url components
|
|
236
|
-
if (params
|
|
325
|
+
if (params.name != null && (params.application == null)) {
|
|
237
326
|
const err = new this[kConfigurationError]('Missing required parameter of the url: application')
|
|
238
327
|
return handleError(err, callback)
|
|
239
328
|
}
|
|
240
329
|
|
|
241
|
-
|
|
330
|
+
let { method, body, application, name, ...querystring } = params
|
|
242
331
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
243
332
|
|
|
244
|
-
|
|
333
|
+
let path = ''
|
|
245
334
|
if (method == null) method = 'DELETE'
|
|
246
335
|
path = '/' + '_security' + '/' + 'privilege' + '/' + encodeURIComponent(application) + '/' + encodeURIComponent(name)
|
|
247
336
|
|
|
@@ -260,15 +349,15 @@ SecurityApi.prototype.deleteRole = function securityDeleteRoleApi (params, optio
|
|
|
260
349
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
261
350
|
|
|
262
351
|
// check required parameters
|
|
263
|
-
if (params
|
|
352
|
+
if (params.name == null) {
|
|
264
353
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
265
354
|
return handleError(err, callback)
|
|
266
355
|
}
|
|
267
356
|
|
|
268
|
-
|
|
357
|
+
let { method, body, name, ...querystring } = params
|
|
269
358
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
270
359
|
|
|
271
|
-
|
|
360
|
+
let path = ''
|
|
272
361
|
if (method == null) method = 'DELETE'
|
|
273
362
|
path = '/' + '_security' + '/' + 'role' + '/' + encodeURIComponent(name)
|
|
274
363
|
|
|
@@ -287,15 +376,15 @@ SecurityApi.prototype.deleteRoleMapping = function securityDeleteRoleMappingApi
|
|
|
287
376
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
288
377
|
|
|
289
378
|
// check required parameters
|
|
290
|
-
if (params
|
|
379
|
+
if (params.name == null) {
|
|
291
380
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
292
381
|
return handleError(err, callback)
|
|
293
382
|
}
|
|
294
383
|
|
|
295
|
-
|
|
384
|
+
let { method, body, name, ...querystring } = params
|
|
296
385
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
297
386
|
|
|
298
|
-
|
|
387
|
+
let path = ''
|
|
299
388
|
if (method == null) method = 'DELETE'
|
|
300
389
|
path = '/' + '_security' + '/' + 'role_mapping' + '/' + encodeURIComponent(name)
|
|
301
390
|
|
|
@@ -310,19 +399,63 @@ SecurityApi.prototype.deleteRoleMapping = function securityDeleteRoleMappingApi
|
|
|
310
399
|
return this.transport.request(request, options, callback)
|
|
311
400
|
}
|
|
312
401
|
|
|
402
|
+
SecurityApi.prototype.deleteServiceToken = function securityDeleteServiceTokenApi (params, options, callback) {
|
|
403
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
404
|
+
|
|
405
|
+
// check required parameters
|
|
406
|
+
if (params.namespace == null) {
|
|
407
|
+
const err = new this[kConfigurationError]('Missing required parameter: namespace')
|
|
408
|
+
return handleError(err, callback)
|
|
409
|
+
}
|
|
410
|
+
if (params.service == null) {
|
|
411
|
+
const err = new this[kConfigurationError]('Missing required parameter: service')
|
|
412
|
+
return handleError(err, callback)
|
|
413
|
+
}
|
|
414
|
+
if (params.name == null) {
|
|
415
|
+
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
416
|
+
return handleError(err, callback)
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
// check required url components
|
|
420
|
+
if (params.name != null && (params.service == null || params.namespace == null)) {
|
|
421
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: service, namespace')
|
|
422
|
+
return handleError(err, callback)
|
|
423
|
+
} else if (params.service != null && (params.namespace == null)) {
|
|
424
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: namespace')
|
|
425
|
+
return handleError(err, callback)
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
let { method, body, namespace, service, name, ...querystring } = params
|
|
429
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
430
|
+
|
|
431
|
+
let path = ''
|
|
432
|
+
if (method == null) method = 'DELETE'
|
|
433
|
+
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace) + '/' + encodeURIComponent(service) + '/' + 'credential' + '/' + 'token' + '/' + encodeURIComponent(name)
|
|
434
|
+
|
|
435
|
+
// build request object
|
|
436
|
+
const request = {
|
|
437
|
+
method,
|
|
438
|
+
path,
|
|
439
|
+
body: body || '',
|
|
440
|
+
querystring
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
return this.transport.request(request, options, callback)
|
|
444
|
+
}
|
|
445
|
+
|
|
313
446
|
SecurityApi.prototype.deleteUser = function securityDeleteUserApi (params, options, callback) {
|
|
314
447
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
315
448
|
|
|
316
449
|
// check required parameters
|
|
317
|
-
if (params
|
|
450
|
+
if (params.username == null) {
|
|
318
451
|
const err = new this[kConfigurationError]('Missing required parameter: username')
|
|
319
452
|
return handleError(err, callback)
|
|
320
453
|
}
|
|
321
454
|
|
|
322
|
-
|
|
455
|
+
let { method, body, username, ...querystring } = params
|
|
323
456
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
324
457
|
|
|
325
|
-
|
|
458
|
+
let path = ''
|
|
326
459
|
if (method == null) method = 'DELETE'
|
|
327
460
|
path = '/' + '_security' + '/' + 'user' + '/' + encodeURIComponent(username)
|
|
328
461
|
|
|
@@ -341,15 +474,15 @@ SecurityApi.prototype.disableUser = function securityDisableUserApi (params, opt
|
|
|
341
474
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
342
475
|
|
|
343
476
|
// check required parameters
|
|
344
|
-
if (params
|
|
477
|
+
if (params.username == null) {
|
|
345
478
|
const err = new this[kConfigurationError]('Missing required parameter: username')
|
|
346
479
|
return handleError(err, callback)
|
|
347
480
|
}
|
|
348
481
|
|
|
349
|
-
|
|
482
|
+
let { method, body, username, ...querystring } = params
|
|
350
483
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
351
484
|
|
|
352
|
-
|
|
485
|
+
let path = ''
|
|
353
486
|
if (method == null) method = 'PUT'
|
|
354
487
|
path = '/' + '_security' + '/' + 'user' + '/' + encodeURIComponent(username) + '/' + '_disable'
|
|
355
488
|
|
|
@@ -368,15 +501,15 @@ SecurityApi.prototype.enableUser = function securityEnableUserApi (params, optio
|
|
|
368
501
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
369
502
|
|
|
370
503
|
// check required parameters
|
|
371
|
-
if (params
|
|
504
|
+
if (params.username == null) {
|
|
372
505
|
const err = new this[kConfigurationError]('Missing required parameter: username')
|
|
373
506
|
return handleError(err, callback)
|
|
374
507
|
}
|
|
375
508
|
|
|
376
|
-
|
|
509
|
+
let { method, body, username, ...querystring } = params
|
|
377
510
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
378
511
|
|
|
379
|
-
|
|
512
|
+
let path = ''
|
|
380
513
|
if (method == null) method = 'PUT'
|
|
381
514
|
path = '/' + '_security' + '/' + 'user' + '/' + encodeURIComponent(username) + '/' + '_enable'
|
|
382
515
|
|
|
@@ -394,10 +527,10 @@ SecurityApi.prototype.enableUser = function securityEnableUserApi (params, optio
|
|
|
394
527
|
SecurityApi.prototype.getApiKey = function securityGetApiKeyApi (params, options, callback) {
|
|
395
528
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
396
529
|
|
|
397
|
-
|
|
530
|
+
let { method, body, ...querystring } = params
|
|
398
531
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
399
532
|
|
|
400
|
-
|
|
533
|
+
let path = ''
|
|
401
534
|
if (method == null) method = 'GET'
|
|
402
535
|
path = '/' + '_security' + '/' + 'api_key'
|
|
403
536
|
|
|
@@ -415,10 +548,10 @@ SecurityApi.prototype.getApiKey = function securityGetApiKeyApi (params, options
|
|
|
415
548
|
SecurityApi.prototype.getBuiltinPrivileges = function securityGetBuiltinPrivilegesApi (params, options, callback) {
|
|
416
549
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
417
550
|
|
|
418
|
-
|
|
551
|
+
let { method, body, ...querystring } = params
|
|
419
552
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
420
553
|
|
|
421
|
-
|
|
554
|
+
let path = ''
|
|
422
555
|
if (method == null) method = 'GET'
|
|
423
556
|
path = '/' + '_security' + '/' + 'privilege' + '/' + '_builtin'
|
|
424
557
|
|
|
@@ -437,15 +570,15 @@ SecurityApi.prototype.getPrivileges = function securityGetPrivilegesApi (params,
|
|
|
437
570
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
438
571
|
|
|
439
572
|
// check required url components
|
|
440
|
-
if (params
|
|
573
|
+
if (params.name != null && (params.application == null)) {
|
|
441
574
|
const err = new this[kConfigurationError]('Missing required parameter of the url: application')
|
|
442
575
|
return handleError(err, callback)
|
|
443
576
|
}
|
|
444
577
|
|
|
445
|
-
|
|
578
|
+
let { method, body, application, name, ...querystring } = params
|
|
446
579
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
447
580
|
|
|
448
|
-
|
|
581
|
+
let path = ''
|
|
449
582
|
if ((application) != null && (name) != null) {
|
|
450
583
|
if (method == null) method = 'GET'
|
|
451
584
|
path = '/' + '_security' + '/' + 'privilege' + '/' + encodeURIComponent(application) + '/' + encodeURIComponent(name)
|
|
@@ -471,10 +604,10 @@ SecurityApi.prototype.getPrivileges = function securityGetPrivilegesApi (params,
|
|
|
471
604
|
SecurityApi.prototype.getRole = function securityGetRoleApi (params, options, callback) {
|
|
472
605
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
473
606
|
|
|
474
|
-
|
|
607
|
+
let { method, body, name, ...querystring } = params
|
|
475
608
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
476
609
|
|
|
477
|
-
|
|
610
|
+
let path = ''
|
|
478
611
|
if ((name) != null) {
|
|
479
612
|
if (method == null) method = 'GET'
|
|
480
613
|
path = '/' + '_security' + '/' + 'role' + '/' + encodeURIComponent(name)
|
|
@@ -497,10 +630,10 @@ SecurityApi.prototype.getRole = function securityGetRoleApi (params, options, ca
|
|
|
497
630
|
SecurityApi.prototype.getRoleMapping = function securityGetRoleMappingApi (params, options, callback) {
|
|
498
631
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
499
632
|
|
|
500
|
-
|
|
633
|
+
let { method, body, name, ...querystring } = params
|
|
501
634
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
502
635
|
|
|
503
|
-
|
|
636
|
+
let path = ''
|
|
504
637
|
if ((name) != null) {
|
|
505
638
|
if (method == null) method = 'GET'
|
|
506
639
|
path = '/' + '_security' + '/' + 'role_mapping' + '/' + encodeURIComponent(name)
|
|
@@ -520,19 +653,91 @@ SecurityApi.prototype.getRoleMapping = function securityGetRoleMappingApi (param
|
|
|
520
653
|
return this.transport.request(request, options, callback)
|
|
521
654
|
}
|
|
522
655
|
|
|
656
|
+
SecurityApi.prototype.getServiceAccounts = function securityGetServiceAccountsApi (params, options, callback) {
|
|
657
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
658
|
+
|
|
659
|
+
// check required url components
|
|
660
|
+
if (params.service != null && (params.namespace == null)) {
|
|
661
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: namespace')
|
|
662
|
+
return handleError(err, callback)
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
let { method, body, namespace, service, ...querystring } = params
|
|
666
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
667
|
+
|
|
668
|
+
let path = ''
|
|
669
|
+
if ((namespace) != null && (service) != null) {
|
|
670
|
+
if (method == null) method = 'GET'
|
|
671
|
+
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace) + '/' + encodeURIComponent(service)
|
|
672
|
+
} else if ((namespace) != null) {
|
|
673
|
+
if (method == null) method = 'GET'
|
|
674
|
+
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace)
|
|
675
|
+
} else {
|
|
676
|
+
if (method == null) method = 'GET'
|
|
677
|
+
path = '/' + '_security' + '/' + 'service'
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
// build request object
|
|
681
|
+
const request = {
|
|
682
|
+
method,
|
|
683
|
+
path,
|
|
684
|
+
body: null,
|
|
685
|
+
querystring
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
return this.transport.request(request, options, callback)
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
SecurityApi.prototype.getServiceCredentials = function securityGetServiceCredentialsApi (params, options, callback) {
|
|
692
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
693
|
+
|
|
694
|
+
// check required parameters
|
|
695
|
+
if (params.namespace == null) {
|
|
696
|
+
const err = new this[kConfigurationError]('Missing required parameter: namespace')
|
|
697
|
+
return handleError(err, callback)
|
|
698
|
+
}
|
|
699
|
+
if (params.service == null) {
|
|
700
|
+
const err = new this[kConfigurationError]('Missing required parameter: service')
|
|
701
|
+
return handleError(err, callback)
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
// check required url components
|
|
705
|
+
if (params.service != null && (params.namespace == null)) {
|
|
706
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: namespace')
|
|
707
|
+
return handleError(err, callback)
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
let { method, body, namespace, service, ...querystring } = params
|
|
711
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
712
|
+
|
|
713
|
+
let path = ''
|
|
714
|
+
if (method == null) method = 'GET'
|
|
715
|
+
path = '/' + '_security' + '/' + 'service' + '/' + encodeURIComponent(namespace) + '/' + encodeURIComponent(service) + '/' + 'credential'
|
|
716
|
+
|
|
717
|
+
// build request object
|
|
718
|
+
const request = {
|
|
719
|
+
method,
|
|
720
|
+
path,
|
|
721
|
+
body: null,
|
|
722
|
+
querystring
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
return this.transport.request(request, options, callback)
|
|
726
|
+
}
|
|
727
|
+
|
|
523
728
|
SecurityApi.prototype.getToken = function securityGetTokenApi (params, options, callback) {
|
|
524
729
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
525
730
|
|
|
526
731
|
// check required parameters
|
|
527
|
-
if (params
|
|
732
|
+
if (params.body == null) {
|
|
528
733
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
529
734
|
return handleError(err, callback)
|
|
530
735
|
}
|
|
531
736
|
|
|
532
|
-
|
|
737
|
+
let { method, body, ...querystring } = params
|
|
533
738
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
534
739
|
|
|
535
|
-
|
|
740
|
+
let path = ''
|
|
536
741
|
if (method == null) method = 'POST'
|
|
537
742
|
path = '/' + '_security' + '/' + 'oauth2' + '/' + 'token'
|
|
538
743
|
|
|
@@ -550,10 +755,10 @@ SecurityApi.prototype.getToken = function securityGetTokenApi (params, options,
|
|
|
550
755
|
SecurityApi.prototype.getUser = function securityGetUserApi (params, options, callback) {
|
|
551
756
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
552
757
|
|
|
553
|
-
|
|
758
|
+
let { method, body, username, ...querystring } = params
|
|
554
759
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
555
760
|
|
|
556
|
-
|
|
761
|
+
let path = ''
|
|
557
762
|
if ((username) != null) {
|
|
558
763
|
if (method == null) method = 'GET'
|
|
559
764
|
path = '/' + '_security' + '/' + 'user' + '/' + encodeURIComponent(username)
|
|
@@ -576,10 +781,10 @@ SecurityApi.prototype.getUser = function securityGetUserApi (params, options, ca
|
|
|
576
781
|
SecurityApi.prototype.getUserPrivileges = function securityGetUserPrivilegesApi (params, options, callback) {
|
|
577
782
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
578
783
|
|
|
579
|
-
|
|
784
|
+
let { method, body, ...querystring } = params
|
|
580
785
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
581
786
|
|
|
582
|
-
|
|
787
|
+
let path = ''
|
|
583
788
|
if (method == null) method = 'GET'
|
|
584
789
|
path = '/' + '_security' + '/' + 'user' + '/' + '_privileges'
|
|
585
790
|
|
|
@@ -598,15 +803,15 @@ SecurityApi.prototype.grantApiKey = function securityGrantApiKeyApi (params, opt
|
|
|
598
803
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
599
804
|
|
|
600
805
|
// check required parameters
|
|
601
|
-
if (params
|
|
806
|
+
if (params.body == null) {
|
|
602
807
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
603
808
|
return handleError(err, callback)
|
|
604
809
|
}
|
|
605
810
|
|
|
606
|
-
|
|
811
|
+
let { method, body, ...querystring } = params
|
|
607
812
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
608
813
|
|
|
609
|
-
|
|
814
|
+
let path = ''
|
|
610
815
|
if (method == null) method = 'POST'
|
|
611
816
|
path = '/' + '_security' + '/' + 'api_key' + '/' + 'grant'
|
|
612
817
|
|
|
@@ -625,15 +830,15 @@ SecurityApi.prototype.hasPrivileges = function securityHasPrivilegesApi (params,
|
|
|
625
830
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
626
831
|
|
|
627
832
|
// check required parameters
|
|
628
|
-
if (params
|
|
833
|
+
if (params.body == null) {
|
|
629
834
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
630
835
|
return handleError(err, callback)
|
|
631
836
|
}
|
|
632
837
|
|
|
633
|
-
|
|
838
|
+
let { method, body, user, ...querystring } = params
|
|
634
839
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
635
840
|
|
|
636
|
-
|
|
841
|
+
let path = ''
|
|
637
842
|
if ((user) != null) {
|
|
638
843
|
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
639
844
|
path = '/' + '_security' + '/' + 'user' + '/' + encodeURIComponent(user) + '/' + '_has_privileges'
|
|
@@ -657,15 +862,15 @@ SecurityApi.prototype.invalidateApiKey = function securityInvalidateApiKeyApi (p
|
|
|
657
862
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
658
863
|
|
|
659
864
|
// check required parameters
|
|
660
|
-
if (params
|
|
865
|
+
if (params.body == null) {
|
|
661
866
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
662
867
|
return handleError(err, callback)
|
|
663
868
|
}
|
|
664
869
|
|
|
665
|
-
|
|
870
|
+
let { method, body, ...querystring } = params
|
|
666
871
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
667
872
|
|
|
668
|
-
|
|
873
|
+
let path = ''
|
|
669
874
|
if (method == null) method = 'DELETE'
|
|
670
875
|
path = '/' + '_security' + '/' + 'api_key'
|
|
671
876
|
|
|
@@ -684,15 +889,15 @@ SecurityApi.prototype.invalidateToken = function securityInvalidateTokenApi (par
|
|
|
684
889
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
685
890
|
|
|
686
891
|
// check required parameters
|
|
687
|
-
if (params
|
|
892
|
+
if (params.body == null) {
|
|
688
893
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
689
894
|
return handleError(err, callback)
|
|
690
895
|
}
|
|
691
896
|
|
|
692
|
-
|
|
897
|
+
let { method, body, ...querystring } = params
|
|
693
898
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
694
899
|
|
|
695
|
-
|
|
900
|
+
let path = ''
|
|
696
901
|
if (method == null) method = 'DELETE'
|
|
697
902
|
path = '/' + '_security' + '/' + 'oauth2' + '/' + 'token'
|
|
698
903
|
|
|
@@ -711,15 +916,15 @@ SecurityApi.prototype.putPrivileges = function securityPutPrivilegesApi (params,
|
|
|
711
916
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
712
917
|
|
|
713
918
|
// check required parameters
|
|
714
|
-
if (params
|
|
919
|
+
if (params.body == null) {
|
|
715
920
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
716
921
|
return handleError(err, callback)
|
|
717
922
|
}
|
|
718
923
|
|
|
719
|
-
|
|
924
|
+
let { method, body, ...querystring } = params
|
|
720
925
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
721
926
|
|
|
722
|
-
|
|
927
|
+
let path = ''
|
|
723
928
|
if (method == null) method = 'PUT'
|
|
724
929
|
path = '/' + '_security' + '/' + 'privilege'
|
|
725
930
|
|
|
@@ -738,19 +943,19 @@ SecurityApi.prototype.putRole = function securityPutRoleApi (params, options, ca
|
|
|
738
943
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
739
944
|
|
|
740
945
|
// check required parameters
|
|
741
|
-
if (params
|
|
946
|
+
if (params.name == null) {
|
|
742
947
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
743
948
|
return handleError(err, callback)
|
|
744
949
|
}
|
|
745
|
-
if (params
|
|
950
|
+
if (params.body == null) {
|
|
746
951
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
747
952
|
return handleError(err, callback)
|
|
748
953
|
}
|
|
749
954
|
|
|
750
|
-
|
|
955
|
+
let { method, body, name, ...querystring } = params
|
|
751
956
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
752
957
|
|
|
753
|
-
|
|
958
|
+
let path = ''
|
|
754
959
|
if (method == null) method = 'PUT'
|
|
755
960
|
path = '/' + '_security' + '/' + 'role' + '/' + encodeURIComponent(name)
|
|
756
961
|
|
|
@@ -769,19 +974,19 @@ SecurityApi.prototype.putRoleMapping = function securityPutRoleMappingApi (param
|
|
|
769
974
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
770
975
|
|
|
771
976
|
// check required parameters
|
|
772
|
-
if (params
|
|
977
|
+
if (params.name == null) {
|
|
773
978
|
const err = new this[kConfigurationError]('Missing required parameter: name')
|
|
774
979
|
return handleError(err, callback)
|
|
775
980
|
}
|
|
776
|
-
if (params
|
|
981
|
+
if (params.body == null) {
|
|
777
982
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
778
983
|
return handleError(err, callback)
|
|
779
984
|
}
|
|
780
985
|
|
|
781
|
-
|
|
986
|
+
let { method, body, name, ...querystring } = params
|
|
782
987
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
783
988
|
|
|
784
|
-
|
|
989
|
+
let path = ''
|
|
785
990
|
if (method == null) method = 'PUT'
|
|
786
991
|
path = '/' + '_security' + '/' + 'role_mapping' + '/' + encodeURIComponent(name)
|
|
787
992
|
|
|
@@ -800,19 +1005,19 @@ SecurityApi.prototype.putUser = function securityPutUserApi (params, options, ca
|
|
|
800
1005
|
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
801
1006
|
|
|
802
1007
|
// check required parameters
|
|
803
|
-
if (params
|
|
1008
|
+
if (params.username == null) {
|
|
804
1009
|
const err = new this[kConfigurationError]('Missing required parameter: username')
|
|
805
1010
|
return handleError(err, callback)
|
|
806
1011
|
}
|
|
807
|
-
if (params
|
|
1012
|
+
if (params.body == null) {
|
|
808
1013
|
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
809
1014
|
return handleError(err, callback)
|
|
810
1015
|
}
|
|
811
1016
|
|
|
812
|
-
|
|
1017
|
+
let { method, body, username, ...querystring } = params
|
|
813
1018
|
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
814
1019
|
|
|
815
|
-
|
|
1020
|
+
let path = ''
|
|
816
1021
|
if (method == null) method = 'PUT'
|
|
817
1022
|
path = '/' + '_security' + '/' + 'user' + '/' + encodeURIComponent(username)
|
|
818
1023
|
|
|
@@ -827,16 +1032,181 @@ SecurityApi.prototype.putUser = function securityPutUserApi (params, options, ca
|
|
|
827
1032
|
return this.transport.request(request, options, callback)
|
|
828
1033
|
}
|
|
829
1034
|
|
|
1035
|
+
SecurityApi.prototype.samlAuthenticate = function securitySamlAuthenticateApi (params, options, callback) {
|
|
1036
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1037
|
+
|
|
1038
|
+
// check required parameters
|
|
1039
|
+
if (params.body == null) {
|
|
1040
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1041
|
+
return handleError(err, callback)
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
let { method, body, ...querystring } = params
|
|
1045
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1046
|
+
|
|
1047
|
+
let path = ''
|
|
1048
|
+
if (method == null) method = 'POST'
|
|
1049
|
+
path = '/' + '_security' + '/' + 'saml' + '/' + 'authenticate'
|
|
1050
|
+
|
|
1051
|
+
// build request object
|
|
1052
|
+
const request = {
|
|
1053
|
+
method,
|
|
1054
|
+
path,
|
|
1055
|
+
body: body || '',
|
|
1056
|
+
querystring
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
return this.transport.request(request, options, callback)
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
SecurityApi.prototype.samlCompleteLogout = function securitySamlCompleteLogoutApi (params, options, callback) {
|
|
1063
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1064
|
+
|
|
1065
|
+
// check required parameters
|
|
1066
|
+
if (params.body == null) {
|
|
1067
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1068
|
+
return handleError(err, callback)
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
let { method, body, ...querystring } = params
|
|
1072
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1073
|
+
|
|
1074
|
+
let path = ''
|
|
1075
|
+
if (method == null) method = 'POST'
|
|
1076
|
+
path = '/' + '_security' + '/' + 'saml' + '/' + 'complete_logout'
|
|
1077
|
+
|
|
1078
|
+
// build request object
|
|
1079
|
+
const request = {
|
|
1080
|
+
method,
|
|
1081
|
+
path,
|
|
1082
|
+
body: body || '',
|
|
1083
|
+
querystring
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
return this.transport.request(request, options, callback)
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
SecurityApi.prototype.samlInvalidate = function securitySamlInvalidateApi (params, options, callback) {
|
|
1090
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1091
|
+
|
|
1092
|
+
// check required parameters
|
|
1093
|
+
if (params.body == null) {
|
|
1094
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1095
|
+
return handleError(err, callback)
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
let { method, body, ...querystring } = params
|
|
1099
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1100
|
+
|
|
1101
|
+
let path = ''
|
|
1102
|
+
if (method == null) method = 'POST'
|
|
1103
|
+
path = '/' + '_security' + '/' + 'saml' + '/' + 'invalidate'
|
|
1104
|
+
|
|
1105
|
+
// build request object
|
|
1106
|
+
const request = {
|
|
1107
|
+
method,
|
|
1108
|
+
path,
|
|
1109
|
+
body: body || '',
|
|
1110
|
+
querystring
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
return this.transport.request(request, options, callback)
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
SecurityApi.prototype.samlLogout = function securitySamlLogoutApi (params, options, callback) {
|
|
1117
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1118
|
+
|
|
1119
|
+
// check required parameters
|
|
1120
|
+
if (params.body == null) {
|
|
1121
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1122
|
+
return handleError(err, callback)
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
let { method, body, ...querystring } = params
|
|
1126
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1127
|
+
|
|
1128
|
+
let path = ''
|
|
1129
|
+
if (method == null) method = 'POST'
|
|
1130
|
+
path = '/' + '_security' + '/' + 'saml' + '/' + 'logout'
|
|
1131
|
+
|
|
1132
|
+
// build request object
|
|
1133
|
+
const request = {
|
|
1134
|
+
method,
|
|
1135
|
+
path,
|
|
1136
|
+
body: body || '',
|
|
1137
|
+
querystring
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
return this.transport.request(request, options, callback)
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
SecurityApi.prototype.samlPrepareAuthentication = function securitySamlPrepareAuthenticationApi (params, options, callback) {
|
|
1144
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1145
|
+
|
|
1146
|
+
// check required parameters
|
|
1147
|
+
if (params.body == null) {
|
|
1148
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1149
|
+
return handleError(err, callback)
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
let { method, body, ...querystring } = params
|
|
1153
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1154
|
+
|
|
1155
|
+
let path = ''
|
|
1156
|
+
if (method == null) method = 'POST'
|
|
1157
|
+
path = '/' + '_security' + '/' + 'saml' + '/' + 'prepare'
|
|
1158
|
+
|
|
1159
|
+
// build request object
|
|
1160
|
+
const request = {
|
|
1161
|
+
method,
|
|
1162
|
+
path,
|
|
1163
|
+
body: body || '',
|
|
1164
|
+
querystring
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
return this.transport.request(request, options, callback)
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
SecurityApi.prototype.samlServiceProviderMetadata = function securitySamlServiceProviderMetadataApi (params, options, callback) {
|
|
1171
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1172
|
+
|
|
1173
|
+
// check required parameters
|
|
1174
|
+
if (params.realm_name == null && params.realmName == null) {
|
|
1175
|
+
const err = new this[kConfigurationError]('Missing required parameter: realm_name or realmName')
|
|
1176
|
+
return handleError(err, callback)
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
let { method, body, realmName, realm_name, ...querystring } = params
|
|
1180
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1181
|
+
|
|
1182
|
+
let path = ''
|
|
1183
|
+
if (method == null) method = 'GET'
|
|
1184
|
+
path = '/' + '_security' + '/' + 'saml' + '/' + 'metadata' + '/' + encodeURIComponent(realm_name || realmName)
|
|
1185
|
+
|
|
1186
|
+
// build request object
|
|
1187
|
+
const request = {
|
|
1188
|
+
method,
|
|
1189
|
+
path,
|
|
1190
|
+
body: null,
|
|
1191
|
+
querystring
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
return this.transport.request(request, options, callback)
|
|
1195
|
+
}
|
|
1196
|
+
|
|
830
1197
|
Object.defineProperties(SecurityApi.prototype, {
|
|
831
1198
|
change_password: { get () { return this.changePassword } },
|
|
832
1199
|
clear_api_key_cache: { get () { return this.clearApiKeyCache } },
|
|
833
1200
|
clear_cached_privileges: { get () { return this.clearCachedPrivileges } },
|
|
834
1201
|
clear_cached_realms: { get () { return this.clearCachedRealms } },
|
|
835
1202
|
clear_cached_roles: { get () { return this.clearCachedRoles } },
|
|
1203
|
+
clear_cached_service_tokens: { get () { return this.clearCachedServiceTokens } },
|
|
836
1204
|
create_api_key: { get () { return this.createApiKey } },
|
|
1205
|
+
create_service_token: { get () { return this.createServiceToken } },
|
|
837
1206
|
delete_privileges: { get () { return this.deletePrivileges } },
|
|
838
1207
|
delete_role: { get () { return this.deleteRole } },
|
|
839
1208
|
delete_role_mapping: { get () { return this.deleteRoleMapping } },
|
|
1209
|
+
delete_service_token: { get () { return this.deleteServiceToken } },
|
|
840
1210
|
delete_user: { get () { return this.deleteUser } },
|
|
841
1211
|
disable_user: { get () { return this.disableUser } },
|
|
842
1212
|
enable_user: { get () { return this.enableUser } },
|
|
@@ -845,6 +1215,8 @@ Object.defineProperties(SecurityApi.prototype, {
|
|
|
845
1215
|
get_privileges: { get () { return this.getPrivileges } },
|
|
846
1216
|
get_role: { get () { return this.getRole } },
|
|
847
1217
|
get_role_mapping: { get () { return this.getRoleMapping } },
|
|
1218
|
+
get_service_accounts: { get () { return this.getServiceAccounts } },
|
|
1219
|
+
get_service_credentials: { get () { return this.getServiceCredentials } },
|
|
848
1220
|
get_token: { get () { return this.getToken } },
|
|
849
1221
|
get_user: { get () { return this.getUser } },
|
|
850
1222
|
get_user_privileges: { get () { return this.getUserPrivileges } },
|
|
@@ -855,7 +1227,13 @@ Object.defineProperties(SecurityApi.prototype, {
|
|
|
855
1227
|
put_privileges: { get () { return this.putPrivileges } },
|
|
856
1228
|
put_role: { get () { return this.putRole } },
|
|
857
1229
|
put_role_mapping: { get () { return this.putRoleMapping } },
|
|
858
|
-
put_user: { get () { return this.putUser } }
|
|
1230
|
+
put_user: { get () { return this.putUser } },
|
|
1231
|
+
saml_authenticate: { get () { return this.samlAuthenticate } },
|
|
1232
|
+
saml_complete_logout: { get () { return this.samlCompleteLogout } },
|
|
1233
|
+
saml_invalidate: { get () { return this.samlInvalidate } },
|
|
1234
|
+
saml_logout: { get () { return this.samlLogout } },
|
|
1235
|
+
saml_prepare_authentication: { get () { return this.samlPrepareAuthentication } },
|
|
1236
|
+
saml_service_provider_metadata: { get () { return this.samlServiceProviderMetadata } }
|
|
859
1237
|
})
|
|
860
1238
|
|
|
861
1239
|
module.exports = SecurityApi
|