google-cloud-storage 1.48.1 → 1.49.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ba208497567ec78a35a17309d8f7510a26cbfa304522fef436c32b607c7a295
4
- data.tar.gz: 2e9294c55434f76c3723d1408c5b777c7bd195f4405ec08d88b8d33903136b60
3
+ metadata.gz: f8a2a526a042472efc68bca61aecd13daab3329949890543c73e499d19b1bf91
4
+ data.tar.gz: 152a633c29980d1c645e8d0c96100f60d245ea1d1844407bb12c8a689b231892
5
5
  SHA512:
6
- metadata.gz: 0f31dd1e06029deba139bd8da0551d44664890b88cb6259428f1d150268693aabc3f9e05892108cf38d2c25d18d8046f200c4fbdc6087594f12e8761dc2e7f90
7
- data.tar.gz: f0d6919dbb3d252c069ed2673e3dbef881f94409ee6dd7ee73bd1ec63425f8c1afcd0ef19e87095001a69ebc80c6fe253d2e76712b9f412c2745ccbf3d55bdac
6
+ metadata.gz: 8086edce323f96ad7826ab121e5b3fc12d94a4695838259e5c7f90f0607414c6f6516c63318888c2d8022a4b0440692d06d57e016081a35f06c27c6591a1269a
7
+ data.tar.gz: 286c58007dc3ef084ed5947e01a38aefa09aa01b7eb121f2a99eab34aef8d1577cd3c8c738d7b58d6ef51f5c1817a1618380b35c961bdb5ff5ac159c8d0f941e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 1.49.0 (2024-02-21)
4
+
5
+ #### Features
6
+
7
+ * Support of Managed Folders ([#24809](https://github.com/googleapis/google-cloud-ruby/issues/24809))
8
+
3
9
  ### 1.48.1 (2024-01-26)
4
10
 
5
11
  #### Bug Fixes
@@ -1319,6 +1319,9 @@ module Google
1319
1319
  # as distinct results. The default is `false`. For more information,
1320
1320
  # see [Object Versioning
1321
1321
  # ](https://cloud.google.com/storage/docs/object-versioning).
1322
+ # @param [Boolean] include_folders_as_prefixes If `true`, will also include
1323
+ # folders and managed folders, besides objects, in the returned prefixes.
1324
+ # Only applicable if delimiter is set to '/'.
1322
1325
  #
1323
1326
  # @return [Array<Google::Cloud::Storage::File>] (See
1324
1327
  # {Google::Cloud::Storage::File::List})
@@ -1346,17 +1349,19 @@ module Google
1346
1349
  # end
1347
1350
  #
1348
1351
  def files prefix: nil, delimiter: nil, token: nil, max: nil,
1349
- versions: nil, match_glob: nil
1352
+ versions: nil, match_glob: nil, include_folders_as_prefixes: nil
1350
1353
  ensure_service!
1351
1354
  gapi = service.list_files name, prefix: prefix, delimiter: delimiter,
1352
1355
  token: token, max: max,
1353
1356
  versions: versions,
1354
1357
  user_project: user_project,
1355
- match_glob: match_glob
1358
+ match_glob: match_glob,
1359
+ include_folders_as_prefixes: include_folders_as_prefixes
1356
1360
  File::List.from_gapi gapi, service, name, prefix, delimiter, max,
1357
1361
  versions,
1358
1362
  user_project: user_project,
1359
- match_glob: match_glob
1363
+ match_glob: match_glob,
1364
+ include_folders_as_prefixes: include_folders_as_prefixes
1360
1365
  end
1361
1366
  alias find_files files
1362
1367
 
@@ -165,8 +165,8 @@ module Google
165
165
  # Google::Apis::StorageV1::Objects object.
166
166
  def self.from_gapi gapi_list, service, bucket = nil, prefix = nil,
167
167
  delimiter = nil, max = nil, versions = nil,
168
- user_project: nil,
169
- match_glob: nil
168
+ user_project: nil, match_glob: nil,
169
+ include_folders_as_prefixes: nil
170
170
  files = new(Array(gapi_list.items).map do |gapi_object|
171
171
  File.from_gapi gapi_object, service, user_project: user_project
172
172
  end)
@@ -180,6 +180,7 @@ module Google
180
180
  files.instance_variable_set :@versions, versions
181
181
  files.instance_variable_set :@user_project, user_project
182
182
  files.instance_variable_set :@match_glob, match_glob
183
+ files.instance_variable_set :@include_folders_as_prefixes, include_folders_as_prefixes
183
184
  files
184
185
  end
185
186
 
@@ -363,7 +363,7 @@ module Google
363
363
  # Retrieves a list of files matching the criteria.
364
364
  def list_files bucket_name, delimiter: nil, max: nil, token: nil,
365
365
  prefix: nil, versions: nil, user_project: nil,
366
- match_glob: nil,
366
+ match_glob: nil, include_folders_as_prefixes: nil,
367
367
  options: {}
368
368
  execute do
369
369
  service.list_objects \
@@ -372,6 +372,7 @@ module Google
372
372
  versions: versions,
373
373
  user_project: user_project(user_project),
374
374
  match_glob: match_glob,
375
+ include_folders_as_prefixes: include_folders_as_prefixes,
375
376
  options: options
376
377
  end
377
378
  end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Storage
19
- VERSION = "1.48.1".freeze
19
+ VERSION = "1.49.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.48.1
4
+ version: 1.49.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-01-26 00:00:00.000000000 Z
12
+ date: 2024-02-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core