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

gcs_create_bucket

Create a new bucket


Description

Create a new bucket in your project

Usage

gcs_create_bucket(
  name,
  projectId,
  location = "US",
  storageClass = c("MULTI_REGIONAL", "REGIONAL", "STANDARD", "NEARLINE", "COLDLINE",
    "DURABLE_REDUCED_AVAILABILITY"),
  predefinedAcl = c("projectPrivate", "authenticatedRead", "private", "publicRead",
    "publicReadWrite"),
  predefinedDefaultObjectAcl = c("bucketOwnerFullControl", "bucketOwnerRead",
    "authenticatedRead", "private", "projectPrivate", "publicRead"),
  projection = c("noAcl", "full"),
  versioning = FALSE,
  lifecycle = NULL
)

Arguments

name

Globally unique name of bucket to create

projectId

A valid Google project id

location

Location of bucket. See details

storageClass

Type of bucket

predefinedAcl

Apply predefined access controls to bucket

predefinedDefaultObjectAcl

Apply predefined access controls to objects

projection

Properties to return. Default noAcl omits acl properties

versioning

Set if the bucket supports versioning of its objects

lifecycle

A list of gcs_create_lifecycle objects

Details

See Also


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.