Skip to content

Commit b92b452

Browse files
committed
chore(samples): Add samples for Cloud Spanner Default Backup Schedules.
Adding `s` to create instance sample class name
1 parent bf6da02 commit b92b452

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@
2727
import com.google.spanner.admin.instance.v1.ProjectName;
2828
import java.util.concurrent.ExecutionException;
2929

30-
class CreateInstanceWithoutDefaultBackupScheduleExample {
30+
class CreateInstanceWithoutDefaultBackupSchedulesExample {
3131

32-
static void createInstanceWithoutDefaultBackupSchedule() {
32+
static void createInstanceWithoutDefaultBackupSchedules() {
3333
// TODO(developer): Replace these variables before running the sample.
3434
String projectId = "my-project";
3535
String instanceId = "my-instance";
36-
createInstanceWithoutDefaultBackupSchedule(projectId, instanceId);
36+
createInstanceWithoutDefaultBackupSchedules(projectId, instanceId);
3737
}
3838

39-
static void createInstanceWithoutDefaultBackupSchedule(String projectId, String instanceId) {
39+
static void createInstanceWithoutDefaultBackupSchedules(String projectId, String instanceId) {
4040
// Set Instance configuration.
4141
int nodeCount = 2;
4242
String displayName = "Descriptive name";

samples/snippets/src/test/java/com/example/spanner/SpannerSampleIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,8 @@ public void testCreateAndUpdateInstanceDefaultBackupScheduleTypeSample() {
702702
runSampleRunnable(
703703
() -> {
704704
try {
705-
CreateInstanceWithoutDefaultBackupScheduleExample
706-
.createInstanceWithoutDefaultBackupSchedule(
705+
CreateInstanceWithoutDefaultBackupSchedulesExample
706+
.createInstanceWithoutDefaultBackupSchedules(
707707
dbId.getInstanceId().getProject(), instanceId);
708708
UpdateInstanceDefaultBackupScheduleTypeExample
709709
.updateInstanceDefaultBackupScheduleType(

0 commit comments

Comments
 (0)