Skip to content

Commit 14c8849

Browse files
committed
Generate low level client code for 7.12
1 parent 353b26b commit 14c8849

32 files changed

+632
-178
lines changed

src/ApiGenerator/RestSpecification/Core/indices.close.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
},
5757
"wait_for_active_shards":{
5858
"type":"string",
59-
"description":"Sets the number of active shards to wait for before the operation returns."
59+
"description":"Sets the number of active shards to wait for before the operation returns. Set to `index-setting` to wait according to the index setting `index.write.wait_for_active_shards`, or `all` to wait for all shards, or an integer. Defaults to `0`."
6060
}
6161
}
6262
}

src/ApiGenerator/RestSpecification/Core/search.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@
248248
"type":"boolean",
249249
"description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response",
250250
"default":false
251+
},
252+
"min_compatible_shard_node":{
253+
"type":"string",
254+
"description":"The minimum compatible version that all shards involved in search should have for this request to be successful"
251255
}
252256
},
253257
"body":{
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"snapshot.get_features":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html",
5+
"description":"Returns a list of features which can be snapshotted in this cluster."
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
12+
"url":{
13+
"paths":[
14+
{
15+
"path":"/_snapshottable_features",
16+
"methods":[
17+
"GET"
18+
]
19+
}
20+
]
21+
},
22+
"params":{
23+
"master_timeout":{
24+
"type":"time",
25+
"description":"Explicit operation timeout for connection to master node"
26+
}
27+
}
28+
}
29+
}

src/ApiGenerator/RestSpecification/XPack/autoscaling.delete_autoscaling_policy.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
"autoscaling.delete_autoscaling_policy":{
33
"documentation":{
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html",
5-
"description":"Deletes an autoscaling policy."
5+
"description":"Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
66
},
7-
"stability":"experimental",
8-
"visibility":"feature_flag",
9-
"feature_flag":"es.autoscaling_feature_flag_registered",
7+
"stability":"stable",
8+
"visibility":"public",
109
"headers":{
1110
"accept": [ "application/json"]
1211
},

src/ApiGenerator/RestSpecification/XPack/autoscaling.get_autoscaling_capacity.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
"autoscaling.get_autoscaling_capacity":{
33
"documentation":{
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html",
5-
"description": "Gets the current autoscaling capacity based on the configured autoscaling policy."
5+
"description": "Gets the current autoscaling capacity based on the configured autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
66
},
7-
"stability":"experimental",
8-
"visibility":"feature_flag",
9-
"feature_flag":"es.autoscaling_feature_flag_registered",
7+
"stability":"stable",
8+
"visibility":"public",
109
"headers":{
1110
"accept": [ "application/json"]
1211
},

src/ApiGenerator/RestSpecification/XPack/autoscaling.get_autoscaling_policy.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
"autoscaling.get_autoscaling_policy":{
33
"documentation":{
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html",
5-
"description": "Retrieves an autoscaling policy."
5+
"description": "Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
66
},
7-
"stability":"experimental",
8-
"visibility":"feature_flag",
9-
"feature_flag":"es.autoscaling_feature_flag_registered",
7+
"stability":"stable",
8+
"visibility":"public",
109
"headers":{
1110
"accept": [ "application/json"]
1211
},

src/ApiGenerator/RestSpecification/XPack/autoscaling.put_autoscaling_policy.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
"autoscaling.put_autoscaling_policy":{
33
"documentation":{
44
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html",
5-
"description": "Creates a new autoscaling policy."
5+
"description": "Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
66
},
7-
"stability":"experimental",
8-
"visibility":"feature_flag",
9-
"feature_flag":"es.autoscaling_feature_flag_registered",
7+
"stability":"stable",
8+
"visibility":"public",
109
"headers":{
1110
"accept": [ "application/json"],
1211
"content_type": ["application/json"]
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"eql.get_status": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html",
5+
"description": "Returns the status of a previously submitted async or stored Event Query Language (EQL) search"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": [
11+
"application/json"
12+
]
13+
},
14+
"url": {
15+
"paths": [
16+
{
17+
"path": "/_eql/search/status/{id}",
18+
"methods": [
19+
"GET"
20+
],
21+
"parts": {
22+
"id": {
23+
"type": "string",
24+
"description": "The async search ID"
25+
}
26+
}
27+
}
28+
]
29+
}
30+
}
31+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"logstash.delete_pipeline":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html",
5+
"description":"Deletes Logstash Pipelines used by Central Management"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
12+
"url":{
13+
"paths":[
14+
{
15+
"path":"/_logstash/pipeline/{id}",
16+
"methods":[ "DELETE" ],
17+
"parts":{
18+
"id":{
19+
"type":"string",
20+
"description":"The ID of the Pipeline"
21+
}
22+
}
23+
}
24+
]
25+
},
26+
"params":{}
27+
}
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"logstash.get_pipeline":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html",
5+
"description":"Retrieves Logstash Pipelines used by Central Management"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"]
11+
},
12+
"url":{
13+
"paths":[
14+
{
15+
"path":"/_logstash/pipeline/{id}",
16+
"methods":[ "GET" ],
17+
"parts":{
18+
"id":{
19+
"type":"string",
20+
"description":"A comma-separated list of Pipeline IDs"
21+
}
22+
}
23+
}
24+
]
25+
},
26+
"params":{}
27+
}
28+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"logstash.put_pipeline":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html",
5+
"description":"Adds and updates Logstash Pipelines used for Central Management"
6+
},
7+
"stability":"stable",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_logstash/pipeline/{id}",
17+
"methods":[ "PUT" ],
18+
"parts":{
19+
"id":{
20+
"type":"string",
21+
"description":"The ID of the Pipeline"
22+
}
23+
}
24+
}
25+
]
26+
},
27+
"params":{
28+
},
29+
"body":{
30+
"description":"The Pipeline to add or update",
31+
"required":true
32+
}
33+
}
34+
}

