Skip to content

Commit e4b2737

Browse files
authored
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
1 parent 21cba14 commit e4b2737

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

storage/bucket.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,7 @@ type Autoclass struct {
772772
// TerminalStorageClass: The storage class that objects in the bucket
773773
// eventually transition to if they are not read for a certain length of
774774
// time. Valid values are NEARLINE and ARCHIVE.
775+
// To modify TerminalStorageClass, Enabled must be set to true.
775776
TerminalStorageClass string
776777
// TerminalStorageClassUpdateTime represents the time of the most recent
777778
// update to "TerminalStorageClass".
@@ -1179,6 +1180,9 @@ type BucketAttrsToUpdate struct {
11791180
RPO RPO
11801181

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

0 commit comments

Comments
 (0)