API generation
This commit is contained in:
@ -26,7 +26,7 @@ function buildIngestDeletePipeline (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [ingest.delete_pipeline](https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html) request
|
||||
* Perform a [ingest.delete_pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html) request
|
||||
*
|
||||
* @param {string} id - Pipeline ID
|
||||
* @param {time} master_timeout - Explicit operation timeout for connection to master node
|
||||
|
||||
@ -26,7 +26,7 @@ function buildIngestGetPipeline (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [ingest.get_pipeline](https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html) request
|
||||
* Perform a [ingest.get_pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html) request
|
||||
*
|
||||
* @param {string} id - Comma separated list of pipeline ids. Wildcards supported
|
||||
* @param {time} master_timeout - Explicit operation timeout for connection to master node
|
||||
|
||||
@ -26,7 +26,7 @@ function buildIngestProcessorGrok (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [ingest.processor_grok](https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html) request
|
||||
* Perform a [ingest.processor_grok](https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get) request
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ function buildIngestPutPipeline (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [ingest.put_pipeline](https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html) request
|
||||
* Perform a [ingest.put_pipeline](https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html) request
|
||||
*
|
||||
* @param {string} id - Pipeline ID
|
||||
* @param {time} master_timeout - Explicit operation timeout for connection to master node
|
||||
|
||||
@ -26,7 +26,7 @@ function buildIngestSimulate (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [ingest.simulate](https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest.html) request
|
||||
* Perform a [ingest.simulate](https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html) request
|
||||
*
|
||||
* @param {string} id - Pipeline ID
|
||||
* @param {boolean} verbose - Verbose mode. Display data output for each processor in executed pipeline
|
||||
|
||||
@ -26,7 +26,7 @@ function buildXpackLicenseDelete (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [xpack.license.delete](https://www.elastic.co/guide/en/x-pack/current/license-management.html) request
|
||||
* Perform a [xpack.license.delete](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/delete-license.html) request
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ function buildXpackLicenseGet (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [xpack.license.get](https://www.elastic.co/guide/en/x-pack/current/license-management.html) request
|
||||
* Perform a [xpack.license.get](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/get-license.html) request
|
||||
*
|
||||
* @param {boolean} local - Return local information, do not retrieve the state from master node (default: false)
|
||||
*/
|
||||
|
||||
@ -26,7 +26,7 @@ function buildXpackLicenseGetBasicStatus (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [xpack.license.get_basic_status](https://www.elastic.co/guide/en/x-pack/current/license-management.html) request
|
||||
* Perform a [xpack.license.get_basic_status](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/get-trial-status.html) request
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ function buildXpackLicenseGetTrialStatus (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [xpack.license.get_trial_status](https://www.elastic.co/guide/en/x-pack/current/license-management.html) request
|
||||
* Perform a [xpack.license.get_trial_status](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/get-basic-status.html) request
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ function buildXpackLicensePost (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [xpack.license.post](https://www.elastic.co/guide/en/x-pack/current/license-management.html) request
|
||||
* Perform a [xpack.license.post](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/update-license.html) request
|
||||
*
|
||||
* @param {boolean} acknowledge - whether the user has acknowledged acknowledge messages (default: false)
|
||||
* @param {object} body - licenses to be installed
|
||||
|
||||
@ -26,7 +26,7 @@ function buildXpackLicensePostStartBasic (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [xpack.license.post_start_basic](https://www.elastic.co/guide/en/x-pack/current/license-management.html) request
|
||||
* Perform a [xpack.license.post_start_basic](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/start-basic.html) request
|
||||
*
|
||||
* @param {boolean} acknowledge - whether the user has acknowledged acknowledge messages (default: false)
|
||||
*/
|
||||
|
||||
@ -26,7 +26,7 @@ function buildXpackLicensePostStartTrial (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [xpack.license.post_start_trial](https://www.elastic.co/guide/en/x-pack/current/license-management.html) request
|
||||
* Perform a [xpack.license.post_start_trial](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/start-trial.html) request
|
||||
*
|
||||
* @param {string} type - The type of trial license to generate (default: "trial")
|
||||
* @param {boolean} acknowledge - whether the user has acknowledged acknowledge messages (default: false)
|
||||
|
||||
@ -26,7 +26,7 @@ function buildXpackMigrationDeprecations (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [xpack.migration.deprecations](http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html) request
|
||||
* Perform a [xpack.migration.deprecations](http://www.elastic.co/guide/en/elasticsearch/reference/6.7/migration-api-deprecation.html) request
|
||||
*
|
||||
* @param {string} index - Index pattern
|
||||
*/
|
||||
|
||||
@ -26,7 +26,7 @@ function buildXpackMlFindFileStructure (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [xpack.ml.find_file_structure](http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-file-structure.html) request
|
||||
* Perform a [xpack.ml.find_file_structure](http://www.elastic.co/guide/en/elasticsearch/reference/6.7/ml-find-file-structure.html) request
|
||||
*
|
||||
* @param {int} lines_to_sample - How many lines of the file should be included in the analysis
|
||||
* @param {time} timeout - Timeout after which the analysis will be aborted
|
||||
|
||||
@ -26,7 +26,7 @@ function buildXpackMonitoringBulk (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [xpack.monitoring.bulk](http://www.elastic.co/guide/en/monitoring/current/appendix-api-bulk.html) request
|
||||
* Perform a [xpack.monitoring.bulk](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/es-monitoring.html) request
|
||||
*
|
||||
* @param {string} type - Default document type for items which don't provide one
|
||||
* @param {string} system_id - Identifier of the monitored system
|
||||
|
||||
@ -26,7 +26,7 @@ function buildXpackSecurityGetUserPrivileges (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
/**
|
||||
* Perform a [xpack.security.get_user_privileges](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html) request
|
||||
* Perform a [xpack.security.get_user_privileges](https://www.elastic.co/guide/en/elasticsearch/reference/6.7/security-api-get-privileges.html) request
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user