Skip to content

Commit 1f48cd0

Browse files
Prepared storgage_get_object_metadata snippet for inclusion on C.G.C (#5952) (#4256)
Signed-off-by: Modular Magician <[email protected]>
1 parent a4ab5a8 commit 1f48cd0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.changelog/5952.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
```release-note:none
2+
```

google-beta/resource_cgc_snippet_generated_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,5 +761,15 @@ resource "google_storage_bucket_object" "default" {
761761
content_type = "text/plain"
762762
bucket = google_storage_bucket.static.id
763763
}
764+
765+
# Get object metadata
766+
data "google_storage_bucket_object" "default" {
767+
name = google_storage_bucket_object.default.name
768+
bucket = google_storage_bucket.static.id
769+
}
770+
771+
output "object_metadata" {
772+
value = data.google_storage_bucket_object.default
773+
}
764774
`, context)
765775
}

0 commit comments

Comments
 (0)