@@ -65,7 +65,7 @@ public final class SnapshotClient {
6565 */
6666 public GetRepositoriesResponse getRepository (GetRepositoriesRequest getRepositoriesRequest , RequestOptions options )
6767 throws IOException {
68- return restHighLevelClient .performRequestAndParseEntity (getRepositoriesRequest , RequestConverters ::getRepositories , options ,
68+ return restHighLevelClient .performRequestAndParseEntity (getRepositoriesRequest , SnapshotRequestConverters ::getRepositories , options ,
6969 GetRepositoriesResponse ::fromXContent , emptySet ());
7070 }
7171
@@ -80,7 +80,7 @@ public GetRepositoriesResponse getRepository(GetRepositoriesRequest getRepositor
8080 */
8181 public void getRepositoryAsync (GetRepositoriesRequest getRepositoriesRequest , RequestOptions options ,
8282 ActionListener <GetRepositoriesResponse > listener ) {
83- restHighLevelClient .performRequestAsyncAndParseEntity (getRepositoriesRequest , RequestConverters ::getRepositories , options ,
83+ restHighLevelClient .performRequestAsyncAndParseEntity (getRepositoriesRequest , SnapshotRequestConverters ::getRepositories , options ,
8484 GetRepositoriesResponse ::fromXContent , listener , emptySet ());
8585 }
8686
@@ -94,7 +94,7 @@ public void getRepositoryAsync(GetRepositoriesRequest getRepositoriesRequest, Re
9494 * @throws IOException in case there is a problem sending the request or parsing back the response
9595 */
9696 public AcknowledgedResponse createRepository (PutRepositoryRequest putRepositoryRequest , RequestOptions options ) throws IOException {
97- return restHighLevelClient .performRequestAndParseEntity (putRepositoryRequest , RequestConverters ::createRepository , options ,
97+ return restHighLevelClient .performRequestAndParseEntity (putRepositoryRequest , SnapshotRequestConverters ::createRepository , options ,
9898 AcknowledgedResponse ::fromXContent , emptySet ());
9999 }
100100
@@ -108,7 +108,7 @@ public AcknowledgedResponse createRepository(PutRepositoryRequest putRepositoryR
108108 */
109109 public void createRepositoryAsync (PutRepositoryRequest putRepositoryRequest , RequestOptions options ,
110110 ActionListener <AcknowledgedResponse > listener ) {
111- restHighLevelClient .performRequestAsyncAndParseEntity (putRepositoryRequest , RequestConverters ::createRepository , options ,
111+ restHighLevelClient .performRequestAsyncAndParseEntity (putRepositoryRequest , SnapshotRequestConverters ::createRepository , options ,
112112 AcknowledgedResponse ::fromXContent , listener , emptySet ());
113113 }
114114
@@ -123,8 +123,8 @@ public void createRepositoryAsync(PutRepositoryRequest putRepositoryRequest, Req
123123 */
124124 public AcknowledgedResponse deleteRepository (DeleteRepositoryRequest deleteRepositoryRequest , RequestOptions options )
125125 throws IOException {
126- return restHighLevelClient .performRequestAndParseEntity (deleteRepositoryRequest , RequestConverters ::deleteRepository , options ,
127- AcknowledgedResponse ::fromXContent , emptySet ());
126+ return restHighLevelClient .performRequestAndParseEntity (deleteRepositoryRequest , SnapshotRequestConverters ::deleteRepository ,
127+ options , AcknowledgedResponse ::fromXContent , emptySet ());
128128 }
129129
130130 /**
@@ -137,7 +137,7 @@ public AcknowledgedResponse deleteRepository(DeleteRepositoryRequest deleteRepos
137137 */
138138 public void deleteRepositoryAsync (DeleteRepositoryRequest deleteRepositoryRequest , RequestOptions options ,
139139 ActionListener <AcknowledgedResponse > listener ) {
140- restHighLevelClient .performRequestAsyncAndParseEntity (deleteRepositoryRequest , RequestConverters ::deleteRepository , options ,
140+ restHighLevelClient .performRequestAsyncAndParseEntity (deleteRepositoryRequest , SnapshotRequestConverters ::deleteRepository , options ,
141141 AcknowledgedResponse ::fromXContent , listener , emptySet ());
142142 }
143143
@@ -152,8 +152,8 @@ public void deleteRepositoryAsync(DeleteRepositoryRequest deleteRepositoryReques
152152 */
153153 public VerifyRepositoryResponse verifyRepository (VerifyRepositoryRequest verifyRepositoryRequest , RequestOptions options )
154154 throws IOException {
155- return restHighLevelClient .performRequestAndParseEntity (verifyRepositoryRequest , RequestConverters ::verifyRepository , options ,
156- VerifyRepositoryResponse ::fromXContent , emptySet ());
155+ return restHighLevelClient .performRequestAndParseEntity (verifyRepositoryRequest , SnapshotRequestConverters ::verifyRepository ,
156+ options , VerifyRepositoryResponse ::fromXContent , emptySet ());
157157 }
158158
159159 /**
@@ -166,7 +166,7 @@ public VerifyRepositoryResponse verifyRepository(VerifyRepositoryRequest verifyR
166166 */
167167 public void verifyRepositoryAsync (VerifyRepositoryRequest verifyRepositoryRequest , RequestOptions options ,
168168 ActionListener <VerifyRepositoryResponse > listener ) {
169- restHighLevelClient .performRequestAsyncAndParseEntity (verifyRepositoryRequest , RequestConverters ::verifyRepository , options ,
169+ restHighLevelClient .performRequestAsyncAndParseEntity (verifyRepositoryRequest , SnapshotRequestConverters ::verifyRepository , options ,
170170 VerifyRepositoryResponse ::fromXContent , listener , emptySet ());
171171 }
172172
@@ -178,7 +178,7 @@ public void verifyRepositoryAsync(VerifyRepositoryRequest verifyRepositoryReques
178178 */
179179 public CreateSnapshotResponse create (CreateSnapshotRequest createSnapshotRequest , RequestOptions options )
180180 throws IOException {
181- return restHighLevelClient .performRequestAndParseEntity (createSnapshotRequest , RequestConverters ::createSnapshot , options ,
181+ return restHighLevelClient .performRequestAndParseEntity (createSnapshotRequest , SnapshotRequestConverters ::createSnapshot , options ,
182182 CreateSnapshotResponse ::fromXContent , emptySet ());
183183 }
184184
@@ -190,7 +190,7 @@ public CreateSnapshotResponse create(CreateSnapshotRequest createSnapshotRequest
190190 */
191191 public void createAsync (CreateSnapshotRequest createSnapshotRequest , RequestOptions options ,
192192 ActionListener <CreateSnapshotResponse > listener ) {
193- restHighLevelClient .performRequestAsyncAndParseEntity (createSnapshotRequest , RequestConverters ::createSnapshot , options ,
193+ restHighLevelClient .performRequestAsyncAndParseEntity (createSnapshotRequest , SnapshotRequestConverters ::createSnapshot , options ,
194194 CreateSnapshotResponse ::fromXContent , listener , emptySet ());
195195 }
196196
@@ -205,7 +205,7 @@ public void createAsync(CreateSnapshotRequest createSnapshotRequest, RequestOpti
205205 * @throws IOException in case there is a problem sending the request or parsing back the response
206206 */
207207 public GetSnapshotsResponse get (GetSnapshotsRequest getSnapshotsRequest , RequestOptions options ) throws IOException {
208- return restHighLevelClient .performRequestAndParseEntity (getSnapshotsRequest , RequestConverters ::getSnapshots , options ,
208+ return restHighLevelClient .performRequestAndParseEntity (getSnapshotsRequest , SnapshotRequestConverters ::getSnapshots , options ,
209209 GetSnapshotsResponse ::fromXContent , emptySet ());
210210 }
211211
@@ -219,7 +219,7 @@ public GetSnapshotsResponse get(GetSnapshotsRequest getSnapshotsRequest, Request
219219 * @param listener the listener to be notified upon request completion
220220 */
221221 public void getAsync (GetSnapshotsRequest getSnapshotsRequest , RequestOptions options , ActionListener <GetSnapshotsResponse > listener ) {
222- restHighLevelClient .performRequestAsyncAndParseEntity (getSnapshotsRequest , RequestConverters ::getSnapshots , options ,
222+ restHighLevelClient .performRequestAsyncAndParseEntity (getSnapshotsRequest , SnapshotRequestConverters ::getSnapshots , options ,
223223 GetSnapshotsResponse ::fromXContent , listener , emptySet ());
224224 }
225225
@@ -234,7 +234,7 @@ public void getAsync(GetSnapshotsRequest getSnapshotsRequest, RequestOptions opt
234234 */
235235 public SnapshotsStatusResponse status (SnapshotsStatusRequest snapshotsStatusRequest , RequestOptions options )
236236 throws IOException {
237- return restHighLevelClient .performRequestAndParseEntity (snapshotsStatusRequest , RequestConverters ::snapshotsStatus , options ,
237+ return restHighLevelClient .performRequestAndParseEntity (snapshotsStatusRequest , SnapshotRequestConverters ::snapshotsStatus , options ,
238238 SnapshotsStatusResponse ::fromXContent , emptySet ());
239239 }
240240
@@ -248,7 +248,7 @@ public SnapshotsStatusResponse status(SnapshotsStatusRequest snapshotsStatusRequ
248248 */
249249 public void statusAsync (SnapshotsStatusRequest snapshotsStatusRequest , RequestOptions options ,
250250 ActionListener <SnapshotsStatusResponse > listener ) {
251- restHighLevelClient .performRequestAsyncAndParseEntity (snapshotsStatusRequest , RequestConverters ::snapshotsStatus , options ,
251+ restHighLevelClient .performRequestAsyncAndParseEntity (snapshotsStatusRequest , SnapshotRequestConverters ::snapshotsStatus , options ,
252252 SnapshotsStatusResponse ::fromXContent , listener , emptySet ());
253253 }
254254
@@ -263,7 +263,7 @@ public void statusAsync(SnapshotsStatusRequest snapshotsStatusRequest, RequestOp
263263 * @throws IOException in case there is a problem sending the request or parsing back the response
264264 */
265265 public RestoreSnapshotResponse restore (RestoreSnapshotRequest restoreSnapshotRequest , RequestOptions options ) throws IOException {
266- return restHighLevelClient .performRequestAndParseEntity (restoreSnapshotRequest , RequestConverters ::restoreSnapshot , options ,
266+ return restHighLevelClient .performRequestAndParseEntity (restoreSnapshotRequest , SnapshotRequestConverters ::restoreSnapshot , options ,
267267 RestoreSnapshotResponse ::fromXContent , emptySet ());
268268 }
269269
@@ -278,7 +278,7 @@ public RestoreSnapshotResponse restore(RestoreSnapshotRequest restoreSnapshotReq
278278 */
279279 public void restoreAsync (RestoreSnapshotRequest restoreSnapshotRequest , RequestOptions options ,
280280 ActionListener <RestoreSnapshotResponse > listener ) {
281- restHighLevelClient .performRequestAsyncAndParseEntity (restoreSnapshotRequest , RequestConverters ::restoreSnapshot , options ,
281+ restHighLevelClient .performRequestAsyncAndParseEntity (restoreSnapshotRequest , SnapshotRequestConverters ::restoreSnapshot , options ,
282282 RestoreSnapshotResponse ::fromXContent , listener , emptySet ());
283283 }
284284
@@ -293,7 +293,7 @@ public void restoreAsync(RestoreSnapshotRequest restoreSnapshotRequest, RequestO
293293 * @throws IOException in case there is a problem sending the request or parsing back the response
294294 */
295295 public AcknowledgedResponse delete (DeleteSnapshotRequest deleteSnapshotRequest , RequestOptions options ) throws IOException {
296- return restHighLevelClient .performRequestAndParseEntity (deleteSnapshotRequest , RequestConverters ::deleteSnapshot , options ,
296+ return restHighLevelClient .performRequestAndParseEntity (deleteSnapshotRequest , SnapshotRequestConverters ::deleteSnapshot , options ,
297297 AcknowledgedResponse ::fromXContent , emptySet ());
298298 }
299299
@@ -308,7 +308,7 @@ public AcknowledgedResponse delete(DeleteSnapshotRequest deleteSnapshotRequest,
308308 */
309309 public void deleteAsync (DeleteSnapshotRequest deleteSnapshotRequest , RequestOptions options ,
310310 ActionListener <AcknowledgedResponse > listener ) {
311- restHighLevelClient .performRequestAsyncAndParseEntity (deleteSnapshotRequest , RequestConverters ::deleteSnapshot , options ,
311+ restHighLevelClient .performRequestAsyncAndParseEntity (deleteSnapshotRequest , SnapshotRequestConverters ::deleteSnapshot , options ,
312312 AcknowledgedResponse ::fromXContent , listener , emptySet ());
313313 }
314314}
0 commit comments