From e4b2737ddc16d3bf8139a6def7326ac905f62acd Mon Sep 17 00:00:00 2001 From: cojenco Date: Mon, 20 May 2024 13:48:16 -0700 Subject: [PATCH] docs(storage): update autoclass doc (#10135) Add a note to emphasize that users need to update the entire Autoclass config with the enabled field explicitly set ref: internal b/337286895 --- storage/bucket.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/storage/bucket.go b/storage/bucket.go index 28437c518fe2..edd8c43a5b87 100644 --- a/storage/bucket.go +++ b/storage/bucket.go @@ -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". @@ -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