Skip to content

Commit

Permalink
docs(storage): update autoclass comments (#4126)
Browse files Browse the repository at this point in the history
* docs(storage): update autoclass comments

* clarify comment

---------

Co-authored-by: Brenna N Epp <brennae@google.com>
  • Loading branch information
cojenco and BrennaEpp committed Jun 4, 2024
1 parent 743ff06 commit 107cc9d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions storage/buckets/set_autoclass.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@ import (
)

// setAutoclass sets the Autoclass configuration for a bucket.
// See https://cloud.google.com/storage/docs/using-autoclass for more information.

// Note: Only update requests that disable Autoclass are currently supported.
// To enable Autoclass, you must set it at bucket creation time.
func setAutoclass(w io.Writer, bucketName string) error {
// bucketName := "bucket-name"
// Enable Autoclass for a bucket. Set enabled to false to disable Autoclass.
// Set Autoclass.TerminalStorageClass, valid values are NEARLINE and ARCHIVE.

// To update the configuration for Autoclass.TerminalStorageClass,
// Autoclass.Enabled must also be set to true.
// To disable autoclass on the bucket, set to an empty &Autoclass{}.
enabled := true
terminalStorageClass := "ARCHIVE"
ctx := context.Background()
Expand Down

0 comments on commit 107cc9d

Please sign in to comment.