Skip to content

Commit 595ef35

Browse files
committed
address pr comments
1 parent c9f0a91 commit 595ef35

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

samples/snippets/src/main/java/com/example/bigtable/InstanceAdminExample.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void createProdInstance() {
147147
}
148148

149149
/**
150-
* Demonstrates how to create a Production instance within a provided project with tags.
150+
* Demonstrates how to create an instance within a provided project with tags.
151151
*
152152
* <p>Tags are a way to organize and govern resources across Google Cloud, see
153153
* [Creating and managing tags](https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
@@ -161,14 +161,14 @@ public void createProdInstance() {
161161
public void createProdInstanceWithTags() {
162162
// Creates an instance if it doesn't exist.
163163
if (!adminClient.exists(instanceId)) {
164-
System.out.println("Instance does not exist, creating a PRODUCTION instance with tags");
164+
System.out.println("Instance does not exist, creating an instance with tags");
165165

166166
// These are placeholders. You must create these in your GCP Organization/Project first.
167167
String tagKey = "tagKeys/12345";
168168
String tagValue = "tagValues/6789";
169169

170170
// [START bigtable_create_prod_instance_with_tags]
171-
// Creates a Production Instance with the ID "ssd-instance",
171+
// Creates an instance with the ID "ssd-instance",
172172
// cluster id "ssd-cluster", 3 nodes and location "us-central1-f".
173173
String parent = "projects/" + projectId;
174174
Instance instanceObj =
@@ -194,7 +194,7 @@ public void createProdInstanceWithTags() {
194194
// Creates a production instance with the given request.
195195
try {
196196
Instance instance = adminClient.getBaseClient().createInstanceAsync(request).get();
197-
System.out.printf("PRODUCTION type instance %s with tags created successfully%n", instance.getName());
197+
System.out.printf("Instance %s with tags created successfully%n", instance.getName());
198198
} catch (Exception e) {
199199
System.err.println("Failed to create instance: " + e.getMessage());
200200
throw new RuntimeException(e);

0 commit comments

Comments
 (0)