Content-Length: 292927 | pFad | http://github.com/googleapis/google-cloud-python/commit/247244ac44a446aef57b3515786bb243e852e205

7D Removed duplicate snippet tags for Delete cluster. (#7860) · googleapis/google-cloud-python@247244a · GitHub
Skip to content

Commit 247244a

Browse files
sangramqltseaver
authored andcommitted
Removed duplicate snippet tags for Delete cluster. (#7860)
1 parent a529af5 commit 247244a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bigtable/docs/snippets.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,11 @@ def test_bigtable_list_tables():
335335

336336

337337
def test_bigtable_delete_cluster():
338-
# [START bigtable_delete_cluster]
339338
from google.cloud.bigtable import Client
340339

341340
client = Client(admin=True)
342341
instance = client.instance(INSTANCE_ID)
343342
cluster_id = "clus-my-" + unique_resource_id("-")
344-
# [END bigtable_delete_cluster]
345-
346343
cluster = instance.cluster(
347344
cluster_id,
348345
location_id=ALT_LOCATION_ID,
@@ -354,7 +351,12 @@ def test_bigtable_delete_cluster():
354351
operation.result(timeout=1000)
355352

356353
# [START bigtable_delete_cluster]
354+
from google.cloud.bigtable import Client
355+
356+
client = Client(admin=True)
357+
instance = client.instance(INSTANCE_ID)
357358
cluster_to_delete = instance.cluster(cluster_id)
359+
358360
cluster_to_delete.delete()
359361
# [END bigtable_delete_cluster]
360362
assert not cluster_to_delete.exists()

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/google-cloud-python/commit/247244ac44a446aef57b3515786bb243e852e205

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy