Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing get-snapshots docs reference #31645

Merged
merged 1 commit into from
Jun 28, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -466,9 +466,13 @@ public void testSnapshotGetSnapshots() throws IOException {
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>
Expand Down Expand Up @@ -500,13 +504,13 @@ public void testSnapshotGetSnapshots() throws IOException {
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>
}

Expand Down