storage: SoftDeletePolicy is not getting disabled on bucket update #11199
Labels
api: storage
Issues related to the Cloud Storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Client
Storage v1.47.0
Environment
go version go1.23.3 linux/amd64
Code and Dependencies
go.mod
Expected behavior
Bucket gets created without a SoftDeletePolicy / SoftDelete Protection as mentioned in the docs:
https://github.com/googleapis/google-cloud-go/blob/storage/v1.42.0/storage/bucket.go#L491-L492
Actual behavior
Bucket has the default 7 day soft delete policy set.
Additional context
Using any other valid RetentionDuration - e.g. 10 days using 10 * 24 * time.hour - is working as expected and sets the SoftDelete Policy to a 10 day retention duration.
Similar issue on bucket creation was fixed
#10380
The text was updated successfully, but these errors were encountered: