Skip to content

Commit fced23c

Browse files
committedAug 29, 2016
update refresh description
1 parent 51ffabe commit fced23c

File tree

6 files changed

+7
-18
lines changed

6 files changed

+7
-18
lines changed
 

Diff for: ‎src/CodeGeneration/ApiGenerator/ApiGenerator.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
<Compile Include="Overrides\Descriptors\FieldStatsDescriptorOverrides.cs" />
7272
<Compile Include="Overrides\Descriptors\GraphExploreDescriptorOverrides.cs" />
7373
<Compile Include="Overrides\Descriptors\IDescriptorOverrides.cs" />
74+
<Compile Include="Overrides\Descriptors\IndexDescriptorOverrides.cs" />
7475
<Compile Include="Overrides\Descriptors\IndicesStatsDescriptorOverrides.cs" />
7576
<Compile Include="Overrides\Descriptors\MultiTermVectorsDescriptorOverrides.cs" />
7677
<Compile Include="Overrides\Descriptors\NodesHotThreadsDescriptorOverrides.cs" />
@@ -962,4 +963,4 @@
962963
</ItemGroup>
963964
</When>
964965
</Choose>
965-
</Project>
966+
</Project>
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System.Collections.Generic;
2-
using System.Linq;
3-
using ApiGenerator.Domain;
42

53
namespace ApiGenerator.Overrides.Descriptors
64
{
@@ -18,14 +16,4 @@ public class AnalyzeDescriptorOverrides : DescriptorOverridesBase
1816
"tokenizer"
1917
};
2018
}
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-
}
3119
}

Diff for: ‎src/CodeGeneration/ApiGenerator/Overrides/Descriptors/IndexDescriptorOverrides.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ public class IndexDescriptorOverrides : DescriptorOverridesBase
88
public override CsharpMethod PatchMethod(CsharpMethod method)
99
{
1010
var part = method.Url.Params.First(p => p.Key == "refresh");
11-
part.Value.Description = "Refresh the shard after performing the operation";
11+
part.Value.Description = "Refresh the affected shards after performing the operation";
1212
return method;
1313
}
1414
}
15-
}
15+
}

Diff for: ‎src/Elasticsearch.Net/Domain/RequestParameters/RequestParameters.Generated.cs

+1-1
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 shard after performing the operation</summary>
1570+
///<summary>Refresh the affected shards after performing the operation</summary>
15711571
public IndexRequestParameters Refresh(bool refresh) => this.AddQueryString("refresh", refresh);
15721572

15731573

Diff for: ‎src/Nest/_Generated/_Descriptors.generated.cs

+1-1
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 shard after performing the operation</summary>
1584+
///<summary>Refresh the affected shards 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>

Diff for: ‎src/Nest/_Generated/_Requests.generated.cs

+1-1
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 shard after performing the operation</summary>
3135+
///<summary>Refresh the affected shards 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)
Please sign in to comment.