Skip to content

Commit e582589

Browse files
committed
Merge pull request #1082 from elasticsearch/feature/improve-codegeneration
Feature/improve codegeneration
2 parents b6c770f + 633e663 commit e582589

File tree

120 files changed

+15227
-2453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+15227
-2453
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"abort_benchmark" : {
3+
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html",
4+
"methods": ["POST"],
5+
"url": {
6+
"path": "/_bench/abort/{name}",
7+
"paths": [
8+
"/_bench/abort/{name}"
9+
],
10+
"parts": {
11+
"name": {
12+
"type" : "string",
13+
"description" : "A benchmark name"
14+
}
15+
},
16+
"params": {}
17+
},
18+
"body": null
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"bulk": {
3+
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/docs-bulk.html",
4+
"methods": ["POST", "PUT"],
5+
"url": {
6+
"path": "/_bulk",
7+
"paths": ["/_bulk", "/{index}/_bulk", "/{index}/{type}/_bulk"],
8+
"parts": {
9+
"index": {
10+
"type" : "string",
11+
"description" : "Default index for items which don't provide one"
12+
},
13+
"type": {
14+
"type" : "string",
15+
"description" : "Default document type for items which don't provide one"
16+
}
17+
},
18+
"params": {
19+
"consistency": {
20+
"type" : "enum",
21+
"options" : ["one", "quorum", "all"],
22+
"description" : "Explicit write consistency setting for the operation"
23+
},
24+
"refresh": {
25+
"type" : "boolean",
26+
"description" : "Refresh the index after performing the operation"
27+
},
28+
"replication": {
29+
"type" : "enum",
30+
"options" : ["sync","async"],
31+
"default" : "sync",
32+
"description" : "Explicitely set the replication type"
33+
},
34+
"routing": {
35+
"type" : "string",
36+
"description" : "Specific routing value"
37+
},
38+
"timeout": {
39+
"type" : "time",
40+
"description" : "Explicit operation timeout"
41+
},
42+
"type": {
43+
"type" : "string",
44+
"description" : "Default document type for items which don't provide one"
45+
},
46+
"timeout": {
47+
"type" : "time",
48+
"description" : "Explicit operation timeout"
49+
}
50+
}
51+
},
52+
"body": {
53+
"description" : "The operation definition and data (action-data pairs), separated by newlines",
54+
"required" : true,
55+
"serialize" : "bulk"
56+
}
57+
}
58+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"cat.aliases": {
3+
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/cat-alias.html",
4+
"methods": ["GET"],
5+
"url": {
6+
"path": "/_cat/aliases",
7+
"paths": ["/_cat/aliases", "/_cat/aliases/{name}"],
8+
"parts": {
9+
"name": {
10+
"type" : "list",
11+
"description" : "A comma-separated list of alias names to return"
12+
}
13+
},
14+
"params": {
15+
"local": {
16+
"type" : "boolean",
17+
"description" : "Return local information, do not retrieve the state from master node (default: false)"
18+
},
19+
"master_timeout": {
20+
"type" : "time",
21+
"description" : "Explicit operation timeout for connection to master node"
22+
},
23+
"h": {
24+
"type": "list",
25+
"description" : "Comma-separated list of column names to display"
26+
},
27+
"help": {
28+
"type": "boolean",
29+
"description": "Return help information",
30+
"default": false
31+
},
32+
"v": {
33+
"type": "boolean",
34+
"description": "Verbose mode. Display column headers",
35+
"default": false
36+
}
37+
}
38+
},
39+
"body": null
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"cat.allocation": {
3+
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/cat-allocation.html",
4+
"methods": ["GET"],
5+
"url": {
6+
"path": "/_cat/allocation",
7+
"paths": ["/_cat/allocation", "/_cat/allocation/{node_id}"],
8+
"parts": {
9+
"node_id": {
10+
"type": "list",
11+
"description": "A comma-separated list of node IDs or names to limit the returned information"
12+
}
13+
},
14+
"params": {
15+
"bytes": {
16+
"type": "enum",
17+
"description" : "The unit in which to display byte values",
18+
"options": [ "b", "k", "m", "g" ]
19+
},
20+
"local": {
21+
"type" : "boolean",
22+
"description" : "Return local information, do not retrieve the state from master node (default: false)"
23+
},
24+
"master_timeout": {
25+
"type" : "time",
26+
"description" : "Explicit operation timeout for connection to master node"
27+
},
28+
"h": {
29+
"type": "list",
30+
"description" : "Comma-separated list of column names to display"
31+
},
32+
"help": {
33+
"type": "boolean",
34+
"description": "Return help information",
35+
"default": false
36+
},
37+
"v": {
38+
"type": "boolean",
39+
"description": "Verbose mode. Display column headers",
40+
"default": false
41+
}
42+
}
43+
},
44+
"body": null
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"cat.count": {
3+
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/cat-count.html",
4+
"methods": ["GET"],
5+
"url": {
6+
"path": "/_cat/count",
7+
"paths": ["/_cat/count", "/_cat/count/{index}"],
8+
"parts": {
9+
"index": {
10+
"type" : "list",
11+
"description": "A comma-separated list of index names to limit the returned information"
12+
}
13+
},
14+
"params": {
15+
"local": {
16+
"type" : "boolean",
17+
"description" : "Return local information, do not retrieve the state from master node (default: false)"
18+
},
19+
"master_timeout": {
20+
"type" : "time",
21+
"description" : "Explicit operation timeout for connection to master node"
22+
},
23+
"h": {
24+
"type": "list",
25+
"description" : "Comma-separated list of column names to display"
26+
},
27+
"help": {
28+
"type": "boolean",
29+
"description": "Return help information",
30+
"default": false
31+
},
32+
"v": {
33+
"type": "boolean",
34+
"description": "Verbose mode. Display column headers",
35+
"default": false
36+
}
37+
}
38+
},
39+
"body": null
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"cat.fielddata": {
3+
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-fielddata.html",
4+
"methods": ["GET"],
5+
"url": {
6+
"path": "/_cat/fielddata",
7+
"paths": ["/_cat/fielddata", "/_cat/fielddata/{fields}"],
8+
"parts": {
9+
"fields": {
10+
"type": "list",
11+
"description": "A comma-separated list of fields to return the fielddata size"
12+
}
13+
},
14+
"params": {
15+
"bytes": {
16+
"type": "enum",
17+
"description" : "The unit in which to display byte values",
18+
"options": [ "b", "k", "m", "g" ]
19+
},
20+
"local": {
21+
"type" : "boolean",
22+
"description" : "Return local information, do not retrieve the state from master node (default: false)"
23+
},
24+
"master_timeout": {
25+
"type" : "time",
26+
"description" : "Explicit operation timeout for connection to master node"
27+
},
28+
"h": {
29+
"type": "list",
30+
"description" : "Comma-separated list of column names to display"
31+
},
32+
"help": {
33+
"type": "boolean",
34+
"description": "Return help information",
35+
"default": false
36+
},
37+
"v": {
38+
"type": "boolean",
39+
"description": "Verbose mode. Display column headers",
40+
"default": false
41+
},
42+
"fields": {
43+
"type": "list",
44+
"description": "A comma-separated list of fields to return in the output"
45+
}
46+
}
47+
},
48+
"body": null
49+
}
50+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"cat.health": {
3+
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/cat-health.html",
4+
"methods": ["GET"],
5+
"url": {
6+
"path": "/_cat/health",
7+
"paths": ["/_cat/health"],
8+
"parts": {
9+
},
10+
"params": {
11+
"local": {
12+
"type" : "boolean",
13+
"description" : "Return local information, do not retrieve the state from master node (default: false)"
14+
},
15+
"master_timeout": {
16+
"type" : "time",
17+
"description" : "Explicit operation timeout for connection to master node"
18+
},
19+
"h": {
20+
"type": "list",
21+
"description" : "Comma-separated list of column names to display"
22+
},
23+
"help": {
24+
"type": "boolean",
25+
"description": "Return help information",
26+
"default": false
27+
},
28+
"ts": {
29+
"type": "boolean",
30+
"description": "Set to false to disable timestamping",
31+
"default": true
32+
},
33+
"v": {
34+
"type": "boolean",
35+
"description": "Verbose mode. Display column headers",
36+
"default": false
37+
}
38+
}
39+
},
40+
"body": null
41+
}
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"cat.help": {
3+
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/cat.html",
4+
"methods": ["GET"],
5+
"url": {
6+
"path": "/_cat",
7+
"paths": ["/_cat"],
8+
"parts": {
9+
},
10+
"params": {
11+
"help": {
12+
"type": "boolean",
13+
"description": "Return help information",
14+
"default": false
15+
}
16+
}
17+
},
18+
"body": null
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"cat.indices": {
3+
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.4/cat-indices.html",
4+
"methods": ["GET"],
5+
"url": {
6+
"path": "/_cat/indices",
7+
"paths": ["/_cat/indices", "/_cat/indices/{index}"],
8+
"parts": {
9+
"index": {
10+
"type" : "list",
11+
"description": "A comma-separated list of index names to limit the returned information"
12+
}
13+
},
14+
"params": {
15+
"bytes": {
16+
"type": "enum",
17+
"description" : "The unit in which to display byte values",
18+
"options": [ "b", "k", "m", "g" ]
19+
},
20+
"local": {
21+
"type" : "boolean",
22+
"description" : "Return local information, do not retrieve the state from master node (default: false)"
23+
},
24+
"master_timeout": {
25+
"type" : "time",
26+
"description" : "Explicit operation timeout for connection to master node"
27+
},
28+
"h": {
29+
"type": "list",
30+
"description" : "Comma-separated list of column names to display"
31+
},
32+
"help": {
33+
"type": "boolean",
34+
"description": "Return help information",
35+
"default": false
36+
},
37+
"pri" : {
38+
"type": "boolean",
39+
"description": "Set to true to return stats only for primary shards",
40+
"default": false
41+
},
42+
"v": {
43+
"type": "boolean",
44+
"description": "Verbose mode. Display column headers",
45+
"default": false
46+
}
47+
}
48+
},
49+
"body": null
50+
}
51+
}

0 commit comments

Comments
 (0)