Skip to content

Commit d5bcaaa

Browse files
committed
Align register/unregister percolator requests and response names
1 parent 14ef44f commit d5bcaaa

File tree

6 files changed

+32
-32
lines changed

6 files changed

+32
-32
lines changed

Diff for: src/Nest/Search/Percolator/RegisterPercolator/ElasticClient-RegisterPecolator.cs

+12-12
Original file line numberDiff line numberDiff line change
@@ -13,44 +13,44 @@ public partial interface IElasticClient
1313
/// <typeparam name="T">The type to infer the index/type from, will also be used to strongly type the query</typeparam>
1414
/// <param name="name">The name for the percolator</param>
1515
/// <param name="selector">An optional descriptor describing the register percolator operation further</param>
16-
IRegisterPercolateResponse RegisterPercolator<T>(Name name, Func<RegisterPercolatorDescriptor<T>, IRegisterPercolatorRequest> selector)
16+
IRegisterPercolatorResponse RegisterPercolator<T>(Name name, Func<RegisterPercolatorDescriptor<T>, IRegisterPercolatorRequest> selector)
1717
where T : class;
1818

1919
/// <inheritdoc/>
20-
IRegisterPercolateResponse RegisterPercolator(IRegisterPercolatorRequest request);
20+
IRegisterPercolatorResponse RegisterPercolator(IRegisterPercolatorRequest request);
2121

2222
/// <inheritdoc/>
23-
Task<IRegisterPercolateResponse> RegisterPercolatorAsync<T>(Name name, Func<RegisterPercolatorDescriptor<T>, IRegisterPercolatorRequest> selector)
23+
Task<IRegisterPercolatorResponse> RegisterPercolatorAsync<T>(Name name, Func<RegisterPercolatorDescriptor<T>, IRegisterPercolatorRequest> selector)
2424
where T : class;
2525

2626
/// <inheritdoc/>
27-
Task<IRegisterPercolateResponse> RegisterPercolatorAsync(IRegisterPercolatorRequest request);
27+
Task<IRegisterPercolatorResponse> RegisterPercolatorAsync(IRegisterPercolatorRequest request);
2828
}
2929

