Class: Google::Cloud::Storage::File::Updater
- Inherits:
-
Google::Cloud::Storage::File
- Object
- Google::Cloud::Storage::File
- Google::Cloud::Storage::File::Updater
- Defined in:
- lib/google/cloud/storage/file.rb
Overview
Yielded to a block to accumulate changes for a patch request.
Instance Attribute Summary
Attributes inherited from Google::Cloud::Storage::File
Instance Method Summary collapse
-
#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.
-
#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.
Methods inherited from Google::Cloud::Storage::File
#acl, #api_url, #bucket, #cache_control, #cache_control=, #content_disposition, #content_disposition=, #content_encoding, #content_encoding=, #content_language, #content_language=, #content_type, #content_type=, #copy, #crc32c, #created_at, #custom_time, #custom_time=, #delete, #download, #encryption_key_sha256, #etag, #event_based_hold?, #exists?, #generation, #generations, #hard_delete_time, #id, #kind, #kms_key, #md5, #media_url, #metageneration, #name, #public_url, #release_event_based_hold!, #release_temporary_hold!, #reload!, #retention, #retention=, #retention_expires_at, #retention_mode, #retention_retain_until_time, #rewrite, #rotate, #set_event_based_hold!, #set_temporary_hold!, #signed_url, #size, #soft_delete_time, #storage_class, #storage_class=, #temporary_hold?, #update, #updated_at
Instance Method Details
#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.
2267 2268 2269 |
# File 'lib/google/cloud/storage/file.rb', line 2267 def @metadata end |
#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.
2279 2280 2281 2282 2283 |
# File 'lib/google/cloud/storage/file.rb', line 2279 def @metadata = @gapi. = @metadata update_gapi! :metadata end |