gcs_copy_object: Copy an object

Description Usage Arguments Value See Also

View source: R/objects.R

Description

Copies an object to a new destination

Usage

1
2
3
4
5
6
7
8
gcs_copy_object(
  source_object,
  destination_object,
  source_bucket = gcs_get_global_bucket(),
  destination_bucket = gcs_get_global_bucket(),
  rewriteToken = NULL,
  destinationPredefinedAcl = NULL
)

Arguments

source_object

The name of the object to copy, or a gs:// URL

destination_object

The name of where to copy the object to, or a gs:// URL

source_bucket

The bucket of the source object

destination_bucket

The bucket of the destination

rewriteToken

Include this field (from the previous rewrite response) on each rewrite request after the first one, until the rewrite response 'done' flag is true.

destinationPredefinedAcl

Apply a predefined set of access controls to the destination object. If not NULL must be one of the predefined access controls such as "bucketOwnerFullControl"

Value

If successful, a rewrite object.

See Also

Other object functions: gcs_compose_objects(), gcs_delete_object(), gcs_get_object(), gcs_list_objects(), gcs_metadata_object()


googleCloudStorageR documentation built on Dec. 16, 2021, 5:06 p.m.