Skip to content

Commit

Permalink
docs for #111
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEdmondson1234 committed Jan 1, 2020
1 parent 58749b2 commit f6fca76
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions vignettes/googleCloudStorageR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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()`.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f6fca76

Please sign in to comment.