src/ApiGenerator/RestSpecification/XPack/searchable_snapshots.mount.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@
3939
"type":"boolean",
4040
"description":"Should this request wait until the operation has completed before returning",
4141
"default":false
42+
},
43+
"storage":{
44+
"type":"string",
45+
"description":"Selects the kind of local storage used to accelerate searches. Experimental, and defaults to `full_copy`",
46+
"default":false
4247
}
4348
},
4449
"body":{

src/ApiGenerator/RestSpecification/XPack/searchable_snapshots.stats.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@
3030
}
3131
}
3232
]
33+
},
34+
"params": {
35+
"level":{
36+
"type":"enum",
37+
"description":"Return stats aggregated at cluster, index or shard level",
38+
"options":[
39+
"cluster",
40+
"indices",
41+
"shards"
42+
],
43+
"default":"indices"
44+
}
3345
}
3446
}
3547
}

src/ApiGenerator/RestSpecification/XPack/ml.find_file_structure.json renamed to src/ApiGenerator/RestSpecification/XPack/text_structure.find_structure.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"ml.find_file_structure":{
2+
"text_structure.find_structure":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html",
55
"description":"Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch."
66
},
77
"stability":"experimental",
@@ -13,7 +13,7 @@
1313
"url":{
1414
"paths":[
1515
{
16-
"path":"/_ml/find_file_structure",
16+
"path":"/_text_structure/find_structure",
1717
"methods":[
1818
"POST"
1919
]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c5c9c1b14918f852399c86da53181f4b6a82e948
1+
61c3b8cb7bf3e410ee21657756f079ea035d15f5

src/Elasticsearch.Net/Api/Enums.Generated.cs

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -411,19 +411,6 @@ public enum IndicesShardStoresStatus
411411
All
412412
}
413413

414-
[StringEnum]
415-
public enum MachineLearningFindFileStructureFormat
416-
{
417-
[EnumMember(Value = "ndjson")]
418-
Ndjson,
419-
[EnumMember(Value = "xml")]
420-
Xml,
421-
[EnumMember(Value = "delimited")]
422-
Delimited,
423-
[EnumMember(Value = "semi_structured_text")]
424-
SemiStructuredText
425-
}
426-
427414
[StringEnum]
428415
public enum ThreadType
429416
{
@@ -446,6 +433,19 @@ public enum GroupBy
446433
None
447434
}
448435

436+
[StringEnum]
437+
public enum TextStructureFindStructureFormat
438+
{
439+
[EnumMember(Value = "ndjson")]
440+
Ndjson,
441+
[EnumMember(Value = "xml")]
442+
Xml,
443+
[EnumMember(Value = "delimited")]
444+
Delimited,
445+
[EnumMember(Value = "semi_structured_text")]
446+
SemiStructuredText
447+
}
448+
449449
public static class KnownEnums
450450
{
451451
private static readonly ConcurrentDictionary<Type, Func<Enum, string>> EnumStringResolvers = new ConcurrentDictionary<Type, Func<Enum, string>>();
@@ -474,9 +474,9 @@ static KnownEnums()
474474
EnumStringResolvers.TryAdd(typeof(Conflicts), (e) => GetStringValue((Conflicts)e));
475475
EnumStringResolvers.TryAdd(typeof(OpType), (e) => GetStringValue((OpType)e));
476476
EnumStringResolvers.TryAdd(typeof(IndicesShardStoresStatus), (e) => GetStringValue((IndicesShardStoresStatus)e));
477-
EnumStringResolvers.TryAdd(typeof(MachineLearningFindFileStructureFormat), (e) => GetStringValue((MachineLearningFindFileStructureFormat)e));
478477
EnumStringResolvers.TryAdd(typeof(ThreadType), (e) => GetStringValue((ThreadType)e));
479478
EnumStringResolvers.TryAdd(typeof(GroupBy), (e) => GetStringValue((GroupBy)e));
479+
EnumStringResolvers.TryAdd(typeof(TextStructureFindStructureFormat), (e) => GetStringValue((TextStructureFindStructureFormat)e));
480480
}
481481

482482
private class EnumDictionary : Dictionary<Enum, string>
@@ -947,23 +947,6 @@ public static string GetStringValue(this IndicesShardStoresStatus enumValue)
947947
throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'IndicesShardStoresStatus'");
948948
}
949949

950-
public static string GetStringValue(this MachineLearningFindFileStructureFormat enumValue)
951-
{
952-
switch (enumValue)
953-
{
954-
case MachineLearningFindFileStructureFormat.Ndjson:
955-
return "ndjson";
956-
case MachineLearningFindFileStructureFormat.Xml:
957-
return "xml";
958-
case MachineLearningFindFileStructureFormat.Delimited:
959-
return "delimited";
960-
case MachineLearningFindFileStructureFormat.SemiStructuredText:
961-
return "semi_structured_text";
962-
}
963-
964-
throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'MachineLearningFindFileStructureFormat'");
965-
}
966-
967950
public static string GetStringValue(this ThreadType enumValue)
968951
{
969952
switch (enumValue)
@@ -994,6 +977,23 @@ public static string GetStringValue(this GroupBy enumValue)
994977
throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'GroupBy'");
995978
}
996979

980+
public static string GetStringValue(this TextStructureFindStructureFormat enumValue)
981+
{
982+
switch (enumValue)
983+
{
984+
case TextStructureFindStructureFormat.Ndjson:
985+
return "ndjson";
986+
case TextStructureFindStructureFormat.Xml:
987+
return "xml";
988+
case TextStructureFindStructureFormat.Delimited:
989+
return "delimited";
990+
case TextStructureFindStructureFormat.SemiStructuredText:
991+
return "semi_structured_text";
992+
}
993+
994+
throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'TextStructureFindStructureFormat'");
995+
}
996+
997997
public static string GetStringValue(this Enum e)
998998
{
999999
var type = e.GetType();

0 commit comments

Comments
 (0)