Skip to content

Commit

Permalink
[apis] regenerated
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Oct 26, 2015
1 parent 81a1ca7 commit e428f54
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions src/lib/apis/master.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,43 @@ api.cat.prototype.recovery = ca({
]
});

/**
* Perform a [cat.repositories](http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node
* @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
* @param {Boolean} params.v - Verbose mode. Display column headers
*/
api.cat.prototype.repositories = ca({
params: {
local: {
type: 'boolean',
'default': false
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
}
},
url: {
fmt: '/_cat/repositories'
}
});

/**
* Perform a [cat.segments](http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html) request
*
Expand Down Expand Up @@ -734,6 +771,44 @@ 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 {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
* @param {Boolean} params.v - Verbose mode. Display column headers
* @param {String, String[], Boolean} params.repository - Name of repository from which to fetch the snapshot information
*/
api.cat.prototype.snapshots = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
}
},
url: {
fmt: '/_cat/snapshots/<%=repository%>',
req: {
repository: {
type: 'list'
}
}
}
});

/**
* Perform a [cat.threadPool](http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html) request
*
Expand Down

0 comments on commit e428f54

Please sign in to comment.