Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gcs_update_object_acl

Change access to an object in a bucket


Description

Updates Google Cloud Storage ObjectAccessControls

Usage

gcs_update_object_acl(
  object_name,
  bucket = gcs_get_global_bucket(),
  entity = "",
  entity_type = c("user", "group", "domain", "project", "allUsers",
    "allAuthenticatedUsers"),
  role = c("READER", "OWNER")
)

Arguments

object_name

Object to update

bucket

Google Cloud Storage bucket

entity

entity to update or add, such as an email

entity_type

what type of entity

role

Access permission for entity

Details

An entity is an identifier for the entity_type.

  • entity="user" may have userId or email

  • entity="group" may have groupId or email

  • entity="domain" may have domain

  • entity="project" may have team-projectId

For example:

  • entity="user" could be jane@doe.com

  • entity="group" could be example@googlegroups.com

  • entity="domain" could be example.com which is a Google Apps for Business domain.

Value

TRUE if successful

See Also

Other Access control functions: gcs_create_bucket_acl(), gcs_get_bucket_acl(), gcs_get_object_acl()


googleCloudStorageR

Interface with Google Cloud Storage API

v0.6.0
MIT + file LICENSE
Authors
Mark Edmondson [aut, cre] (<https://orcid.org/0000-0002-8434-3881>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.