[apis] regenerate

This commit is contained in:
spalger
2019-09-18 18:23:55 -07:00
parent 31e5ab8fea
commit a0dfc4ab9f
6 changed files with 7191 additions and 15 deletions

View File

@ -1218,7 +1218,7 @@ api.cat.prototype.threadPool = ca({
});
/**
* Perform a [clearScroll](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/search-request-scroll.html) request
* Perform a [clearScroll](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/search-request-body.html#request-body-search-scroll) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.scrollId - A comma-separated list of scroll IDs to clear
@ -3248,7 +3248,7 @@ api.indices.prototype.flush = ca({
});
/**
* Perform a [indices.flushSynced](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/indices-synced-flush.html) request
* Perform a [indices.flushSynced](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/indices-flush.html#synced-flush-api) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-boolean,`Boolean`>>} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
@ -5777,7 +5777,7 @@ api.scriptsPainlessExecute = ca({
});
/**
* Perform a [scroll](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/search-request-scroll.html) request
* Perform a [scroll](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/search-request-body.html#request-body-search-scroll) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-duration-string,`DurationString`>>} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search

7098
src/lib/apis/7_4.js Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1218,7 +1218,7 @@ api.cat.prototype.threadPool = ca({
});
/**
* Perform a [clearScroll](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-scroll.html) request
* Perform a [clearScroll](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-body.html#_clear_scroll_api) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.scrollId - A comma-separated list of scroll IDs to clear
@ -2782,6 +2782,44 @@ api.indices.prototype.clearCache = ca({
method: 'POST'
});
/**
* Perform a [indices.clone](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-clone-index.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-duration-string,`DurationString`>>} params.masterTimeout - Specify timeout for connection to master
* @param {<<api-param-type-string,`String`>>} params.waitForActiveShards - Set the number of active shards to wait for on the cloned index before the operation returns.
* @param {<<api-param-type-string,`String`>>} params.index - The name of the source index to clone
* @param {<<api-param-type-string,`String`>>} params.target - The name of the target index to clone into
*/
api.indices.prototype.clone = ca({
params: {
timeout: {
type: 'time'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
waitForActiveShards: {
type: 'string',
name: 'wait_for_active_shards'
}
},
url: {
fmt: '/<%=index%>/_clone/<%=target%>',
req: {
index: {
type: 'string'
},
target: {
type: 'string'
}
}
},
method: 'POST'
});
/**
* Perform a [indices.close](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-open-close.html) request
*
@ -3248,7 +3286,7 @@ api.indices.prototype.flush = ca({
});
/**
* Perform a [indices.flushSynced](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-synced-flush.html) request
* Perform a [indices.flushSynced](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/indices-flush.html#synced-flush-api) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-boolean,`Boolean`>>} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
@ -4712,7 +4750,7 @@ api.indices.prototype.validateQuery = ca({
});
/**
* Perform a [info](http://www.elastic.co/guide/) request
* Perform a [info](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/index.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
*/
@ -5553,7 +5591,7 @@ api.nodes.prototype.usage = ca({
});
/**
* Perform a [ping](http://www.elastic.co/guide/) request
* Perform a [ping](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/index.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
*/
@ -5742,7 +5780,7 @@ api.reindexRethrottle = ca({
});
/**
* Perform a [renderSearchTemplate](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-template.html) request
* Perform a [renderSearchTemplate](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-template.html#_validating_templates) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-string,`String`>>} params.id - The id of the stored search template
@ -5777,7 +5815,7 @@ api.scriptsPainlessExecute = ca({
});
/**
* Perform a [scroll](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-scroll.html) request
* Perform a [scroll](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-body.html#request-body-search-scroll) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-duration-string,`DurationString`>>} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search

View File

@ -6,6 +6,7 @@ module.exports = {
'6.8': require('./6_8'),
'5.6': require('./5_6'),
'7.3': require('./7_3'),
'7.4': require('./7_4'),
'7.x': require('./7_x'),
'master': require('./master')
};

View File

@ -6,6 +6,7 @@ module.exports = {
get '6.8'() { return require('./6_8'); },
get '5.6'() { return require('./5_6'); },
get '7.3'() { return require('./7_3'); },
get '7.4'() { return require('./7_4'); },
get '7.x'() { return require('./7_x'); },
get 'master'() { return require('./master'); },
};

View File

@ -1218,7 +1218,7 @@ api.cat.prototype.threadPool = ca({
});
/**
* Perform a [clearScroll](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html) request
* Perform a [clearScroll](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#_clear_scroll_api) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-string,`String`>>, <<api-param-type-string-array,`String[]`>>, <<api-param-type-boolean,`Boolean`>>} params.scrollId - A comma-separated list of scroll IDs to clear
@ -2777,6 +2777,44 @@ api.indices.prototype.clearCache = ca({
method: 'POST'
});
/**
* Perform a [indices.clone](https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-duration-string,`DurationString`>>} params.timeout - Explicit operation timeout
* @param {<<api-param-type-duration-string,`DurationString`>>} params.masterTimeout - Specify timeout for connection to master
* @param {<<api-param-type-string,`String`>>} params.waitForActiveShards - Set the number of active shards to wait for on the cloned index before the operation returns.
* @param {<<api-param-type-string,`String`>>} params.index - The name of the source index to clone
* @param {<<api-param-type-string,`String`>>} params.target - The name of the target index to clone into
*/
api.indices.prototype.clone = ca({
params: {
timeout: {
type: 'time'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
waitForActiveShards: {
type: 'string',
name: 'wait_for_active_shards'
}
},
url: {
fmt: '/<%=index%>/_clone/<%=target%>',
req: {
index: {
type: 'string'
},
target: {
type: 'string'
}
}
},
method: 'POST'
});
/**
* Perform a [indices.close](https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html) request
*
@ -3243,7 +3281,7 @@ api.indices.prototype.flush = ca({
});
/**
* Perform a [indices.flushSynced](https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush.html) request
* Perform a [indices.flushSynced](https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html#synced-flush-api) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-boolean,`Boolean`>>} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
@ -4697,7 +4735,7 @@ api.indices.prototype.validateQuery = ca({
});
/**
* Perform a [info](http://www.elastic.co/guide/) request
* Perform a [info](https://www.elastic.co/guide/en/elasticsearch/reference/master/index.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
*/
@ -5535,7 +5573,7 @@ api.nodes.prototype.usage = ca({
});
/**
* Perform a [ping](http://www.elastic.co/guide/) request
* Perform a [ping](https://www.elastic.co/guide/en/elasticsearch/reference/master/index.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
*/
@ -5724,7 +5762,7 @@ api.reindexRethrottle = ca({
});
/**
* Perform a [renderSearchTemplate](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html) request
* Perform a [renderSearchTemplate](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-template.html#_validating_templates) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-string,`String`>>} params.id - The id of the stored search template
@ -5759,7 +5797,7 @@ api.scriptsPainlessExecute = ca({
});
/**
* Perform a [scroll](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-scroll.html) request
* Perform a [scroll](https://www.elastic.co/guide/en/elasticsearch/reference/master/search-request-body.html#request-body-search-scroll) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {<<api-param-type-duration-string,`DurationString`>>} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search