gcs_download_url: Get the download URL

Description Usage Arguments Details Value See Also

View source: R/download.R

Description

Create the download URL for objects in buckets

Usage

1
2
gcs_download_url(object_name, bucket = gcs_get_global_bucket(),
  public = FALSE)

Arguments

object_name

A vector of object names

bucket

A vector of bucket names

public

TRUE to return a public URL

Details

bucket names should be length 1 or same length as object_name

Download URLs can be either authenticated behind a login that you may need to update access for via gcs_update_object_acl, or public to all if their predefinedAcl = 'publicRead'

Use the public = TRUE to return the URL accessible to all, which changes the domain name from storage.cloud.google.com to storage.googleapis.com

Value

the URL for downloading objects

See Also

Other download functions: gcs_parse_download, gcs_signed_url


googleCloudStorageR documentation built on Nov. 18, 2017, 4:07 a.m.