API generation
This commit is contained in:
@ -1,127 +0,0 @@
|
|||||||
/*
|
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
||||||
* license agreements. See the NOTICE file distributed with
|
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
|
||||||
|
|
||||||
/* eslint camelcase: 0 */
|
|
||||||
/* eslint no-unused-vars: 0 */
|
|
||||||
|
|
||||||
function buildCcrFollowInfo (opts) {
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const { makeRequest, ConfigurationError, result } = opts
|
|
||||||
/**
|
|
||||||
* Perform a [ccr.follow_info](https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-info.html) request
|
|
||||||
*
|
|
||||||
* @param {list} index - A comma-separated list of index patterns; use `_all` to perform the operation on all indices
|
|
||||||
*/
|
|
||||||
|
|
||||||
const acceptedQuerystring = [
|
|
||||||
|
|
||||||
]
|
|
||||||
|
|
||||||
const snakeCase = {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
return function ccrFollowInfo (params, options, callback) {
|
|
||||||
options = options || {}
|
|
||||||
if (typeof options === 'function') {
|
|
||||||
callback = options
|
|
||||||
options = {}
|
|
||||||
}
|
|
||||||
if (typeof params === 'function' || params == null) {
|
|
||||||
callback = params
|
|
||||||
params = {}
|
|
||||||
options = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
ccrFollowInfo(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
|
||||||
return callback(
|
|
||||||
new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`),
|
|
||||||
result
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
var warnings = null
|
|
||||||
var { method, body, index } = params
|
|
||||||
var querystring = semicopy(params, ['method', 'body', 'index'])
|
|
||||||
|
|
||||||
if (method == null) {
|
|
||||||
method = 'GET'
|
|
||||||
}
|
|
||||||
|
|
||||||
var ignore = options.ignore || null
|
|
||||||
if (typeof ignore === 'number') {
|
|
||||||
ignore = [ignore]
|
|
||||||
}
|
|
||||||
|
|
||||||
var path = ''
|
|
||||||
|
|
||||||
path = '/' + encodeURIComponent(index) + '/' + '_ccr' + '/' + 'info'
|
|
||||||
|
|
||||||
// build request object
|
|
||||||
const request = {
|
|
||||||
method,
|
|
||||||
path,
|
|
||||||
body: null,
|
|
||||||
querystring
|
|
||||||
}
|
|
||||||
|
|
||||||
const requestOptions = {
|
|
||||||
ignore,
|
|
||||||
requestTimeout: options.requestTimeout || null,
|
|
||||||
maxRetries: options.maxRetries || null,
|
|
||||||
asStream: options.asStream || false,
|
|
||||||
headers: options.headers || null,
|
|
||||||
querystring: options.querystring || null,
|
|
||||||
compression: options.compression || false,
|
|
||||||
warnings
|
|
||||||
}
|
|
||||||
|
|
||||||
return makeRequest(request, requestOptions, callback)
|
|
||||||
|
|
||||||
function semicopy (obj, exclude) {
|
|
||||||
var target = {}
|
|
||||||
var keys = Object.keys(obj)
|
|
||||||
for (var i = 0, len = keys.length; i < len; i++) {
|
|
||||||
var key = keys[i]
|
|
||||||
if (exclude.indexOf(key) === -1) {
|
|
||||||
target[snakeCase[key] || key] = obj[key]
|
|
||||||
if (acceptedQuerystring.indexOf(snakeCase[key] || key) === -1) {
|
|
||||||
warnings = warnings || []
|
|
||||||
warnings.push('Client - Unknown parameter: "' + key + '", sending it as query parameter')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return target
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = buildCcrFollowInfo
|
|
||||||
@ -1,137 +0,0 @@
|
|||||||
/*
|
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
||||||
* license agreements. See the NOTICE file distributed with
|
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
|
||||||
|
|
||||||
/* eslint camelcase: 0 */
|
|
||||||
/* eslint no-unused-vars: 0 */
|
|
||||||
|
|
||||||
function buildMlSetUpgradeMode (opts) {
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const { makeRequest, ConfigurationError, result } = opts
|
|
||||||
/**
|
|
||||||
* Perform a [ml.set_upgrade_mode](http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html) request
|
|
||||||
*
|
|
||||||
* @param {boolean} enabled - Whether to enable upgrade_mode ML setting or not. Defaults to false.
|
|
||||||
* @param {time} timeout - Controls the time to wait before action times out. Defaults to 30 seconds
|
|
||||||
*/
|
|
||||||
|
|
||||||
const acceptedQuerystring = [
|
|
||||||
'enabled',
|
|
||||||
'timeout'
|
|
||||||
]
|
|
||||||
|
|
||||||
const snakeCase = {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
return function mlSetUpgradeMode (params, options, callback) {
|
|
||||||
options = options || {}
|
|
||||||
if (typeof options === 'function') {
|
|
||||||
callback = options
|
|
||||||
options = {}
|
|
||||||
}
|
|
||||||
if (typeof params === 'function' || params == null) {
|
|
||||||
callback = params
|
|
||||||
params = {}
|
|
||||||
options = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
mlSetUpgradeMode(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
|
||||||
if (params.body != null) {
|
|
||||||
return callback(
|
|
||||||
new ConfigurationError('This API does not require a body'),
|
|
||||||
result
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
|
||||||
return callback(
|
|
||||||
new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`),
|
|
||||||
result
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
var warnings = null
|
|
||||||
var { method, body } = params
|
|
||||||
var querystring = semicopy(params, ['method', 'body'])
|
|
||||||
|
|
||||||
if (method == null) {
|
|
||||||
method = 'POST'
|
|
||||||
}
|
|
||||||
|
|
||||||
var ignore = options.ignore || null
|
|
||||||
if (typeof ignore === 'number') {
|
|
||||||
ignore = [ignore]
|
|
||||||
}
|
|
||||||
|
|
||||||
var path = ''
|
|
||||||
|
|
||||||
path = '/' + '_ml' + '/' + 'set_upgrade_mode'
|
|
||||||
|
|
||||||
// build request object
|
|
||||||
const request = {
|
|
||||||
method,
|
|
||||||
path,
|
|
||||||
body: '',
|
|
||||||
querystring
|
|
||||||
}
|
|
||||||
|
|
||||||
const requestOptions = {
|
|
||||||
ignore,
|
|
||||||
requestTimeout: options.requestTimeout || null,
|
|
||||||
maxRetries: options.maxRetries || null,
|
|
||||||
asStream: options.asStream || false,
|
|
||||||
headers: options.headers || null,
|
|
||||||
querystring: options.querystring || null,
|
|
||||||
compression: options.compression || false,
|
|
||||||
warnings
|
|
||||||
}
|
|
||||||
|
|
||||||
return makeRequest(request, requestOptions, callback)
|
|
||||||
|
|
||||||
function semicopy (obj, exclude) {
|
|
||||||
var target = {}
|
|
||||||
var keys = Object.keys(obj)
|
|
||||||
for (var i = 0, len = keys.length; i < len; i++) {
|
|
||||||
var key = keys[i]
|
|
||||||
if (exclude.indexOf(key) === -1) {
|
|
||||||
target[snakeCase[key] || key] = obj[key]
|
|
||||||
if (acceptedQuerystring.indexOf(snakeCase[key] || key) === -1) {
|
|
||||||
warnings = warnings || []
|
|
||||||
warnings.push('Client - Unknown parameter: "' + key + '", sending it as query parameter')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return target
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = buildMlSetUpgradeMode
|
|
||||||
@ -1,136 +0,0 @@
|
|||||||
/*
|
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
||||||
* license agreements. See the NOTICE file distributed with
|
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
|
||||||
|
|
||||||
/* eslint camelcase: 0 */
|
|
||||||
/* eslint no-unused-vars: 0 */
|
|
||||||
|
|
||||||
function buildSecurityCreateApiKey (opts) {
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const { makeRequest, ConfigurationError, result } = opts
|
|
||||||
/**
|
|
||||||
* Perform a [security.create_api_key](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html) request
|
|
||||||
*
|
|
||||||
* @param {enum} refresh - If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes.
|
|
||||||
* @param {object} body - The api key request to create an API key
|
|
||||||
*/
|
|
||||||
|
|
||||||
const acceptedQuerystring = [
|
|
||||||
'refresh'
|
|
||||||
]
|
|
||||||
|
|
||||||
const snakeCase = {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
return function securityCreateApiKey (params, options, callback) {
|
|
||||||
options = options || {}
|
|
||||||
if (typeof options === 'function') {
|
|
||||||
callback = options
|
|
||||||
options = {}
|
|
||||||
}
|
|
||||||
if (typeof params === 'function' || params == null) {
|
|
||||||
callback = params
|
|
||||||
params = {}
|
|
||||||
options = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
securityCreateApiKey(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
|
||||||
if (params['body'] == null) {
|
|
||||||
return callback(
|
|
||||||
new ConfigurationError('Missing required parameter: body'),
|
|
||||||
result
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
|
||||||
return callback(
|
|
||||||
new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`),
|
|
||||||
result
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
var warnings = null
|
|
||||||
var { method, body } = params
|
|
||||||
var querystring = semicopy(params, ['method', 'body'])
|
|
||||||
|
|
||||||
if (method == null) {
|
|
||||||
method = 'PUT'
|
|
||||||
}
|
|
||||||
|
|
||||||
var ignore = options.ignore || null
|
|
||||||
if (typeof ignore === 'number') {
|
|
||||||
ignore = [ignore]
|
|
||||||
}
|
|
||||||
|
|
||||||
var path = ''
|
|
||||||
|
|
||||||
path = '/' + '_security' + '/' + 'api_key'
|
|
||||||
|
|
||||||
// build request object
|
|
||||||
const request = {
|
|
||||||
method,
|
|
||||||
path,
|
|
||||||
body: body || '',
|
|
||||||
querystring
|
|
||||||
}
|
|
||||||
|
|
||||||
const requestOptions = {
|
|
||||||
ignore,
|
|
||||||
requestTimeout: options.requestTimeout || null,
|
|
||||||
maxRetries: options.maxRetries || null,
|
|
||||||
asStream: options.asStream || false,
|
|
||||||
headers: options.headers || null,
|
|
||||||
querystring: options.querystring || null,
|
|
||||||
compression: options.compression || false,
|
|
||||||
warnings
|
|
||||||
}
|
|
||||||
|
|
||||||
return makeRequest(request, requestOptions, callback)
|
|
||||||
|
|
||||||
function semicopy (obj, exclude) {
|
|
||||||
var target = {}
|
|
||||||
var keys = Object.keys(obj)
|
|
||||||
for (var i = 0, len = keys.length; i < len; i++) {
|
|
||||||
var key = keys[i]
|
|
||||||
if (exclude.indexOf(key) === -1) {
|
|
||||||
target[snakeCase[key] || key] = obj[key]
|
|
||||||
if (acceptedQuerystring.indexOf(snakeCase[key] || key) === -1) {
|
|
||||||
warnings = warnings || []
|
|
||||||
warnings.push('Client - Unknown parameter: "' + key + '", sending it as query parameter')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return target
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = buildSecurityCreateApiKey
|
|
||||||
@ -1,141 +0,0 @@
|
|||||||
/*
|
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
||||||
* license agreements. See the NOTICE file distributed with
|
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
|
||||||
|
|
||||||
/* eslint camelcase: 0 */
|
|
||||||
/* eslint no-unused-vars: 0 */
|
|
||||||
|
|
||||||
function buildSecurityGetApiKey (opts) {
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const { makeRequest, ConfigurationError, result } = opts
|
|
||||||
/**
|
|
||||||
* Perform a [security.get_api_key](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html) request
|
|
||||||
*
|
|
||||||
* @param {string} id - API key id of the API key to be retrieved
|
|
||||||
* @param {string} name - API key name of the API key to be retrieved
|
|
||||||
* @param {string} username - user name of the user who created this API key to be retrieved
|
|
||||||
* @param {string} realm_name - realm name of the user who created this API key to be retrieved
|
|
||||||
*/
|
|
||||||
|
|
||||||
const acceptedQuerystring = [
|
|
||||||
'id',
|
|
||||||
'name',
|
|
||||||
'username',
|
|
||||||
'realm_name'
|
|
||||||
]
|
|
||||||
|
|
||||||
const snakeCase = {
|
|
||||||
realmName: 'realm_name'
|
|
||||||
}
|
|
||||||
|
|
||||||
return function securityGetApiKey (params, options, callback) {
|
|
||||||
options = options || {}
|
|
||||||
if (typeof options === 'function') {
|
|
||||||
callback = options
|
|
||||||
options = {}
|
|
||||||
}
|
|
||||||
if (typeof params === 'function' || params == null) {
|
|
||||||
callback = params
|
|
||||||
params = {}
|
|
||||||
options = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
securityGetApiKey(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
|
||||||
if (params.body != null) {
|
|
||||||
return callback(
|
|
||||||
new ConfigurationError('This API does not require a body'),
|
|
||||||
result
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
|
||||||
return callback(
|
|
||||||
new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`),
|
|
||||||
result
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
var warnings = null
|
|
||||||
var { method, body } = params
|
|
||||||
var querystring = semicopy(params, ['method', 'body'])
|
|
||||||
|
|
||||||
if (method == null) {
|
|
||||||
method = 'GET'
|
|
||||||
}
|
|
||||||
|
|
||||||
var ignore = options.ignore || null
|
|
||||||
if (typeof ignore === 'number') {
|
|
||||||
ignore = [ignore]
|
|
||||||
}
|
|
||||||
|
|
||||||
var path = ''
|
|
||||||
|
|
||||||
path = '/' + '_security' + '/' + 'api_key'
|
|
||||||
|
|
||||||
// build request object
|
|
||||||
const request = {
|
|
||||||
method,
|
|
||||||
path,
|
|
||||||
body: null,
|
|
||||||
querystring
|
|
||||||
}
|
|
||||||
|
|
||||||
const requestOptions = {
|
|
||||||
ignore,
|
|
||||||
requestTimeout: options.requestTimeout || null,
|
|
||||||
maxRetries: options.maxRetries || null,
|
|
||||||
asStream: options.asStream || false,
|
|
||||||
headers: options.headers || null,
|
|
||||||
querystring: options.querystring || null,
|
|
||||||
compression: options.compression || false,
|
|
||||||
warnings
|
|
||||||
}
|
|
||||||
|
|
||||||
return makeRequest(request, requestOptions, callback)
|
|
||||||
|
|
||||||
function semicopy (obj, exclude) {
|
|
||||||
var target = {}
|
|
||||||
var keys = Object.keys(obj)
|
|
||||||
for (var i = 0, len = keys.length; i < len; i++) {
|
|
||||||
var key = keys[i]
|
|
||||||
if (exclude.indexOf(key) === -1) {
|
|
||||||
target[snakeCase[key] || key] = obj[key]
|
|
||||||
if (acceptedQuerystring.indexOf(snakeCase[key] || key) === -1) {
|
|
||||||
warnings = warnings || []
|
|
||||||
warnings.push('Client - Unknown parameter: "' + key + '", sending it as query parameter')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return target
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = buildSecurityGetApiKey
|
|
||||||
@ -1,135 +0,0 @@
|
|||||||
/*
|
|
||||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
||||||
* license agreements. See the NOTICE file distributed with
|
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
'use strict'
|
|
||||||
|
|
||||||
/* eslint camelcase: 0 */
|
|
||||||
/* eslint no-unused-vars: 0 */
|
|
||||||
|
|
||||||
function buildSecurityInvalidateApiKey (opts) {
|
|
||||||
// eslint-disable-next-line no-unused-vars
|
|
||||||
const { makeRequest, ConfigurationError, result } = opts
|
|
||||||
/**
|
|
||||||
* Perform a [security.invalidate_api_key](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html) request
|
|
||||||
*
|
|
||||||
* @param {object} body - The api key request to invalidate API key(s)
|
|
||||||
*/
|
|
||||||
|
|
||||||
const acceptedQuerystring = [
|
|
||||||
|
|
||||||
]
|
|
||||||
|
|
||||||
const snakeCase = {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
return function securityInvalidateApiKey (params, options, callback) {
|
|
||||||
options = options || {}
|
|
||||||
if (typeof options === 'function') {
|
|
||||||
callback = options
|
|
||||||
options = {}
|
|
||||||
}
|
|
||||||
if (typeof params === 'function' || params == null) {
|
|
||||||
callback = params
|
|
||||||
params = {}
|
|
||||||
options = {}
|
|
||||||
}
|
|
||||||
|
|
||||||
// promises support
|
|
||||||
if (callback == null) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
securityInvalidateApiKey(params, options, (err, body) => {
|
|
||||||
err ? reject(err) : resolve(body)
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// check required parameters
|
|
||||||
if (params['body'] == null) {
|
|
||||||
return callback(
|
|
||||||
new ConfigurationError('Missing required parameter: body'),
|
|
||||||
result
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// validate headers object
|
|
||||||
if (options.headers != null && typeof options.headers !== 'object') {
|
|
||||||
return callback(
|
|
||||||
new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`),
|
|
||||||
result
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
var warnings = null
|
|
||||||
var { method, body } = params
|
|
||||||
var querystring = semicopy(params, ['method', 'body'])
|
|
||||||
|
|
||||||
if (method == null) {
|
|
||||||
method = 'DELETE'
|
|
||||||
}
|
|
||||||
|
|
||||||
var ignore = options.ignore || null
|
|
||||||
if (typeof ignore === 'number') {
|
|
||||||
ignore = [ignore]
|
|
||||||
}
|
|
||||||
|
|
||||||
var path = ''
|
|
||||||
|
|
||||||
path = '/' + '_security' + '/' + 'api_key'
|
|
||||||
|
|
||||||
// build request object
|
|
||||||
const request = {
|
|
||||||
method,
|
|
||||||
path,
|
|
||||||
body: body || '',
|
|
||||||
querystring
|
|
||||||
}
|
|
||||||
|
|
||||||
const requestOptions = {
|
|
||||||
ignore,
|
|
||||||
requestTimeout: options.requestTimeout || null,
|
|
||||||
maxRetries: options.maxRetries || null,
|
|
||||||
asStream: options.asStream || false,
|
|
||||||
headers: options.headers || null,
|
|
||||||
querystring: options.querystring || null,
|
|
||||||
compression: options.compression || false,
|
|
||||||
warnings
|
|
||||||
}
|
|
||||||
|
|
||||||
return makeRequest(request, requestOptions, callback)
|
|
||||||
|
|
||||||
function semicopy (obj, exclude) {
|
|
||||||
var target = {}
|
|
||||||
var keys = Object.keys(obj)
|
|
||||||
for (var i = 0, len = keys.length; i < len; i++) {
|
|
||||||
var key = keys[i]
|
|
||||||
if (exclude.indexOf(key) === -1) {
|
|
||||||
target[snakeCase[key] || key] = obj[key]
|
|
||||||
if (acceptedQuerystring.indexOf(snakeCase[key] || key) === -1) {
|
|
||||||
warnings = warnings || []
|
|
||||||
warnings.push('Client - Unknown parameter: "' + key + '", sending it as query parameter')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return target
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = buildSecurityInvalidateApiKey
|
|
||||||
@ -106,6 +106,7 @@ function buildXpackSecurityGetUserPrivileges (opts) {
|
|||||||
maxRetries: options.maxRetries || null,
|
maxRetries: options.maxRetries || null,
|
||||||
asStream: options.asStream || false,
|
asStream: options.asStream || false,
|
||||||
headers: options.headers || null,
|
headers: options.headers || null,
|
||||||
|
querystring: options.querystring || null,
|
||||||
compression: options.compression || false,
|
compression: options.compression || false,
|
||||||
warnings
|
warnings
|
||||||
}
|
}
|
||||||
|
|||||||
488
api/index.js
488
api/index.js
@ -53,28 +53,9 @@ function ESAPI (opts) {
|
|||||||
threadPool: lazyLoad('cat.thread_pool', opts)
|
threadPool: lazyLoad('cat.thread_pool', opts)
|
||||||
},
|
},
|
||||||
ccr: {
|
ccr: {
|
||||||
<<<<<<< HEAD
|
|
||||||
delete_auto_follow_pattern: lazyLoad('./api/ccr.delete_auto_follow_pattern.js', opts),
|
|
||||||
deleteAutoFollowPattern: lazyLoad('./api/ccr.delete_auto_follow_pattern.js', opts),
|
|
||||||
follow: lazyLoad('./api/ccr.follow.js', opts),
|
|
||||||
follow_stats: lazyLoad('./api/ccr.follow_stats.js', opts),
|
|
||||||
followStats: lazyLoad('./api/ccr.follow_stats.js', opts),
|
|
||||||
get_auto_follow_pattern: lazyLoad('./api/ccr.get_auto_follow_pattern.js', opts),
|
|
||||||
getAutoFollowPattern: lazyLoad('./api/ccr.get_auto_follow_pattern.js', opts),
|
|
||||||
pause_follow: lazyLoad('./api/ccr.pause_follow.js', opts),
|
|
||||||
pauseFollow: lazyLoad('./api/ccr.pause_follow.js', opts),
|
|
||||||
put_auto_follow_pattern: lazyLoad('./api/ccr.put_auto_follow_pattern.js', opts),
|
|
||||||
putAutoFollowPattern: lazyLoad('./api/ccr.put_auto_follow_pattern.js', opts),
|
|
||||||
resume_follow: lazyLoad('./api/ccr.resume_follow.js', opts),
|
|
||||||
resumeFollow: lazyLoad('./api/ccr.resume_follow.js', opts),
|
|
||||||
stats: lazyLoad('./api/ccr.stats.js', opts),
|
|
||||||
unfollow: lazyLoad('./api/ccr.unfollow.js', opts)
|
|
||||||
=======
|
|
||||||
delete_auto_follow_pattern: lazyLoad('ccr.delete_auto_follow_pattern', opts),
|
delete_auto_follow_pattern: lazyLoad('ccr.delete_auto_follow_pattern', opts),
|
||||||
deleteAutoFollowPattern: lazyLoad('ccr.delete_auto_follow_pattern', opts),
|
deleteAutoFollowPattern: lazyLoad('ccr.delete_auto_follow_pattern', opts),
|
||||||
follow: lazyLoad('ccr.follow', opts),
|
follow: lazyLoad('ccr.follow', opts),
|
||||||
follow_info: lazyLoad('ccr.follow_info', opts),
|
|
||||||
followInfo: lazyLoad('ccr.follow_info', opts),
|
|
||||||
follow_stats: lazyLoad('ccr.follow_stats', opts),
|
follow_stats: lazyLoad('ccr.follow_stats', opts),
|
||||||
followStats: lazyLoad('ccr.follow_stats', opts),
|
followStats: lazyLoad('ccr.follow_stats', opts),
|
||||||
get_auto_follow_pattern: lazyLoad('ccr.get_auto_follow_pattern', opts),
|
get_auto_follow_pattern: lazyLoad('ccr.get_auto_follow_pattern', opts),
|
||||||
@ -87,7 +68,6 @@ function ESAPI (opts) {
|
|||||||
resumeFollow: lazyLoad('ccr.resume_follow', opts),
|
resumeFollow: lazyLoad('ccr.resume_follow', opts),
|
||||||
stats: lazyLoad('ccr.stats', opts),
|
stats: lazyLoad('ccr.stats', opts),
|
||||||
unfollow: lazyLoad('ccr.unfollow', opts)
|
unfollow: lazyLoad('ccr.unfollow', opts)
|
||||||
>>>>>>> 3b41c55... Feat: Support bundlers (#783)
|
|
||||||
},
|
},
|
||||||
clear_scroll: lazyLoad('clear_scroll', opts),
|
clear_scroll: lazyLoad('clear_scroll', opts),
|
||||||
clearScroll: lazyLoad('clear_scroll', opts),
|
clearScroll: lazyLoad('clear_scroll', opts),
|
||||||
@ -220,113 +200,11 @@ function ESAPI (opts) {
|
|||||||
putPipeline: lazyLoad('ingest.put_pipeline', opts),
|
putPipeline: lazyLoad('ingest.put_pipeline', opts),
|
||||||
simulate: lazyLoad('ingest.simulate', opts)
|
simulate: lazyLoad('ingest.simulate', opts)
|
||||||
},
|
},
|
||||||
<<<<<<< HEAD
|
|
||||||
mget: lazyLoad('./api/mget.js', opts),
|
|
||||||
msearch: lazyLoad('./api/msearch.js', opts),
|
|
||||||
msearch_template: lazyLoad('./api/msearch_template.js', opts),
|
|
||||||
msearchTemplate: lazyLoad('./api/msearch_template.js', opts),
|
|
||||||
mtermvectors: lazyLoad('./api/mtermvectors.js', opts),
|
|
||||||
=======
|
|
||||||
mget: lazyLoad('mget', opts),
|
mget: lazyLoad('mget', opts),
|
||||||
ml: {
|
|
||||||
close_job: lazyLoad('ml.close_job', opts),
|
|
||||||
closeJob: lazyLoad('ml.close_job', opts),
|
|
||||||
delete_calendar: lazyLoad('ml.delete_calendar', opts),
|
|
||||||
deleteCalendar: lazyLoad('ml.delete_calendar', opts),
|
|
||||||
delete_calendar_event: lazyLoad('ml.delete_calendar_event', opts),
|
|
||||||
deleteCalendarEvent: lazyLoad('ml.delete_calendar_event', opts),
|
|
||||||
delete_calendar_job: lazyLoad('ml.delete_calendar_job', opts),
|
|
||||||
deleteCalendarJob: lazyLoad('ml.delete_calendar_job', opts),
|
|
||||||
delete_datafeed: lazyLoad('ml.delete_datafeed', opts),
|
|
||||||
deleteDatafeed: lazyLoad('ml.delete_datafeed', opts),
|
|
||||||
delete_expired_data: lazyLoad('ml.delete_expired_data', opts),
|
|
||||||
deleteExpiredData: lazyLoad('ml.delete_expired_data', opts),
|
|
||||||
delete_filter: lazyLoad('ml.delete_filter', opts),
|
|
||||||
deleteFilter: lazyLoad('ml.delete_filter', opts),
|
|
||||||
delete_forecast: lazyLoad('ml.delete_forecast', opts),
|
|
||||||
deleteForecast: lazyLoad('ml.delete_forecast', opts),
|
|
||||||
delete_job: lazyLoad('ml.delete_job', opts),
|
|
||||||
deleteJob: lazyLoad('ml.delete_job', opts),
|
|
||||||
delete_model_snapshot: lazyLoad('ml.delete_model_snapshot', opts),
|
|
||||||
deleteModelSnapshot: lazyLoad('ml.delete_model_snapshot', opts),
|
|
||||||
find_file_structure: lazyLoad('ml.find_file_structure', opts),
|
|
||||||
findFileStructure: lazyLoad('ml.find_file_structure', opts),
|
|
||||||
flush_job: lazyLoad('ml.flush_job', opts),
|
|
||||||
flushJob: lazyLoad('ml.flush_job', opts),
|
|
||||||
forecast: lazyLoad('ml.forecast', opts),
|
|
||||||
get_buckets: lazyLoad('ml.get_buckets', opts),
|
|
||||||
getBuckets: lazyLoad('ml.get_buckets', opts),
|
|
||||||
get_calendar_events: lazyLoad('ml.get_calendar_events', opts),
|
|
||||||
getCalendarEvents: lazyLoad('ml.get_calendar_events', opts),
|
|
||||||
get_calendars: lazyLoad('ml.get_calendars', opts),
|
|
||||||
getCalendars: lazyLoad('ml.get_calendars', opts),
|
|
||||||
get_categories: lazyLoad('ml.get_categories', opts),
|
|
||||||
getCategories: lazyLoad('ml.get_categories', opts),
|
|
||||||
get_datafeed_stats: lazyLoad('ml.get_datafeed_stats', opts),
|
|
||||||
getDatafeedStats: lazyLoad('ml.get_datafeed_stats', opts),
|
|
||||||
get_datafeeds: lazyLoad('ml.get_datafeeds', opts),
|
|
||||||
getDatafeeds: lazyLoad('ml.get_datafeeds', opts),
|
|
||||||
get_filters: lazyLoad('ml.get_filters', opts),
|
|
||||||
getFilters: lazyLoad('ml.get_filters', opts),
|
|
||||||
get_influencers: lazyLoad('ml.get_influencers', opts),
|
|
||||||
getInfluencers: lazyLoad('ml.get_influencers', opts),
|
|
||||||
get_job_stats: lazyLoad('ml.get_job_stats', opts),
|
|
||||||
getJobStats: lazyLoad('ml.get_job_stats', opts),
|
|
||||||
get_jobs: lazyLoad('ml.get_jobs', opts),
|
|
||||||
getJobs: lazyLoad('ml.get_jobs', opts),
|
|
||||||
get_model_snapshots: lazyLoad('ml.get_model_snapshots', opts),
|
|
||||||
getModelSnapshots: lazyLoad('ml.get_model_snapshots', opts),
|
|
||||||
get_overall_buckets: lazyLoad('ml.get_overall_buckets', opts),
|
|
||||||
getOverallBuckets: lazyLoad('ml.get_overall_buckets', opts),
|
|
||||||
get_records: lazyLoad('ml.get_records', opts),
|
|
||||||
getRecords: lazyLoad('ml.get_records', opts),
|
|
||||||
info: lazyLoad('ml.info', opts),
|
|
||||||
open_job: lazyLoad('ml.open_job', opts),
|
|
||||||
openJob: lazyLoad('ml.open_job', opts),
|
|
||||||
post_calendar_events: lazyLoad('ml.post_calendar_events', opts),
|
|
||||||
postCalendarEvents: lazyLoad('ml.post_calendar_events', opts),
|
|
||||||
post_data: lazyLoad('ml.post_data', opts),
|
|
||||||
postData: lazyLoad('ml.post_data', opts),
|
|
||||||
preview_datafeed: lazyLoad('ml.preview_datafeed', opts),
|
|
||||||
previewDatafeed: lazyLoad('ml.preview_datafeed', opts),
|
|
||||||
put_calendar: lazyLoad('ml.put_calendar', opts),
|
|
||||||
putCalendar: lazyLoad('ml.put_calendar', opts),
|
|
||||||
put_calendar_job: lazyLoad('ml.put_calendar_job', opts),
|
|
||||||
putCalendarJob: lazyLoad('ml.put_calendar_job', opts),
|
|
||||||
put_datafeed: lazyLoad('ml.put_datafeed', opts),
|
|
||||||
putDatafeed: lazyLoad('ml.put_datafeed', opts),
|
|
||||||
put_filter: lazyLoad('ml.put_filter', opts),
|
|
||||||
putFilter: lazyLoad('ml.put_filter', opts),
|
|
||||||
put_job: lazyLoad('ml.put_job', opts),
|
|
||||||
putJob: lazyLoad('ml.put_job', opts),
|
|
||||||
revert_model_snapshot: lazyLoad('ml.revert_model_snapshot', opts),
|
|
||||||
revertModelSnapshot: lazyLoad('ml.revert_model_snapshot', opts),
|
|
||||||
set_upgrade_mode: lazyLoad('ml.set_upgrade_mode', opts),
|
|
||||||
setUpgradeMode: lazyLoad('ml.set_upgrade_mode', opts),
|
|
||||||
start_datafeed: lazyLoad('ml.start_datafeed', opts),
|
|
||||||
startDatafeed: lazyLoad('ml.start_datafeed', opts),
|
|
||||||
stop_datafeed: lazyLoad('ml.stop_datafeed', opts),
|
|
||||||
stopDatafeed: lazyLoad('ml.stop_datafeed', opts),
|
|
||||||
update_datafeed: lazyLoad('ml.update_datafeed', opts),
|
|
||||||
updateDatafeed: lazyLoad('ml.update_datafeed', opts),
|
|
||||||
update_filter: lazyLoad('ml.update_filter', opts),
|
|
||||||
updateFilter: lazyLoad('ml.update_filter', opts),
|
|
||||||
update_job: lazyLoad('ml.update_job', opts),
|
|
||||||
updateJob: lazyLoad('ml.update_job', opts),
|
|
||||||
update_model_snapshot: lazyLoad('ml.update_model_snapshot', opts),
|
|
||||||
updateModelSnapshot: lazyLoad('ml.update_model_snapshot', opts),
|
|
||||||
validate: lazyLoad('ml.validate', opts),
|
|
||||||
validate_detector: lazyLoad('ml.validate_detector', opts),
|
|
||||||
validateDetector: lazyLoad('ml.validate_detector', opts)
|
|
||||||
},
|
|
||||||
monitoring: {
|
|
||||||
bulk: lazyLoad('monitoring.bulk', opts)
|
|
||||||
},
|
|
||||||
msearch: lazyLoad('msearch', opts),
|
msearch: lazyLoad('msearch', opts),
|
||||||
msearch_template: lazyLoad('msearch_template', opts),
|
msearch_template: lazyLoad('msearch_template', opts),
|
||||||
msearchTemplate: lazyLoad('msearch_template', opts),
|
msearchTemplate: lazyLoad('msearch_template', opts),
|
||||||
mtermvectors: lazyLoad('mtermvectors', opts),
|
mtermvectors: lazyLoad('mtermvectors', opts),
|
||||||
>>>>>>> 3b41c55... Feat: Support bundlers (#783)
|
|
||||||
nodes: {
|
nodes: {
|
||||||
hot_threads: lazyLoad('nodes.hot_threads', opts),
|
hot_threads: lazyLoad('nodes.hot_threads', opts),
|
||||||
hotThreads: lazyLoad('nodes.hot_threads', opts),
|
hotThreads: lazyLoad('nodes.hot_threads', opts),
|
||||||
@ -336,26 +214,6 @@ function ESAPI (opts) {
|
|||||||
stats: lazyLoad('nodes.stats', opts),
|
stats: lazyLoad('nodes.stats', opts),
|
||||||
usage: lazyLoad('nodes.usage', opts)
|
usage: lazyLoad('nodes.usage', opts)
|
||||||
},
|
},
|
||||||
<<<<<<< HEAD
|
|
||||||
ping: lazyLoad('./api/ping.js', opts),
|
|
||||||
put_script: lazyLoad('./api/put_script.js', opts),
|
|
||||||
putScript: lazyLoad('./api/put_script.js', opts),
|
|
||||||
rank_eval: lazyLoad('./api/rank_eval.js', opts),
|
|
||||||
rankEval: lazyLoad('./api/rank_eval.js', opts),
|
|
||||||
reindex: lazyLoad('./api/reindex.js', opts),
|
|
||||||
reindex_rethrottle: lazyLoad('./api/reindex_rethrottle.js', opts),
|
|
||||||
reindexRethrottle: lazyLoad('./api/reindex_rethrottle.js', opts),
|
|
||||||
render_search_template: lazyLoad('./api/render_search_template.js', opts),
|
|
||||||
renderSearchTemplate: lazyLoad('./api/render_search_template.js', opts),
|
|
||||||
scripts_painless_execute: lazyLoad('./api/scripts_painless_execute.js', opts),
|
|
||||||
scriptsPainlessExecute: lazyLoad('./api/scripts_painless_execute.js', opts),
|
|
||||||
scroll: lazyLoad('./api/scroll.js', opts),
|
|
||||||
search: lazyLoad('./api/search.js', opts),
|
|
||||||
search_shards: lazyLoad('./api/search_shards.js', opts),
|
|
||||||
searchShards: lazyLoad('./api/search_shards.js', opts),
|
|
||||||
search_template: lazyLoad('./api/search_template.js', opts),
|
|
||||||
searchTemplate: lazyLoad('./api/search_template.js', opts),
|
|
||||||
=======
|
|
||||||
ping: lazyLoad('ping', opts),
|
ping: lazyLoad('ping', opts),
|
||||||
put_script: lazyLoad('put_script', opts),
|
put_script: lazyLoad('put_script', opts),
|
||||||
putScript: lazyLoad('put_script', opts),
|
putScript: lazyLoad('put_script', opts),
|
||||||
@ -374,58 +232,6 @@ function ESAPI (opts) {
|
|||||||
searchShards: lazyLoad('search_shards', opts),
|
searchShards: lazyLoad('search_shards', opts),
|
||||||
search_template: lazyLoad('search_template', opts),
|
search_template: lazyLoad('search_template', opts),
|
||||||
searchTemplate: lazyLoad('search_template', opts),
|
searchTemplate: lazyLoad('search_template', opts),
|
||||||
security: {
|
|
||||||
authenticate: lazyLoad('security.authenticate', opts),
|
|
||||||
change_password: lazyLoad('security.change_password', opts),
|
|
||||||
changePassword: lazyLoad('security.change_password', opts),
|
|
||||||
clear_cached_realms: lazyLoad('security.clear_cached_realms', opts),
|
|
||||||
clearCachedRealms: lazyLoad('security.clear_cached_realms', opts),
|
|
||||||
clear_cached_roles: lazyLoad('security.clear_cached_roles', opts),
|
|
||||||
clearCachedRoles: lazyLoad('security.clear_cached_roles', opts),
|
|
||||||
create_api_key: lazyLoad('security.create_api_key', opts),
|
|
||||||
createApiKey: lazyLoad('security.create_api_key', opts),
|
|
||||||
delete_privileges: lazyLoad('security.delete_privileges', opts),
|
|
||||||
deletePrivileges: lazyLoad('security.delete_privileges', opts),
|
|
||||||
delete_role: lazyLoad('security.delete_role', opts),
|
|
||||||
deleteRole: lazyLoad('security.delete_role', opts),
|
|
||||||
delete_role_mapping: lazyLoad('security.delete_role_mapping', opts),
|
|
||||||
deleteRoleMapping: lazyLoad('security.delete_role_mapping', opts),
|
|
||||||
delete_user: lazyLoad('security.delete_user', opts),
|
|
||||||
deleteUser: lazyLoad('security.delete_user', opts),
|
|
||||||
disable_user: lazyLoad('security.disable_user', opts),
|
|
||||||
disableUser: lazyLoad('security.disable_user', opts),
|
|
||||||
enable_user: lazyLoad('security.enable_user', opts),
|
|
||||||
enableUser: lazyLoad('security.enable_user', opts),
|
|
||||||
get_api_key: lazyLoad('security.get_api_key', opts),
|
|
||||||
getApiKey: lazyLoad('security.get_api_key', opts),
|
|
||||||
get_privileges: lazyLoad('security.get_privileges', opts),
|
|
||||||
getPrivileges: lazyLoad('security.get_privileges', opts),
|
|
||||||
get_role: lazyLoad('security.get_role', opts),
|
|
||||||
getRole: lazyLoad('security.get_role', opts),
|
|
||||||
get_role_mapping: lazyLoad('security.get_role_mapping', opts),
|
|
||||||
getRoleMapping: lazyLoad('security.get_role_mapping', opts),
|
|
||||||
get_token: lazyLoad('security.get_token', opts),
|
|
||||||
getToken: lazyLoad('security.get_token', opts),
|
|
||||||
get_user: lazyLoad('security.get_user', opts),
|
|
||||||
getUser: lazyLoad('security.get_user', opts),
|
|
||||||
get_user_privileges: lazyLoad('security.get_user_privileges', opts),
|
|
||||||
getUserPrivileges: lazyLoad('security.get_user_privileges', opts),
|
|
||||||
has_privileges: lazyLoad('security.has_privileges', opts),
|
|
||||||
hasPrivileges: lazyLoad('security.has_privileges', opts),
|
|
||||||
invalidate_api_key: lazyLoad('security.invalidate_api_key', opts),
|
|
||||||
invalidateApiKey: lazyLoad('security.invalidate_api_key', opts),
|
|
||||||
invalidate_token: lazyLoad('security.invalidate_token', opts),
|
|
||||||
invalidateToken: lazyLoad('security.invalidate_token', opts),
|
|
||||||
put_privileges: lazyLoad('security.put_privileges', opts),
|
|
||||||
putPrivileges: lazyLoad('security.put_privileges', opts),
|
|
||||||
put_role: lazyLoad('security.put_role', opts),
|
|
||||||
putRole: lazyLoad('security.put_role', opts),
|
|
||||||
put_role_mapping: lazyLoad('security.put_role_mapping', opts),
|
|
||||||
putRoleMapping: lazyLoad('security.put_role_mapping', opts),
|
|
||||||
put_user: lazyLoad('security.put_user', opts),
|
|
||||||
putUser: lazyLoad('security.put_user', opts)
|
|
||||||
},
|
|
||||||
>>>>>>> 3b41c55... Feat: Support bundlers (#783)
|
|
||||||
snapshot: {
|
snapshot: {
|
||||||
create: lazyLoad('snapshot.create', opts),
|
create: lazyLoad('snapshot.create', opts),
|
||||||
create_repository: lazyLoad('snapshot.create_repository', opts),
|
create_repository: lazyLoad('snapshot.create_repository', opts),
|
||||||
@ -441,12 +247,6 @@ function ESAPI (opts) {
|
|||||||
verify_repository: lazyLoad('snapshot.verify_repository', opts),
|
verify_repository: lazyLoad('snapshot.verify_repository', opts),
|
||||||
verifyRepository: lazyLoad('snapshot.verify_repository', opts)
|
verifyRepository: lazyLoad('snapshot.verify_repository', opts)
|
||||||
},
|
},
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
ssl: {
|
|
||||||
certificates: lazyLoad('ssl.certificates', opts)
|
|
||||||
},
|
|
||||||
>>>>>>> 3b41c55... Feat: Support bundlers (#783)
|
|
||||||
tasks: {
|
tasks: {
|
||||||
cancel: lazyLoad('tasks.cancel', opts),
|
cancel: lazyLoad('tasks.cancel', opts),
|
||||||
get: lazyLoad('tasks.get', opts),
|
get: lazyLoad('tasks.get', opts),
|
||||||
@ -483,96 +283,96 @@ function ESAPI (opts) {
|
|||||||
upgrade: lazyLoad('xpack.migration.upgrade', opts)
|
upgrade: lazyLoad('xpack.migration.upgrade', opts)
|
||||||
},
|
},
|
||||||
ml: {
|
ml: {
|
||||||
close_job: lazyLoad('./api/xpack.ml.close_job.js', opts),
|
close_job: lazyLoad('xpack.ml.close_job', opts),
|
||||||
closeJob: lazyLoad('./api/xpack.ml.close_job.js', opts),
|
closeJob: lazyLoad('xpack.ml.close_job', opts),
|
||||||
delete_calendar: lazyLoad('./api/xpack.ml.delete_calendar.js', opts),
|
delete_calendar: lazyLoad('xpack.ml.delete_calendar', opts),
|
||||||
deleteCalendar: lazyLoad('./api/xpack.ml.delete_calendar.js', opts),
|
deleteCalendar: lazyLoad('xpack.ml.delete_calendar', opts),
|
||||||
delete_calendar_event: lazyLoad('./api/xpack.ml.delete_calendar_event.js', opts),
|
delete_calendar_event: lazyLoad('xpack.ml.delete_calendar_event', opts),
|
||||||
deleteCalendarEvent: lazyLoad('./api/xpack.ml.delete_calendar_event.js', opts),
|
deleteCalendarEvent: lazyLoad('xpack.ml.delete_calendar_event', opts),
|
||||||
delete_calendar_job: lazyLoad('./api/xpack.ml.delete_calendar_job.js', opts),
|
delete_calendar_job: lazyLoad('xpack.ml.delete_calendar_job', opts),
|
||||||
deleteCalendarJob: lazyLoad('./api/xpack.ml.delete_calendar_job.js', opts),
|
deleteCalendarJob: lazyLoad('xpack.ml.delete_calendar_job', opts),
|
||||||
delete_datafeed: lazyLoad('./api/xpack.ml.delete_datafeed.js', opts),
|
delete_datafeed: lazyLoad('xpack.ml.delete_datafeed', opts),
|
||||||
deleteDatafeed: lazyLoad('./api/xpack.ml.delete_datafeed.js', opts),
|
deleteDatafeed: lazyLoad('xpack.ml.delete_datafeed', opts),
|
||||||
delete_expired_data: lazyLoad('./api/xpack.ml.delete_expired_data.js', opts),
|
delete_expired_data: lazyLoad('xpack.ml.delete_expired_data', opts),
|
||||||
deleteExpiredData: lazyLoad('./api/xpack.ml.delete_expired_data.js', opts),
|
deleteExpiredData: lazyLoad('xpack.ml.delete_expired_data', opts),
|
||||||
delete_filter: lazyLoad('./api/xpack.ml.delete_filter.js', opts),
|
delete_filter: lazyLoad('xpack.ml.delete_filter', opts),
|
||||||
deleteFilter: lazyLoad('./api/xpack.ml.delete_filter.js', opts),
|
deleteFilter: lazyLoad('xpack.ml.delete_filter', opts),
|
||||||
delete_forecast: lazyLoad('./api/xpack.ml.delete_forecast.js', opts),
|
delete_forecast: lazyLoad('xpack.ml.delete_forecast', opts),
|
||||||
deleteForecast: lazyLoad('./api/xpack.ml.delete_forecast.js', opts),
|
deleteForecast: lazyLoad('xpack.ml.delete_forecast', opts),
|
||||||
delete_job: lazyLoad('./api/xpack.ml.delete_job.js', opts),
|
delete_job: lazyLoad('xpack.ml.delete_job', opts),
|
||||||
deleteJob: lazyLoad('./api/xpack.ml.delete_job.js', opts),
|
deleteJob: lazyLoad('xpack.ml.delete_job', opts),
|
||||||
delete_model_snapshot: lazyLoad('./api/xpack.ml.delete_model_snapshot.js', opts),
|
delete_model_snapshot: lazyLoad('xpack.ml.delete_model_snapshot', opts),
|
||||||
deleteModelSnapshot: lazyLoad('./api/xpack.ml.delete_model_snapshot.js', opts),
|
deleteModelSnapshot: lazyLoad('xpack.ml.delete_model_snapshot', opts),
|
||||||
find_file_structure: lazyLoad('./api/xpack.ml.find_file_structure.js', opts),
|
find_file_structure: lazyLoad('xpack.ml.find_file_structure', opts),
|
||||||
findFileStructure: lazyLoad('./api/xpack.ml.find_file_structure.js', opts),
|
findFileStructure: lazyLoad('xpack.ml.find_file_structure', opts),
|
||||||
flush_job: lazyLoad('./api/xpack.ml.flush_job.js', opts),
|
flush_job: lazyLoad('xpack.ml.flush_job', opts),
|
||||||
flushJob: lazyLoad('./api/xpack.ml.flush_job.js', opts),
|
flushJob: lazyLoad('xpack.ml.flush_job', opts),
|
||||||
forecast: lazyLoad('./api/xpack.ml.forecast.js', opts),
|
forecast: lazyLoad('xpack.ml.forecast', opts),
|
||||||
get_buckets: lazyLoad('./api/xpack.ml.get_buckets.js', opts),
|
get_buckets: lazyLoad('xpack.ml.get_buckets', opts),
|
||||||
getBuckets: lazyLoad('./api/xpack.ml.get_buckets.js', opts),
|
getBuckets: lazyLoad('xpack.ml.get_buckets', opts),
|
||||||
get_calendar_events: lazyLoad('./api/xpack.ml.get_calendar_events.js', opts),
|
get_calendar_events: lazyLoad('xpack.ml.get_calendar_events', opts),
|
||||||
getCalendarEvents: lazyLoad('./api/xpack.ml.get_calendar_events.js', opts),
|
getCalendarEvents: lazyLoad('xpack.ml.get_calendar_events', opts),
|
||||||
get_calendars: lazyLoad('./api/xpack.ml.get_calendars.js', opts),
|
get_calendars: lazyLoad('xpack.ml.get_calendars', opts),
|
||||||
getCalendars: lazyLoad('./api/xpack.ml.get_calendars.js', opts),
|
getCalendars: lazyLoad('xpack.ml.get_calendars', opts),
|
||||||
get_categories: lazyLoad('./api/xpack.ml.get_categories.js', opts),
|
get_categories: lazyLoad('xpack.ml.get_categories', opts),
|
||||||
getCategories: lazyLoad('./api/xpack.ml.get_categories.js', opts),
|
getCategories: lazyLoad('xpack.ml.get_categories', opts),
|
||||||
get_datafeed_stats: lazyLoad('./api/xpack.ml.get_datafeed_stats.js', opts),
|
get_datafeed_stats: lazyLoad('xpack.ml.get_datafeed_stats', opts),
|
||||||
getDatafeedStats: lazyLoad('./api/xpack.ml.get_datafeed_stats.js', opts),
|
getDatafeedStats: lazyLoad('xpack.ml.get_datafeed_stats', opts),
|
||||||
get_datafeeds: lazyLoad('./api/xpack.ml.get_datafeeds.js', opts),
|
get_datafeeds: lazyLoad('xpack.ml.get_datafeeds', opts),
|
||||||
getDatafeeds: lazyLoad('./api/xpack.ml.get_datafeeds.js', opts),
|
getDatafeeds: lazyLoad('xpack.ml.get_datafeeds', opts),
|
||||||
get_filters: lazyLoad('./api/xpack.ml.get_filters.js', opts),
|
get_filters: lazyLoad('xpack.ml.get_filters', opts),
|
||||||
getFilters: lazyLoad('./api/xpack.ml.get_filters.js', opts),
|
getFilters: lazyLoad('xpack.ml.get_filters', opts),
|
||||||
get_influencers: lazyLoad('./api/xpack.ml.get_influencers.js', opts),
|
get_influencers: lazyLoad('xpack.ml.get_influencers', opts),
|
||||||
getInfluencers: lazyLoad('./api/xpack.ml.get_influencers.js', opts),
|
getInfluencers: lazyLoad('xpack.ml.get_influencers', opts),
|
||||||
get_job_stats: lazyLoad('./api/xpack.ml.get_job_stats.js', opts),
|
get_job_stats: lazyLoad('xpack.ml.get_job_stats', opts),
|
||||||
getJobStats: lazyLoad('./api/xpack.ml.get_job_stats.js', opts),
|
getJobStats: lazyLoad('xpack.ml.get_job_stats', opts),
|
||||||
get_jobs: lazyLoad('./api/xpack.ml.get_jobs.js', opts),
|
get_jobs: lazyLoad('xpack.ml.get_jobs', opts),
|
||||||
getJobs: lazyLoad('./api/xpack.ml.get_jobs.js', opts),
|
getJobs: lazyLoad('xpack.ml.get_jobs', opts),
|
||||||
get_model_snapshots: lazyLoad('./api/xpack.ml.get_model_snapshots.js', opts),
|
get_model_snapshots: lazyLoad('xpack.ml.get_model_snapshots', opts),
|
||||||
getModelSnapshots: lazyLoad('./api/xpack.ml.get_model_snapshots.js', opts),
|
getModelSnapshots: lazyLoad('xpack.ml.get_model_snapshots', opts),
|
||||||
get_overall_buckets: lazyLoad('./api/xpack.ml.get_overall_buckets.js', opts),
|
get_overall_buckets: lazyLoad('xpack.ml.get_overall_buckets', opts),
|
||||||
getOverallBuckets: lazyLoad('./api/xpack.ml.get_overall_buckets.js', opts),
|
getOverallBuckets: lazyLoad('xpack.ml.get_overall_buckets', opts),
|
||||||
get_records: lazyLoad('./api/xpack.ml.get_records.js', opts),
|
get_records: lazyLoad('xpack.ml.get_records', opts),
|
||||||
getRecords: lazyLoad('./api/xpack.ml.get_records.js', opts),
|
getRecords: lazyLoad('xpack.ml.get_records', opts),
|
||||||
info: lazyLoad('./api/xpack.ml.info.js', opts),
|
info: lazyLoad('xpack.ml.info', opts),
|
||||||
open_job: lazyLoad('./api/xpack.ml.open_job.js', opts),
|
open_job: lazyLoad('xpack.ml.open_job', opts),
|
||||||
openJob: lazyLoad('./api/xpack.ml.open_job.js', opts),
|
openJob: lazyLoad('xpack.ml.open_job', opts),
|
||||||
post_calendar_events: lazyLoad('./api/xpack.ml.post_calendar_events.js', opts),
|
post_calendar_events: lazyLoad('xpack.ml.post_calendar_events', opts),
|
||||||
postCalendarEvents: lazyLoad('./api/xpack.ml.post_calendar_events.js', opts),
|
postCalendarEvents: lazyLoad('xpack.ml.post_calendar_events', opts),
|
||||||
post_data: lazyLoad('./api/xpack.ml.post_data.js', opts),
|
post_data: lazyLoad('xpack.ml.post_data', opts),
|
||||||
postData: lazyLoad('./api/xpack.ml.post_data.js', opts),
|
postData: lazyLoad('xpack.ml.post_data', opts),
|
||||||
preview_datafeed: lazyLoad('./api/xpack.ml.preview_datafeed.js', opts),
|
preview_datafeed: lazyLoad('xpack.ml.preview_datafeed', opts),
|
||||||
previewDatafeed: lazyLoad('./api/xpack.ml.preview_datafeed.js', opts),
|
previewDatafeed: lazyLoad('xpack.ml.preview_datafeed', opts),
|
||||||
put_calendar: lazyLoad('./api/xpack.ml.put_calendar.js', opts),
|
put_calendar: lazyLoad('xpack.ml.put_calendar', opts),
|
||||||
putCalendar: lazyLoad('./api/xpack.ml.put_calendar.js', opts),
|
putCalendar: lazyLoad('xpack.ml.put_calendar', opts),
|
||||||
put_calendar_job: lazyLoad('./api/xpack.ml.put_calendar_job.js', opts),
|
put_calendar_job: lazyLoad('xpack.ml.put_calendar_job', opts),
|
||||||
putCalendarJob: lazyLoad('./api/xpack.ml.put_calendar_job.js', opts),
|
putCalendarJob: lazyLoad('xpack.ml.put_calendar_job', opts),
|
||||||
put_datafeed: lazyLoad('./api/xpack.ml.put_datafeed.js', opts),
|
put_datafeed: lazyLoad('xpack.ml.put_datafeed', opts),
|
||||||
putDatafeed: lazyLoad('./api/xpack.ml.put_datafeed.js', opts),
|
putDatafeed: lazyLoad('xpack.ml.put_datafeed', opts),
|
||||||
put_filter: lazyLoad('./api/xpack.ml.put_filter.js', opts),
|
put_filter: lazyLoad('xpack.ml.put_filter', opts),
|
||||||
putFilter: lazyLoad('./api/xpack.ml.put_filter.js', opts),
|
putFilter: lazyLoad('xpack.ml.put_filter', opts),
|
||||||
put_job: lazyLoad('./api/xpack.ml.put_job.js', opts),
|
put_job: lazyLoad('xpack.ml.put_job', opts),
|
||||||
putJob: lazyLoad('./api/xpack.ml.put_job.js', opts),
|
putJob: lazyLoad('xpack.ml.put_job', opts),
|
||||||
revert_model_snapshot: lazyLoad('./api/xpack.ml.revert_model_snapshot.js', opts),
|
revert_model_snapshot: lazyLoad('xpack.ml.revert_model_snapshot', opts),
|
||||||
revertModelSnapshot: lazyLoad('./api/xpack.ml.revert_model_snapshot.js', opts),
|
revertModelSnapshot: lazyLoad('xpack.ml.revert_model_snapshot', opts),
|
||||||
start_datafeed: lazyLoad('./api/xpack.ml.start_datafeed.js', opts),
|
start_datafeed: lazyLoad('xpack.ml.start_datafeed', opts),
|
||||||
startDatafeed: lazyLoad('./api/xpack.ml.start_datafeed.js', opts),
|
startDatafeed: lazyLoad('xpack.ml.start_datafeed', opts),
|
||||||
stop_datafeed: lazyLoad('./api/xpack.ml.stop_datafeed.js', opts),
|
stop_datafeed: lazyLoad('xpack.ml.stop_datafeed', opts),
|
||||||
stopDatafeed: lazyLoad('./api/xpack.ml.stop_datafeed.js', opts),
|
stopDatafeed: lazyLoad('xpack.ml.stop_datafeed', opts),
|
||||||
update_datafeed: lazyLoad('./api/xpack.ml.update_datafeed.js', opts),
|
update_datafeed: lazyLoad('xpack.ml.update_datafeed', opts),
|
||||||
updateDatafeed: lazyLoad('./api/xpack.ml.update_datafeed.js', opts),
|
updateDatafeed: lazyLoad('xpack.ml.update_datafeed', opts),
|
||||||
update_filter: lazyLoad('./api/xpack.ml.update_filter.js', opts),
|
update_filter: lazyLoad('xpack.ml.update_filter', opts),
|
||||||
updateFilter: lazyLoad('./api/xpack.ml.update_filter.js', opts),
|
updateFilter: lazyLoad('xpack.ml.update_filter', opts),
|
||||||
update_job: lazyLoad('./api/xpack.ml.update_job.js', opts),
|
update_job: lazyLoad('xpack.ml.update_job', opts),
|
||||||
updateJob: lazyLoad('./api/xpack.ml.update_job.js', opts),
|
updateJob: lazyLoad('xpack.ml.update_job', opts),
|
||||||
update_model_snapshot: lazyLoad('./api/xpack.ml.update_model_snapshot.js', opts),
|
update_model_snapshot: lazyLoad('xpack.ml.update_model_snapshot', opts),
|
||||||
updateModelSnapshot: lazyLoad('./api/xpack.ml.update_model_snapshot.js', opts),
|
updateModelSnapshot: lazyLoad('xpack.ml.update_model_snapshot', opts),
|
||||||
validate: lazyLoad('./api/xpack.ml.validate.js', opts),
|
validate: lazyLoad('xpack.ml.validate', opts),
|
||||||
validate_detector: lazyLoad('./api/xpack.ml.validate_detector.js', opts),
|
validate_detector: lazyLoad('xpack.ml.validate_detector', opts),
|
||||||
validateDetector: lazyLoad('./api/xpack.ml.validate_detector.js', opts)
|
validateDetector: lazyLoad('xpack.ml.validate_detector', opts)
|
||||||
},
|
},
|
||||||
monitoring: {
|
monitoring: {
|
||||||
bulk: lazyLoad('./api/xpack.monitoring.bulk.js', opts)
|
bulk: lazyLoad('xpack.monitoring.bulk', opts)
|
||||||
},
|
},
|
||||||
rollup: {
|
rollup: {
|
||||||
delete_job: lazyLoad('xpack.rollup.delete_job', opts),
|
delete_job: lazyLoad('xpack.rollup.delete_job', opts),
|
||||||
@ -593,49 +393,49 @@ function ESAPI (opts) {
|
|||||||
stopJob: lazyLoad('xpack.rollup.stop_job', opts)
|
stopJob: lazyLoad('xpack.rollup.stop_job', opts)
|
||||||
},
|
},
|
||||||
security: {
|
security: {
|
||||||
authenticate: lazyLoad('./api/xpack.security.authenticate.js', opts),
|
authenticate: lazyLoad('xpack.security.authenticate', opts),
|
||||||
change_password: lazyLoad('./api/xpack.security.change_password.js', opts),
|
change_password: lazyLoad('xpack.security.change_password', opts),
|
||||||
changePassword: lazyLoad('./api/xpack.security.change_password.js', opts),
|
changePassword: lazyLoad('xpack.security.change_password', opts),
|
||||||
clear_cached_realms: lazyLoad('./api/xpack.security.clear_cached_realms.js', opts),
|
clear_cached_realms: lazyLoad('xpack.security.clear_cached_realms', opts),
|
||||||
clearCachedRealms: lazyLoad('./api/xpack.security.clear_cached_realms.js', opts),
|
clearCachedRealms: lazyLoad('xpack.security.clear_cached_realms', opts),
|
||||||
clear_cached_roles: lazyLoad('./api/xpack.security.clear_cached_roles.js', opts),
|
clear_cached_roles: lazyLoad('xpack.security.clear_cached_roles', opts),
|
||||||
clearCachedRoles: lazyLoad('./api/xpack.security.clear_cached_roles.js', opts),
|
clearCachedRoles: lazyLoad('xpack.security.clear_cached_roles', opts),
|
||||||
delete_privileges: lazyLoad('./api/xpack.security.delete_privileges.js', opts),
|
delete_privileges: lazyLoad('xpack.security.delete_privileges', opts),
|
||||||
deletePrivileges: lazyLoad('./api/xpack.security.delete_privileges.js', opts),
|
deletePrivileges: lazyLoad('xpack.security.delete_privileges', opts),
|
||||||
delete_role: lazyLoad('./api/xpack.security.delete_role.js', opts),
|
delete_role: lazyLoad('xpack.security.delete_role', opts),
|
||||||
deleteRole: lazyLoad('./api/xpack.security.delete_role.js', opts),
|
deleteRole: lazyLoad('xpack.security.delete_role', opts),
|
||||||
delete_role_mapping: lazyLoad('./api/xpack.security.delete_role_mapping.js', opts),
|
delete_role_mapping: lazyLoad('xpack.security.delete_role_mapping', opts),
|
||||||
deleteRoleMapping: lazyLoad('./api/xpack.security.delete_role_mapping.js', opts),
|
deleteRoleMapping: lazyLoad('xpack.security.delete_role_mapping', opts),
|
||||||
delete_user: lazyLoad('./api/xpack.security.delete_user.js', opts),
|
delete_user: lazyLoad('xpack.security.delete_user', opts),
|
||||||
deleteUser: lazyLoad('./api/xpack.security.delete_user.js', opts),
|
deleteUser: lazyLoad('xpack.security.delete_user', opts),
|
||||||
disable_user: lazyLoad('./api/xpack.security.disable_user.js', opts),
|
disable_user: lazyLoad('xpack.security.disable_user', opts),
|
||||||
disableUser: lazyLoad('./api/xpack.security.disable_user.js', opts),
|
disableUser: lazyLoad('xpack.security.disable_user', opts),
|
||||||
enable_user: lazyLoad('./api/xpack.security.enable_user.js', opts),
|
enable_user: lazyLoad('xpack.security.enable_user', opts),
|
||||||
enableUser: lazyLoad('./api/xpack.security.enable_user.js', opts),
|
enableUser: lazyLoad('xpack.security.enable_user', opts),
|
||||||
get_privileges: lazyLoad('./api/xpack.security.get_privileges.js', opts),
|
get_privileges: lazyLoad('xpack.security.get_privileges', opts),
|
||||||
getPrivileges: lazyLoad('./api/xpack.security.get_privileges.js', opts),
|
getPrivileges: lazyLoad('xpack.security.get_privileges', opts),
|
||||||
get_role: lazyLoad('./api/xpack.security.get_role.js', opts),
|
get_role: lazyLoad('xpack.security.get_role', opts),
|
||||||
getRole: lazyLoad('./api/xpack.security.get_role.js', opts),
|
getRole: lazyLoad('xpack.security.get_role', opts),
|
||||||
get_role_mapping: lazyLoad('./api/xpack.security.get_role_mapping.js', opts),
|
get_role_mapping: lazyLoad('xpack.security.get_role_mapping', opts),
|
||||||
getRoleMapping: lazyLoad('./api/xpack.security.get_role_mapping.js', opts),
|
getRoleMapping: lazyLoad('xpack.security.get_role_mapping', opts),
|
||||||
get_token: lazyLoad('./api/xpack.security.get_token.js', opts),
|
get_token: lazyLoad('xpack.security.get_token', opts),
|
||||||
getToken: lazyLoad('./api/xpack.security.get_token.js', opts),
|
getToken: lazyLoad('xpack.security.get_token', opts),
|
||||||
get_user: lazyLoad('./api/xpack.security.get_user.js', opts),
|
get_user: lazyLoad('xpack.security.get_user', opts),
|
||||||
getUser: lazyLoad('./api/xpack.security.get_user.js', opts),
|
getUser: lazyLoad('xpack.security.get_user', opts),
|
||||||
get_user_privileges: lazyLoad('./api/xpack.security.get_user_privileges.js', opts),
|
get_user_privileges: lazyLoad('xpack.security.get_user_privileges', opts),
|
||||||
getUserPrivileges: lazyLoad('./api/xpack.security.get_user_privileges.js', opts),
|
getUserPrivileges: lazyLoad('xpack.security.get_user_privileges', opts),
|
||||||
has_privileges: lazyLoad('./api/xpack.security.has_privileges.js', opts),
|
has_privileges: lazyLoad('xpack.security.has_privileges', opts),
|
||||||
hasPrivileges: lazyLoad('./api/xpack.security.has_privileges.js', opts),
|
hasPrivileges: lazyLoad('xpack.security.has_privileges', opts),
|
||||||
invalidate_token: lazyLoad('./api/xpack.security.invalidate_token.js', opts),
|
invalidate_token: lazyLoad('xpack.security.invalidate_token', opts),
|
||||||
invalidateToken: lazyLoad('./api/xpack.security.invalidate_token.js', opts),
|
invalidateToken: lazyLoad('xpack.security.invalidate_token', opts),
|
||||||
put_privileges: lazyLoad('./api/xpack.security.put_privileges.js', opts),
|
put_privileges: lazyLoad('xpack.security.put_privileges', opts),
|
||||||
putPrivileges: lazyLoad('./api/xpack.security.put_privileges.js', opts),
|
putPrivileges: lazyLoad('xpack.security.put_privileges', opts),
|
||||||
put_role: lazyLoad('./api/xpack.security.put_role.js', opts),
|
put_role: lazyLoad('xpack.security.put_role', opts),
|
||||||
putRole: lazyLoad('./api/xpack.security.put_role.js', opts),
|
putRole: lazyLoad('xpack.security.put_role', opts),
|
||||||
put_role_mapping: lazyLoad('./api/xpack.security.put_role_mapping.js', opts),
|
put_role_mapping: lazyLoad('xpack.security.put_role_mapping', opts),
|
||||||
putRoleMapping: lazyLoad('./api/xpack.security.put_role_mapping.js', opts),
|
putRoleMapping: lazyLoad('xpack.security.put_role_mapping', opts),
|
||||||
put_user: lazyLoad('./api/xpack.security.put_user.js', opts),
|
put_user: lazyLoad('xpack.security.put_user', opts),
|
||||||
putUser: lazyLoad('./api/xpack.security.put_user.js', opts)
|
putUser: lazyLoad('xpack.security.put_user', opts)
|
||||||
},
|
},
|
||||||
sql: {
|
sql: {
|
||||||
clear_cursor: lazyLoad('xpack.sql.clear_cursor', opts),
|
clear_cursor: lazyLoad('xpack.sql.clear_cursor', opts),
|
||||||
@ -643,31 +443,9 @@ function ESAPI (opts) {
|
|||||||
query: lazyLoad('xpack.sql.query', opts),
|
query: lazyLoad('xpack.sql.query', opts),
|
||||||
translate: lazyLoad('xpack.sql.translate', opts)
|
translate: lazyLoad('xpack.sql.translate', opts)
|
||||||
},
|
},
|
||||||
<<<<<<< HEAD
|
|
||||||
ssl: {
|
ssl: {
|
||||||
certificates: lazyLoad('./api/xpack.ssl.certificates.js', opts)
|
certificates: lazyLoad('xpack.ssl.certificates', opts)
|
||||||
},
|
},
|
||||||
usage: lazyLoad('./api/xpack.usage.js', opts),
|
|
||||||
watcher: {
|
|
||||||
ack_watch: lazyLoad('./api/xpack.watcher.ack_watch.js', opts),
|
|
||||||
ackWatch: lazyLoad('./api/xpack.watcher.ack_watch.js', opts),
|
|
||||||
activate_watch: lazyLoad('./api/xpack.watcher.activate_watch.js', opts),
|
|
||||||
activateWatch: lazyLoad('./api/xpack.watcher.activate_watch.js', opts),
|
|
||||||
deactivate_watch: lazyLoad('./api/xpack.watcher.deactivate_watch.js', opts),
|
|
||||||
deactivateWatch: lazyLoad('./api/xpack.watcher.deactivate_watch.js', opts),
|
|
||||||
delete_watch: lazyLoad('./api/xpack.watcher.delete_watch.js', opts),
|
|
||||||
deleteWatch: lazyLoad('./api/xpack.watcher.delete_watch.js', opts),
|
|
||||||
execute_watch: lazyLoad('./api/xpack.watcher.execute_watch.js', opts),
|
|
||||||
executeWatch: lazyLoad('./api/xpack.watcher.execute_watch.js', opts),
|
|
||||||
get_watch: lazyLoad('./api/xpack.watcher.get_watch.js', opts),
|
|
||||||
getWatch: lazyLoad('./api/xpack.watcher.get_watch.js', opts),
|
|
||||||
put_watch: lazyLoad('./api/xpack.watcher.put_watch.js', opts),
|
|
||||||
putWatch: lazyLoad('./api/xpack.watcher.put_watch.js', opts),
|
|
||||||
restart: lazyLoad('./api/xpack.watcher.restart.js', opts),
|
|
||||||
start: lazyLoad('./api/xpack.watcher.start.js', opts),
|
|
||||||
stats: lazyLoad('./api/xpack.watcher.stats.js', opts),
|
|
||||||
stop: lazyLoad('./api/xpack.watcher.stop.js', opts)
|
|
||||||
=======
|
|
||||||
usage: lazyLoad('xpack.usage', opts),
|
usage: lazyLoad('xpack.usage', opts),
|
||||||
watcher: {
|
watcher: {
|
||||||
ack_watch: lazyLoad('xpack.watcher.ack_watch', opts),
|
ack_watch: lazyLoad('xpack.watcher.ack_watch', opts),
|
||||||
@ -684,10 +462,10 @@ function ESAPI (opts) {
|
|||||||
getWatch: lazyLoad('xpack.watcher.get_watch', opts),
|
getWatch: lazyLoad('xpack.watcher.get_watch', opts),
|
||||||
put_watch: lazyLoad('xpack.watcher.put_watch', opts),
|
put_watch: lazyLoad('xpack.watcher.put_watch', opts),
|
||||||
putWatch: lazyLoad('xpack.watcher.put_watch', opts),
|
putWatch: lazyLoad('xpack.watcher.put_watch', opts),
|
||||||
|
restart: lazyLoad('xpack.watcher.restart', opts),
|
||||||
start: lazyLoad('xpack.watcher.start', opts),
|
start: lazyLoad('xpack.watcher.start', opts),
|
||||||
stats: lazyLoad('xpack.watcher.stats', opts),
|
stats: lazyLoad('xpack.watcher.stats', opts),
|
||||||
stop: lazyLoad('xpack.watcher.stop', opts)
|
stop: lazyLoad('xpack.watcher.stop', opts)
|
||||||
>>>>>>> 3b41c55... Feat: Support bundlers (#783)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user