Skip to content

Commit 3d40f5b

Browse files
authored
fix(resources): Link to Go docs in gcp_storage_buckets (#13160)
#### Summary Context in https://discord.com/channels/872925471417962546/1141351009545879612/1141361426284425246. The GO SDK for buckets doesn't mimic the JSON API, they have a different object struct for some reason, see https://github.com/googleapis/google-cloud-go/blob/fbe78a28e01043b059e86c6e960d092b299ac9a4/storage/bucket.go#L753 Not sure why they wrap is and normalize some properties instead of retuning the raw bucket (which they have). This PR links to the Go docs instead of the JSON API docs so it's easier to understand the data CloudQuery sync <!--
1 parent fbb6ca9 commit 3d40f5b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/source/gcp/resources/services/storage/buckets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
func Buckets() *schema.Table {
1212
return &schema.Table{
1313
Name: "gcp_storage_buckets",
14-
Description: `https://cloud.google.com/storage/docs/json_api/v1/buckets#resource`,
14+
Description: `https://pkg.go.dev/cloud.google.com/go/storage#BucketAttrs`,
1515
Resolver: fetchBuckets,
1616
Multiplex: client.ProjectMultiplexEnabledServices("storage.googleapis.com"),
1717
Transform: client.TransformWithStruct(&pb.BucketAttrs{}, transformers.WithPrimaryKeys("Name")),

website/tables/gcp/gcp_storage_buckets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This table shows data for GCP Storage Buckets.
44

5-
https://cloud.google.com/storage/docs/json_api/v1/buckets#resource
5+
https://pkg.go.dev/cloud.google.com/go/storage#BucketAttrs
66

77
The primary key for this table is **name**.
88

0 commit comments

Comments
 (0)