Cloud Storage API - Class Google::Cloud::Storage::File::Updater (v1.52.0)

Reference documentation and code samples for the Cloud Storage API class Google::Cloud::Storage::File::Updater.

Yielded to a block to accumulate changes for a patch request.

Methods

#metadata

def metadata() -> Hash(String => String)

A hash of custom, user-provided web-safe keys and arbitrary string values that will returned with requests for the file as "x-goog-meta-" response headers.

Returns
  • (Hash(String => String))

#metadata=

def metadata=(metadata)

Updates the hash of custom, user-provided web-safe keys and arbitrary string values that will returned with requests for the file as "x-goog-meta-" response headers.

Parameter
  • metadata (Hash(String => String)) — The user-provided metadata, in key/value pairs.