storage: Listing Buckets
should return the same structure as the JSON API
#8423
Labels
api: storage
Issues related to the Cloud Storage API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Client
Storage
Environment
MacOS
Go Environment
go version go1.20.6 darwin/arm64
Code
google-cloud-go/storage/bucket.go
Line 753 in fbe78a2
Listing buckets returns
BucketAttrs
which has a different structure than the JSON resource https://cloud.google.com/storage/docs/json_api/v1/bucketsExpected behavior
Listing buckets should return a similar response to the JSON API
Actual behavior
Listing buckets wraps the raw bucket response and normalizes fields
Additional context
It seems the .Net SDK does mimic the JSON API https://github.com/googleapis/google-api-dotnet-client/blob/492d0c312b872b2c09cf1bb803fe293e8593c27b/Src/Generated/Google.Apis.Storage.v1/Google.Apis.Storage.v1.cs#L6955
Also, it seems missing fields are added one at a time per request (#4804, #3608)
The text was updated successfully, but these errors were encountered: