google-cloud-storage 1.61.0 → 1.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e8e52034b7666f01405a098309d3553dc1cb88e17d3b0c79e4275aa7759057b9
|
|
4
|
+
data.tar.gz: e716d297129dd62fc01bce044af62e71032ddbe8c59304d6e3c9244a4a876c31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2e51bde28322abdbb91686de4892755232c131d55b20cef537b8aad491d2af7c5019f2ab998c84751fd2e19d3a5056b12994cb6d61d37c78dc56f1563c66ca11
|
|
7
|
+
data.tar.gz: 62a159a4ee0f8202f29cfcace4155e7c155029712e1d38a1b7d03565d908999820220b2767aed20c581607647b6295061a5653c9abb195cfcedae8980b76233d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
### 1.62.0 (2026-07-02)
|
|
4
|
+
|
|
5
|
+
#### Features
|
|
6
|
+
|
|
7
|
+
* Making crc32c default for download ([#34002](https://github.com/googleapis/google-cloud-ruby/issues/34002))
|
|
8
|
+
* Support delete source object ([#34619](https://github.com/googleapis/google-cloud-ruby/issues/34619))
|
|
9
|
+
* support delete source objects on compose ([#34665](https://github.com/googleapis/google-cloud-ruby/issues/34665))
|
|
10
|
+
|
|
3
11
|
### 1.61.0 (2026-06-11)
|
|
4
12
|
|
|
5
13
|
#### Features
|
|
@@ -2154,6 +2154,8 @@ module Google
|
|
|
2154
2154
|
# @param [Integer] if_metageneration_match Makes the operation conditional
|
|
2155
2155
|
# on whether the destination file's current metageneration matches the
|
|
2156
2156
|
# given value.
|
|
2157
|
+
# @param [Boolean] delete_source_objects If true, the source objects
|
|
2158
|
+
# will be deleted after the composition operation is successful.
|
|
2157
2159
|
#
|
|
2158
2160
|
# @yield [file] A block yielding a delegate file object for setting the
|
|
2159
2161
|
# properties of the destination file.
|
|
@@ -2208,7 +2210,8 @@ module Google
|
|
|
2208
2210
|
encryption_key: nil,
|
|
2209
2211
|
if_source_generation_match: nil,
|
|
2210
2212
|
if_generation_match: nil,
|
|
2211
|
-
if_metageneration_match: nil
|
|
2213
|
+
if_metageneration_match: nil,
|
|
2214
|
+
delete_source_objects: nil
|
|
2212
2215
|
ensure_service!
|
|
2213
2216
|
sources = Array sources
|
|
2214
2217
|
if sources.size < 2
|
|
@@ -2233,7 +2236,8 @@ module Google
|
|
|
2233
2236
|
if_source_generation_match: if_source_generation_match,
|
|
2234
2237
|
if_generation_match: if_generation_match,
|
|
2235
2238
|
if_metageneration_match: if_metageneration_match,
|
|
2236
|
-
user_project: user_project
|
|
2239
|
+
user_project: user_project,
|
|
2240
|
+
delete_source_objects: delete_source_objects
|
|
2237
2241
|
File.from_gapi gapi, service, user_project: user_project
|
|
2238
2242
|
end
|
|
2239
2243
|
alias compose_file compose
|
|
@@ -963,7 +963,7 @@ module Google
|
|
|
963
963
|
# omitted, a new StringIO instance will be written to and returned.
|
|
964
964
|
# Optional.
|
|
965
965
|
# @param [Symbol] verify The verification algorithm used to ensure the
|
|
966
|
-
# downloaded file contents are correct. Default is `:
|
|
966
|
+
# downloaded file contents are correct. Default is `:crc32c`.
|
|
967
967
|
#
|
|
968
968
|
# Acceptable values are:
|
|
969
969
|
#
|
|
@@ -1098,7 +1098,7 @@ module Google
|
|
|
1098
1098
|
# downloaded.rewind
|
|
1099
1099
|
# downloaded.read #=> "world"
|
|
1100
1100
|
#
|
|
1101
|
-
def download path = nil, verify: :
|
|
1101
|
+
def download path = nil, verify: :crc32c, encryption_key: nil, range: nil,
|
|
1102
1102
|
skip_decompress: nil
|
|
1103
1103
|
ensure_service!
|
|
1104
1104
|
if path.nil?
|
|
@@ -2279,7 +2279,7 @@ module Google
|
|
|
2279
2279
|
[dest_bucket, dest_path]
|
|
2280
2280
|
end
|
|
2281
2281
|
|
|
2282
|
-
def verify_file! file, verify = :
|
|
2282
|
+
def verify_file! file, verify = :crc32c
|
|
2283
2283
|
verify_md5 = verify == :md5 || verify == :all
|
|
2284
2284
|
verify_crc32c = verify == :crc32c || verify == :all
|
|
2285
2285
|
Verifier.verify_md5! self, file if verify_md5 && md5
|
|
@@ -549,10 +549,12 @@ module Google
|
|
|
549
549
|
if_generation_match: nil,
|
|
550
550
|
if_metageneration_match: nil,
|
|
551
551
|
user_project: nil,
|
|
552
|
+
delete_source_objects: nil,
|
|
552
553
|
options: {}
|
|
553
554
|
source_objects = compose_file_source_objects source_files, if_source_generation_match
|
|
554
555
|
compose_req = Google::Apis::StorageV1::ComposeRequest.new source_objects: source_objects,
|
|
555
|
-
destination: destination_gapi
|
|
556
|
+
destination: destination_gapi,
|
|
557
|
+
delete_source_objects: delete_source_objects
|
|
556
558
|
|
|
557
559
|
if options[:retries].nil?
|
|
558
560
|
is_idempotent = retry? if_generation_match: if_generation_match
|