Skip to content

Commit 2b0d30c

Browse files
author
Spencer Alger
committed
regenerate apis
1 parent 5e1da82 commit 2b0d30c

File tree

9 files changed

+121
-89
lines changed

9 files changed

+121
-89
lines changed

src/lib/apis/0_90.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* jshint maxlen: false */
22

33
var ca = require('../client_action').factory;
4-
var proxy = require('../client_action').proxyFactory;
54
var namespace = require('../client_action').namespaceFactory;
65
var api = module.exports = {};
76

@@ -3261,7 +3260,7 @@ api.update = ca({
32613260
* @param {String} params.index - The name of the index
32623261
* @param {String} params.type - The type of the document
32633262
*/
3264-
api.create = proxy(api.index, {
3263+
api.create = ca.proxy(api.index, {
32653264
transform: function (params) {
32663265
params.op_type = 'create';
32673266
}

src/lib/apis/1_0.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* jshint maxlen: false */
22

33
var ca = require('../client_action').factory;
4-
var proxy = require('../client_action').proxyFactory;
54
var namespace = require('../client_action').namespaceFactory;
65
var api = module.exports = {};
76

@@ -5223,7 +5222,7 @@ api.update = ca({
52235222
* @param {String} params.index - The name of the index
52245223
* @param {String} params.type - The type of the document
52255224
*/
5226-
api.create = proxy(api.index, {
5225+
api.create = ca.proxy(api.index, {
52275226
transform: function (params) {
52285227
params.op_type = 'create';
52295228
}

src/lib/apis/1_1.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* jshint maxlen: false */
22

33
var ca = require('../client_action').factory;
4-
var proxy = require('../client_action').proxyFactory;
54
var namespace = require('../client_action').namespaceFactory;
65
var api = module.exports = {};
76

@@ -5398,7 +5397,7 @@ api.update = ca({
53985397
* @param {String} params.index - The name of the index
53995398
* @param {String} params.type - The type of the document
54005399
*/
5401-
api.create = proxy(api.index, {
5400+
api.create = ca.proxy(api.index, {
54025401
transform: function (params) {
54035402
params.op_type = 'create';
54045403
}

src/lib/apis/1_2.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* jshint maxlen: false */
22

33
var ca = require('../client_action').factory;
4-
var proxy = require('../client_action').proxyFactory;
54
var namespace = require('../client_action').namespaceFactory;
65
var api = module.exports = {};
76

@@ -5457,7 +5456,7 @@ api.update = ca({
54575456
* @param {String} params.index - The name of the index
54585457
* @param {String} params.type - The type of the document
54595458
*/
5460-
api.create = proxy(api.index, {
5459+
api.create = ca.proxy(api.index, {
54615460
transform: function (params) {
54625461
params.op_type = 'create';
54635462
}

src/lib/apis/1_3.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* jshint maxlen: false */
22

33
var ca = require('../client_action').factory;
4-
var proxy = require('../client_action').proxyFactory;
54
var namespace = require('../client_action').namespaceFactory;
65
var api = module.exports = {};
76

@@ -5625,7 +5624,7 @@ api.update = ca({
56255624
* @param {String} params.index - The name of the index
56265625
* @param {String} params.type - The type of the document
56275626
*/
5628-
api.create = proxy(api.index, {
5627+
api.create = ca.proxy(api.index, {
56295628
transform: function (params) {
56305629
params.op_type = 'create';
56315630
}

src/lib/apis/1_4.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* jshint maxlen: false */
22

33
var ca = require('../client_action').factory;
4-
var proxy = require('../client_action').proxyFactory;
54
var namespace = require('../client_action').namespaceFactory;
65
var api = module.exports = {};
76

@@ -6186,7 +6185,7 @@ api.update = ca({
61866185
* @param {String} params.index - The name of the index
61876186
* @param {String} params.type - The type of the document
61886187
*/
6189-
api.create = proxy(api.index, {
6188+
api.create = ca.proxy(api.index, {
61906189
transform: function (params) {
61916190
params.op_type = 'create';
61926191
}

src/lib/apis/1_5.js

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* jshint maxlen: false */
22

33
var ca = require('../client_action').factory;
4-
var proxy = require('../client_action').proxyFactory;
54
var namespace = require('../client_action').namespaceFactory;
65
var api = module.exports = {};
76

@@ -6069,20 +6068,33 @@ api.termvector = ca({
60696068
required: false
60706069
}
60716070
},
6072-
url: {
6073-
fmt: '/<%=index%>/<%=type%>/<%=id%>/_termvector',
6074-
req: {
6075-
index: {
6076-
type: 'string'
6077-
},
6078-
type: {
6079-
type: 'string'
6080-
},
6081-
id: {
6082-
type: 'string'
6071+
urls: [
6072+
{
6073+
fmt: '/<%=index%>/<%=type%>/<%=id%>/_termvector',
6074+
req: {
6075+
index: {
6076+
type: 'string'
6077+
},
6078+
type: {
6079+
type: 'string'
6080+
},
6081+
id: {
6082+
type: 'string'
6083+
}
6084+
}
6085+
},
6086+
{
6087+
fmt: '/<%=index%>/<%=type%>/_termvector',
6088+
req: {
6089+
index: {
6090+
type: 'string'
6091+
},
6092+
type: {
6093+
type: 'string'
6094+
}
60836095
}
60846096
}
6085-
},
6097+
],
60866098
method: 'POST'
60876099
});
60886100

@@ -6211,7 +6223,7 @@ api.update = ca({
62116223
* @param {String} params.index - The name of the index
62126224
* @param {String} params.type - The type of the document
62136225
*/
6214-
api.create = proxy(api.index, {
6226+
api.create = ca.proxy(api.index, {
62156227
transform: function (params) {
62166228
params.op_type = 'create';
62176229
}

src/lib/apis/1_x.js

Lines changed: 52 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* jshint maxlen: false */
22

33
var ca = require('../client_action').factory;
4-
var proxy = require('../client_action').proxyFactory;
54
var namespace = require('../client_action').namespaceFactory;
65
var api = module.exports = {};
76

@@ -2728,6 +2727,32 @@ api.indices.prototype.flush = ca({
27282727
method: 'POST'
27292728
});
27302729

2730+
/**
2731+
* Perform a [indices.flushSynced](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html) request
2732+
*
2733+
* @param {Object} params - An object with parameters used to carry out this action
2734+
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string for all indices
2735+
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
2736+
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
2737+
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
2738+
*/
2739+
api.indices.prototype.flushSynced = ca({
2740+
urls: [
2741+
{
2742+
fmt: '/<%=index%>/_flush/synced',
2743+
req: {
2744+
index: {
2745+
type: 'list'
2746+
}
2747+
}
2748+
},
2749+
{
2750+
fmt: '/_flush/synced'
2751+
}
2752+
],
2753+
method: 'POST'
2754+
});
2755+
27312756
/**
27322757
* Perform a [indices.get](http://www.elastic.co/guide/en/elasticsearch/reference/1.x/indices-get-index.html) request
27332758
*
@@ -3825,29 +3850,6 @@ api.indices.prototype.refresh = ca({
38253850
method: 'POST'
38263851
});
38273852

3828-
/**
3829-
* Perform a [indices.seal](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-seal.html) request
3830-
*
3831-
* @param {Object} params - An object with parameters used to carry out this action
3832-
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string for all indices
3833-
*/
3834-
api.indices.prototype.seal = ca({
3835-
urls: [
3836-
{
3837-
fmt: '/<%=index%>/_seal',
3838-
req: {
3839-
index: {
3840-
type: 'list'
3841-
}
3842-
}
3843-
},
3844-
{
3845-
fmt: '/_seal'
3846-
}
3847-
],
3848-
method: 'POST'
3849-
});
3850-
38513853
/**
38523854
* Perform a [indices.segments](http://www.elastic.co/guide/en/elasticsearch/reference/1.x/indices-segments.html) request
38533855
*
@@ -6186,20 +6188,33 @@ api.termvector = ca({
61866188
required: false
61876189
}
61886190
},
6189-
url: {
6190-
fmt: '/<%=index%>/<%=type%>/<%=id%>/_termvector',
6191-
req: {
6192-
index: {
6193-
type: 'string'
6194-
},
6195-
type: {
6196-
type: 'string'
6197-
},
6198-
id: {
6199-
type: 'string'
6191+
urls: [
6192+
{
6193+
fmt: '/<%=index%>/<%=type%>/<%=id%>/_termvector',
6194+
req: {
6195+
index: {
6196+
type: 'string'
6197+
},
6198+
type: {
6199+
type: 'string'
6200+
},
6201+
id: {
6202+
type: 'string'
6203+
}
6204+
}
6205+
},
6206+
{
6207+
fmt: '/<%=index%>/<%=type%>/_termvector',
6208+
req: {
6209+
index: {
6210+
type: 'string'
6211+
},
6212+
type: {
6213+
type: 'string'
6214+
}
62006215
}
62016216
}
6202-
},
6217+
],
62036218
method: 'POST'
62046219
});
62056220

@@ -6328,7 +6343,7 @@ api.update = ca({
63286343
* @param {String} params.index - The name of the index
63296344
* @param {String} params.type - The type of the document
63306345
*/
6331-
api.create = proxy(api.index, {
6346+
api.create = ca.proxy(api.index, {
63326347
transform: function (params) {
63336348
params.op_type = 'create';
63346349
}

src/lib/apis/master.js

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
/* jshint maxlen: false */
22

3-
var ca = require('../client_action').factory;
4-
var proxy = require('../client_action').proxyFactory;
3+
var ca = require('../client_action').makeFactoryWithModifier(function (spec) {
4+
return require('../utils').merge(spec, {
5+
params: {
6+
filterPath: {
7+
type: 'list',
8+
name: 'filter_path'
9+
}
10+
}
11+
});
12+
});
513
var namespace = require('../client_action').namespaceFactory;
614
var api = module.exports = {};
715

@@ -2554,6 +2562,32 @@ api.indices.prototype.flush = ca({
25542562
method: 'POST'
25552563
});
25562564

2565+
/**
2566+
* Perform a [indices.flushSynced](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html) request
2567+
*
2568+
* @param {Object} params - An object with parameters used to carry out this action
2569+
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string for all indices
2570+
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
2571+
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
2572+
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
2573+
*/
2574+
api.indices.prototype.flushSynced = ca({
2575+
urls: [
2576+
{
2577+
fmt: '/<%=index%>/_flush/synced',
2578+
req: {
2579+
index: {
2580+
type: 'list'
2581+
}
2582+
}
2583+
},
2584+
{
2585+
fmt: '/_flush/synced'
2586+
}
2587+
],
2588+
method: 'POST'
2589+
});
2590+
25572591
/**
25582592
* Perform a [indices.get](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html) request
25592593
*
@@ -3642,29 +3676,6 @@ api.indices.prototype.refresh = ca({
36423676
method: 'POST'
36433677
});
36443678

3645-
/**
3646-
* Perform a [indices.seal](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-seal.html) request
3647-
*
3648-
* @param {Object} params - An object with parameters used to carry out this action
3649-
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string for all indices
3650-
*/
3651-
api.indices.prototype.seal = ca({
3652-
urls: [
3653-
{
3654-
fmt: '/<%=index%>/_seal',
3655-
req: {
3656-
index: {
3657-
type: 'list'
3658-
}
3659-
}
3660-
},
3661-
{
3662-
fmt: '/_seal'
3663-
}
3664-
],
3665-
method: 'POST'
3666-
});
3667-
36683679
/**
36693680
* Perform a [indices.segments](http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html) request
36703681
*
@@ -5969,7 +5980,7 @@ api.update = ca({
59695980
* @param {String} params.index - The name of the index
59705981
* @param {String} params.type - The type of the document
59715982
*/
5972-
api.create = proxy(api.index, {
5983+
api.create = ca.proxy(api.index, {
59735984
transform: function (params) {
59745985
params.op_type = 'create';
59755986
}

0 commit comments

Comments
 (0)