set default api to 2.1

This commit is contained in:
spalger
2015-11-24 14:44:23 -06:00
parent 315fd62fb1
commit 11f95852da
9 changed files with 442 additions and 430 deletions

View File

@ -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'

View File

@ -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'),

View File

@ -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'),

View File

@ -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'