Fix missing get-snapshots docs reference #31645
This is related to #31537. It fixes a missing docs references in get_snapshots.asciidoc.
This commit is contained in:
parent
0f0d13ee4c
commit
cff7be16fb
|
@ -466,9 +466,13 @@ public class SnapshotClientDocumentationIT extends ESRestHighLevelClientTestCase
|
|||
createTestSnapshots();
|
||||
|
||||
// tag::get-snapshots-request
|
||||
GetSnapshotsRequest request = new GetSnapshotsRequest(repositoryName);
|
||||
GetSnapshotsRequest request = new GetSnapshotsRequest();
|
||||
// end::get-snapshots-request
|
||||
|
||||
// tag::get-snapshots-request-repositoryName
|
||||
request.repository(repositoryName);
|
||||
// end::get-snapshots-request-repositoryName
|
||||
|
||||
// tag::get-snapshots-request-snapshots
|
||||
String[] snapshots = { snapshotName };
|
||||
request.snapshots(snapshots); // <1>
|
||||
|
@ -500,13 +504,13 @@ public class SnapshotClientDocumentationIT extends ESRestHighLevelClientTestCase
|
|||
public void testSnapshotGetSnapshotsAsync() throws InterruptedException {
|
||||
RestHighLevelClient client = highLevelClient();
|
||||
{
|
||||
GetSnapshotsRequest request = new GetSnapshotsRequest();
|
||||
GetSnapshotsRequest request = new GetSnapshotsRequest(repositoryName);
|
||||
|
||||
// tag::get-snapshots-execute-listener
|
||||
ActionListener<GetSnapshotsResponse> listener =
|
||||
new ActionListener<GetSnapshotsResponse>() {
|
||||
@Override
|
||||
public void onResponse(GetSnapshotsResponse deleteSnapshotResponse) {
|
||||
public void onResponse(GetSnapshotsResponse getSnapshotsResponse) {
|
||||
// <1>
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue