Method: Google::Cloud::Storage::File::Updater#metadata=

Defined in:
lib/google/cloud/storage/file.rb

#metadata=(metadata) ⇒ Object

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.

Parameters:

  • metadata (Hash(String => String))

    The user-provided metadata, in key/value pairs.



2190
2191
2192
2193
2194
# File 'lib/google/cloud/storage/file.rb', line 2190

def metadata= 
  @metadata = 
  @gapi. = @metadata
  update_gapi! :metadata
end