API generation
This commit is contained in:
@ -21,6 +21,7 @@ function buildEnrichDeletePolicy (opts) {
|
||||
|
||||
/**
|
||||
* Perform a enrich.delete_policy request
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html
|
||||
*/
|
||||
return function enrichDeletePolicy (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -21,6 +21,7 @@ function buildEnrichExecutePolicy (opts) {
|
||||
|
||||
/**
|
||||
* Perform a enrich.execute_policy request
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html
|
||||
*/
|
||||
return function enrichExecutePolicy (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -21,6 +21,7 @@ function buildEnrichGetPolicy (opts) {
|
||||
|
||||
/**
|
||||
* Perform a enrich.get_policy request
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html
|
||||
*/
|
||||
return function enrichGetPolicy (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -21,6 +21,7 @@ function buildEnrichPutPolicy (opts) {
|
||||
|
||||
/**
|
||||
* Perform a enrich.put_policy request
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html
|
||||
*/
|
||||
return function enrichPutPolicy (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -21,6 +21,7 @@ function buildEnrichStats (opts) {
|
||||
|
||||
/**
|
||||
* Perform a enrich.stats request
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-stats-api.html
|
||||
*/
|
||||
return function enrichStats (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -21,7 +21,7 @@ function buildEqlSearch (opts) {
|
||||
|
||||
/**
|
||||
* Perform a eql.search request
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search.html
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/eql.html
|
||||
*/
|
||||
return function eqlSearch (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -21,7 +21,7 @@ function buildSlmExecuteLifecycle (opts) {
|
||||
|
||||
/**
|
||||
* Perform a slm.execute_lifecycle request
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-policy.html
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html
|
||||
*/
|
||||
return function slmExecuteLifecycle (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -21,7 +21,7 @@ function buildSlmGetStatus (opts) {
|
||||
|
||||
/**
|
||||
* Perform a slm.get_status request
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-get-status.html
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html
|
||||
*/
|
||||
return function slmGetStatus (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -21,7 +21,7 @@ function buildSlmStart (opts) {
|
||||
|
||||
/**
|
||||
* Perform a slm.start request
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-start.html
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html
|
||||
*/
|
||||
return function slmStart (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -21,7 +21,7 @@ function buildSlmStop (opts) {
|
||||
|
||||
/**
|
||||
* Perform a slm.stop request
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-stop.html
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html
|
||||
*/
|
||||
return function slmStop (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -21,7 +21,8 @@ function buildSqlClearCursor (opts) {
|
||||
|
||||
/**
|
||||
* Perform a sql.clear_cursor request
|
||||
* Clear SQL cursor
|
||||
* Clears the SQL cursor
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-pagination.html
|
||||
*/
|
||||
return function sqlClearCursor (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -21,7 +21,8 @@ function buildSqlQuery (opts) {
|
||||
|
||||
/**
|
||||
* Perform a sql.query request
|
||||
* Execute SQL
|
||||
* Executes an SQL request
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html
|
||||
*/
|
||||
return function sqlQuery (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -21,7 +21,8 @@ function buildSqlTranslate (opts) {
|
||||
|
||||
/**
|
||||
* Perform a sql.translate request
|
||||
* Translate SQL into Elasticsearch queries
|
||||
* Translates SQL into Elasticsearch queries
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-translate.html
|
||||
*/
|
||||
return function sqlTranslate (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
2
api/requestParams.d.ts
vendored
2
api/requestParams.d.ts
vendored
@ -406,7 +406,7 @@ export interface DeleteByQuery<T = any> extends Generic {
|
||||
scroll_size?: number;
|
||||
wait_for_completion?: boolean;
|
||||
requests_per_second?: number;
|
||||
slices?: number;
|
||||
slices?: number|string;
|
||||
body: T;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user