Skip to content

Commit

Permalink
docs(storage): update autoclass doc (#10135)
Browse files Browse the repository at this point in the history
Add a note to emphasize that users need to update the entire Autoclass config with the enabled field explicitly set

ref: internal b/337286895
  • Loading branch information
cojenco committed May 20, 2024
1 parent 21cba14 commit e4b2737
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storage/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,7 @@ type Autoclass struct {
// TerminalStorageClass: The storage class that objects in the bucket
// eventually transition to if they are not read for a certain length of
// time. Valid values are NEARLINE and ARCHIVE.
// To modify TerminalStorageClass, Enabled must be set to true.
TerminalStorageClass string
// TerminalStorageClassUpdateTime represents the time of the most recent
// update to "TerminalStorageClass".
Expand Down Expand Up @@ -1179,6 +1180,9 @@ type BucketAttrsToUpdate struct {
RPO RPO

// If set, updates the autoclass configuration of the bucket.
// To disable autoclass on the bucket, set to an empty &Autoclass{}.
// To update the configuration for Autoclass.TerminalStorageClass,
// Autoclass.Enabled must also be set to true.
// See https://cloud.google.com/storage/docs/using-autoclass for more information.
Autoclass *Autoclass

Expand Down

0 comments on commit e4b2737

Please sign in to comment.