gcs_get_bucket: Get bucket info

Description Usage Arguments Value See Also Examples

View source: R/buckets.R

Description

Meta data about the bucket

Usage

1
2
3
4
5
6
gcs_get_bucket(
  bucket = gcs_get_global_bucket(),
  ifMetagenerationMatch = NULL,
  ifMetagenerationNotMatch = NULL,
  projection = c("noAcl", "full")
)

Arguments

bucket

Name of a bucket, or a bucket object returned by gcs_create_bucket

ifMetagenerationMatch

Return only if metageneration matches

ifMetagenerationNotMatch

Return only if metageneration does not match

projection

Properties to return. Default noAcl omits acl properties

Value

A bucket resource object

See Also

Other bucket functions: gcs_create_bucket(), gcs_create_lifecycle(), gcs_delete_bucket(), gcs_get_global_bucket(), gcs_global_bucket(), gcs_list_buckets()

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

buckets <- gcs_list_buckets("your-project")

## use the name of the bucket to get more meta data
bucket_meta <- gcs_get_bucket(buckets$name[[1]])


## End(Not run)

MarkEdmondson1234/googleCloudStorageR documentation built on April 27, 2021, 11:41 a.m.