set default api to 2.1
This commit is contained in:
@ -775,6 +775,7 @@ api.cat.prototype.shards = ca({
|
||||
* Perform a [cat.snapshots](http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html) request
|
||||
*
|
||||
* @param {Object} params - An object with parameters used to carry out this action
|
||||
* @param {Boolean} params.ignoreUnavailable - Set to true to ignore unavailable snapshots
|
||||
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
|
||||
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
|
||||
* @param {Boolean} params.help - Return help information
|
||||
@ -783,6 +784,11 @@ api.cat.prototype.shards = ca({
|
||||
*/
|
||||
api.cat.prototype.snapshots = ca({
|
||||
params: {
|
||||
ignoreUnavailable: {
|
||||
type: 'boolean',
|
||||
'default': false,
|
||||
name: 'ignore_unavailable'
|
||||
},
|
||||
masterTimeout: {
|
||||
type: 'time',
|
||||
name: 'master_timeout'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
'_default': require('./2_1'),
|
||||
'2.1': require('./2_1'),
|
||||
'_default': require('./2_0'),
|
||||
'2.0': require('./2_0'),
|
||||
'1.7': require('./1_7'),
|
||||
'1.6': require('./1_6'),
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
module.exports = {
|
||||
'_default': require('./2_1'),
|
||||
'2.1': require('./2_1'),
|
||||
'_default': require('./2_0'),
|
||||
'2.0': require('./2_0'),
|
||||
'1.7': require('./1_7'),
|
||||
'1.6': require('./1_6'),
|
||||
|
||||
@ -775,6 +775,7 @@ api.cat.prototype.shards = ca({
|
||||
* Perform a [cat.snapshots](http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html) request
|
||||
*
|
||||
* @param {Object} params - An object with parameters used to carry out this action
|
||||
* @param {Boolean} params.ignoreUnavailable - Set to true to ignore unavailable snapshots
|
||||
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
|
||||
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
|
||||
* @param {Boolean} params.help - Return help information
|
||||
@ -783,6 +784,11 @@ api.cat.prototype.shards = ca({
|
||||
*/
|
||||
api.cat.prototype.snapshots = ca({
|
||||
params: {
|
||||
ignoreUnavailable: {
|
||||
type: 'boolean',
|
||||
'default': false,
|
||||
name: 'ignore_unavailable'
|
||||
},
|
||||
masterTimeout: {
|
||||
type: 'time',
|
||||
name: 'master_timeout'
|
||||
|
||||
Reference in New Issue
Block a user