@@ -10,26 +10,26 @@ namespace Nest
1010 public partial class ElasticClient
1111 {
1212 /// <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 )
1414 {
1515 snapshotName . ThrowIfNullOrEmpty ( "name" ) ;
1616 repository . ThrowIfNullOrEmpty ( "repository" ) ;
1717 selector = selector ?? ( s => s ) ;
18- return this . Dispatch < RestoreDescriptor , RestoreRequestParameters , AcknowledgedResponse > (
18+ return this . Dispatch < RestoreDescriptor , RestoreRequestParameters , RestoreResponse > (
1919 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 )
2121 ) ;
2222 }
2323
2424 /// <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 )
2626 {
2727 snapshotName . ThrowIfNullOrEmpty ( "name" ) ;
2828 repository . ThrowIfNullOrEmpty ( "repository" ) ;
2929 selector = selector ?? ( s => s ) ;
30- return this . DispatchAsync < RestoreDescriptor , RestoreRequestParameters , AcknowledgedResponse , IAcknowledgedResponse > (
30+ return this . DispatchAsync < RestoreDescriptor , RestoreRequestParameters , RestoreResponse , IRestoreResponse > (
3131 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 )
3333 ) ;
3434 }
3535 }
0 commit comments