Skip to content

Commit 61755c7

Browse files
committed
updated json spec files
1 parent 13a8c4e commit 61755c7

25 files changed

+114
-24
lines changed

src/CodeGeneration/ApiGenerator/Overrides/GlobalOverrides.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ public class GlobalOverrides : EndpointOverridesBase
2626
public override IDictionary<string, string> RenameQueryStringParams { get; } = new Dictionary<string, string>
2727
{
2828
{ "_source", "source_enabled" },
29+
{ "_source_includes", "source_include" },
30+
{ "_source_excludes", "source_exclude" },
2931
{ "_source_include", "source_include" },
3032
{ "_source_exclude", "source_exclude" },
33+
{ "rest_total_hits_as_int", "total_hits_as_integer" },
3134
{ "docvalue_fields", "doc_value_fields" },
3235
{ "q", "query_on_query_string" },
3336
//make cat parameters more descriptive

src/CodeGeneration/ApiGenerator/RestSpecification/Core/bulk.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545
"type" : "list",
4646
"description" : "True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request"
4747
},
48-
"_source_exclude": {
48+
"_source_excludes": {
4949
"type" : "list",
5050
"description" : "Default list of fields to exclude from the returned _source field, can be overridden on each sub-request"
5151
},
52-
"_source_include": {
52+
"_source_includes": {
5353
"type" : "list",
5454
"description" : "Default list of fields to extract and return from the _source field, can be overridden on each sub-request"
5555
},

src/CodeGeneration/ApiGenerator/RestSpecification/Core/cluster.state.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@
3333
"type": "boolean",
3434
"description": "Return settings in flat format (default: false)"
3535
},
36+
"wait_for_metadata_version": {
37+
"type": "number",
38+
"description": "Wait for the metadata version to be equal or greater than the specified metadata version"
39+
},
40+
"wait_for_timeout" : {
41+
"type": "time",
42+
"description": "The maximum time to wait for wait_for_metadata_version before timing out"
43+
},
3644
"ignore_unavailable": {
3745
"type" : "boolean",
3846
"description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed)"

src/CodeGeneration/ApiGenerator/RestSpecification/Core/count.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
"type" : "boolean",
2121
"description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
2222
},
23+
"ignore_throttled": {
24+
"type" : "boolean",
25+
"description" : "Whether specified concrete, expanded or aliased indices should be ignored when throttled"
26+
},
2327
"allow_no_indices": {
2428
"type" : "boolean",
2529
"description" : "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"

src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@
4444
"type" : "time",
4545
"description" : "Explicit operation timeout"
4646
},
47+
"if_seq_no" : {
48+
"type" : "number",
49+
"description" : "only perform the delete operation if the last operation that has changed the document has the specified sequence number"
50+
},
51+
"if_primary_term" : {
52+
"type" : "number",
53+
"description" : "only perform the delete operation if the last operation that has changed the document has the specified primary term"
54+
},
4755
"version" : {
4856
"type" : "number",
4957
"description" : "Explicit version number for concurrency control"

src/CodeGeneration/ApiGenerator/RestSpecification/Core/delete_by_query.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@
102102
"type" : "list",
103103
"description" : "True or false to return the _source field or not, or a list of fields to return"
104104
},
105-
"_source_exclude": {
105+
"_source_excludes": {
106106
"type" : "list",
107107
"description" : "A list of fields to exclude from the returned _source field"
108108
},
109-
"_source_include": {
109+
"_source_includes": {
110110
"type" : "list",
111111
"description" : "A list of fields to extract and return from the _source field"
112112
},

src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
"type" : "list",
5252
"description" : "True or false to return the _source field or not, or a list of fields to return"
5353
},
54-
"_source_exclude": {
54+
"_source_excludes": {
5555
"type" : "list",
5656
"description" : "A list of fields to exclude from the returned _source field"
5757
},
58-
"_source_include": {
58+
"_source_includes": {
5959
"type" : "list",
6060
"description" : "A list of fields to extract and return from the _source field"
6161
},

src/CodeGeneration/ApiGenerator/RestSpecification/Core/exists_source.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
"type" : "list",
4848
"description" : "True or false to return the _source field or not, or a list of fields to return"
4949
},
50-
"_source_exclude": {
50+
"_source_excludes": {
5151
"type" : "list",
5252
"description" : "A list of fields to exclude from the returned _source field"
5353
},
54-
"_source_include": {
54+
"_source_includes": {
5555
"type" : "list",
5656
"description" : "A list of fields to extract and return from the _source field"
5757
},

src/CodeGeneration/ApiGenerator/RestSpecification/Core/explain.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@
6969
"type" : "list",
7070
"description" : "True or false to return the _source field or not, or a list of fields to return"
7171
},
72-
"_source_exclude": {
72+
"_source_excludes": {
7373
"type" : "list",
7474
"description" : "A list of fields to exclude from the returned _source field"
7575
},
76-
"_source_include": {
76+
"_source_includes": {
7777
"type" : "list",
7878
"description" : "A list of fields to extract and return from the _source field"
7979
}

src/CodeGeneration/ApiGenerator/RestSpecification/Core/get.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@
5151
"type" : "list",
5252
"description" : "True or false to return the _source field or not, or a list of fields to return"
5353
},
54+
"_source_excludes": {
55+
"type" : "list",
56+
"description" : "A list of fields to exclude from the returned _source field"
57+
},
58+
"_source_includes": {
59+
"type" : "list",
60+
"description" : "A list of fields to extract and return from the _source field"
61+
},
5462
"_source_exclude": {
5563
"type" : "list",
5664
"description" : "A list of fields to exclude from the returned _source field"

0 commit comments

Comments
 (0)