Skip to content

Commit 2c943a1

Browse files
authored
Regnerate low-level client code (#5323)
1 parent 78a0933 commit 2c943a1

24 files changed

+523
-174
lines changed

src/ApiGenerator/RestSpecification/Core/search.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@
230230
"type":"boolean",
231231
"description":"Indicates whether hits.total should be rendered as an integer or an object in the rest search response",
232232
"default":false
233+
},
234+
"min_compatible_shard_node":{
235+
"type":"string",
236+
"description":"The minimum compatible version that all shards involved in search should have for this request to be successful"
233237
}
234238
},
235239
"body":{

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: 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-
963c3284b354553b9097ad9e2f3cd31e411c239a
1+
747198ffed9b10273463367cf6ccc7ac5bfa077e

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

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -391,19 +391,6 @@ public enum IndicesShardStoresStatus
391391
All
392392
}
393393

394-
[StringEnum]
395-
public enum Format
396-
{
397-
[EnumMember(Value = "ndjson")]
398-
Ndjson,
399-
[EnumMember(Value = "xml")]
400-
Xml,
401-
[EnumMember(Value = "delimited")]
402-
Delimited,
403-
[EnumMember(Value = "semi_structured_text")]
404-
SemiStructuredText
405-
}
406-
407394
[StringEnum]
408395
public enum ThreadType
409396
{
@@ -426,6 +413,19 @@ public enum GroupBy
426413
None
427414
}
428415

416+
[StringEnum]
417+
public enum Format
418+
{
419+
[EnumMember(Value = "ndjson")]
420+
Ndjson,
421+
[EnumMember(Value = "xml")]
422+
Xml,
423+
[EnumMember(Value = "delimited")]
424+
Delimited,
425+
[EnumMember(Value = "semi_structured_text")]
426+
SemiStructuredText
427+
}
428+
429429
public static class KnownEnums
430430
{
431431
private static readonly ConcurrentDictionary<Type, Func<Enum, string>> EnumStringResolvers = new ConcurrentDictionary<Type, Func<Enum, string>>();
@@ -453,9 +453,9 @@ static KnownEnums()
453453
EnumStringResolvers.TryAdd(typeof(Conflicts), (e) => GetStringValue((Conflicts)e));
454454
EnumStringResolvers.TryAdd(typeof(OpType), (e) => GetStringValue((OpType)e));
455455
EnumStringResolvers.TryAdd(typeof(IndicesShardStoresStatus), (e) => GetStringValue((IndicesShardStoresStatus)e));
456-
EnumStringResolvers.TryAdd(typeof(Format), (e) => GetStringValue((Format)e));
457456
EnumStringResolvers.TryAdd(typeof(ThreadType), (e) => GetStringValue((ThreadType)e));
458457
EnumStringResolvers.TryAdd(typeof(GroupBy), (e) => GetStringValue((GroupBy)e));
458+
EnumStringResolvers.TryAdd(typeof(Format), (e) => GetStringValue((Format)e));
459459
}
460460

461461
public static string GetStringValue(this ClusterStateMetric enumValue)
@@ -888,23 +888,6 @@ public static string GetStringValue(this IndicesShardStoresStatus enumValue)
888888
throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'IndicesShardStoresStatus'");
889889
}
890890

891-
public static string GetStringValue(this Format enumValue)
892-
{
893-
switch (enumValue)
894-
{
895-
case Format.Ndjson:
896-
return "ndjson";
897-
case Format.Xml:
898-
return "xml";
899-
case Format.Delimited:
900-
return "delimited";
901-
case Format.SemiStructuredText:
902-
return "semi_structured_text";
903-
}
904-
905-
throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Format'");
906-
}
907-
908891
public static string GetStringValue(this ThreadType enumValue)
909892
{
910893
switch (enumValue)
@@ -934,5 +917,22 @@ public static string GetStringValue(this GroupBy enumValue)
934917

935918
throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'GroupBy'");
936919
}
920+
921+
public static string GetStringValue(this Format enumValue)
922+
{
923+
switch (enumValue)
924+
{
925+
case Format.Ndjson:
926+
return "ndjson";
927+
case Format.Xml:
928+
return "xml";
929+
case Format.Delimited:
930+
return "delimited";
931+
case Format.SemiStructuredText:
932+
return "semi_structured_text";
933+
}
934+
935+
throw new ArgumentException($"'{enumValue.ToString()}' is not a valid value for enum 'Format'");
936+
}
937937
}
938938
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
2+
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
3+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
5+
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
6+
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
7+
// -----------------------------------------------
8+
//
9+
// This file is automatically generated
10+
// Please do not edit these files manually
11+
// Run the following in the root of the repos:
12+
//
13+
// *NIX : ./build.sh codegen
14+
// Windows : build.bat codegen
15+
//
16+
// -----------------------------------------------
17+
// ReSharper disable RedundantUsingDirective
18+
using System;
19+
using System.Collections.Generic;
20+
using System.Linq;
21+
using System.Text;
22+
using System.Linq.Expressions;
23+
using Elastic.Transport;
24+
25+
// ReSharper disable once CheckNamespace
26+
namespace Elasticsearch.Net.Specification.LogstashApi
27+
{
28+
///<summary>Request options for DeletePipeline <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html</para></summary>
29+
public class DeletePipelineRequestParameters : RequestParameters<DeletePipelineRequestParameters>
30+
{
31+
}
32+
33+
///<summary>Request options for GetPipeline <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html</para></summary>
34+
public class GetPipelineRequestParameters : RequestParameters<GetPipelineRequestParameters>
35+
{
36+
}
37+
38+
///<summary>Request options for PutPipeline <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html</para></summary>
39+
public class PutPipelineRequestParameters : RequestParameters<PutPipelineRequestParameters>
40+
{
41+
}
42+
}

0 commit comments

Comments
 (0)