google-cloud-storage 1.61.0 → 1.62.1

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: 5b48873b5aaf266e25423b1bb0e29f075dce36aa37099e8f5a81b99107faa039
4
+ data.tar.gz: e42cee0adba1195cb7a3fa387b0793e4004df96ae474d8a09444dca362b93369
5
5
  SHA512:
6
- metadata.gz: 1b0514ca662291b9fe742f1a03105b11bfed312e204d9c08f7830e2a8ba5779b93b1b0b7d716ce9ad46acaccebb4393ad8a1bcf266b351ea52ea794dc812b91d
7
- data.tar.gz: 20a94b3d833ae1ceca1ae19cc458637e42f68625af6f6ea10e8aebd92cc73684da28c14a7ad2cd36f8b18e84566acf1869edbc035b647f01fdcb9abc6002a1b8
6
+ metadata.gz: 975095a427ec81681b0626f6bac2479bf324ee7c3a1c0af2d23631e92811c027253dfbd7c07727847c1378985426d138a01e94f54b3401d52da5b892b0c95325
7
+ data.tar.gz: c62cabf03eb1b0eece302cb50e233b7cbd25300d5b431a2082609697f261747ef27144aad9fef0d1691edd0702b2eb6d2a123adca2c898796ea4d9a41ae5574d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Release History
2
2
 
3
+ ### 1.62.1 (2026-08-24)
4
+
5
+ #### Bug Fixes
6
+
7
+ * Remove accept encoding gzip for metadata ([#33896](https://github.com/googleapis/google-cloud-ruby/issues/33896))
8
+
9
+ ### 1.62.0 (2026-07-02)
10
+
11
+ #### Features
12
+
13
+ * Making crc32c default for download ([#34002](https://github.com/googleapis/google-cloud-ruby/issues/34002))
14
+ * Support delete source object ([#34619](https://github.com/googleapis/google-cloud-ruby/issues/34619))
15
+ * support delete source objects on compose ([#34665](https://github.com/googleapis/google-cloud-ruby/issues/34665))
16
+
3
17
  ### 1.61.0 (2026-06-11)
4
18
 
5
19
  #### 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
@@ -64,7 +64,6 @@ module Google
64
64
  @service.request_options.header ||= {}
65
65
  @service.request_options.header["x-goog-api-client"] =
66
66
  "gl-ruby/#{RUBY_VERSION} gccl/#{Google::Cloud::Storage::VERSION}"
67
- @service.request_options.header["Accept-Encoding"] = "gzip"
68
67
  @service.request_options.quota_project = quota_project if quota_project
69
68
  @service.request_options.max_elapsed_time = max_elapsed_time if max_elapsed_time
70
69
  @service.request_options.base_interval = base_interval if base_interval
@@ -549,10 +548,12 @@ module Google
549
548
  if_generation_match: nil,
550
549
  if_metageneration_match: nil,
551
550
  user_project: nil,
551
+ delete_source_objects: nil,
552
552
  options: {}
553
553
  source_objects = compose_file_source_objects source_files, if_source_generation_match
554
554
  compose_req = Google::Apis::StorageV1::ComposeRequest.new source_objects: source_objects,
555
- destination: destination_gapi
555
+ destination: destination_gapi,
556
+ delete_source_objects: delete_source_objects
556
557
 
557
558
  if options[:retries].nil?
558
559
  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.1".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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore