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:
Tim Brooks 2018-06-28 05:04:04 -06:00 committed by GitHub
parent 0f0d13ee4c
commit cff7be16fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -466,9 +466,13 @@ public class SnapshotClientDocumentationIT extends ESRestHighLevelClientTestCase
createTestSnapshots(); createTestSnapshots();
// tag::get-snapshots-request // tag::get-snapshots-request
GetSnapshotsRequest request = new GetSnapshotsRequest(repositoryName); GetSnapshotsRequest request = new GetSnapshotsRequest();
// end::get-snapshots-request // end::get-snapshots-request
// tag::get-snapshots-request-repositoryName
request.repository(repositoryName);
// end::get-snapshots-request-repositoryName
// tag::get-snapshots-request-snapshots // tag::get-snapshots-request-snapshots
String[] snapshots = { snapshotName }; String[] snapshots = { snapshotName };
request.snapshots(snapshots); // <1> request.snapshots(snapshots); // <1>
@ -500,13 +504,13 @@ public class SnapshotClientDocumentationIT extends ESRestHighLevelClientTestCase
public void testSnapshotGetSnapshotsAsync() throws InterruptedException { public void testSnapshotGetSnapshotsAsync() throws InterruptedException {
RestHighLevelClient client = highLevelClient(); RestHighLevelClient client = highLevelClient();
{ {
GetSnapshotsRequest request = new GetSnapshotsRequest(); GetSnapshotsRequest request = new GetSnapshotsRequest(repositoryName);
// tag::get-snapshots-execute-listener // tag::get-snapshots-execute-listener
ActionListener<GetSnapshotsResponse> listener = ActionListener<GetSnapshotsResponse> listener =
new ActionListener<GetSnapshotsResponse>() { new ActionListener<GetSnapshotsResponse>() {
@Override @Override
public void onResponse(GetSnapshotsResponse deleteSnapshotResponse) { public void onResponse(GetSnapshotsResponse getSnapshotsResponse) {
// <1> // <1>
} }