Create a new bucket in your project

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 here for details on location options

See also