gcs_update_object_acl: Change access to an object in a bucket

Description Usage Arguments Details Value See Also

View source: R/acl.R

Description

Updates Google Cloud Storage ObjectAccessControls

Usage

1
2
3
4
5
6
7
8
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.

For example:

Value

TRUE if successful

See Also

objectAccessControls on Google API reference

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


googleCloudStorageR documentation built on Dec. 16, 2021, 5:06 p.m.