Skip to content

Commit

Permalink
chore: rename file and add sample tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
arpan14 committed Jan 3, 2024
1 parent 988fd7a commit 922f47b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package com.example.spanner.v2;

//[START spanner_create_database_with_default_leader]

import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.spanner.SpannerExceptionFactory;
import com.google.cloud.spanner.admin.database.v1.DatabaseAdminClient;
Expand Down Expand Up @@ -74,4 +76,5 @@ static void createDatabaseWithDefaultLeader(String instanceName, String database
throw SpannerExceptionFactory.propagateInterrupt(e);
}
}
}
}
//[END spanner_create_database_with_default_leader]
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.example.spanner.v2;

//[START spanner_create_instance]
import com.google.api.gax.longrunning.OperationFuture;
import com.google.cloud.spanner.SpannerExceptionFactory;
import com.google.cloud.spanner.admin.instance.v1.InstanceAdminClient;
Expand All @@ -28,7 +29,7 @@
import java.io.IOException;
import java.util.concurrent.ExecutionException;

class CreateInstanceSample {
class CreateInstanceExample {

static void createInstance() throws IOException {
// TODO(developer): Replace these variables before running the sample.
Expand Down Expand Up @@ -77,4 +78,5 @@ static void createInstance(String projectId, String instanceId) throws IOExcepti
throw SpannerExceptionFactory.propagateInterrupt(e);
}
}
}
}
//[END spanner_create_instance]

0 comments on commit 922f47b

Please sign in to comment.