Description Usage Arguments See Also Examples
Returns the default object ACL entry for the specified entity on the specified bucket.
1 2 3 4 5 6 7 8 | gcs_get_object_acl(
object_name,
bucket = gcs_get_global_bucket(),
entity = "",
entity_type = c("user", "group", "domain", "project", "allUsers",
"allAuthenticatedUsers"),
generation = NULL
)
|
object_name |
Name of the object |
bucket |
Name of a bucket |
entity |
The entity holding the permission. Not needed for entity_type |
entity_type |
The type of entity |
generation |
If present, selects a spcfic revision of the object |
Other Access control functions:
gcs_create_bucket_acl()
,
gcs_get_bucket_acl()
,
gcs_update_object_acl()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
# single user
gcs_update_object_acl("mtcars.csv",
bucket = gcs_get_global_bucket(),
entity = "joe@blogs.com",
entity_type = "user"))
acl <- gcs_get_object_acl("mtcars.csv", entity = "joe@blogs.com")
# all users
gcs_update_object_acl("mtcars.csv",
bucket = gcs_get_global_bucket(),
entity_type = "allUsers"))
acl <- gcs_get_object_acl("mtcars.csv", entity_type = "allUsers")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.