3030
public partial class ElasticClient
3131
{
3232
/// <inheritdoc/>
33-
public IRegisterPercolateResponse RegisterPercolator<T>(Name name, Func<RegisterPercolatorDescriptor<T>, IRegisterPercolatorRequest> selector)
33+
public IRegisterPercolatorResponse RegisterPercolator<T>(Name name, Func<RegisterPercolatorDescriptor<T>, IRegisterPercolatorRequest> selector)
3434
where T : class =>
3535
this.RegisterPercolator(selector.InvokeOrDefault(new RegisterPercolatorDescriptor<T>(name)));
3636

3737
/// <inheritdoc/>
38-
public IRegisterPercolateResponse RegisterPercolator(IRegisterPercolatorRequest request) =>
39-
this.Dispatcher.Dispatch<IRegisterPercolatorRequest, IndexRequestParameters, RegisterPercolateResponse>(
38+
public IRegisterPercolatorResponse RegisterPercolator(IRegisterPercolatorRequest request) =>
39+
this.Dispatcher.Dispatch<IRegisterPercolatorRequest, IndexRequestParameters, RegisterPercolatorResponse>(
4040
request,
41-
this.LowLevelDispatch.IndexDispatch<RegisterPercolateResponse>
41+
this.LowLevelDispatch.IndexDispatch<RegisterPercolatorResponse>
4242
);
4343

4444
/// <inheritdoc/>
45-
public Task<IRegisterPercolateResponse> RegisterPercolatorAsync<T>(Name name, Func<RegisterPercolatorDescriptor<T>, IRegisterPercolatorRequest> selector)
45+
public Task<IRegisterPercolatorResponse> RegisterPercolatorAsync<T>(Name name, Func<RegisterPercolatorDescriptor<T>, IRegisterPercolatorRequest> selector)
4646
where T : class =>
4747
this.RegisterPercolatorAsync(selector.InvokeOrDefault(new RegisterPercolatorDescriptor<T>(name)));
4848

4949
/// <inheritdoc/>
50-
public Task<IRegisterPercolateResponse> RegisterPercolatorAsync(IRegisterPercolatorRequest request) =>
51-
this.Dispatcher.DispatchAsync<IRegisterPercolatorRequest, IndexRequestParameters, RegisterPercolateResponse, IRegisterPercolateResponse>(
50+
public Task<IRegisterPercolatorResponse> RegisterPercolatorAsync(IRegisterPercolatorRequest request) =>
51+
this.Dispatcher.DispatchAsync<IRegisterPercolatorRequest, IndexRequestParameters, RegisterPercolatorResponse, IRegisterPercolatorResponse>(
5252
request,
53-
this.LowLevelDispatch.IndexDispatchAsync<RegisterPercolateResponse>
53+
this.LowLevelDispatch.IndexDispatchAsync<RegisterPercolatorResponse>
5454
);
5555
}
5656
}

Diff for: src/Nest/Search/Percolator/RegisterPercolator/RegisterPercolateResponse.cs renamed to src/Nest/Search/Percolator/RegisterPercolator/RegisterPercolatorResponse.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Nest
44
{
5-
public interface IRegisterPercolateResponse : IResponse
5+
public interface IRegisterPercolatorResponse : IResponse
66
{
77
bool Created { get; }
88
string Index { get; }
@@ -12,7 +12,7 @@ public interface IRegisterPercolateResponse : IResponse
1212
}
1313

1414
[JsonObject]
15-
public class RegisterPercolateResponse : BaseResponse, IRegisterPercolateResponse
15+
public class RegisterPercolatorResponse : BaseResponse, IRegisterPercolatorResponse
1616
{
1717
[JsonProperty(PropertyName = "created")]
1818
public bool Created { get; internal set; }

Diff for: src/Nest/Search/Percolator/UnregisterPercolator/ElasticClient-UnregisterPercolate.cs renamed to src/Nest/Search/Percolator/UnregisterPercolator/ElasticClient-UnregisterPercolator.cs

+12-12
Original file line numberDiff line numberDiff line change
@@ -12,45 +12,45 @@ public partial interface IElasticClient
1212
/// </summary>
1313
/// <param name="name">The name for the percolator</param>
1414
/// <param name="selector">An optional descriptor describing the unregister percolator operation further</param>
15-
IUnregisterPercolateResponse UnregisterPercolator<T>(Name name, Func<UnregisterPercolatorDescriptor<T>, IUnregisterPercolatorRequest> selector = null)
15+
IUnregisterPercolatorResponse UnregisterPercolator<T>(Name name, Func<UnregisterPercolatorDescriptor<T>, IUnregisterPercolatorRequest> selector = null)
1616
where T : class;
1717

1818
/// <inheritdoc/>
19-
IUnregisterPercolateResponse UnregisterPercolator(IUnregisterPercolatorRequest request);
19+
IUnregisterPercolatorResponse UnregisterPercolator(IUnregisterPercolatorRequest request);
2020

2121
/// <inheritdoc/>
22-
Task<IUnregisterPercolateResponse> UnregisterPercolatorAsync<T>(Name name, Func<UnregisterPercolatorDescriptor<T>, IUnregisterPercolatorRequest> selector = null)
22+
Task<IUnregisterPercolatorResponse> UnregisterPercolatorAsync<T>(Name name, Func<UnregisterPercolatorDescriptor<T>, IUnregisterPercolatorRequest> selector = null)
2323
where T : class;
2424

2525
/// <inheritdoc/>
26-
Task<IUnregisterPercolateResponse> UnregisterPercolatorAsync(IUnregisterPercolatorRequest request);
26+
Task<IUnregisterPercolatorResponse> UnregisterPercolatorAsync(IUnregisterPercolatorRequest request);
2727
}
2828

2929
public partial class ElasticClient
3030
{
3131

3232
/// <inheritdoc/>
33-
public IUnregisterPercolateResponse UnregisterPercolator<T>(Name name, Func<UnregisterPercolatorDescriptor<T>, IUnregisterPercolatorRequest> selector = null)
33+
public IUnregisterPercolatorResponse UnregisterPercolator<T>(Name name, Func<UnregisterPercolatorDescriptor<T>, IUnregisterPercolatorRequest> selector = null)
3434
where T : class =>
3535
this.UnregisterPercolator(selector.InvokeOrDefault(new UnregisterPercolatorDescriptor<T>(name)));
3636

3737
/// <inheritdoc/>
38-
public IUnregisterPercolateResponse UnregisterPercolator(IUnregisterPercolatorRequest request) =>
39-
this.Dispatcher.Dispatch<IUnregisterPercolatorRequest, DeleteRequestParameters, UnregisterPercolateResponse>(
38+
public IUnregisterPercolatorResponse UnregisterPercolator(IUnregisterPercolatorRequest request) =>
39+
this.Dispatcher.Dispatch<IUnregisterPercolatorRequest, DeleteRequestParameters, UnregisterPercolatorResponse>(
4040
request,
41-
(p, d) => this.LowLevelDispatch.DeleteDispatch<UnregisterPercolateResponse>(p)
41+
(p, d) => this.LowLevelDispatch.DeleteDispatch<UnregisterPercolatorResponse>(p)
4242
);
4343

4444
/// <inheritdoc/>
45-
public Task<IUnregisterPercolateResponse> UnregisterPercolatorAsync<T>(Name name, Func<UnregisterPercolatorDescriptor<T>, IUnregisterPercolatorRequest> selector = null)
45+
public Task<IUnregisterPercolatorResponse> UnregisterPercolatorAsync<T>(Name name, Func<UnregisterPercolatorDescriptor<T>, IUnregisterPercolatorRequest> selector = null)
4646
where T : class =>
4747
this.UnregisterPercolatorAsync(selector.InvokeOrDefault(new UnregisterPercolatorDescriptor<T>(name)));
4848

4949
/// <inheritdoc/>
50-
public Task<IUnregisterPercolateResponse> UnregisterPercolatorAsync(IUnregisterPercolatorRequest request) =>
51-
this.Dispatcher.DispatchAsync<IUnregisterPercolatorRequest, DeleteRequestParameters, UnregisterPercolateResponse, IUnregisterPercolateResponse>(
50+
public Task<IUnregisterPercolatorResponse> UnregisterPercolatorAsync(IUnregisterPercolatorRequest request) =>
51+
this.Dispatcher.DispatchAsync<IUnregisterPercolatorRequest, DeleteRequestParameters, UnregisterPercolatorResponse, IUnregisterPercolatorResponse>(
5252
request,
53-
(p, d) => this.LowLevelDispatch.DeleteDispatchAsync<UnregisterPercolateResponse>(p)
53+
(p, d) => this.LowLevelDispatch.DeleteDispatchAsync<UnregisterPercolatorResponse>(p)
5454
);
5555
}
5656
}

Diff for: src/Nest/Search/Percolator/UnregisterPercolator/UnregisterPercolateResponse.cs renamed to src/Nest/Search/Percolator/UnregisterPercolator/UnregisterPercolatorResponse.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Nest
44
{
5-
public interface IUnregisterPercolateResponse : IResponse
5+
public interface IUnregisterPercolatorResponse : IResponse
66
{
77
bool Found { get; }
88
string Index { get; }
@@ -12,7 +12,7 @@ public interface IUnregisterPercolateResponse : IResponse
1212
}
1313

1414
[JsonObject]
15-
public class UnregisterPercolateResponse : BaseResponse, IUnregisterPercolateResponse
15+
public class UnregisterPercolatorResponse : BaseResponse, IUnregisterPercolatorResponse
1616
{
1717
[JsonProperty(PropertyName = "found")]
1818
public bool Found { get; internal set; }

Diff for: src/Tests/Search/Percolator/RegisterPercolator/RegisterPercolatorApiTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace Tests.Search.Percolator.RegisterPercolator
1212
{
1313
[Collection(IntegrationContext.Indexing)]
14-
public class RegisterPercolatorApiTests : ApiIntegrationTestBase<IRegisterPercolateResponse, IRegisterPercolatorRequest, RegisterPercolatorDescriptor<Project>, RegisterPercolatorRequest>
14+
public class RegisterPercolatorApiTests : ApiIntegrationTestBase<IRegisterPercolatorResponse, IRegisterPercolatorRequest, RegisterPercolatorDescriptor<Project>, RegisterPercolatorRequest>
1515
{
1616
public RegisterPercolatorApiTests(IndexingCluster cluster, EndpointUsage usage) : base(cluster, usage) { }
1717

@@ -50,7 +50,7 @@ protected override LazyResponses ClientUsage() => Calls(
5050
commits = 5000
5151
};
5252

53-
protected override void ExpectResponse(IRegisterPercolateResponse response)
53+
protected override void ExpectResponse(IRegisterPercolatorResponse response)
5454
{
5555
response.Created.Should().BeTrue();
5656
response.Index.Should().NotBeNullOrEmpty();

Diff for: src/Tests/Search/Percolator/UnregisterPercolator/UnregisterPercolatorApiTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Tests.Search.Percolator.UnregisterPercolator
1111
{
1212
[Collection(IntegrationContext.Indexing)]
13-
public class UnregisterPercolatorApiTests : ApiIntegrationTestBase<IUnregisterPercolateResponse, IUnregisterPercolatorRequest, UnregisterPercolatorDescriptor<Project>, UnregisterPercolatorRequest>
13+
public class UnregisterPercolatorApiTests : ApiIntegrationTestBase<IUnregisterPercolatorResponse, IUnregisterPercolatorRequest, UnregisterPercolatorDescriptor<Project>, UnregisterPercolatorRequest>
1414
{
1515
public UnregisterPercolatorApiTests(IndexingCluster cluster, EndpointUsage usage) : base(cluster, usage)
1616
{
@@ -39,7 +39,7 @@ protected override LazyResponses ClientUsage() => Calls(
3939
protected override HttpMethod HttpMethod => HttpMethod.DELETE;
4040
protected override string UrlPath => $"/{this.CallIsolatedValue}-index/.percolator/{this.CallIsolatedValue}";
4141

42-
protected override void ExpectResponse(IUnregisterPercolateResponse response)
42+
protected override void ExpectResponse(IUnregisterPercolatorResponse response)
4343
{
4444
response.Found.Should().BeTrue();
4545
response.Index.Should().NotBeNullOrEmpty();

0 commit comments

Comments
 (0)