Skip to content

Commit 51ffabe

Browse files
committed
Patch refresh description on index
Submitted a PR to fix in the rest api spec for 2.4.0 - elastic/elasticsearch#20200
1 parent fc2bba9 commit 51ffabe

File tree

5 files changed

+31
-3
lines changed

5 files changed

+31
-3
lines changed

src/CodeGeneration/ApiGenerator/Overrides/Descriptors/AnalyzeDescriptorOverrides.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
using System.Collections.Generic;
2+
using System.Linq;
3+
using ApiGenerator.Domain;
24

35
namespace ApiGenerator.Overrides.Descriptors
46
{
@@ -16,4 +18,14 @@ public class AnalyzeDescriptorOverrides : DescriptorOverridesBase
1618
"tokenizer"
1719
};
1820
}
21+
22+
public class IndexDescriptorOverrides : DescriptorOverridesBase
23+
{
24+
public override CsharpMethod PatchMethod(CsharpMethod method)
25+
{
26+
var part = method.Url.Params.First(p => p.Key == "refresh");
27+
part.Value.Description = "Refresh the shard after performing the operation";
28+
return method;
29+
}
30+
}
1931
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System.Linq;
2+
using ApiGenerator.Domain;
3+
4+
namespace ApiGenerator.Overrides.Descriptors
5+
{
6+
public class IndexDescriptorOverrides : DescriptorOverridesBase
7+
{
8+
public override CsharpMethod PatchMethod(CsharpMethod method)
9+
{
10+
var part = method.Url.Params.First(p => p.Key == "refresh");
11+
part.Value.Description = "Refresh the shard after performing the operation";
12+
return method;
13+
}
14+
}
15+
}

src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ public partial class IndexRequestParameters : FluentRequestParameters<IndexReque
15671567
public IndexRequestParameters Parent(string parent) => this.AddQueryString("parent", parent);
15681568

15691569

1570-
///<summary>Refresh the index after performing the operation</summary>
1570+
///<summary>Refresh the shard after performing the operation</summary>
15711571
public IndexRequestParameters Refresh(bool refresh) => this.AddQueryString("refresh", refresh);
15721572

15731573

src/Nest/_Generated/_Descriptors.generated.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ public IndexDescriptor(IndexName index, TypeName type) : base(r=>r.Required("ind
15811581
///<summary>ID of the parent document</summary>
15821582
public IndexDescriptor<TDocument> Parent(string parent) => AssignParam(p=>p.Parent(parent));
15831583

1584-
///<summary>Refresh the index after performing the operation</summary>
1584+
///<summary>Refresh the shard after performing the operation</summary>
15851585
public IndexDescriptor<TDocument> Refresh(bool refresh = true) => AssignParam(p=>p.Refresh(refresh));
15861586

15871587
///<summary>Specific routing value</summary>
@@ -2249,6 +2249,7 @@ public GetAliasDescriptor() : base(){}
22492249
///<summary>A comma-separated list of alias names to return</summary>
22502250
public GetAliasDescriptor Name(Names name) => Assign(a=>a.RouteValues.Optional("name", name));
22512251

2252+
22522253
///<summary>Whether specified concrete indices should be ignored when unavailable (missing or closed)</summary>
22532254
public GetAliasDescriptor IgnoreUnavailable(bool ignore_unavailable = true) => AssignParam(p=>p.IgnoreUnavailable(ignore_unavailable));
22542255

src/Nest/_Generated/_Requests.generated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3132,7 +3132,7 @@ public IndexRequest(IndexName index, TypeName type, Id id) : base(r=>r.Required(
31323132
///<summary>ID of the parent document</summary>
31333133
public string Parent { get { return Q<string>("parent"); } set { Q("parent", value); } }
31343134

3135-
///<summary>Refresh the index after performing the operation</summary>
3135+
///<summary>Refresh the shard after performing the operation</summary>
31363136
public bool Refresh { get { return Q<bool>("refresh"); } set { Q("refresh", value); } }
31373137

31383138
///<summary>Specific routing value</summary>

0 commit comments

Comments
 (0)