@@ -10,26 +10,26 @@ namespace Nest
10
10
public partial class ElasticClient
11
11
{
12
12
/// <inheritdoc />
13
- public IAcknowledgedResponse Restore ( string repository , string snapshotName , Func < RestoreDescriptor , RestoreDescriptor > selector = null )
13
+ public IRestoreResponse Restore ( string repository , string snapshotName , Func < RestoreDescriptor , RestoreDescriptor > selector = null )
14
14
{
15
15
snapshotName . ThrowIfNullOrEmpty ( "name" ) ;
16
16
repository . ThrowIfNullOrEmpty ( "repository" ) ;
17
17
selector = selector ?? ( s => s ) ;
18
- return this . Dispatch < RestoreDescriptor , RestoreRequestParameters , AcknowledgedResponse > (
18
+ return this . Dispatch < RestoreDescriptor , RestoreRequestParameters , RestoreResponse > (
19
19
s => selector ( s . Snapshot ( snapshotName ) . Repository ( repository ) ) ,
20
- ( p , d ) => this . RawDispatch . SnapshotRestoreDispatch < AcknowledgedResponse > ( p , d )
20
+ ( p , d ) => this . RawDispatch . SnapshotRestoreDispatch < RestoreResponse > ( p , d )
21
21
) ;
22
22
}
23
23
24
24
/// <inheritdoc />
25
- public Task < IAcknowledgedResponse > RestoreAsync ( string repository , string snapshotName , Func < RestoreDescriptor , RestoreDescriptor > selector = null )
25
+ public Task < IRestoreResponse > RestoreAsync ( string repository , string snapshotName , Func < RestoreDescriptor , RestoreDescriptor > selector = null )
26
26
{
27
27
snapshotName . ThrowIfNullOrEmpty ( "name" ) ;
28
28
repository . ThrowIfNullOrEmpty ( "repository" ) ;
29
29
selector = selector ?? ( s => s ) ;
30
- return this . DispatchAsync < RestoreDescriptor , RestoreRequestParameters , AcknowledgedResponse , IAcknowledgedResponse > (
30
+ return this . DispatchAsync < RestoreDescriptor , RestoreRequestParameters , RestoreResponse , IRestoreResponse > (
31
31
s => selector ( s . Snapshot ( snapshotName ) . Repository ( repository ) ) ,
32
- ( p , d ) => this . RawDispatch . SnapshotRestoreDispatchAsync < AcknowledgedResponse > ( p , d )
32
+ ( p , d ) => this . RawDispatch . SnapshotRestoreDispatchAsync < RestoreResponse > ( p , d )
33
33
) ;
34
34
}
35
35
}
0 commit comments