Skip to content

Commit c1c3f88

Browse files
committed
Add request and response for async search status
1 parent fec16ef commit c1c3f88

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Licensed to Elasticsearch B.V under one or more agreements.
2+
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information
4+
5+
namespace Nest
6+
{
7+
[MapsApi("async_search.status.json")]
8+
[ReadAs(typeof(AsyncSearchStatusRequest))]
9+
public partial interface IAsyncSearchStatusRequest { }
10+
11+
/// <inheritdoc cref="IAsyncSearchStatusRequest"/>
12+
public partial class AsyncSearchStatusRequest
13+
{
14+
}
15+
16+
/// <inheritdoc cref="IAsyncSearchStatusRequest"/>
17+
public partial class AsyncSearchStatusDescriptor
18+
{
19+
}
20+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Licensed to Elasticsearch B.V under one or more agreements.
2+
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3+
// See the LICENSE file in the project root for more information
4+
5+
using System.Runtime.Serialization;
6+
7+
namespace Nest
8+
{
9+
public class AsyncSearchStatusResponse : AsyncSearchResponseBase
10+
{
11+
[DataMember(Name = "_shards")]
12+
public ShardStatistics Shards { get; internal set; }
13+
14+
[DataMember(Name = "completion_status")]
15+
public int? CompletionStatus { get; internal set; }
16+
}
17+
}

0 commit comments

Comments
 (0)