From f6fca764dbeae98c4fa81bd4ac3bef2fad3857dd Mon Sep 17 00:00:00 2001 From: Mark Edmondson Date: Wed, 1 Jan 2020 17:02:24 +0100 Subject: [PATCH] docs for #111 --- vignettes/googleCloudStorageR.Rmd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/vignettes/googleCloudStorageR.Rmd b/vignettes/googleCloudStorageR.Rmd index 9766e5c..df9a012 100644 --- a/vignettes/googleCloudStorageR.Rmd +++ b/vignettes/googleCloudStorageR.Rmd @@ -152,6 +152,14 @@ gcs_upload(mtcars, type = "text/csv") ``` +Since 2019 you can also set bucket level access permissions. To upload to those buckets, specify the `defaultAcl="bucketLevel"` + +```r +gcs_upload(mtcars, + bucket = "mark-bucketlevel-acl", + predefinedAcl = "bucketLevel") +``` + ## Upload metadata You can pass metadata with an object via the function `gcs_metadata_object()`. @@ -242,6 +250,14 @@ gcs_update_object_acl("your-object.csv", role = OWNER) ``` +Since 2019 you can also set bucket level access permissions. To upload to those buckets, specify the `defaultAcl="bucketLevel"` + +```r +gcs_upload(mtcars, + bucket = "mark-bucketlevel-acl", + predefinedAcl = "bucketLevel") +``` + ## Deleting an object Delete an object by passing its name (and bucket if not default)