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: a60497f252e156b82e852538b68745bb2da723db8fb32ea3bf24ae19967854f3
4
- data.tar.gz: c0b3dc80c3a8d6162b5db564fd2c55ee6d6a654f4fbf335b9893b3a3f96b4282
3
+ metadata.gz: e8e52034b7666f01405a098309d3553dc1cb88e17d3b0c79e4275aa7759057b9
4
+ data.tar.gz: e716d297129dd62fc01bce044af62e71032ddbe8c59304d6e3c9244a4a876c31
5
5
  SHA512:
6
- metadata.gz: 1b0514ca662291b9fe742f1a03105b11bfed312e204d9c08f7830e2a8ba5779b93b1b0b7d716ce9ad46acaccebb4393ad8a1bcf266b351ea52ea794dc812b91d
7
- data.tar.gz: 20a94b3d833ae1ceca1ae19cc458637e42f68625af6f6ea10e8aebd92cc73684da28c14a7ad2cd36f8b18e84566acf1869edbc035b647f01fdcb9abc6002a1b8
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 `:md5`.
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: :md5, encryption_key: nil, range: nil,
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 = :md5
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
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Storage
19
- VERSION = "1.61.0".freeze
19
+ VERSION = "1.62.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.61.0
4
+ version: 1.62.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore