Description Usage Arguments Value Examples
Turn bucket versioning on or off, check status (default), or list archived versions of objects in the bucket and view their generation numbers.
1  | gcs_version_bucket(bucket, action = c("status", "enable", "disable", "list"))
 | 
bucket | 
 gcs bucket  | 
action | 
 "status", "enable", "disable", or "list"  | 
If action="list" a versioned_objects dataframe
If action="status" a boolean on if versioning is TRUE or FALSE
If action="enable" or "disable" TRUE if operation is successful
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  | ## Not run: 
  buck <- gcs_get_global_bucket()
  gcs_version_bucket(buck, action = "disable")
  
  gcs_version_bucket(buck, action = "status")
  # Versioning is NOT ENABLED for "your-bucket"
  gcs_version_bucket(buck, action = "enable")
  # TRUE
  gcs_version_bucket(buck, action = "status")
  # Versioning is ENABLED for "your-bucket"
  gcs_version_bucket(buck, action = "list")
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.